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

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

Issue 2392313004: [wrapper-tracing] Add tracing to WebGLRenderingContextBase and friends (Closed)
Patch Set: Add WebGL2RenderingContextBase Created 4 years, 2 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/webgl/WebGLVertexArrayObjectBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
index 5a43c5286e9bbd186030260b55b07b083d029809..09a23f0821d73aed880d2746210505353e6575ee 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
@@ -151,4 +151,12 @@ DEFINE_TRACE(WebGLVertexArrayObjectBase) {
WebGLContextObject::trace(visitor);
}
+DEFINE_TRACE_WRAPPERS(WebGLVertexArrayObjectBase) {
+ visitor->traceWrappers(m_boundElementArrayBuffer);
+ for (size_t i = 0; i < m_arrayBufferList.size(); ++i) {
+ visitor->traceWrappers(m_arrayBufferList[i]);
+ }
+ WebGLContextObject::traceWrappers(visitor);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698