diff options
author | Mike Klein <mtklein@chromium.org> | 2018-04-11 13:53:40 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-11 18:33:37 +0000 |
commit | 3462eb0346de0ad645bae96246d57c98521f1ffc (patch) | |
tree | 47049b2823643bd94c00b2f20720b98228e58be5 /third_party/skcms/skcms.h | |
parent | 54aefc74103a5c1810a7cc074746915c78ab3132 (diff) |
skcms→56f2a09 add sRGB profile and ApproximatelyEqualProfiles()
Change-Id: Ic6408fdc8819342da175ec8b99b5838669b1b2ae
Reviewed-on: https://skia-review.googlesource.com/120501
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'third_party/skcms/skcms.h')
-rw-r--r-- | third_party/skcms/skcms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/skcms/skcms.h b/third_party/skcms/skcms.h index 1e609dcd1a..2546f9c78c 100644 --- a/third_party/skcms/skcms.h +++ b/third_party/skcms/skcms.h @@ -99,6 +99,14 @@ typedef struct { skcms_A2B A2B; } skcms_ICCProfile; +// The sRGB color profile is so commonly used that we offer a canonical skcms_ICCProfile for it. +extern const skcms_ICCProfile skcms_sRGB_profile; + +// Practical equality test for two skcms_ICCProfiles. +// The implementation is subject to change, but it will always try to answer +// "can I substitute A for B?" and "can I skip transforming from A to B?". +bool skcms_ApproximatelyEqualProfiles(const skcms_ICCProfile* A, const skcms_ICCProfile* B); + // Parse an ICC profile and return true if possible, otherwise return false. // The buffer is not copied, it must remain valid as long as the skcms_ICCProfile // will be used. |