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 | |
| 10 | #include "SkImageInfo.h" |
| 11 | |
| 12 | namespace sk_app { |
| 13 | |
| 14 | struct DisplayParams { |
| 15 | DisplayParams() |
| 16 | : fColorType(kN32_SkColorType) |
| 17 | , fProfileType(kLinear_SkColorProfileType) |
jvanverth | af236b5 | 2016-05-20 06:01:06 -0700 | [diff] [blame^] | 18 | , fMSAASampleCount(0) |
| 19 | , fDeepColor(false) {} |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 20 | |
jvanverth | af236b5 | 2016-05-20 06:01:06 -0700 | [diff] [blame^] | 21 | SkColorType fColorType; |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 22 | SkColorProfileType fProfileType; |
jvanverth | af236b5 | 2016-05-20 06:01:06 -0700 | [diff] [blame^] | 23 | int fMSAASampleCount; |
| 24 | bool fDeepColor; |
brianosman | 05de216 | 2016-05-06 13:28:57 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | } // namespace sk_app |
| 28 | |
| 29 | #endif |