blob: 644f729effd6ea85874b5e7d9edd11e2c5aac4d3 [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)
Ben Wagnerae4bb982020-09-24 14:49:00 -040021 , fSurfaceProps(0, kRGB_H_SkPixelGeometry)
Greg Danielbb792aa2019-03-25 13:42:33 -040022 , fDisableVsync(false)
Jim Van Verth7c647982020-10-23 12:47:57 -040023 , fDelayDrawableAcquisition(false)
Jim Van Verthecc91082020-11-20 15:30:25 -050024 , fEnableBinaryArchive(false)
Ben Wagner37c54032018-04-13 14:30:23 -040025 {}
brianosman05de2162016-05-06 13:28:57 -070026
brianosmanb109b8c2016-06-16 13:03:24 -070027 SkColorType fColorType;
28 sk_sp<SkColorSpace> fColorSpace;
29 int fMSAASampleCount;
csmartdalton61cd31a2017-02-27 17:00:53 -070030 GrContextOptions fGrContextOptions;
Ben Wagner37c54032018-04-13 14:30:23 -040031 SkSurfaceProps fSurfaceProps;
Greg Danielbb792aa2019-03-25 13:42:33 -040032 bool fDisableVsync;
Jim Van Verth7c647982020-10-23 12:47:57 -040033 bool fDelayDrawableAcquisition;
Jim Van Verthecc91082020-11-20 15:30:25 -050034 bool fEnableBinaryArchive;
brianosman05de2162016-05-06 13:28:57 -070035};
36
37} // namespace sk_app
38
39#endif