| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 SkColorLookUpTable() { | 81 SkColorLookUpTable() { |
| 82 memset(this, 0, sizeof(struct SkColorLookUpTable)); | 82 memset(this, 0, sizeof(struct SkColorLookUpTable)); |
| 83 } | 83 } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 public: | 86 public: |
| 87 enum Named { | 87 enum Named { |
| 88 kUnknown_Named, | 88 kUnknown_Named, |
| 89 kSRGB_Named, | 89 kSRGB_Named, |
| 90 kAdobeRGB_Named, |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 struct SkGammas { | 93 struct SkGammas { |
| 93 public: | 94 public: |
| 94 SkGammas(float red, float green, float blue) | 95 SkGammas(float red, float green, float blue) |
| 95 : fRed(red) | 96 : fRed(red) |
| 96 , fGreen(green) | 97 , fGreen(green) |
| 97 , fBlue(blue) | 98 , fBlue(blue) |
| 98 {} | 99 {} |
| 99 | 100 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 145 |
| 145 const SkColorLookUpTable fColorLUT; | 146 const SkColorLookUpTable fColorLUT; |
| 146 const SkGammas fGammas; | 147 const SkGammas fGammas; |
| 147 const SkMatrix44 fToXYZD50; | 148 const SkMatrix44 fToXYZD50; |
| 148 | 149 |
| 149 const uint32_t fUniqueID; | 150 const uint32_t fUniqueID; |
| 150 const Named fNamed; | 151 const Named fNamed; |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 #endif | 154 #endif |
| OLD | NEW |