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

Unified Diff: src/core/SkBitmap.cpp

Issue 303563002: remove SK_SUPPORT_LEGACY_BITMAPFLATTEN code (Closed) Base URL: https://skia.googlesource.com/skia.git@kill_buildmipmap
Patch Set: Created 6 years, 7 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/core/SkBitmap.h ('k') | src/core/SkReadBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 3cd2a79b285feebbe30a5a981144c941c880dd25..cc3c165a3a484fe61fb270d84ead6e019a19840b 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -1347,28 +1347,7 @@ enum {
SERIALIZE_PIXELTYPE_REF_DATA
};
-#ifdef SK_SUPPORT_LEGACY_BITMAPFLATTEN
-void SkBitmap::flatten(SkWriteBuffer& buffer) const {
- fInfo.flatten(buffer);
- buffer.writeInt(fRowBytes);
-
- if (fPixelRef) {
- if (fPixelRef->getFactory()) {
- buffer.writeInt(SERIALIZE_PIXELTYPE_REF_DATA);
- buffer.writeInt(fPixelRefOrigin.fX);
- buffer.writeInt(fPixelRefOrigin.fY);
- buffer.writeFlattenable(fPixelRef);
- return;
- }
- // if we get here, we can't record the pixels
- buffer.writeInt(SERIALIZE_PIXELTYPE_NONE);
- } else {
- buffer.writeInt(SERIALIZE_PIXELTYPE_NONE);
- }
-}
-#endif
-
-void SkBitmap::unflatten(SkReadBuffer& buffer) {
+void SkBitmap::legacyUnflatten(SkReadBuffer& buffer) {
this->reset();
SkImageInfo info;
« no previous file with comments | « include/core/SkBitmap.h ('k') | src/core/SkReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698