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

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

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 11 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/public/blink_typemaps.gni ('k') | ui/aura/mus/DEPS » ('j') | 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/frame_sink_id.mojom"; 8 import "cc/ipc/frame_sink_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";
11 import "cc/ipc/surface_info.mojom";
11 import "cc/ipc/surface_sequence.mojom"; 12 import "cc/ipc/surface_sequence.mojom";
12 13
13 interface OffscreenCanvasSurface { 14 interface OffscreenCanvasSurface {
14 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); 15 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence);
15 Satisfy(cc.mojom.SurfaceSequence sequence); 16 Satisfy(cc.mojom.SurfaceSequence sequence);
16 }; 17 };
17 18
18 interface OffscreenCanvasSurfaceClient { 19 interface OffscreenCanvasSurfaceClient {
19 // TODO(fsamuel, xlai): Replace this with DisplayCompositorClient 20 // TODO(fsamuel, xlai): Replace this with DisplayCompositorClient
20 OnSurfaceCreated(cc.mojom.SurfaceId surface_id, 21 OnSurfaceCreated(cc.mojom.SurfaceInfo surface_info);
21 int32 width,
22 int32 height,
23 float device_scale_factor);
24 }; 22 };
25 23
26 interface OffscreenCanvasSurfaceFactory { 24 interface OffscreenCanvasSurfaceFactory {
27 CreateOffscreenCanvasSurface(cc.mojom.FrameSinkId frame_sink_id, 25 CreateOffscreenCanvasSurface(cc.mojom.FrameSinkId frame_sink_id,
28 OffscreenCanvasSurfaceClient client, 26 OffscreenCanvasSurfaceClient client,
29 OffscreenCanvasSurface& service); 27 OffscreenCanvasSurface& service);
30 }; 28 };
31 29
32 interface OffscreenCanvasCompositorFrameSinkProvider { 30 interface OffscreenCanvasCompositorFrameSinkProvider {
33 // TODO(fsamuel, xlai): Replace this with DisplayCompositor 31 // TODO(fsamuel, xlai): Replace this with DisplayCompositor
34 CreateCompositorFrameSink(cc.mojom.FrameSinkId frame_sink_id, 32 CreateCompositorFrameSink(cc.mojom.FrameSinkId frame_sink_id,
35 cc.mojom.MojoCompositorFrameSinkClient client, 33 cc.mojom.MojoCompositorFrameSinkClient client,
36 cc.mojom.MojoCompositorFrameSink& sink); 34 cc.mojom.MojoCompositorFrameSink& sink);
37 }; 35 };
38 36
OLDNEW
« no previous file with comments | « third_party/WebKit/public/blink_typemaps.gni ('k') | ui/aura/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698