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

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

Issue 2521013003: Compositing Layer update for OffscreenCanvas resize (Closed)
Patch Set: test 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 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..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);

Powered by Google App Engine
This is Rietveld 408576698