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

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp

Issue 2789753002: Convert offscreen canvas to use FrameSinkManagerHost. (Closed)
Patch Set: Rebase. Created 3 years, 8 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: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
index 8630a777c5ff9b0a4e90c96579921affe440a679..02c63f865374ab1faae6fc7074fc11be8e81bad9 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -67,15 +67,15 @@ CanvasSurfaceLayerBridge::CanvasSurfaceLayerBridge(
new OffscreenCanvasSurfaceReferenceFactory(weak_factory_.GetWeakPtr());
DCHECK(!service_.is_bound());
- mojom::blink::OffscreenCanvasSurfaceFactoryPtr service_factory;
+ mojom::blink::OffscreenCanvasProviderPtr provider;
Platform::Current()->GetInterfaceProvider()->GetInterface(
- mojo::MakeRequest(&service_factory));
+ mojo::MakeRequest(&provider));
// TODO(xlai): Ensure OffscreenCanvas commit() is still functional when a
// frame-less HTML canvas's document is reparenting under another frame.
// See crbug.com/683172.
- service_factory->CreateOffscreenCanvasSurface(
- parent_frame_sink_id_, frame_sink_id_,
- binding_.CreateInterfacePtrAndBind(), mojo::MakeRequest(&service_));
+ provider->CreateOffscreenCanvasSurface(parent_frame_sink_id_, frame_sink_id_,
+ binding_.CreateInterfacePtrAndBind(),
+ mojo::MakeRequest(&service_));
}
CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge() {

Powered by Google App Engine
This is Rietveld 408576698