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

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

Issue 2401893002: [wrapper-tracing] WebGL and friends: Add write barriers (Closed)
Patch Set: Rebase 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..9a4b8221b9a2d54dadf53312df978e56eb32787d 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();
}
@@ -453,8 +455,10 @@ void WebGLFramebuffer::setAttachmentInternal(GLenum target,
DCHECK(m_object);
removeAttachmentInternal(target, attachment);
if (renderbuffer && renderbuffer->object()) {
- m_attachments.add(attachment,
- WebGLRenderbufferAttachment::create(renderbuffer));
+ m_attachments.add(
+ attachment,
+ TraceWrapperMember<WebGLAttachment>(
+ this, WebGLRenderbufferAttachment::create(renderbuffer)));
drawBuffersIfNecessary(false);
renderbuffer->onAttached();
}
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h ('k') | third_party/WebKit/Source/modules/webgl/WebGLProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698