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

Unified Diff: ui/display/mojo/native_display_delegate.mojom

Issue 2835933005: Make ForwardingDisplayDelegate initially sync. (Closed)
Patch Set: Add comment explaining sync usage. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/manager/forwarding_display_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/mojo/native_display_delegate.mojom
diff --git a/ui/display/mojo/native_display_delegate.mojom b/ui/display/mojo/native_display_delegate.mojom
index 8a6ac594c77359c8bd60c0a362433ef74f6a906d..0c7cb989eb50626ee50820e45dc7fa1fb6d79dee 100644
--- a/ui/display/mojo/native_display_delegate.mojom
+++ b/ui/display/mojo/native_display_delegate.mojom
@@ -18,8 +18,10 @@ interface NativeDisplayObserver {
// Corresponds to display::NativeDisplayDelegate. This only implements
// functionality that is used by Ozone DRM.
interface NativeDisplayDelegate {
- // Initializes and registers the observer.
- Initialize(NativeDisplayObserver observer);
+ // Initializes and registers the observer. This is synchronous so that ash
+ // initialization has an initial set of displays to use.
+ [Sync]
+ Initialize(NativeDisplayObserver observer) => (array<DisplaySnapshotMojo> snapshots);
// Take control of the displays from any other controlling process.
TakeDisplayControl() => (bool result);
« no previous file with comments | « ui/display/manager/forwarding_display_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698