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

Unified Diff: include/core/SkColorSpace.h

Issue 2005263002: SkColorSpace tweaks (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 9630fe4c2508b3e49383685abb21fe972f8101a7..f942780b7c73a9a0936f044f977693b5065826ba 100644
--- a/include/core/SkColorSpace.h
+++ b/include/core/SkColorSpace.h
@@ -10,7 +10,6 @@
#include "SkMatrix44.h"
#include "SkRefCnt.h"
-#include "../private/SkTemplates.h"
class SkColorSpace : public SkRefCnt {
public:
@@ -27,7 +26,7 @@ public:
/**
* Create an SkColorSpace from the src gamma and a transform from src gamut to D50 XYZ.
*/
- static sk_sp<SkColorSpace> NewRGB(float gammas[3], const SkMatrix44& toXYZD50);
+ static sk_sp<SkColorSpace> NewRGB(const float gammas[3], const SkMatrix44& toXYZD50);
/**
* Create a common, named SkColorSpace.
@@ -61,15 +60,15 @@ public:
/**
* Returns the matrix used to transform src gamut to XYZ D50.
*/
- SkMatrix44 xyz() const { return fToXYZD50; }
+ const SkMatrix44& xyz() const { return fToXYZD50; }
protected:
SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named);
- const GammaNamed fGammaNamed;
- const SkMatrix44 fToXYZD50;
- const Named fNamed;
+ const GammaNamed fGammaNamed;
+ const SkMatrix44 fToXYZD50;
+ const Named fNamed;
};
#endif
« 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