brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 1 | /* |
| 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 Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 10 | #include "include/core/SkImageInfo.h" |
| 11 | #include "include/core/SkSurfaceProps.h" |
| 12 | #include "include/gpu/GrContextOptions.h" |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 13 | |
| 14 | namespace sk_app { |
| 15 | |
| 16 | struct DisplayParams { |
Ben Wagner | 37c5403 | 2018-04-13 14:30:23 -0400 | [diff] [blame] | 17 | DisplayParams() |
| 18 | : fColorType(kN32_SkColorType) |
| 19 | , fColorSpace(nullptr) |
| 20 | , fMSAASampleCount(1) |
Ben Wagner | ae4bb98 | 2020-09-24 14:49:00 -0400 | [diff] [blame] | 21 | , fSurfaceProps(0, kRGB_H_SkPixelGeometry) |
Greg Daniel | bb792aa | 2019-03-25 13:42:33 -0400 | [diff] [blame] | 22 | , fDisableVsync(false) |
Jim Van Verth | 7c64798 | 2020-10-23 12:47:57 -0400 | [diff] [blame] | 23 | , fDelayDrawableAcquisition(false) |
Jim Van Verth | ecc9108 | 2020-11-20 15:30:25 -0500 | [diff] [blame^] | 24 | , fEnableBinaryArchive(false) |
Ben Wagner | 37c5403 | 2018-04-13 14:30:23 -0400 | [diff] [blame] | 25 | {} |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 26 | |
brianosman | b109b8c | 2016-06-16 13:03:24 -0700 | [diff] [blame] | 27 | SkColorType fColorType; |
| 28 | sk_sp<SkColorSpace> fColorSpace; |
| 29 | int fMSAASampleCount; |
csmartdalton | 61cd31a | 2017-02-27 17:00:53 -0700 | [diff] [blame] | 30 | GrContextOptions fGrContextOptions; |
Ben Wagner | 37c5403 | 2018-04-13 14:30:23 -0400 | [diff] [blame] | 31 | SkSurfaceProps fSurfaceProps; |
Greg Daniel | bb792aa | 2019-03-25 13:42:33 -0400 | [diff] [blame] | 32 | bool fDisableVsync; |
Jim Van Verth | 7c64798 | 2020-10-23 12:47:57 -0400 | [diff] [blame] | 33 | bool fDelayDrawableAcquisition; |
Jim Van Verth | ecc9108 | 2020-11-20 15:30:25 -0500 | [diff] [blame^] | 34 | bool fEnableBinaryArchive; |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 35 | }; |
| 36 | |
| 37 | } // namespace sk_app |
| 38 | |
| 39 | #endif |