Merge "PaintMeasureTextTest: only pause/resume not_cached benchmarks"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b4f84afccd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user