未验证 提交 086b5a48 编写于 作者: J Jonah Williams 提交者: GitHub

move webOnlyScheduleFrameCallback off of window (#9222)

上级 8a6bad6e
......@@ -120,7 +120,7 @@ void webOnlyInitializeEngine() {
domRenderer;
bool waitingForAnimation = false;
ui.window.webOnlyScheduleFrameCallback = () {
ui.webOnlyScheduleFrameCallback = () {
// We're asked to schedule a frame and call `frameHandler` when the frame
// fires.
if (!waitingForAnimation) {
......
......@@ -45,7 +45,7 @@ Future<void> webOnlyInitializeTestDomRenderer({double devicePixelRatio = 3.0}) {
engine.window.debugOverrideDevicePixelRatio(devicePixelRatio);
engine.window.webOnlyDebugPhysicalSizeOverride =
Size(800 * devicePixelRatio, 600 * devicePixelRatio);
window.webOnlyScheduleFrameCallback = () {};
webOnlyScheduleFrameCallback = () {};
engine.domRenderer.debugIsInWidgetTest = true;
if (_platformInitializedFuture != null) {
......
......@@ -804,8 +804,6 @@ abstract class Window {
_onLocaleChanged = callback;
}
VoidCallback webOnlyScheduleFrameCallback;
/// Requests that, at the next appropriate opportunity, the [onBeginFrame]
/// and [onDrawFrame] callbacks be invoked.
///
......@@ -1224,6 +1222,8 @@ class IsolateNameServer {
}
}
VoidCallback webOnlyScheduleFrameCallback;
/// The [Window] singleton. This object exposes the size of the display, the
/// core scheduler API, the input event callback, the graphics drawing API, and
/// other such core services.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册