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.h

Issue 1986833002: SkColorSpace follow-ups (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: New SkGammas constructor that takes SkGammaCurves 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: src/core/SkColorSpace.h
diff --git a/src/core/SkColorSpace.h b/src/core/SkColorSpace.h
index ccbaa25d991e6fb09b7126aa00c4b16bcfe0c343..299ffbca718abfd6ade4f5c7009c6dd6e8c537c1 100644
--- a/src/core/SkColorSpace.h
+++ b/src/core/SkColorSpace.h
@@ -23,7 +23,7 @@
#include "SkMatrix44.h"
#include "SkRefCnt.h"
-#include "SkTemplates.h"
+#include "../private/SkTemplates.h"
struct SkColorLookUpTable;
struct SkGammaCurve;
@@ -46,7 +46,11 @@ public:
static sk_sp<SkColorSpace> NewNamed(Named);
static sk_sp<SkColorSpace> NewICC(const void*, size_t);
+ /**
+ * Used only by test code.
+ */
SkGammas* gammas() const { return fGammas.get(); }
+
SkMatrix44 xyz() const { return fToXYZD50; }
Named named() const { return fNamed; }
uint32_t uniqueID() const { return fUniqueID; }
@@ -55,12 +59,10 @@ private:
static bool LoadGammas(SkGammaCurve* gammas, uint32_t num, const uint8_t* src, size_t len);
-
static bool LoadColorLUT(SkColorLookUpTable* colorLUT, uint32_t inputChannels,
uint32_t outputChannels, const uint8_t* src, size_t len);
-
- static bool LoadA2B0(SkColorLookUpTable* colorLUT, sk_sp<SkGammas> gammas, SkMatrix44* toXYZ,
+ static bool LoadA2B0(SkColorLookUpTable* colorLUT, SkGammaCurve*, SkMatrix44* toXYZ,
const uint8_t* src, size_t len);
SkColorSpace(sk_sp<SkGammas> gammas, const SkMatrix44& toXYZ, Named);
« 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