aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPicturePlayback.h
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-01 16:18:09 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-01 16:18:09 +0000
commitd9b0f480be398cb37c447605109c419e8314cf61 (patch)
tree3f89d0eb20dee4f1664af25a81266492f89e73e1 /src/core/SkPicturePlayback.h
parent528a556514fddfd1275cda9f2c2af17abc02c693 (diff)
Only support SkPicture abort for Android due to the fragility of the existing API
Review URL: https://codereview.appspot.com/7225083 git-svn-id: http://skia.googlecode.com/svn/trunk@7515 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicturePlayback.h')
-rw-r--r--src/core/SkPicturePlayback.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h
index e0010fc919..cd3a6a5c7b 100644
--- a/src/core/SkPicturePlayback.h
+++ b/src/core/SkPicturePlayback.h
@@ -74,9 +74,11 @@ public:
void dumpSize() const;
+#ifdef SK_BUILD_FOR_ANDROID
// Can be called in the middle of playback (the draw() call). WIll abort the
// drawing and return from draw() after the "current" op code is done
- void abort();
+ void abort() { fAbortCurrentPlayback = true; }
+#endif
protected:
#ifdef SK_DEVELOPER
@@ -219,6 +221,7 @@ private:
SkFactoryPlayback* fFactoryPlayback;
#ifdef SK_BUILD_FOR_ANDROID
SkMutex fDrawMutex;
+ bool fAbortCurrentPlayback;
#endif
};