aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 23:41:45 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-27 23:41:45 +0000
commit6d3eaeabddd03b1bf440345f1f3f9aa5b6dd0717 (patch)
tree5bdf18dd7807e56b0a6b8177e9c64b856f03c314 /include
parent293a4b367ae5b89384c364737ef76099fd3f0101 (diff)
add replay entry point to SkPictureRecorder for Android
This CL adds an Android-only entry point to address the Java Picture(Picture) and serialize use cases. Note that (in its current form) it doesn't preserve the old API's handling of unbalanced saves/saveLayers (this CL always balances them). R=reed@google.com, scroggo@google.com, djsollen@google.com, mtklein@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/252873005 git-svn-id: http://skia.googlecode.com/svn/trunk@14911 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPictureRecorder.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h
index 95ba7b04c7..8284c7d906 100644
--- a/include/core/SkPictureRecorder.h
+++ b/include/core/SkPictureRecorder.h
@@ -99,6 +99,15 @@ private:
SkAutoTUnref<SkPictureFactory> fFactory;
#endif
+#ifdef SK_BUILD_FOR_ANDROID
+ /** Replay the current (partially recorded) operation stream into
+ canvas. This call doesn't close the current recording.
+ */
+ friend class AndroidPicture;
+ friend class SkPictureRecorderReplayTester; // for unit testing
+ void partialReplay(SkCanvas* canvas);
+#endif
+
SkAutoTUnref<SkPicture> fPicture;
typedef SkNoncopyable INHERITED;