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

Unified Diff: cc/ipc/display_compositor.mojom

Issue 2579693004: GpuCompositorFrameSink implements cc::mojom::DisplayPrivate (Closed)
Patch Set: Addressed comments Created 4 years 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
Index: cc/ipc/display_compositor.mojom
diff --git a/cc/ipc/display_compositor.mojom b/cc/ipc/display_compositor.mojom
index 06abdbd55d3d1ec4b2b64cde7f43aa327679764b..3c1cfb322ad7761916acfcb5a2ab16facb262d84 100644
--- a/cc/ipc/display_compositor.mojom
+++ b/cc/ipc/display_compositor.mojom
@@ -9,7 +9,9 @@ import "cc/ipc/mojo_compositor_frame_sink.mojom";
import "cc/ipc/surface_id.mojom";
import "cc/ipc/surface_sequence.mojom";
import "gpu/ipc/common/surface_handle.mojom";
+import "mojo/common/time.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom";
+import "ui/gfx/mojo/color_space.mojom";
// The DisplayCompositor interface is a privileged interface that allows
// the display compositor host (browser or window server) to create
@@ -28,7 +30,8 @@ interface DisplayCompositor {
gpu.mojom.SurfaceHandle widget,
cc.mojom.MojoCompositorFrameSink& compositor_frame_sink,
cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private,
- cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client);
+ cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client,
+ DisplayPrivate& display_private);
CreateOffscreenCompositorFrameSink(
cc.mojom.FrameSinkId frame_sink_id,
@@ -53,3 +56,13 @@ interface DisplayCompositorClient {
gfx.mojom.Size frame_size,
float device_scale_factor);
};
+
+// The DisplayPrivate is implemented by GpuCompositorFrameSink. It is used so
+// that ContextFactory can talk to cc::Display without knowing about
+// cc::Display.
Fady Samuel 2016/12/16 17:18:18 nit: I would not reference GpuCompositorFrameSink
Alex Z. 2016/12/19 19:27:47 Done.
+interface DisplayPrivate {
kylechar 2016/12/16 17:08:32 Is it DisplayPrivate just to disambiguate it from
+ SetDisplayVisible(bool visible);
+ ResizeDisplay(gfx.mojom.Size size);
sadrul 2016/12/16 17:12:05 Can you add a comment to mention whether |size| is
danakj 2016/12/16 17:13:41 Or name it size_in_dip size_in_physical_pixels or
Alex Z. 2016/12/19 19:27:47 Done.
+ SetDisplayColorSpace(gfx.mojom.ColorSpace color_space);
+ SetOutputIsSecure(bool secure);
+};
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support.h » ('j') | cc/surfaces/compositor_frame_sink_support.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698