aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/GMBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/GMBench.cpp')
-rw-r--r--bench/GMBench.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/bench/GMBench.cpp b/bench/GMBench.cpp
index 6037a8221c..297ff42b74 100644
--- a/bench/GMBench.cpp
+++ b/bench/GMBench.cpp
@@ -27,6 +27,7 @@ void GMBench::onDraw(int loops, SkCanvas* canvas) {
// Does the GM ever rely on drawBackground to lazily compute something?
fGM->drawBackground(canvas);
for (int i = 0; i < loops; ++i) {
+ SkAutoCanvasRestore acr(canvas, true);
fGM->drawContent(canvas);
}
}