OLD | NEW |
(Empty) | |
| 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 SkImageInfoPriv_DEFINED |
| 8 #define SkImageInfoPriv_DEFINED |
| 9 |
| 10 #include "SkImageInfo.h" |
| 11 |
| 12 // Indicate how images and gradients should interpret colors by default. |
| 13 extern bool gDefaultProfileIsSRGB; |
| 14 |
| 15 static SkColorProfileType SkDefaultColorProfile() { |
| 16 return gDefaultProfileIsSRGB ? kSRGB_SkColorProfileType : kLinear_SkColorPro
fileType; |
| 17 } |
| 18 |
| 19 #endif // SkImageInfoPriv_DEFINED |
OLD | NEW |