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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2036663003: Establish mojo service between Canvas (blink) and SurfaceManager (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index d36b46bdf321ddeb49160399dbc4ad3b18f0d130..764500d727e2568ced7fce5b3c086ecc5d966bbb 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -128,7 +128,7 @@ static inline bool isCanvasControlledByOffscreen(const LayoutObject* layoutObjec
{
if (layoutObject->isCanvas()) {
HTMLCanvasElement* canvas = toHTMLCanvasElement(layoutObject->node());
- if (canvas->surfaceLayerBridge())
+ if (canvas->getSurfaceLayerBridge())
return true;
}
return false;
@@ -549,7 +549,7 @@ bool CompositedLayerMapping::updateGraphicsLayerConfiguration()
m_graphicsLayer->setContentsToPlatformLayer(mediaElement->platformLayer());
} else if (isCanvasControlledByOffscreen(layoutObject)) {
HTMLCanvasElement* canvas = toHTMLCanvasElement(layoutObject->node());
- m_graphicsLayer->setContentsToPlatformLayer(canvas->surfaceLayerBridge()->getWebLayer());
+ m_graphicsLayer->setContentsToPlatformLayer(canvas->getSurfaceLayerBridge()->getWebLayer());
layerConfigChanged = true;
} else if (isAcceleratedCanvas(layoutObject)) {
HTMLCanvasElement* canvas = toHTMLCanvasElement(layoutObject->node());

Powered by Google App Engine
This is Rietveld 408576698