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

Unified Diff: include/core/SkReadBuffer.h

Issue 295793002: stop calling SkBitmap::flatten (Closed) Base URL: https://skia.googlecode.com/svn/trunk
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
Index: include/core/SkReadBuffer.h
diff --git a/include/core/SkReadBuffer.h b/include/core/SkReadBuffer.h
index 4da27d4fe0c6902de0a908a3637ebcfe120d2d48..0b10637c8cc38479a885eebc78a9168228add159 100644
--- a/include/core/SkReadBuffer.h
+++ b/include/core/SkReadBuffer.h
@@ -45,6 +45,7 @@ public:
kGradientFlippedFlag_Version = 24,
kDashWritesPhaseIntervals_Version = 25,
kColorShaderNoBool_Version = 26,
+ kNoMoreBitmapFlatten_Version = 27,
};
/**
@@ -145,7 +146,12 @@ public:
// helpers to get info about arrays and binary data
virtual uint32_t getArrayCount();
- virtual void readBitmap(SkBitmap* bitmap);
+ /**
+ * Returns false if the bitmap could not be completely read. In that case, it will be set
+ * to have width/height, but no pixels.
+ */
+ bool readBitmap(SkBitmap* bitmap);
+
virtual SkTypeface* readTypeface();
void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) {
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkBitmap.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698