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

Unified Diff: src/core/SkMallocPixelRef.cpp

Issue 387313004: remove SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « include/gpu/SkGrPixelRef.h ('k') | src/core/SkPixelRef.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMallocPixelRef.cpp
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp
index 447083a50ac68f725eab23393ae809cd2130cddf..0d50164832a0cbe306fda48c9ea1f55e41e1361c 100644
--- a/src/core/SkMallocPixelRef.cpp
+++ b/src/core/SkMallocPixelRef.cpp
@@ -200,31 +200,6 @@ size_t SkMallocPixelRef::getAllocatedSizeInBytes() const {
return this->info().getSafeSize(fRB);
}
-#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE
-SkMallocPixelRef::SkMallocPixelRef(SkReadBuffer& buffer)
- : INHERITED(buffer, NULL)
- , fReleaseProc(sk_free_releaseproc)
- , fReleaseProcContext(NULL)
-{
- fRB = buffer.read32();
- size_t size = buffer.isValid() ? this->info().getSafeSize(fRB) : 0;
- if (buffer.validateAvailable(size)) {
- fStorage = sk_malloc_throw(size);
- buffer.readByteArray(fStorage, size);
- } else {
- fStorage = NULL;
- }
-
- if (buffer.readBool()) {
- fCTable = SkNEW_ARGS(SkColorTable, (buffer));
- } else {
- fCTable = NULL;
- }
-
- this->setPreLocked(fStorage, fRB, fCTable);
-}
-#endif
-
///////////////////////////////////////////////////////////////////////////////
SkPixelRef* SkMallocPixelRef::PRFactory::create(const SkImageInfo& info, size_t rowBytes,
« no previous file with comments | « include/gpu/SkGrPixelRef.h ('k') | src/core/SkPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698