Index: include/gpu/GrSurface.h |
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h |
index 0bbf8d9c12a0ee4eac5fcc7de6c57b2057a02e7d..e47cf36a6e8d6da8924b84c1652a1c79c1c66acc 100644 |
--- a/include/gpu/GrSurface.h |
+++ b/include/gpu/GrSurface.h |
@@ -105,8 +105,11 @@ public: |
* @param rowBytes number of bytes between consecutive rows. Zero means rows are tightly |
* packed. |
* @param pixelOpsFlags See the GrContext::PixelOpsFlags enum. |
+ * |
+ * @return true if the read succeeded, false if not. The read can fail because of an unsupported |
+ * pixel config. |
*/ |
- virtual void writePixels(int left, int top, int width, int height, |
+ virtual bool writePixels(int left, int top, int width, int height, |
GrPixelConfig config, |
const void* buffer, |
size_t rowBytes = 0, |