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/SkImageInfo.h" 11 #include "include/core/SkSurfaceProps.h" 12 #include "include/gpu/GrContextOptions.h" 13 14 namespace sk_app { 15 16 struct DisplayParams { DisplayParamsDisplayParams17 DisplayParams() 18 : fColorType(kN32_SkColorType) 19 , fColorSpace(nullptr) 20 , fMSAASampleCount(1) 21 , fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) 22 , fDisableVsync(false) 23 {} 24 25 SkColorType fColorType; 26 sk_sp<SkColorSpace> fColorSpace; 27 int fMSAASampleCount; 28 GrContextOptions fGrContextOptions; 29 SkSurfaceProps fSurfaceProps; 30 bool fDisableVsync; 31 }; 32 33 } // namespace sk_app 34 35 #endif 36