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

Unified Diff: src/core/SkColorSpace_Base.h

Issue 2323003002: Cache the inverse matrix on SkColorSpace. Rename xyz() to toXYZ(). (Closed)
Patch Set: Remove xyz() again 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 | « src/core/SkColorSpaceXform.cpp ('k') | src/gpu/GrColorSpaceXform.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 31f96dd7f9dde6552acd430b04071c9ad7cd4eaa..9382153967461b7fa8b417e20229c5d9598ac81a 100644
--- a/src/core/SkColorSpace_Base.h
+++ b/src/core/SkColorSpace_Base.h
@@ -10,6 +10,7 @@
#include "SkColorSpace.h"
#include "SkData.h"
+#include "SkOnce.h"
#include "SkTemplates.h"
enum SkGammaNamed : uint8_t {
@@ -188,6 +189,8 @@ public:
const SkColorLookUpTable* colorLUT() const { return fColorLUT.get(); }
+ const SkMatrix44& fromXYZD50() const;
+
private:
/**
@@ -211,6 +214,9 @@ private:
sk_sp<SkGammas> fGammas;
sk_sp<SkData> fProfileData;
+ mutable SkMatrix44 fFromXYZD50;
+ mutable SkOnce fFromXYZOnce;
+
friend class SkColorSpace;
friend class ColorSpaceXformTest;
friend class ColorSpaceTest;
« no previous file with comments | « src/core/SkColorSpaceXform.cpp ('k') | src/gpu/GrColorSpaceXform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698