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

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

Issue 2316643003: Reland Submit Compositor Frame from OffscreenCanvas on main (Closed)
Patch Set: Created 4 years, 3 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/OffscreenCanvasFrameDispatcherImpl.cpp ('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/surface_id.mojom"; 8 import "cc/ipc/surface_id.mojom";
9 import "cc/ipc/surface_sequence.mojom"; 9 import "cc/ipc/surface_sequence.mojom";
10 10
11 interface OffscreenCanvasSurface { 11 interface OffscreenCanvasSurface {
12 // TODO(619138): Make creation of surface id Async after implementation 12 // TODO(619138): Make creation of surface id Async after implementation
13 // change on surface_id generator that makes client side be able to generate 13 // change on surface_id generator that makes client side be able to generate
14 // unique surface_id.id_namespace alone. 14 // unique surface_id.id_namespace alone.
15 [Sync] 15 [Sync]
16 GetSurfaceId() => (cc.mojom.SurfaceId surface_id); 16 GetSurfaceId() => (cc.mojom.SurfaceId surface_id);
17 RequestSurfaceCreation(cc.mojom.SurfaceId surface_id); 17 RequestSurfaceCreation(cc.mojom.SurfaceId surface_id);
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
22 // TODO(563852): Move this function to be in an interface shared by both
23 // worker thread and main thread.
24 // SubmitCompositorFrame(cc.mojom.CompositorFrame compositor_frame);
25 }; 21 };
26 22
23 // This interface is called from either worker or main thread in renderer, but
24 // not both for the same OffscreenCanvas instance.
25 // TODO(xlai): Make commit() work for worker. See crbug.com/563858.
26 interface OffscreenCanvasFrameReceiver {
27
28 SubmitCompositorFrame(cc.mojom.SurfaceId surface_id, cc.mojom.CompositorFrame compositor_frame);
29
30 };
31
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698