diff options
author | 2018-03-12 15:44:22 -0400 | |
---|---|---|
committer | 2018-03-12 20:26:19 +0000 | |
commit | 67f62b1a61016ad07b44ae5a0bbf79d97adc9ba9 (patch) | |
tree | 4211f82ca909ca48a7d86baac4f646f28fba8fb7 /include | |
parent | 501c17cb914ea7c0bba230789a9888f0b7889203 (diff) |
Add SkColorSpaceXform_skcms
Currently only enabled in Skia dev builds. Passes all unit
tests. Has some GM differences, but nothing major.
Bug: skia:
Change-Id: Ib87f8cff44649c731e829f063ccef448d67d1910
Reviewed-on: https://skia-review.googlesource.com/112520
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkColorSpace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h index 2908268306..35466fde23 100644 --- a/include/core/SkColorSpace.h +++ b/include/core/SkColorSpace.h @@ -241,6 +241,12 @@ public: */ static bool Equals(const SkColorSpace* src, const SkColorSpace* dst); + /** + * If this color space was constructed from an ICC profile, return that profile data. + * Otherise, return nullptr. + */ + const SkData* profileData() const { return this->onProfileData(); } + private: virtual const SkMatrix44* onToXYZD50() const = 0; virtual uint32_t onToXYZD50Hash() const = 0; |