Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
index e1f5804c068f886da50a2f2a06dccb09a1989f6d..8d9427b506321abfaccd8e9cf2f0bf47896e6b01 100644 |
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
@@ -156,6 +156,11 @@ bool OffscreenCanvas::isPaintable() const |
return m_context->isPaintable(); |
} |
+bool OffscreenCanvas::isAccelerated() const |
+{ |
+ return m_context && m_context->isAccelerated(); |
+} |
+ |
OffscreenCanvasFrameDispatcher* OffscreenCanvas::getOrCreateFrameDispatcher() |
{ |
if (!m_frameDispatcher) { |