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

Unified Diff: include/core/SkColorSpace.h

Issue 2323003002: Cache the inverse matrix on SkColorSpace. Rename xyz() to toXYZ(). (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') | src/core/SkColorSpace.cpp » ('J')
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 045117552626b55373074c6fa3c94d3b02295c9e..d5a3dfcf4a49a1501c0418c003d5e0dcbfaa1172 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -66,7 +66,7 @@ public:
/**
* Returns the matrix used to transform src gamut to XYZ D50.
*/
- const SkMatrix44& xyz() const { return fToXYZD50; }
+ const SkMatrix44& toXYZ() const { return fToXYZD50; }
mtklein 2016/09/08 15:04:36 You may want to keep an alias xyz() to stage updat
msarett 2016/09/08 15:06:07 Now that you've done all this typing, do you think
/**
* Returns true if the color space gamma is near enough to be approximated as sRGB.
« no previous file with comments | « no previous file | src/core/SkColorSpace.cpp » ('j') | src/core/SkColorSpace.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698