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

Unified Diff: include/core/SkDrawPictureCallback.h

Issue 824013004: Revert of Rename SkDrawPictureCallback to SkPicture::AbortCallback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « gyp/skia_for_chromium_defines.gypi ('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 ea30f59a24c0227b1c99c00b1ff13528102c8721..d5a360ee8ee08029d44705912051b3906240be64 100644
--- a/include/core/SkDrawPictureCallback.h
+++ b/include/core/SkDrawPictureCallback.h
@@ -10,9 +10,6 @@
#include "SkTypes.h"
-#ifdef SK_LEGACY_DRAWPICTURECALLBACK
-#include "SkPicture.h"
-
/**
* Subclasses of this can be passed to canvas.drawPicture(). During the drawing
* of the picture, this callback will periodically be invoked. If its
@@ -23,12 +20,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 : public SkPicture::AbortCallback {
+class SK_API SkDrawPictureCallback {
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 | « gyp/skia_for_chromium_defines.gypi ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698