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 | |
csmartdalton | 61cd31a | 2017-02-27 17:00:53 -0700 | [diff] [blame] | 10 | #include "GrContextOptions.h" |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 11 | #include "SkImageInfo.h" |
Ben Wagner | 37c5403 | 2018-04-13 14:30:23 -0400 | [diff] [blame] | 12 | #include "SkSurfaceProps.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) |
| 21 | , fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) |
| 22 | {} |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 23 | |
brianosman | b109b8c | 2016-06-16 13:03:24 -0700 | [diff] [blame] | 24 | SkColorType fColorType; |
| 25 | sk_sp<SkColorSpace> fColorSpace; |
| 26 | int fMSAASampleCount; |
csmartdalton | 61cd31a | 2017-02-27 17:00:53 -0700 | [diff] [blame] | 27 | GrContextOptions fGrContextOptions; |
Ben Wagner | 37c5403 | 2018-04-13 14:30:23 -0400 | [diff] [blame] | 28 | SkSurfaceProps fSurfaceProps; |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | } // namespace sk_app |
| 32 | |
| 33 | #endif |