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..6c7346d7b9de9f9c7e514c5107232a812adf0769 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 |
@@ -9,12 +9,17 @@ import "cc/ipc/mojo_compositor_frame_sink.mojom"; |
import "cc/ipc/surface_id.mojom"; |
import "cc/ipc/surface_sequence.mojom"; |
+interface OffscreenCanvasSurfaceClient { |
+ OnSurfaceSizeChanged(cc.mojom.SurfaceId new_surface_id, |
+ uint32 width, uint32 height); |
+}; |
+ |
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); |
+ GetSurfaceId(OffscreenCanvasSurfaceClient client) => (cc.mojom.SurfaceId surface_id); |
Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); |
Satisfy(cc.mojom.SurfaceSequence sequence); |