aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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 /src
parenteb2a27137e99088e0e70651fd5431f0fdc1a269d (diff)
Add gammaIsLinear() API to SkColorSpace
Diffstat (limited to 'src')
-rw-r--r--src/core/SkColorSpace.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/core/SkColorSpace.cpp b/src/core/SkColorSpace.cpp
index 191d077223..486699ecf6 100644
--- a/src/core/SkColorSpace.cpp
+++ b/src/core/SkColorSpace.cpp
@@ -407,42 +407,3 @@ bool SkColorSpace::Equals(const SkColorSpace* src, const SkColorSpace* dst) {
0 == memcmp(srcData->data(), dstData->data(), srcData->size());
}
}
-
-bool SkColorSpace::gammasAreMatching() const {
- const SkGammas* gammas = as_CSB(this)->gammas();
- SkASSERT(gammas);
- return gammas->fRedType == gammas->fGreenType && gammas->fGreenType == gammas->fBlueType &&
- gammas->fRedData == gammas->fGreenData && gammas->fGreenData == gammas->fBlueData;
-}
-
-bool SkColorSpace::gammasAreNamed() const {
- const SkGammas* gammas = as_CSB(this)->gammas();
- SkASSERT(gammas);
- return gammas->fRedType == SkGammas::Type::kNamed_Type &&
- gammas->fGreenType == SkGammas::Type::kNamed_Type &&
- gammas->fBlueType == SkGammas::Type::kNamed_Type;
-}
-
-bool SkColorSpace::gammasAreValues() const {
- const SkGammas* gammas = as_CSB(this)->gammas();
- SkASSERT(gammas);
- return gammas->fRedType == SkGammas::Type::kValue_Type &&
- gammas->fGreenType == SkGammas::Type::kValue_Type &&
- gammas->fBlueType == SkGammas::Type::kValue_Type;
-}
-
-bool SkColorSpace::gammasAreTables() const {
- const SkGammas* gammas = as_CSB(this)->gammas();
- SkASSERT(gammas);
- return gammas->fRedType == SkGammas::Type::kTable_Type &&
- gammas->fGreenType == SkGammas::Type::kTable_Type &&
- gammas->fBlueType == SkGammas::Type::kTable_Type;
-}
-
-bool SkColorSpace::gammasAreParams() const {
- const SkGammas* gammas = as_CSB(this)->gammas();
- SkASSERT(gammas);
- return gammas->fRedType == SkGammas::Type::kParam_Type &&
- gammas->fGreenType == SkGammas::Type::kParam_Type &&
- gammas->fBlueType == SkGammas::Type::kParam_Type;
-}