| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 sk_sp<SkData> serialize() const; | 97 sk_sp<SkData> serialize() const; |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * If |memory| is nullptr, returns the size required to serialize. | 100 * If |memory| is nullptr, returns the size required to serialize. |
| 101 * Otherwise, serializes into |memory| and returns the size. | 101 * Otherwise, serializes into |memory| and returns the size. |
| 102 */ | 102 */ |
| 103 size_t writeToMemory(void* memory) const; | 103 size_t writeToMemory(void* memory) const; |
| 104 | 104 |
| 105 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); | 105 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); |
| 106 | 106 |
| 107 static bool Equals(SkColorSpace* src, SkColorSpace* dst); |
| 108 |
| 107 protected: | 109 protected: |
| 108 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; | 110 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; |
| 109 | 111 |
| 110 const GammaNamed fGammaNamed; | 112 const GammaNamed fGammaNamed; |
| 111 const SkMatrix44 fToXYZD50; | 113 const SkMatrix44 fToXYZD50; |
| 112 const Named fNamed; | 114 const Named fNamed; |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 #endif | 117 #endif |
| OLD | NEW |