Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h |
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h |
index 0e2e9575a340d55b1b397c6b257aad6e403f2d91..8a9f67bae2db5014c47cb5e400b79baf9d3bf948 100644 |
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h |
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h |
@@ -8,6 +8,7 @@ |
#include "bindings/core/v8/ScriptPromise.h" |
#include "bindings/core/v8/ScriptState.h" |
#include "bindings/core/v8/ScriptWrappable.h" |
+#include "core/html/HTMLCanvasElement.h" |
#include "modules/ModulesExport.h" |
#include "platform/geometry/IntSize.h" |
#include "platform/heap/Handle.h" |
@@ -38,6 +39,7 @@ public: |
IntSize size() const { return m_size; } |
OffscreenCanvasRenderingContext2D* renderingContext() const; |
+ void setOriginatedCanvas(HTMLCanvasElement* canvas) { m_canvas = canvas; } |
Justin Novosad
2016/03/29 20:32:58
Originated -> Associated
xidachen
2016/03/30 13:32:30
Done.
|
static void registerRenderingContextFactory(PassOwnPtr<OffscreenCanvasRenderingContextFactory>); |
@@ -51,6 +53,7 @@ private: |
static OffscreenCanvasRenderingContextFactory* getRenderingContextFactory(int); |
Member<OffscreenCanvasRenderingContext> m_context; |
+ WeakMember<HTMLCanvasElement> m_canvas; |
IntSize m_size; |
}; |