Remove references to Window, and switch usages to PlatformDispatcher or SingletonFlutterWindow (#69617)

* Remove references to dart:ui.Window, and point usages to PlatformDispatcher or SingletonFlutterWindow, as appropriate

* remove new test platform dispatchers

* Amend documentation
This commit is contained in:
Greg Spencer
2020-11-09 15:26:29 -08:00
committed by GitHub
parent 3b7718c27d
commit bbc0161669
34 changed files with 331 additions and 267 deletions

View File

@@ -217,15 +217,16 @@ abstract class SceneBuilderRecorder extends Recorder {
Profile get profile => _profile;
Profile _profile;
/// Called from [Window.onBeginFrame].
/// Called from [dart:ui.PlatformDispatcher.onBeginFrame].
@mustCallSuper
void onBeginFrame() {}
/// Called on every frame.
///
/// An implementation should exercise the [sceneBuilder] to build a frame.
/// However, it must not call [SceneBuilder.build] or [Window.render].
/// Instead the benchmark harness will call them and time them appropriately.
/// However, it must not call [SceneBuilder.build] or
/// [dart:ui.FlutterView.render]. Instead the benchmark harness will call them
/// and time them appropriately.
void onDrawFrame(SceneBuilder sceneBuilder);
@override