Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: include/core/SkColorSpace.h

Issue 2319073002: Add gammaIsLinear() API to SkColorSpace (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkColorSpace.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkColorSpace.h
diff --git a/include/core/SkColorSpace.h b/include/core/SkColorSpace.h
index e0ef70eeca22a130a7782f17fc0f7956651942c1..06adc117281157a736736c269a75e15223dbb43a 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
« no previous file with comments | « no previous file | src/core/SkColorSpace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698