Merge "PaintMeasureTextTest: only pause/resume not_cached benchmarks"

This commit is contained in:
TreeHugger Robot
2017-11-30 19:31:21 +00:00
committed by Android (Google) Code Review

View File

@@ -80,11 +80,11 @@ public class PaintMeasureTextTest {
}
while (state.keepRunning()) {
state.pauseTiming();
if (mCacheMode == DONT_USE_CACHE) {
state.pauseTiming();
Canvas.freeTextLayoutCaches();
state.resumeTiming();
}
state.resumeTiming();
paint.measureText(mText);
}