Unbreak the benchmarks API (#9852)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user