blob: 54e9135749115b6f226b7d2d682696897d80b4e3 [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
csmartdalton61cd31a2017-02-27 17:00:53 -070010#include "GrContextOptions.h"
brianosman05de2162016-05-06 13:28:57 -070011#include "SkImageInfo.h"
Ben Wagner37c54032018-04-13 14:30:23 -040012#include "SkSurfaceProps.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)
22 {}
brianosman05de2162016-05-06 13:28:57 -070023
brianosmanb109b8c2016-06-16 13:03:24 -070024 SkColorType fColorType;
25 sk_sp<SkColorSpace> fColorSpace;
26 int fMSAASampleCount;
csmartdalton61cd31a2017-02-27 17:00:53 -070027 GrContextOptions fGrContextOptions;
Ben Wagner37c54032018-04-13 14:30:23 -040028 SkSurfaceProps fSurfaceProps;
brianosman05de2162016-05-06 13:28:57 -070029};
30
31} // namespace sk_app
32
33#endif