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

Unified Diff: src/core/SkColorSpace_Base.h

Issue 2038823002: Add SkDefaultXform as a catch-all to handle color conversions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Include SkColorSpace_Base Created 4 years, 6 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 | « src/core/SkColorSpaceXform.cpp ('k') | tests/ColorSpaceXformTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkColorSpace_Base.h
diff --git a/src/core/SkColorSpace_Base.h b/src/core/SkColorSpace_Base.h
index b2d5818e84e31b5e4e58ffcfa8e170be23d07b4b..247ae120d275eb09d6efcc80193d5b69e5f3f001 100644
--- a/src/core/SkColorSpace_Base.h
+++ b/src/core/SkColorSpace_Base.h
@@ -78,6 +78,11 @@ public:
return fRed.isValue() && fGreen.isValue() && fBlue.isValue();
}
+ const SkGammaCurve& operator[](int i) {
+ SkASSERT(0 <= i && i < 3);
+ return (&fRed)[i];
+ }
+
const SkGammaCurve fRed;
const SkGammaCurve fGreen;
const SkGammaCurve fBlue;
@@ -117,6 +122,8 @@ public:
const sk_sp<SkGammas>& gammas() const { return fGammas; }
+ SkColorLookUpTable* colorLUT() const { return fColorLUT.get(); }
+
/**
* Writes this object as an ICC profile.
*/
« no previous file with comments | « src/core/SkColorSpaceXform.cpp ('k') | tests/ColorSpaceXformTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698