Index: tools/bench_playback.cpp |
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp |
index 052ded8b15891b75d2d785dd47697af91840e09d..fed2335f5a79477233a6c3f6e6d9fdca41a22491 100644 |
--- a/tools/bench_playback.cpp |
+++ b/tools/bench_playback.cpp |
@@ -11,6 +11,7 @@ |
#include "SkOSFile.h" |
#include "SkPicture.h" |
#include "SkRecordDraw.h" |
+#include "SkRecordOpts.h" |
#include "SkRecorder.h" |
#include "SkStream.h" |
#include "SkString.h" |
@@ -30,6 +31,8 @@ static void bench(SkPMColor* scratch, SkPicture& src, const char* name) { |
SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, src.width(), src.height()); |
src.draw(&recorder); |
+ SkRecordOptimize(&record); |
+ |
SkAutoTDelete<SkCanvas> canvas(SkCanvas::NewRasterDirectN32(src.width(), |
src.height(), |
scratch, |