Unbreak the benchmarks API (#9852)

This commit is contained in:
Ian Hickson
2017-05-05 16:07:03 -07:00
committed by GitHub
parent 3681aee5a4
commit 2a2b760689

View File

@@ -767,6 +767,14 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
} else {
_doDrawThisFrame = false;
}
}
@override
void handleDrawFrame() {
assert(_doDrawThisFrame != null);
if (_doDrawThisFrame)
super.handleDrawFrame();
_doDrawThisFrame = null;
_viewNeedsPaint = false;
if (_expectingFrame) { // set during pump
assert(_pendingFrame != null);
@@ -778,14 +786,6 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
}
}
@override
void handleDrawFrame() {
assert(_doDrawThisFrame != null);
if (_doDrawThisFrame)
super.handleDrawFrame();
_doDrawThisFrame = null;
}
@override
void initRenderView() {
assert(renderView == null);