Index: tools/VisualBench/VisualLightweightBenchModule.cpp |
diff --git a/tools/VisualBench/VisualLightweightBenchModule.cpp b/tools/VisualBench/VisualLightweightBenchModule.cpp |
index fa99caa1fb56dfff0f043ade0fd7445cab564466..d964ae3e58d082a22c07813dd4fd7d91ff831792 100644 |
--- a/tools/VisualBench/VisualLightweightBenchModule.cpp |
+++ b/tools/VisualBench/VisualLightweightBenchModule.cpp |
@@ -163,10 +163,11 @@ void VisualLightweightBenchModule::draw(SkCanvas* canvas) { |
fTSM.nextBenchmark(canvas, fBenchmark); |
fCurrentSample = 0; |
fBenchmark.reset(nullptr); |
+ } else { |
+ fTSM.nextSampleWithPrewarm(); |
} |
break; |
} |
- |
} |
bool VisualLightweightBenchModule::onHandleChar(SkUnichar c) { |