Index: bench/RecordingBench.cpp |
diff --git a/bench/RecordingBench.cpp b/bench/RecordingBench.cpp |
index cd029ddf14eeb0c1242455fac6c064a08065d2bf..eada9305f968656669a995e186b2124e01f33841 100644 |
--- a/bench/RecordingBench.cpp |
+++ b/bench/RecordingBench.cpp |
@@ -33,10 +33,11 @@ void RecordingBench::onDraw(const int loops, SkCanvas*) { |
const SkScalar w = fSrc->cullRect().width(), |
h = fSrc->cullRect().height(); |
+ uint32_t flags = SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag |
+ | SkPictureRecorder::kPlaybackDrawPicture_RecordFlag; |
for (int i = 0; i < loops; i++) { |
SkPictureRecorder recorder; |
- fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : NULL, |
- SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag)); |
+ fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : NULL, flags)); |
SkSafeUnref(recorder.endRecording()); |
} |
} |