Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Issue 2835933005: Make ForwardingDisplayDelegate initially sync. (Closed)

Created:
3 years, 8 months ago by kylechar
Modified:
3 years, 8 months ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -10 lines) Patch
M mojo/public/cpp/bindings/sync_call_restrictions.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M services/ui/display/screen_manager_forwarding.h View 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/display/screen_manager_forwarding.cc View 3 chunks +13 lines, -2 lines 0 comments Download
M ui/display/manager/forwarding_display_delegate.h View 1 chunk +8 lines, -1 line 0 comments Download
M ui/display/manager/forwarding_display_delegate.cc View 6 chunks +30 lines, -1 line 0 comments Download
M ui/display/mojo/native_display_delegate.mojom View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
kylechar
sky: ui/* OWNERS tsepez: mojom
3 years, 8 months ago (2017-04-24 20:47:57 UTC) #5
Tom Sepez
lgtm
3 years, 8 months ago (2017-04-24 20:52:45 UTC) #6
sky
LGTM
3 years, 8 months ago (2017-04-24 21:15:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835933005/20001
3 years, 8 months ago (2017-04-25 13:16:31 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 13:21:50 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0a81beada89c87c32e6ac4faea3e...

Powered by Google App Engine
This is Rietveld 408576698