Commit 2a2b7606 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Unbreak the benchmarks API (#9852)

parent 3681aee5
...@@ -767,6 +767,14 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding { ...@@ -767,6 +767,14 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
} else { } else {
_doDrawThisFrame = false; _doDrawThisFrame = false;
} }
}
@override
void handleDrawFrame() {
assert(_doDrawThisFrame != null);
if (_doDrawThisFrame)
super.handleDrawFrame();
_doDrawThisFrame = null;
_viewNeedsPaint = false; _viewNeedsPaint = false;
if (_expectingFrame) { // set during pump if (_expectingFrame) { // set during pump
assert(_pendingFrame != null); assert(_pendingFrame != null);
...@@ -778,14 +786,6 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding { ...@@ -778,14 +786,6 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
} }
} }
@override
void handleDrawFrame() {
assert(_doDrawThisFrame != null);
if (_doDrawThisFrame)
super.handleDrawFrame();
_doDrawThisFrame = null;
}
@override @override
void initRenderView() { void initRenderView() {
assert(renderView == null); assert(renderView == null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment