diff options
author | Brian Osman <brianosman@google.com> | 2017-02-15 08:51:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-15 14:25:35 +0000 |
commit | 3f405985be5c84a8b4b3e38f24091656aa699b5c (patch) | |
tree | dd80e27f5760f7b733838c777b6874e406f88240 /include | |
parent | 485c499a2797c1eb0e750fa4aaec57192799b424 (diff) |
Non linear blending flag for SkColorSpace
BUG=skia:6242
Change-Id: I63cce6019ce854ba807b2a819ef4fe3214898bee
Reviewed-on: https://skia-review.googlesource.com/8344
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkColorSpace.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h index 8cc20c40c9..86389f22f9 100644 --- a/include/core/SkColorSpace.h +++ b/include/core/SkColorSpace.h @@ -81,6 +81,10 @@ public: kRec2020_Gamut, }; + enum ColorSpaceFlags { + kNonLinearBlending_ColorSpaceFlag = 0x1, + }; + /** * Create an SkColorSpace from a transfer function and a color gamut. * @@ -88,10 +92,11 @@ public: * Gamut can be specified as an enum or as the matrix transformation to XYZ D50. */ static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, Gamut gamut); - static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50); + static sk_sp<SkColorSpace> MakeRGB(RenderTargetGamma gamma, const SkMatrix44& toXYZD50, + uint32_t flags = 0); static sk_sp<SkColorSpace> MakeRGB(const SkColorSpaceTransferFn& coeffs, Gamut gamut); static sk_sp<SkColorSpace> MakeRGB(const SkColorSpaceTransferFn& coeffs, - const SkMatrix44& toXYZD50); + const SkMatrix44& toXYZD50, uint32_t flags = 0); /** * Create an SkColorSpace from an ICC profile. |