• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 Google LLC
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 SkDisplayParams_DEFINED
8 #define SkDisplayParams_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 struct SkDisplayParams {
SkDisplayParamsSkDisplayParams16     SkDisplayParams()
17         : fColorType(kN32_SkColorType)
18         , fColorSpace(nullptr)
19         , fMSAASampleCount(1)
20         , fSurfaceProps(0, kRGB_H_SkPixelGeometry)
21         , fDisableVsync(false)
22         , fDelayDrawableAcquisition(false)
23         , fEnableBinaryArchive(false)
24     {}
25 
26     SkColorType         fColorType;
27     sk_sp<SkColorSpace> fColorSpace;
28     int                 fMSAASampleCount;
29     GrContextOptions    fGrContextOptions;
30     SkSurfaceProps      fSurfaceProps;
31     bool                fDisableVsync;
32     bool                fDelayDrawableAcquisition;
33     bool                fEnableBinaryArchive;
34 };
35 
36 #endif
37