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

@@ -41,8 +41,9 @@ Future<void> main() async {
await SchedulerBinding.instance.endOfFrame;
// We are waiting for the GPU to rasterize a frame here. This makes this flaky,
// we can rely on a more deterministic such as `Window.onReportTimings` once
// We are waiting for the GPU to rasterize a frame here. This makes this
// flaky, we can rely on a more deterministic source such as
// PlatformDispatcher.onReportTimings once
// https://github.com/flutter/flutter/issues/26154 is addressed.
await Future<void>.delayed(const Duration(milliseconds: 50));
debugPrint('==== MEMORY BENCHMARK ==== READY ====');