| Index: dm/DMReplayTask.cpp
|
| ===================================================================
|
| --- dm/DMReplayTask.cpp (revision 14159)
|
| +++ dm/DMReplayTask.cpp (working copy)
|
| @@ -22,13 +22,12 @@
|
| {}
|
|
|
| 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)));
|
|
|