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

Unified Diff: include/core/SkDrawPictureCallback.h

Issue 837693002: Rename SkDrawPictureCallback to SkAbortCallback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 5 years, 11 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
« no previous file with comments | « include/core/SkAbortCallback.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDrawPictureCallback.h
diff --git a/include/core/SkDrawPictureCallback.h b/include/core/SkDrawPictureCallback.h
index d5a360ee8ee08029d44705912051b3906240be64..206fdae08f8a6d0d0610f27eb70fd9507a3e1a78 100644
--- a/include/core/SkDrawPictureCallback.h
+++ b/include/core/SkDrawPictureCallback.h
@@ -10,6 +10,9 @@
#include "SkTypes.h"
+#ifdef SK_LEGACY_DRAWPICTURECALLBACK
+#include "SkAbortCallback.h"
+
/**
* Subclasses of this can be passed to canvas.drawPicture(). During the drawing
* of the picture, this callback will periodically be invoked. If its
@@ -20,12 +23,12 @@
* calls to save(), restore will automatically be called to return the state
* to the same level it was before the drawPicture call was made.
*/
-class SK_API SkDrawPictureCallback {
+class SK_API SkDrawPictureCallback : public SkAbortCallback {
public:
- SkDrawPictureCallback() {}
- virtual ~SkDrawPictureCallback() {}
-
virtual bool abortDrawing() = 0;
+
+ bool abort() SK_OVERRIDE { return this->abortDrawing(); }
};
+#endif
-#endif//SkDrawPictureCallback_DEFINED
+#endif // SkDrawPictureCallback_DEFINED
« no previous file with comments | « include/core/SkAbortCallback.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698