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) { |