Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h

Issue 1836283002: Implement HTMLCanvasElement's transferControlToOffscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update interface layout tests result Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..26c9baac0053c8cebf61ce127cccaa1ee6ace91f 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,8 @@ public:
IntSize size() const { return m_size; }
OffscreenCanvasRenderingContext2D* renderingContext() const;
+ void setAssociatedCanvas(HTMLCanvasElement* canvas) { m_canvas = canvas; }
+ HTMLCanvasElement* getAssociatedCanvas() const { return m_canvas; }
static void registerRenderingContextFactory(PassOwnPtr<OffscreenCanvasRenderingContextFactory>);
@@ -51,6 +54,7 @@ private:
static OffscreenCanvasRenderingContextFactory* getRenderingContextFactory(int);
Member<OffscreenCanvasRenderingContext> m_context;
+ WeakMember<HTMLCanvasElement> m_canvas;
IntSize m_size;
};
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698