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

Unified Diff: src/core/SkColorSpaceXform.h

Issue 2097553002: Add support for 3D colorLUTs to SkColorXform (Closed) Base URL: https://skia.googlesource.com/skia.git@lovedefaultxform
Patch Set: Rebase 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/SkColorSpace.cpp ('k') | src/core/SkColorSpaceXform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkColorSpaceXform.h
diff --git a/src/core/SkColorSpaceXform.h b/src/core/SkColorSpaceXform.h
index 583386a8a2e0bc655828aa6497a7ba2267c0a97d..723dea433570690a32850a2fe8c527cb777239e0 100644
--- a/src/core/SkColorSpaceXform.h
+++ b/src/core/SkColorSpaceXform.h
@@ -60,17 +60,19 @@ private:
SkDefaultXform(const sk_sp<SkColorSpace>& srcSpace, const SkMatrix44& srcToDst,
const sk_sp<SkColorSpace>& dstSpace);
- static constexpr int kDstGammaTableSize = 1024;
+ static constexpr int kDstGammaTableSize = 1024;
+
+ sk_sp<SkColorLookUpTable> fColorLUT;
// May contain pointers into storage or pointers into precomputed tables.
- const float* fSrcGammaTables[3];
- float fSrcGammaTableStorage[3 * 256];
+ const float* fSrcGammaTables[3];
+ float fSrcGammaTableStorage[3 * 256];
- const SkMatrix44 fSrcToDst;
+ const SkMatrix44 fSrcToDst;
// May contain pointers into storage or pointers into precomputed tables.
- const uint8_t* fDstGammaTables[3];
- uint8_t fDstGammaTableStorage[3 * kDstGammaTableSize];
+ const uint8_t* fDstGammaTables[3];
+ uint8_t fDstGammaTableStorage[3 * kDstGammaTableSize];
friend class SkColorSpaceXform;
};
« no previous file with comments | « src/core/SkColorSpace.cpp ('k') | src/core/SkColorSpaceXform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698