Chromium Code Reviews
DescriptionMake ForwardingDisplayDelegate initially sync.
In ash::Shell::Init() there is an assumption that NativeDisplayDelegate
is synchronous. This is accomplished through a couple of hacks with
Ozone DRM to load the current DisplaySnapshots in the browser process.
We need to do something similar for mushrome. This is a quick workaround
that makes a synchronous call from ash to mus-ws to get the list of
display snapshots. After Shell::Init() has finished and
ForwardingDisplaySnapshot has received an OnConfigurationChanged() IPC
it resumes making calls over Mojo.
This isn't ideal because it will add significant delay to ash
initialization. It will work in the short term for mushrome though.
BUG=706589
Review-Url: https://codereview.chromium.org/2835933005
Cr-Commit-Position: refs/heads/master@{#466962}
Committed: https://chromium.googlesource.com/chromium/src/+/0a81beada89c87c32e6ac4faea3e2823985994dc
Patch Set 1 #Patch Set 2 : Add comment explaining sync usage. #
Messages
Total messages: 16 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||