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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.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/WebGLVertexArrayObjectBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
index 09a23f0821d73aed880d2746210505353e6575ee..86a1b2a3870f3f042c41da2298c51040166606bd 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
@@ -17,7 +17,7 @@ WebGLVertexArrayObjectBase::WebGLVertexArrayObjectBase(
m_type(type),
m_hasEverBeenBound(false),
m_destructionInProgress(false),
- m_boundElementArrayBuffer(nullptr),
+ m_boundElementArrayBuffer(this, nullptr),
m_isAllEnabledAttribBufferBound(true) {
m_arrayBufferList.resize(ctx->maxVertexAttribs());
m_attribEnabled.resize(ctx->maxVertexAttribs());
@@ -94,7 +94,7 @@ void WebGLVertexArrayObjectBase::setArrayBufferForAttrib(GLuint index,
if (m_arrayBufferList[index])
m_arrayBufferList[index]->onDetached(context()->contextGL());
- m_arrayBufferList[index] = buffer;
+ m_arrayBufferList[index] = TraceWrapperMember<WebGLBuffer>(this, buffer);
updateAttribBufferBoundStatus();
}
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698