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

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

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + address Ken's comment 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/WebGLFramebuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
index 0401fe7f747e97c2c386a25d5d09a0fd216714b4..c16f55982685dabcb337c142534713aa17bc4589 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
@@ -422,9 +422,11 @@ GLenum WebGLFramebuffer::getDrawBuffer(GLenum drawBuffer)
return GL_NONE;
}
-ScopedPersistent<v8::Array>* WebGLFramebuffer::getPersistentCache()
+void WebGLFramebuffer::visitChildDOMWrappers(v8::Isolate* isolate, const v8::Persistent<v8::Object>& wrapper)
{
- return &m_attachmentWrappers;
+ for (const auto& kv : m_attachments) {
haraken 2016/09/02 19:08:41 kv => attachement Blink prefers a fully qualified
Kai Ninomiya 2016/09/03 01:02:05 Done.
+ DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, kv.value->object(), isolate);
+ }
}
DEFINE_TRACE(WebGLFramebuffer)

Powered by Google App Engine
This is Rietveld 408576698