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

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

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: 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 58267947179cd1e34f834c772161d74313ca677a..2e978a7fcba3a81ef70845a6b203d8cdcfbec9c0 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(m_weakFactory.GetWeakPtr());
DCHECK(!m_service.is_bound());
- mojom::blink::OffscreenCanvasSurfaceFactoryPtr serviceFactory;
+ mojom::blink::OffscreenCanvasProviderPtr provider;
Platform::current()->interfaceProvider()->getInterface(
- mojo::MakeRequest(&serviceFactory));
+ 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.
- serviceFactory->CreateOffscreenCanvasSurface(
- m_parentFrameSinkId, m_frameSinkId, m_binding.CreateInterfacePtrAndBind(),
- mojo::MakeRequest(&m_service));
+ provider->CreateOffscreenCanvasSurface(m_parentFrameSinkId, m_frameSinkId,
+ m_binding.CreateInterfacePtrAndBind(),
+ mojo::MakeRequest(&m_service));
}
CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge() {

Powered by Google App Engine
This is Rietveld 408576698