mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This fixes the race which is seen where mojo_shell will sometimes launch with the wrong viewport metrics since the DisplayManager will happily respond to GetViewportMetrics with default values before the NativeViewport has fully booted and told it what the actual values are. I considered making DisplayManager hang until the NativeViewport was ready, but I decided that it does make sense for the ViewportMetrics (device pixel ratio, mostly) to change for a view if it were to move between displays (as exists on desktop OSes today). R=abarth@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/880743002