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

Side by Side Diff: third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom

Issue 2695603002: Replace OffscreenCanvasSurfaceClient with DisplayCompositorClient (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 blink.mojom; 5 module blink.mojom;
6 6
7 import "cc/ipc/compositor_frame.mojom"; 7 import "cc/ipc/compositor_frame.mojom";
8 import "cc/ipc/display_compositor.mojom";
8 import "cc/ipc/frame_sink_id.mojom"; 9 import "cc/ipc/frame_sink_id.mojom";
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 10 import "cc/ipc/mojo_compositor_frame_sink.mojom";
10 import "cc/ipc/surface_id.mojom"; 11 import "cc/ipc/surface_id.mojom";
11 import "cc/ipc/surface_info.mojom"; 12 import "cc/ipc/surface_info.mojom";
12 import "cc/ipc/surface_sequence.mojom"; 13 import "cc/ipc/surface_sequence.mojom";
13 14
14 interface OffscreenCanvasSurface { 15 interface OffscreenCanvasSurface {
15 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); 16 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence);
16 Satisfy(cc.mojom.SurfaceSequence sequence); 17 Satisfy(cc.mojom.SurfaceSequence sequence);
17 }; 18 };
18 19
19 interface OffscreenCanvasSurfaceClient { 20 interface OffscreenCanvasSurfaceClient {
Fady Samuel 2017/02/13 15:46:05 Delete this?
20 // TODO(fsamuel, xlai): Replace this with DisplayCompositorClient 21 // TODO(fsamuel, xlai): Replace this with DisplayCompositorClient
21 OnSurfaceCreated(cc.mojom.SurfaceInfo surface_info); 22 OnSurfaceCreated(cc.mojom.SurfaceInfo surface_info);
22 }; 23 };
23 24
24 interface OffscreenCanvasSurfaceFactory { 25 interface OffscreenCanvasSurfaceFactory {
25 CreateOffscreenCanvasSurface(cc.mojom.FrameSinkId parent_frame_sink_id, 26 CreateOffscreenCanvasSurface(cc.mojom.FrameSinkId parent_frame_sink_id,
26 cc.mojom.FrameSinkId frame_sink_id, 27 cc.mojom.FrameSinkId frame_sink_id,
27 OffscreenCanvasSurfaceClient client, 28 cc.mojom.DisplayCompositorClient client,
28 OffscreenCanvasSurface& service); 29 OffscreenCanvasSurface& service);
29 }; 30 };
30 31
31 interface OffscreenCanvasCompositorFrameSinkProvider { 32 interface OffscreenCanvasCompositorFrameSinkProvider {
32 // TODO(fsamuel, xlai): Replace this with DisplayCompositor 33 // TODO(fsamuel, xlai): Replace this with DisplayCompositor
33 CreateCompositorFrameSink(cc.mojom.FrameSinkId frame_sink_id, 34 CreateCompositorFrameSink(cc.mojom.FrameSinkId frame_sink_id,
34 cc.mojom.MojoCompositorFrameSinkClient client, 35 cc.mojom.MojoCompositorFrameSinkClient client,
35 cc.mojom.MojoCompositorFrameSink& sink); 36 cc.mojom.MojoCompositorFrameSink& sink);
36 }; 37 };
37 38
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698