diff options
author | msarett <msarett@google.com> | 2016-09-07 07:13:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-07 07:13:27 -0700 |
commit | 653212c37efaa6d3175882559634772528bb8ad2 (patch) | |
tree | edc7c033243408ad2bd1a9008ef2fb3c82d72811 /include | |
parent | eb2a27137e99088e0e70651fd5431f0fdc1a269d (diff) |
Add gammaIsLinear() API to SkColorSpace
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319073002
Review-Url: https://codereview.chromium.org/2319073002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkColorSpace.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h index e0ef70eeca..06adc11728 100644 --- a/include/core/SkColorSpace.h +++ b/include/core/SkColorSpace.h @@ -75,6 +75,9 @@ public: */ sk_sp<SkColorSpace> makeLinearGamma(); + /** + * DO NOT USE: Will be deleted. + */ GammaNamed gammaNamed() const { return fGammaNamed; } /** @@ -90,13 +93,11 @@ public: } /** - * To be used only by UMA code. + * Returns true if the color space gamma is linear. */ - bool gammasAreMatching() const; - bool gammasAreNamed() const; - bool gammasAreValues() const; - bool gammasAreTables() const; - bool gammasAreParams() const; + bool gammaIsLinear() const { + return kLinear_GammaNamed == fGammaNamed; + } /** * Returns nullptr on failure. Fails when we fallback to serializing ICC data and |