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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.h

Issue 2789753002: Convert offscreen canvas to use FrameSinkManagerHost. (Closed)
Patch Set: Lower similarity. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/offscreen_canvas_surface_impl.h
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.h b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
index 7757e57bc61169c479390da4460244e33b4820bf..057649a3e733b92bb5633f5b208259a09f3528a8 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.h
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.h
@@ -26,6 +26,10 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
cc::mojom::DisplayCompositorClientPtr client,
blink::mojom::OffscreenCanvasSurfaceRequest request);
+ void CreateCompositorFrameSink(
+ cc::mojom::MojoCompositorFrameSinkClientPtr client,
+ cc::mojom::MojoCompositorFrameSinkRequest request);
+
void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
// blink::mojom::OffscreenCanvasSurface implementation.
@@ -47,11 +51,15 @@ class CONTENT_EXPORT OffscreenCanvasSurfaceImpl
cc::mojom::DisplayCompositorClientPtr client_;
mojo::StrongBindingPtr<blink::mojom::OffscreenCanvasSurface> binding_;
+ cc::mojom::MojoCompositorFrameSinkPrivatePtr compositor_frame_sink_private_;
+
// Surface-related state
const cc::FrameSinkId frame_sink_id_;
cc::LocalSurfaceId current_local_surface_id_;
const cc::FrameSinkId parent_frame_sink_id_;
+ bool has_registered_frame_sink_hierarchy_ = false;
+
DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl);
};

Powered by Google App Engine
This is Rietveld 408576698