Index: tools/bench_playback.cpp |
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp |
index b5dc57bd1d78679325daf6a11fe31efb12915612..052ded8b15891b75d2d785dd47697af91840e09d 100644 |
--- a/tools/bench_playback.cpp |
+++ b/tools/bench_playback.cpp |
@@ -24,6 +24,8 @@ DEFINE_bool(skr, false, "Play via SkRecord instead of SkPicture."); |
DEFINE_int32(tile, 1000000000, "Simulated tile size."); |
static void bench(SkPMColor* scratch, SkPicture& src, const char* name) { |
+ // We don't use the public SkRecording interface here because we need kWriteOnly_Mode. |
+ // (We don't want SkPicturePlayback to be able to optimize playing into our SkRecord.) |
SkRecord record; |
SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, src.width(), src.height()); |
src.draw(&recorder); |