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

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

Issue 2479563005: Create manager to track OffscreenCanvasSurfaceImpl instances (Closed)
Patch Set: Created 4 years, 1 month 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 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/mojo_compositor_frame_sink.mojom"; 8 import "cc/ipc/mojo_compositor_frame_sink.mojom";
9 import "cc/ipc/surface_id.mojom"; 9 import "cc/ipc/surface_id.mojom";
10 import "cc/ipc/surface_sequence.mojom"; 10 import "cc/ipc/surface_sequence.mojom";
11 11
12 interface OffscreenCanvasSurface { 12 interface OffscreenCanvasSurface {
13 // TODO(619138): Make creation of surface id Async after implementation 13 // TODO(619138): Make creation of surface id Async after implementation
14 // change on surface_id generator that makes client side be able to generate 14 // change on surface_id generator that makes client side be able to generate
15 // unique surface_id.id_namespace alone. 15 // unique surface_id.id_namespace alone.
16 [Sync] 16 [Sync]
17 GetSurfaceId() => (cc.mojom.SurfaceId surface_id); 17 GetSurfaceId(uint32 canvas_id) => (cc.mojom.SurfaceId surface_id);
dcheng 2016/11/08 18:30:23 Help me understand =) What is canvas id? why do w
xlai (Olivia) 2016/11/10 15:45:11 Canvas ID is a unique identifier for an HTMLCanvas
dcheng 2016/11/11 08:36:40 In a Mojo world though, I would expect the endpoin
18 18
19 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); 19 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence);
20 Satisfy(cc.mojom.SurfaceSequence sequence); 20 Satisfy(cc.mojom.SurfaceSequence sequence);
21 }; 21 };
22 22
23 interface OffscreenCanvasCompositorFrameSinkProvider { 23 interface OffscreenCanvasCompositorFrameSinkProvider {
24 CreateCompositorFrameSink(cc.mojom.SurfaceId surface_id, 24 CreateCompositorFrameSink(uint32 canvas_id,
25 cc.mojom.SurfaceId surface_id,
25 cc.mojom.MojoCompositorFrameSinkClient client, 26 cc.mojom.MojoCompositorFrameSinkClient client,
26 cc.mojom.MojoCompositorFrameSink& sink); 27 cc.mojom.MojoCompositorFrameSink& sink);
27 }; 28 };
28 29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698