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

Unified Diff: bench/GMBench.cpp

Issue 1978253002: Run GM benchs in bench mode (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GMBench.cpp
diff --git a/bench/GMBench.cpp b/bench/GMBench.cpp
index 57b231653022823f9fa8d4794e2c9a3680021da2..6037a8221c2f62635ce1bc814ae6b1df53a4e630 100644
--- a/bench/GMBench.cpp
+++ b/bench/GMBench.cpp
@@ -22,6 +22,7 @@ bool GMBench::isSuitableFor(Backend backend) {
}
void GMBench::onDraw(int loops, SkCanvas* canvas) {
+ fGM->setMode(skiagm::GM::kBench_Mode);
// Do we care about timing the draw of the background (once)?
// Does the GM ever rely on drawBackground to lazily compute something?
fGM->drawBackground(canvas);
« 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