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

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

Issue 2401893002: [wrapper-tracing] WebGL and friends: Add write barriers (Closed)
Patch Set: 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 09a23f0821d73aed880d2746210505353e6575ee..94c2779a91bcb88efaf0e7db3c4a255cb5aee3a0 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp
@@ -4,6 +4,7 @@
#include "modules/webgl/WebGLVertexArrayObjectBase.h"
+#include "bindings/core/v8/ScriptWrappableVisitor.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "modules/webgl/WebGLRenderingContextBase.h"
@@ -80,6 +81,7 @@ void WebGLVertexArrayObjectBase::setElementArrayBuffer(WebGLBuffer* buffer) {
if (m_boundElementArrayBuffer)
m_boundElementArrayBuffer->onDetached(context()->contextGL());
m_boundElementArrayBuffer = buffer;
+ ScriptWrappableVisitor::writeBarrier(this, m_boundElementArrayBuffer);
}
WebGLBuffer* WebGLVertexArrayObjectBase::getArrayBufferForAttrib(size_t index) {
@@ -95,6 +97,7 @@ void WebGLVertexArrayObjectBase::setArrayBufferForAttrib(GLuint index,
m_arrayBufferList[index]->onDetached(context()->contextGL());
m_arrayBufferList[index] = buffer;
+ ScriptWrappableVisitor::writeBarrier(this, m_arrayBufferList[index]);
updateAttribBufferBoundStatus();
}

Powered by Google App Engine
This is Rietveld 408576698