blob: e4b6adb2522d18edaf10fbfcc8d26ea0b6731aa2 [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)
Ben Wagner37c54032018-04-13 14:30:23 -040024 {}
brianosman05de2162016-05-06 13:28:57 -070025
brianosmanb109b8c2016-06-16 13:03:24 -070026 SkColorType fColorType;
27 sk_sp<SkColorSpace> fColorSpace;
28 int fMSAASampleCount;
csmartdalton61cd31a2017-02-27 17:00:53 -070029 GrContextOptions fGrContextOptions;
Ben Wagner37c54032018-04-13 14:30:23 -040030 SkSurfaceProps fSurfaceProps;
Greg Danielbb792aa2019-03-25 13:42:33 -040031 bool fDisableVsync;
Jim Van Verth7c647982020-10-23 12:47:57 -040032 bool fDelayDrawableAcquisition;
brianosman05de2162016-05-06 13:28:57 -070033};
34
35} // namespace sk_app
36
37#endif