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

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

Issue 2401893002: [wrapper-tracing] WebGL and friends: Add write barriers (Closed)
Patch Set: Rework to use TraceWrapperMember 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 9dbf9903e8343c071c805c320d85f6cce7ec86d8..41ee66a975eb05061e32098714f6264dd332ae16 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
@@ -439,8 +439,10 @@ void WebGLFramebuffer::setAttachmentInternal(GLenum target,
DCHECK(m_object);
removeAttachmentInternal(target, attachment);
if (texture && texture->object()) {
- m_attachments.add(attachment, WebGLTextureAttachment::create(
- texture, texTarget, level, layer));
+ m_attachments.add(
+ attachment, TraceWrapperMember<WebGLAttachment>(
+ this, WebGLTextureAttachment::create(texture, texTarget,
+ level, layer)));
drawBuffersIfNecessary(false);
texture->onAttached();
}

Powered by Google App Engine
This is Rietveld 408576698