diff options
Diffstat (limited to 'tools/PictureRenderer.h')
-rw-r--r-- | tools/PictureRenderer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h index c310b9f413..df38faa3de 100644 --- a/tools/PictureRenderer.h +++ b/tools/PictureRenderer.h @@ -110,7 +110,12 @@ public: */ virtual TiledPictureRenderer* getTiledRenderer() { return NULL; } - void resetState(); + /** + * Resets the GPU's state. Does nothing if the backing is raster. For a GPU renderer, calls + * flush, and calls finish if callFinish is true. + * @param callFinish Whether to call finish. + */ + void resetState(bool callFinish); void setDeviceType(SkDeviceTypes deviceType) { fDeviceType = deviceType; |