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..d3c04ed618524e9473572f03367728352288f727 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() |
+bool HTMLCanvasElement::createSurfaceLayer() |
{ |
+ DCHECK(!m_surfaceLayerBridge); |
m_surfaceLayerBridge = adoptPtr(new CanvasSurfaceLayerBridge()); |
+ return m_surfaceLayerBridge->createSurfaceLayer(this->width(), this->height()); |
} |
} // namespace blink |