| 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
|
|
|