We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51764ef commit 35dfc27Copy full SHA for 35dfc27
shell/platform/windows/flutter_window_winuwp.cc
@@ -118,7 +118,13 @@ float FlutterWindowWinUWP::GetDpiScale() {
118
}
119
120
bool FlutterWindowWinUWP::IsVisible() {
121
- return window_.Visible();
+ // This is called from raster thread as an optimization to not wait for vsync
122
+ // if window is invisible. However CoreWindow is not agile so we can't call
123
+ // Visible() from raster thread. For now assume window is always visible.
124
+ // Possible solution would be to register a VisibilityChanged handler and
125
+ // store the visiblity state in a variable. TODO(knopp)
126
+ // https://github.com/flutter/flutter/issues/87870
127
+ return true;
128
129
130
void FlutterWindowWinUWP::OnDpiChanged(
0 commit comments