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

Unified Diff: components/mus/public/interfaces/gpu/display_compositor_host.mojom

Issue 1989693002: Introduce DisplayCompositor Mojo API for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix client_id Created 4 years, 7 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 | « components/mus/public/interfaces/gpu/display_compositor.mojom ('k') | components/mus/surfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/gpu/display_compositor_host.mojom
diff --git a/components/mus/public/interfaces/gpu/display_compositor_host.mojom b/components/mus/public/interfaces/gpu/display_compositor_host.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..3c7b6d402f2eef15f59164c82ae599cebd7702f7
--- /dev/null
+++ b/components/mus/public/interfaces/gpu/display_compositor_host.mojom
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mus.gpu.mojom;
+
+import "components/mus/public/interfaces/gpu/display_compositor.mojom";
+
+// This is a privileged API to be used only by the Mus Window Server.
+// There is one Display per accelerated widget. This corresponds to a physical
+// display on Chrome OS, and a window on other Chrome platforms.
+interface Display {
+ // Each client (process) has a unique |client_id| and implements the
+ // DisplayClient interface.
+ CreateClient(uint32 client_id, DisplayClient& client);
+};
+
+interface DisplayHost {
+ // TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
+ // cc/output/begin_frame_args.h.
+ OnBeginFrame();
+};
+
+// This is a privileged API to be used only by the Mus Window Server.
+// There should be only one DisplayCompositor connection.
+interface DisplayCompositor {
+ CreateDisplay(int32 accelerated_widget,
+ Display& display,
+ DisplayHost display_host,
+ CompositorFrameSink& sink,
+ CompositorFrameSinkClient client);
+};
« no previous file with comments | « components/mus/public/interfaces/gpu/display_compositor.mojom ('k') | components/mus/surfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698