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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index ceebfd501035a0a9f250aa662cfd7ee32b70fdf8..4189624568503a9db1651e82b3354e653033bd62 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -1166,9 +1166,11 @@ String HTMLCanvasElement::getIdFromControl(const Element* element)
return String();
}
-void HTMLCanvasElement::createSurfaceLayerBridge()
+CanvasSurfaceLayerBridge* HTMLCanvasElement::getSurfaceLayerBridge()
{
- m_surfaceLayerBridge = adoptPtr(new CanvasSurfaceLayerBridge());
+ if (!m_surfaceLayerBridge.get())
+ m_surfaceLayerBridge = adoptPtr(new CanvasSurfaceLayerBridge());
+ return m_surfaceLayerBridge.get();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698