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

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

Issue 2328463004: Implement WebGL's commit on the main thread (Closed)
Patch Set: update gpu pixel test expectation 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
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/returned_resource.mojom";
8 import "cc/ipc/surface_id.mojom"; 9 import "cc/ipc/surface_id.mojom";
9 import "cc/ipc/surface_sequence.mojom"; 10 import "cc/ipc/surface_sequence.mojom";
10 11
11 interface OffscreenCanvasSurface { 12 interface OffscreenCanvasSurface {
12 // TODO(619138): Make creation of surface id Async after implementation 13 // TODO(619138): Make creation of surface id Async after implementation
13 // 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
14 // unique surface_id.id_namespace alone. 15 // unique surface_id.id_namespace alone.
15 [Sync] 16 [Sync]
16 GetSurfaceId() => (cc.mojom.SurfaceId surface_id); 17 GetSurfaceId() => (cc.mojom.SurfaceId surface_id);
17 18
18 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); 19 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence);
19 Satisfy(cc.mojom.SurfaceSequence sequence); 20 Satisfy(cc.mojom.SurfaceSequence sequence);
20 }; 21 };
21 22
22 // This interface is called from either worker or main thread in renderer, but 23 // This interface is called from either worker or main thread in renderer, but
23 // not both for the same OffscreenCanvas instance. 24 // not both for the same OffscreenCanvas instance.
24 interface OffscreenCanvasFrameReceiver { 25 interface OffscreenCanvasFrameReceiver {
25 26
27 SetClient(OffscreenCanvasFrameReceiverClient client);
26 SubmitCompositorFrame(cc.mojom.SurfaceId surface_id, cc.mojom.CompositorFrame compositor_frame); 28 SubmitCompositorFrame(cc.mojom.SurfaceId surface_id, cc.mojom.CompositorFrame compositor_frame);
27 29
28 }; 30 };
29 31
32 interface OffscreenCanvasFrameReceiverClient {
33 ReturnResources(array<cc.mojom.ReturnedResource> resources);
dcheng 2016/09/14 20:02:19 Would it make sense for this to be a generic CC mo
danakj 2016/09/14 20:07:56 Not sure if this is helpful but this here *is* a C
xidachen 2016/09/15 15:56:28 +Fady: WDYT?
34 };
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698