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

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

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style Created 4 years, 3 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 d113ab08ed92246a19c4d720c02706dc3f265b12..131865f956f8760a210f042631ac1d117834d13d 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLProgram.cpp
@@ -147,9 +147,10 @@ bool WebGLProgram::detachShader(WebGLShader* shader)
}
}
-ScopedPersistent<v8::Array>* WebGLProgram::getPersistentCache()
+void WebGLProgram::visitChildDOMWrappers(v8::Isolate* isolate, const v8::Persistent<v8::Object>& wrapper)
{
- return &m_shaderWrappers;
+ DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, m_vertexShader, isolate);
+ DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, m_fragmentShader, isolate);
}
void WebGLProgram::cacheInfoIfNeeded(WebGLRenderingContextBase* context)
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLProgram.h ('k') | third_party/WebKit/Source/modules/webgl/WebGLProgram.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698