Chromium Code Reviews
DescriptionFix adding displays in mustash.
This CL fixes two bugs that occured when adding displays after the
initial display setup.
The first bug is caused by Display::OnViewportMetricsChanged() getting
called before the WindowManagerDisplayRoot for the display is created.
ScreenMus receives a message that a display has been added before the
WindowTreeClient was updated. When ash looked for the root window
controller corresponding to the display it didn't exist yet. Fix by not
calling OnDisplayUpdated() if the ui::ws::Display hasn't been
initialized yet and explicitly call it after WindowManagerDisplayRoot(s)
have been created.
The second bug was not initializing the GPU channel for displays after
the first display.
BUG=641012
Committed: https://crrev.com/ff1f2f190b17b41e787f89f6825d6cc3bbd10bec
Cr-Commit-Position: refs/heads/master@{#418242}
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|
||||||||||||||||||||||||||||