diff options
author | robertphillips <robertphillips@google.com> | 2015-01-06 12:26:08 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-06 12:26:08 -0800 |
commit | 7ef197255deb4e2fa64c03c7130d56ddf164e83c (patch) | |
tree | a6a936f30912c91e182560cfe6babd9b8feb92f5 /include/core/SkDrawPictureCallback.h | |
parent | b5d818ab04860a9b558ae0d6edef6386c4a09061 (diff) |
Rename SkDrawPictureCallback to SkPicture::AbortCallback
Review URL: https://codereview.chromium.org/829983003
Diffstat (limited to 'include/core/SkDrawPictureCallback.h')
-rw-r--r-- | include/core/SkDrawPictureCallback.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/core/SkDrawPictureCallback.h b/include/core/SkDrawPictureCallback.h index d5a360ee8e..ea30f59a24 100644 --- a/include/core/SkDrawPictureCallback.h +++ b/include/core/SkDrawPictureCallback.h @@ -10,6 +10,9 @@ #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 @@ -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 SkPicture::AbortCallback { public: - SkDrawPictureCallback() {} - virtual ~SkDrawPictureCallback() {} - virtual bool abortDrawing() = 0; + + bool abort() SK_OVERRIDE { return this->abortDrawing(); } }; +#endif -#endif//SkDrawPictureCallback_DEFINED +#endif // SkDrawPictureCallback_DEFINED |