• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(0, kRGB_H_SkPixelGeometry)
22         , fDisableVsync(false)
23         , fDelayDrawableAcquisition(false)
24         , fEnableBinaryArchive(false)
25     {}
26 
27     SkColorType         fColorType;
28     sk_sp<SkColorSpace> fColorSpace;
29     int                 fMSAASampleCount;
30     GrContextOptions    fGrContextOptions;
31     SkSurfaceProps      fSurfaceProps;
32     bool                fDisableVsync;
33     bool                fDelayDrawableAcquisition;
34     bool                fEnableBinaryArchive;
35 };
36 
37 }   // namespace sk_app
38 
39 #endif
40