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