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

Unified Diff: src/core/SkColorSpaceXform.h

Issue 2336913005: Store SkColorSpaceXform gamma LUTs in a malloced field (Closed)
Patch Set: Fixes 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/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 6d63879653a4a1a72ceb2d741a3f69bd22d91a8a..c80cd15dcae4f24e335a4e4d1e44f831cdb00a2e 100644
--- a/src/core/SkColorSpaceXform.h
+++ b/src/core/SkColorSpaceXform.h
@@ -77,16 +77,13 @@ private:
sk_sp<SkColorLookUpTable> fColorLUT;
- // May contain pointers into storage or pointers into precomputed tables.
+ // Contain pointers into storage or pointers into precomputed tables.
const float* fSrcGammaTables[3];
- float fSrcGammaTableStorage[3 * 256];
+ const uint8_t* fDstGammaTables[3];
+ SkAutoMalloc fStorage;
float fSrcToDst[16];
- // May contain pointers into storage or pointers into precomputed tables.
- const uint8_t* fDstGammaTables[3];
- uint8_t fDstGammaTableStorage[3 * kDstGammaTableSize];
-
friend class SkColorSpaceXform;
friend std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(const sk_sp<SkColorSpace>& space);
};
« no previous file with comments | « no previous file | src/core/SkColorSpaceXform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698