Run GM benchs in bench mode
authorbsalomon <bsalomon@google.com>
Mon, 16 May 2016 16:09:18 +0000 (09:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 May 2016 16:09:18 +0000 (09:09 -0700)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1978253002

Review-Url: https://codereview.chromium.org/1978253002

bench/GMBench.cpp

index 57b2316..6037a82 100644 (file)
@@ -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);