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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.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/WebGLFramebuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
index 06e3fdf3f54c49b07ef2904622f26b48ec0c26af..9dbf9903e8343c071c805c320d85f6cce7ec86d8 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
@@ -545,4 +545,11 @@ DEFINE_TRACE(WebGLFramebuffer) {
WebGLContextObject::trace(visitor);
}
+DEFINE_TRACE_WRAPPERS(WebGLFramebuffer) {
+ for (const auto& attachment : m_attachments) {
+ visitor->traceWrappers(attachment.value->object());
Michael Lippautz 2016/10/06 17:54:54 I mirrored the object grouping behavior here by di
Ken Russell (switch to Gerrit) 2016/10/06 19:05:14 There's no JavaScript wrapper for it, so that's no
Michael Lippautz 2016/10/06 19:58:13 Yep, it's not necessary. I guess my question is
Ken Russell (switch to Gerrit) 2016/10/07 03:00:55 Let's just mirror what object grouping did -- i.e.
haraken 2016/10/07 04:48:49 We've already added a bunch of traceWrappers to no
Ken Russell (switch to Gerrit) 2016/10/07 04:58:52 OK. I don't have a strong opinion on this.
+ }
+ WebGLContextObject::traceWrappers(visitor);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698