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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLProgram.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/WebGLProgram.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp b/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp
index a0c047befdbadad7e0ab7cd4f4850d8415e9b9a7..8b37ee499751a11c6e22b4a7db1c8ec0a0476fbd 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp
@@ -25,6 +25,7 @@
#include "modules/webgl/WebGLProgram.h"
+#include "bindings/core/v8/ScriptWrappableVisitor.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "modules/webgl/WebGLContextGroup.h"
#include "modules/webgl/WebGLRenderingContextBase.h"
@@ -106,11 +107,13 @@ bool WebGLProgram::attachShader(WebGLShader* shader) {
if (m_vertexShader)
return false;
m_vertexShader = shader;
+ ScriptWrappableVisitor::writeBarrier(this, m_vertexShader);
return true;
case GL_FRAGMENT_SHADER:
if (m_fragmentShader)
return false;
m_fragmentShader = shader;
+ ScriptWrappableVisitor::writeBarrier(this, m_fragmentShader);
return true;
default:
return false;

Powered by Google App Engine
This is Rietveld 408576698