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 | 7 |
8 #ifndef SkColorSpace_DEFINED | 8 #ifndef SkColorSpace_DEFINED |
9 #define SkColorSpace_DEFINED | 9 #define SkColorSpace_DEFINED |
10 | 10 |
11 #include "SkMatrix44.h" | 11 #include "SkMatrix44.h" |
12 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
13 | 13 |
14 class SkColorSpace : public SkRefCnt { | 14 class SK_API SkColorSpace : public SkRefCnt { |
15 public: | 15 public: |
16 | 16 |
17 /** | 17 /** |
18 * Common, named profiles that we can recognize. | 18 * Common, named profiles that we can recognize. |
19 */ | 19 */ |
20 enum Named { | 20 enum Named { |
21 kUnknown_Named, | 21 kUnknown_Named, |
22 kSRGB_Named, | 22 kSRGB_Named, |
23 kAdobeRGB_Named, | 23 kAdobeRGB_Named, |
24 }; | 24 }; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 protected: | 65 protected: |
66 | 66 |
67 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; | 67 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; |
68 | 68 |
69 const GammaNamed fGammaNamed; | 69 const GammaNamed fGammaNamed; |
70 const SkMatrix44 fToXYZD50; | 70 const SkMatrix44 fToXYZD50; |
71 const Named fNamed; | 71 const Named fNamed; |
72 }; | 72 }; |
73 | 73 |
74 #endif | 74 #endif |
OLD | NEW |