| 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,
|
|
|