aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-09-07 07:13:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-07 07:13:27 -0700
commit653212c37efaa6d3175882559634772528bb8ad2 (patch)
treeedc7c033243408ad2bd1a9008ef2fb3c82d72811 /include
parenteb2a27137e99088e0e70651fd5431f0fdc1a269d (diff)
Add gammaIsLinear() API to SkColorSpace
Diffstat (limited to 'include')
-rw-r--r--include/core/SkColorSpace.h13
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