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

Unified Diff: src/image/SkSurface_Base.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: src/image/SkSurface_Base.h
===================================================================
--- src/image/SkSurface_Base.h (revision 8402)
+++ src/image/SkSurface_Base.h (working copy)
@@ -48,10 +48,8 @@
* If the surface is about to change, we call this so that our subclass
* can optionally fork their backend (copy-on-write) in case it was
* being shared with the cachedImage.
- *
- * The default implementation does nothing.
*/
- virtual void onCopyOnWrite(SkImage* cachedImage, SkCanvas*) = 0;
+ virtual void onCopyOnWrite(SkImage* cachedImage, SkCanvas*, bool canDiscardContents) = 0;
inline SkCanvas* getCachedCanvas();
inline SkImage* getCachedImage();
@@ -63,7 +61,7 @@
SkCanvas* fCachedCanvas;
SkImage* fCachedImage;
- void aboutToDraw(SkCanvas*);
+ void aboutToDraw(SkCanvas*, bool canDiscardContents);
friend class SkCanvas;
friend class SkSurface;

Powered by Google App Engine
This is Rietveld 408576698