Index: include/core/SkSurface.h |
=================================================================== |
--- include/core/SkSurface.h (revision 8402) |
+++ include/core/SkSurface.h (working copy) |
@@ -81,8 +81,11 @@ |
/** |
* Call this if the contents have changed. This will (lazily) force a new |
* value to be returned from generationID() when it is called next. |
+ * @param canDiscardContents For performance, set to true when it is known |
+ * that the contents of the surface do not need to be preserved (e.g. |
+ * because they will be overwritten). |
*/ |
- void notifyContentChanged(); |
+ void notifyContentChanged(bool canDiscardContents = false); |
/** |
* Return a canvas that will draw into this surface. This will always |