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

Unified Diff: bench/RecordingBench.cpp

Issue 741523002: Add computation of saveLayer information to RecordingBench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | no next file » | 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 76d557d48ba49ea25e02d4f08aa1c1f8b140212e..fe857393231e3c2827d5aac3c8cc47aae18e76e1 100644
--- a/bench/RecordingBench.cpp
+++ b/bench/RecordingBench.cpp
@@ -35,7 +35,8 @@ void RecordingBench::onDraw(const int loops, SkCanvas*) {
for (int i = 0; i < loops; i++) {
SkPictureRecorder recorder;
- fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : NULL));
+ fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : NULL,
+ SkPictureRecorder::kComputeSaveLayerInfo_RecordFlag));
SkDELETE(recorder.endRecording());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698