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 b5f8febd6e7bfcd7f93520e4634a53b70aa5fd7f..bc502f645cbb1fd066ec90a6e7f393b541eca0c8 100644 |
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
@@ -9,6 +9,7 @@ |
#include "core/html/canvas/CanvasRenderingContext.h" |
#include "core/html/canvas/CanvasRenderingContextFactory.h" |
#include "platform/graphics/ImageBuffer.h" |
+#include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h" |
#include "wtf/MathExtras.h" |
#include <memory> |
@@ -134,6 +135,13 @@ bool OffscreenCanvas::isPaintable() const |
return m_context->isPaintable(); |
} |
+OffscreenCanvasFrameDispatcher* OffscreenCanvas::getOrCreateFrameDispatcher() |
+{ |
+ if (!m_frameDispatcher) |
+ m_frameDispatcher = wrapUnique(new OffscreenCanvasFrameDispatcherImpl(m_clientId, m_localId, m_nonce, width(), height())); |
+ return m_frameDispatcher.get(); |
+} |
+ |
DEFINE_TRACE(OffscreenCanvas) |
{ |
visitor->trace(m_context); |