Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: include/core/SkSurface.h

Issue 12567025: Integrating SkSurface with SkDeferredCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698