aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMReplayTask.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-13 19:09:42 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-13 19:09:42 +0000
commit84b18c7e3e042bf206e1ace3d1b6ea5bb929fe51 (patch)
tree7b46e74e6212283d9efe62a7b6feaad2c009972b /dm/DMReplayTask.cpp
parentc202ea7cc69476a20ad898d6c76bcdbcb18adf74 (diff)
split SkPictureRecorder out of SkPicture
Diffstat (limited to 'dm/DMReplayTask.cpp')
-rw-r--r--dm/DMReplayTask.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dm/DMReplayTask.cpp b/dm/DMReplayTask.cpp
index c915be20d2..2c23caec4b 100644
--- a/dm/DMReplayTask.cpp
+++ b/dm/DMReplayTask.cpp
@@ -22,13 +22,12 @@ ReplayTask::ReplayTask(const Task& parent,
{}
void ReplayTask::draw() {
- SkPicture recorded;
const uint32_t flags = fUseRTree ? SkPicture::kOptimizeForClippedPlayback_RecordingFlag : 0;
- RecordPicture(fGM.get(), &recorded, flags);
+ SkAutoTUnref<SkPicture> recorded(RecordPicture(fGM.get(), flags));
SkBitmap bitmap;
SetupBitmap(fReference.colorType(), fGM.get(), &bitmap);
- DrawPicture(&recorded, &bitmap);
+ DrawPicture(recorded, &bitmap);
if (!BitmapsEqual(bitmap, fReference)) {
this->fail();
this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));