blob: afad8e16bd6a13bc9be1a50ca52d5a2176dfb972 [file] [log] [blame]
brianosman05de2162016-05-06 13:28:57 -07001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050010#include "include/core/SkImageInfo.h"
11#include "include/core/SkSurfaceProps.h"
12#include "include/gpu/GrContextOptions.h"
brianosman05de2162016-05-06 13:28:57 -070013
14namespace sk_app {
15
16struct DisplayParams {
Ben Wagner37c54032018-04-13 14:30:23 -040017 DisplayParams()
18 : fColorType(kN32_SkColorType)
19 , fColorSpace(nullptr)
20 , fMSAASampleCount(1)
21 , fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)
Greg Danielbb792aa2019-03-25 13:42:33 -040022 , fDisableVsync(false)
Ben Wagner37c54032018-04-13 14:30:23 -040023 {}
brianosman05de2162016-05-06 13:28:57 -070024
brianosmanb109b8c2016-06-16 13:03:24 -070025 SkColorType fColorType;
26 sk_sp<SkColorSpace> fColorSpace;
27 int fMSAASampleCount;
csmartdalton61cd31a2017-02-27 17:00:53 -070028 GrContextOptions fGrContextOptions;
Ben Wagner37c54032018-04-13 14:30:23 -040029 SkSurfaceProps fSurfaceProps;
Greg Danielbb792aa2019-03-25 13:42:33 -040030 bool fDisableVsync;
brianosman05de2162016-05-06 13:28:57 -070031};
32
33} // namespace sk_app
34
35#endif