| 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 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const SkMatrix44& xyz() const { return fToXYZD50; } | 69 const SkMatrix44& xyz() const { return fToXYZD50; } |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * Returns true if the color space gamma is near enough to be approximated
as sRGB. | 72 * Returns true if the color space gamma is near enough to be approximated
as sRGB. |
| 73 */ | 73 */ |
| 74 bool gammaCloseToSRGB() const { | 74 bool gammaCloseToSRGB() const { |
| 75 return kSRGB_GammaNamed == fGammaNamed || k2Dot2Curve_GammaNamed == fGam
maNamed; | 75 return kSRGB_GammaNamed == fGammaNamed || k2Dot2Curve_GammaNamed == fGam
maNamed; |
| 76 } | 76 } |
| 77 | 77 |
| 78 protected: | 78 protected: |
| 79 | |
| 80 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; | 79 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; |
| 81 | 80 |
| 82 friend Named sk_deduce_named_from_colorspace(SkColorSpace*); | 81 friend Named sk_deduce_named_from_colorspace(SkColorSpace*); |
| 83 | 82 |
| 84 const GammaNamed fGammaNamed; | 83 const GammaNamed fGammaNamed; |
| 85 const SkMatrix44 fToXYZD50; | 84 const SkMatrix44 fToXYZD50; |
| 86 const Named fNamed; | 85 const Named fNamed; |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 #endif | 88 #endif |
| OLD | NEW |