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 507f95d411b155a0eff1c3c4c30616e6259e6405..4a8934e91a336902ceb1400f015616cca8a951a3 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -281,6 +281,11 @@ bool HTMLCanvasElement::isPaintable() const |
return (m_context && m_context->isPaintable()) || ImageBuffer::canCreateImageBuffer(size()); |
} |
+bool HTMLCanvasElement::isAccelerated() const |
+{ |
+ return m_context && m_context->isAccelerated(); |
+} |
+ |
void HTMLCanvasElement::didDraw(const FloatRect& rect) |
{ |
if (rect.isEmpty()) |