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

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 dfd92eedc0c26d986585d85019af1b27191e2568..b0c1b6e5aea06625ebe50c2c34eedf0dda8cd4c8 100644
--- a/include/core/SkReadBuffer.h
+++ b/include/core/SkReadBuffer.h
@@ -134,7 +134,11 @@ 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.
+ */
+ virtual bool readBitmap(SkBitmap* bitmap);
scroggo 2014/05/20 13:27:50 If SkValidatingBuffer no longer overrides this, do
reed1 2014/05/20 17:49:58 Done.
virtual SkTypeface* readTypeface();
void setBitmapStorage(SkBitmapHeapReader* bitmapStorage) {

Powered by Google App Engine
This is Rietveld 408576698