aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPixelRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkPixelRef.cpp')
-rw-r--r--src/core/SkPixelRef.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp
index 3664dfa17f..be46432be1 100644
--- a/src/core/SkPixelRef.cpp
+++ b/src/core/SkPixelRef.cpp
@@ -108,31 +108,6 @@ SkPixelRef::SkPixelRef(const SkImageInfo& info, SkBaseMutex* mutex) : fInfo(info
fPreLocked = false;
}
-#ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE
-static SkImageInfo read_info(SkReadBuffer& buffer) {
- SkImageInfo info;
- info.unflatten(buffer);
- return info;
-}
-
-SkPixelRef::SkPixelRef(SkReadBuffer& buffer, SkBaseMutex* mutex)
- : INHERITED(buffer)
- , fInfo(read_info(buffer))
-{
- SkDEBUGCODE(SkAlphaType alphaType;)
- SkASSERT(SkColorTypeValidateAlphaType(fInfo.colorType(), fInfo.alphaType(), &alphaType));
- SkASSERT(fInfo.fAlphaType == alphaType);
-
- this->setMutex(mutex);
- fRec.zero();
- fLockCount = 0;
- fIsImmutable = buffer.readBool();
- fGenerationID = buffer.readUInt();
- fUniqueGenerationID = false; // Conservatively assuming the original still exists.
- fPreLocked = false;
-}
-#endif
-
SkPixelRef::~SkPixelRef() {
this->callGenIDChangeListeners();
}