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

Unified Diff: Source/core/html/canvas/WebGLExtension.cpp

Issue 798233005: Merge 185069 "Enforce context refrence guards in WebGL extensions." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2214/
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/html/canvas/WebGLExtension.h ('k') | Source/core/html/canvas/WebGLLoseContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLExtension.cpp
===================================================================
--- Source/core/html/canvas/WebGLExtension.cpp (revision 187498)
+++ Source/core/html/canvas/WebGLExtension.cpp (working copy)
@@ -29,6 +29,21 @@
namespace blink {
+WebGLExtensionScopedContext::WebGLExtensionScopedContext(WebGLExtension* extension)
+ : m_context(extension->m_context)
+{
+}
+
+WebGLExtensionScopedContext::~WebGLExtensionScopedContext()
+{
+}
+
+void WebGLExtensionScopedContext::trace(Visitor* visitor)
+{
+ visitor->trace(m_context);
+}
+
+
WebGLExtension::WebGLExtension(WebGLRenderingContextBase* context)
: m_context(context)
{
« no previous file with comments | « Source/core/html/canvas/WebGLExtension.h ('k') | Source/core/html/canvas/WebGLLoseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698