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

Unified Diff: tools/bench_record.cpp

Issue 231653002: SkRecordDraw: skip draw ops when the clip is empty (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: pop cull unconditionally Created 6 years, 8 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 | « tests/RecorderTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bench_record.cpp
diff --git a/tools/bench_record.cpp b/tools/bench_record.cpp
index db0ea9b71fe54cea6a457a6280c31dd926d1f0fb..e59744b1dc8d410f12976d2ee83f4410d87e7544 100644
--- a/tools/bench_record.cpp
+++ b/tools/bench_record.cpp
@@ -79,7 +79,7 @@ static void bench_record(SkPicture* src, const char* name, PictureFactory pictur
for (int i = 0; i < FLAGS_loops; i++) {
if (FLAGS_skr) {
SkRecord record;
- SkRecorder canvas(&record, width, height);
+ SkRecorder canvas(SkRecorder::kWriteOnly_Mode, &record, width, height);
if (NULL != src) {
src->draw(&canvas);
}
« no previous file with comments | « tests/RecorderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698