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

Side by Side Diff: cc/ipc/display_compositor.mojom

Issue 2703503002: WIP: move OffscreenCanvas into new display compositor
Patch Set: Refine connection lost Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module cc.mojom; 5 module cc.mojom;
6 6
7 import "cc/ipc/frame_sink_id.mojom"; 7 import "cc/ipc/frame_sink_id.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 8 import "cc/ipc/local_surface_id.mojom";
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 9 import "cc/ipc/mojo_compositor_frame_sink.mojom";
10 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 associated DisplayPrivate& display_private); 50 associated DisplayPrivate& display_private);
51 51
52 // CreateOffscreenCompositorFrameSink is used by unprivileged clients. 52 // CreateOffscreenCompositorFrameSink is used by unprivileged clients.
53 // An off screen CompositorFrameSink only submits frames to a buffer instead 53 // An off screen CompositorFrameSink only submits frames to a buffer instead
54 // of a display. 54 // of a display.
55 CreateOffscreenCompositorFrameSink( 55 CreateOffscreenCompositorFrameSink(
56 cc.mojom.FrameSinkId frame_sink_id, 56 cc.mojom.FrameSinkId frame_sink_id,
57 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink, 57 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink,
58 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private, 58 cc.mojom.MojoCompositorFrameSinkPrivate& compositor_frame_sink_private,
59 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client); 59 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client);
60
61 // CreateOffscreenCanvasCompositorFrameSink is used by OffscreenCanvas.
62 CreateOffscreenCanvasCompositorFrameSink(
Fady Samuel 2017/02/21 14:16:18 I don't think we should special case offscreen can
63 cc.mojom.FrameSinkId frame_sink_id,
64 cc.mojom.MojoCompositorFrameSink& compositor_frame_sink,
65 cc.mojom.MojoCompositorFrameSinkClient compositor_frame_sink_client);
66
60 }; 67 };
61 68
62 // The DisplayCompositorClient interface is implemented by the Display 69 // The DisplayCompositorClient interface is implemented by the Display
63 // Compositor Host, a stable, and privileged peer service to the display 70 // Compositor Host, a stable, and privileged peer service to the display
64 // compositor. The display compositor host is either the browser process in 71 // compositor. The display compositor host is either the browser process in
65 // Chrome or the window server process. 72 // Chrome or the window server process.
66 interface DisplayCompositorClient { 73 interface DisplayCompositorClient {
67 // Called by the display compositor immediately upon receiving a 74 // Called by the display compositor immediately upon receiving a
68 // CompositorFrame with a new SurfaceId for the first time. 75 // CompositorFrame with a new SurfaceId for the first time.
69 OnSurfaceCreated(SurfaceInfo surface_info); 76 OnSurfaceCreated(SurfaceInfo surface_info);
70 }; 77 };
OLDNEW
« no previous file with comments | « no previous file | components/display_compositor/BUILD.gn » ('j') | content/browser/renderer_host/render_process_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698