Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1267)

Unified Diff: bench/RecordingBench.cpp

Issue 1219873002: Thread through a flag to force SkPicture::playback() when recording subpictures. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: no need to change here. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkPictureRecorder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « no previous file | include/core/SkPictureRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698