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

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

Issue 1862033002: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update layout test results Created 4 years, 8 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 3b285c6d5c391d61862fcdcd8d0661fe386bc7d5..275eb71a27f047f098b64858d22c61b0f92ea549 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h
@@ -39,8 +39,10 @@ public:
IntSize size() const { return m_size; }
OffscreenCanvasRenderingContext2D* renderingContext() const;
- void setAssociatedCanvas(HTMLCanvasElement* canvas) { m_canvas = canvas; }
- HTMLCanvasElement* getAssociatedCanvas() const { return m_canvas; }
+ void setAssociatedCanvasId(int canvasId) { m_canvasId = canvasId; }
+ int getAssociatedCanvasId() const { return m_canvasId; }
+ bool isNeutered() const { return m_isNeutered; }
+ void setNeutered();
static void registerRenderingContextFactory(PassOwnPtr<OffscreenCanvasRenderingContextFactory>);
@@ -54,8 +56,9 @@ private:
static OffscreenCanvasRenderingContextFactory* getRenderingContextFactory(int);
Member<OffscreenCanvasRenderingContext> m_context;
- WeakMember<HTMLCanvasElement> m_canvas;
+ int m_canvasId;
Justin Novosad 2016/04/12 18:10:23 This field needs an initial value since it is not
xidachen 2016/04/12 19:35:14 This is actually initialized in the constructor. B
IntSize m_size;
+ bool m_isNeutered = false;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698