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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp

Issue 2561733002: Add WebGLContextObject::traceWrappers, and trace its context. (Closed)
Patch Set: Created 4 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 | « third_party/WebKit/Source/modules/webgl/WebGLContextObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp b/third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp
index 0965b282acdc64753507e0644b15700d7d615630..c3d03cf594b4286d98abbf9e3499b80e328411c1 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLContextObject.cpp
@@ -30,7 +30,7 @@
namespace blink {
WebGLContextObject::WebGLContextObject(WebGLRenderingContextBase* context)
- : WebGLObject(context), m_context(context) {}
+ : WebGLObject(context), m_context(this, context) {}
bool WebGLContextObject::validate(
const WebGLContextGroup*,
@@ -55,4 +55,9 @@ DEFINE_TRACE(WebGLContextObject) {
WebGLObject::trace(visitor);
}
+DEFINE_TRACE_WRAPPERS(WebGLContextObject) {
+ visitor->traceWrappers(m_context);
+ WebGLObject::traceWrappers(visitor);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLContextObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698