Index: tools/bench_record.cpp |
diff --git a/tools/bench_record.cpp b/tools/bench_record.cpp |
index a8d7a8a0e5d7535fb95a3a384174e782abc1c974..0024c2ccdbea644eb600efec04e39672d9f76f0a 100644 |
--- a/tools/bench_record.cpp |
+++ b/tools/bench_record.cpp |
@@ -11,7 +11,6 @@ |
#include "SkOSFile.h" |
#include "SkPicture.h" |
#include "SkPictureRecorder.h" |
-#include "SkRecording.h" |
#include "SkStream.h" |
#include "SkString.h" |
@@ -65,16 +64,13 @@ static SkBBHFactory* parse_FLAGS_bbh() { |
} |
static void rerecord(const SkPicture& src, SkBBHFactory* bbhFactory) { |
+ SkPictureRecorder recorder; |
if (FLAGS_skr) { |
- EXPERIMENTAL::SkRecording recording(src.width(), src.height()); |
- src.draw(recording.canvas()); |
- // Release and delete the SkPlayback so that recording optimizes its SkRecord. |
- SkDELETE(recording.releasePlayback()); |
+ src.draw(recorder.EXPERIMENTAL_beginRecording(src.width(), src.height(), bbhFactory)); |
} else { |
- SkPictureRecorder recorder; |
src.draw(recorder.beginRecording(src.width(), src.height(), bbhFactory)); |
- SkAutoTUnref<SkPicture> dst(recorder.endRecording()); |
} |
+ SkAutoTUnref<SkPicture> pic(recorder.endRecording()); |
} |
static void bench_record(const SkPicture& src, |