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 "GrContextOptions.h" 11 #include "SkImageInfo.h" 12 13 namespace sk_app { 14 15 struct DisplayParams { DisplayParamsDisplayParams16 DisplayParams() 17 : fColorType(kN32_SkColorType) 18 , fColorSpace(nullptr) 19 , fMSAASampleCount(0) {} 20 21 SkColorType fColorType; 22 sk_sp<SkColorSpace> fColorSpace; 23 int fMSAASampleCount; 24 GrContextOptions fGrContextOptions; 25 }; 26 27 } // namespace sk_app 28 29 #endif 30