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

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

Issue 2584643002: Revamp OffscreenCanvas commit flow (Closed)
Patch Set: Furnish Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
diff --git a/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom b/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
index f4e4448d561060e6fd9d53c0f2bae50a8f2d5c4e..3bfede38479c00c9024ccd10dada89f5419e308a 100644
--- a/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
+++ b/third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
@@ -5,21 +5,26 @@
module blink.mojom;
import "cc/ipc/compositor_frame.mojom";
+import "cc/ipc/frame_sink_id.mojom";
import "cc/ipc/mojo_compositor_frame_sink.mojom";
import "cc/ipc/surface_id.mojom";
import "cc/ipc/surface_sequence.mojom";
interface OffscreenCanvasSurface {
- // TODO(619138): Make creation of surface id Async after implementation
- // change on surface_id generator that makes client side be able to generate
- // unique surface_id.id_namespace alone.
- [Sync]
- GetSurfaceId() => (cc.mojom.SurfaceId surface_id);
+ SetClient(OffscreenCanvasSurfaceClient client,
Fady Samuel 2016/12/15 19:54:52 I think we prefer not to have a SetClient interfac
xlai (Olivia) 2016/12/15 22:20:12 Done.
+ cc.mojom.FrameSinkId frame_sink_id);
Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence);
Satisfy(cc.mojom.SurfaceSequence sequence);
};
+interface OffscreenCanvasSurfaceClient {
Fady Samuel 2016/12/15 19:54:52 nit: Add TODO(fsamuel, xlai): Replace this with Di
xlai (Olivia) 2016/12/15 22:20:12 Done.
+ OnSurfaceCreated(cc.mojom.SurfaceId surface_id,
+ int32 width,
+ int32 height,
+ float device_scale_factor);
+};
+
interface OffscreenCanvasCompositorFrameSinkProvider {
Fady Samuel 2016/12/15 19:54:52 nit: Add TODO(fsamuel, xlai): Replace this with Di
xlai (Olivia) 2016/12/15 22:20:12 Done.
CreateCompositorFrameSink(cc.mojom.SurfaceId surface_id,
cc.mojom.MojoCompositorFrameSinkClient client,

Powered by Google App Engine
This is Rietveld 408576698