| 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_Base_DEFINED | 8 #ifndef SkColorSpace_Base_DEFINED |
| 9 #define SkColorSpace_Base_DEFINED | 9 #define SkColorSpace_Base_DEFINED |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 sk_sp<SkGammas> fGammas; | 129 sk_sp<SkGammas> fGammas; |
| 130 | 130 |
| 131 friend class SkColorSpace; | 131 friend class SkColorSpace; |
| 132 typedef SkColorSpace INHERITED; | 132 typedef SkColorSpace INHERITED; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 static inline SkColorSpace_Base* as_CSB(SkColorSpace* colorSpace) { | 135 static inline SkColorSpace_Base* as_CSB(SkColorSpace* colorSpace) { |
| 136 return static_cast<SkColorSpace_Base*>(colorSpace); | 136 return static_cast<SkColorSpace_Base*>(colorSpace); |
| 137 } | 137 } |
| 138 | 138 |
| 139 static inline SkColorSpace_Base* as_CSB(const sk_sp<SkColorSpace>& colorSpace) { |
| 140 return static_cast<SkColorSpace_Base*>(colorSpace.get()); |
| 141 } |
| 142 |
| 139 #endif | 143 #endif |
| OLD | NEW |