1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 #ifndef DisplayParams_DEFINED 8 #define DisplayParams_DEFINED 9 10 #include "include/core/SkColorSpace.h" 11 #include "include/core/SkImageInfo.h" 12 #include "include/core/SkSurfaceProps.h" 13 #include "include/gpu/GrContextOptions.h" 14 15 namespace sk_app { 16 17 struct DisplayParams { DisplayParamsDisplayParams18 DisplayParams() 19 : fColorType(kN32_SkColorType) 20 , fColorSpace(nullptr) 21 , fMSAASampleCount(1) 22 , fSurfaceProps(0, kRGB_H_SkPixelGeometry) 23 , fDisableVsync(false) 24 , fDelayDrawableAcquisition(false) 25 , fEnableBinaryArchive(false) 26 {} 27 28 SkColorType fColorType; 29 sk_sp<SkColorSpace> fColorSpace; 30 int fMSAASampleCount; 31 GrContextOptions fGrContextOptions; 32 SkSurfaceProps fSurfaceProps; 33 bool fDisableVsync; 34 bool fDelayDrawableAcquisition; 35 bool fEnableBinaryArchive; 36 }; 37 38 } // namespace sk_app 39 40 #endif 41