Chromium Code Reviews| Index: include/core/SkSurface.h |
| =================================================================== |
| --- include/core/SkSurface.h (revision 8402) |
| +++ include/core/SkSurface.h (working copy) |
| @@ -81,8 +81,10 @@ |
| /** |
| * 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 overwrite For performance, set to true when it is known that |
| + * previous contents are completely overwritten (e.g. clear). |
| */ |
| - void notifyContentChanged(); |
| + void notifyContentChanged(bool overwrite = false); |
|
Stephen White
2013/03/26 20:51:44
Bikeshed nit: maybe "willOverwrite", if it hasn't
|
| /** |
| * Return a canvas that will draw into this surface. This will always |