| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef DisplayParams_DEFINED | 7 #ifndef DisplayParams_DEFINED |
| 8 #define DisplayParams_DEFINED | 8 #define DisplayParams_DEFINED |
| 9 | 9 |
| 10 #include "SkImageInfo.h" | 10 #include "SkImageInfo.h" |
| 11 | 11 |
| 12 namespace sk_app { | 12 namespace sk_app { |
| 13 | 13 |
| 14 struct DisplayParams { | 14 struct DisplayParams { |
| 15 DisplayParams() | 15 DisplayParams() |
| 16 : fColorType(kN32_SkColorType) | 16 : fColorType(kN32_SkColorType) |
| 17 , fColorSpace(nullptr) | 17 , fProfileType(kLinear_SkColorProfileType) |
| 18 , fMSAASampleCount(0) | 18 , fMSAASampleCount(0) |
| 19 , fDeepColor(false) {} | 19 , fDeepColor(false) {} |
| 20 | 20 |
| 21 SkColorType fColorType; | 21 SkColorType fColorType; |
| 22 sk_sp<SkColorSpace> fColorSpace; | 22 SkColorProfileType fProfileType; |
| 23 int fMSAASampleCount; | 23 int fMSAASampleCount; |
| 24 bool fDeepColor; | 24 bool fDeepColor; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace sk_app | 27 } // namespace sk_app |
| 28 | 28 |
| 29 #endif | 29 #endif |
| OLD | NEW |