| Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| index 7cfd619db6c863d5bdcb01e239d49562bad9dadb..31291999089db8347a6400cd042fa673fb237b6d 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
|
| @@ -321,11 +321,11 @@ void WebGL2RenderingContextBase::framebufferTextureLayer(ScriptState* scriptStat
|
| // We divide it here so in WebGLFramebuffer, we don't have to handle DEPTH_STENCIL_ATTACHMENT in WebGL 2.
|
| framebufferBinding->setAttachmentForBoundFramebuffer(target, GL_DEPTH_ATTACHMENT, textarget, texture, level, layer);
|
| framebufferBinding->setAttachmentForBoundFramebuffer(target, GL_STENCIL_ATTACHMENT, textarget, texture, level, layer);
|
| - preserveObjectWrapper(scriptState, framebufferBinding, V8HiddenValue::webglAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), GL_DEPTH_ATTACHMENT, texture);
|
| - preserveObjectWrapper(scriptState, framebufferBinding, V8HiddenValue::webglAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), GL_STENCIL_ATTACHMENT, texture);
|
| + preserveObjectWrapper(scriptState, framebufferBinding, V8PrivateProperty::getWebGLFramebufferAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), GL_DEPTH_ATTACHMENT, texture);
|
| + preserveObjectWrapper(scriptState, framebufferBinding, V8PrivateProperty::getWebGLFramebufferAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), GL_STENCIL_ATTACHMENT, texture);
|
| } else {
|
| framebufferBinding->setAttachmentForBoundFramebuffer(target, attachment, textarget, texture, level, layer);
|
| - preserveObjectWrapper(scriptState, framebufferBinding, V8HiddenValue::webglAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), attachment, texture);
|
| + preserveObjectWrapper(scriptState, framebufferBinding, V8PrivateProperty::getWebGLFramebufferAttachments(scriptState->isolate()), framebufferBinding->getPersistentCache(), attachment, texture);
|
| }
|
| applyStencilTest();
|
| }
|
| @@ -1778,7 +1778,7 @@ void WebGL2RenderingContextBase::beginQuery(ScriptState* scriptState, GLenum tar
|
| query->setTarget(target);
|
|
|
| contextGL()->BeginQueryEXT(target, query->object());
|
| - preserveObjectWrapper(scriptState, this, V8HiddenValue::webglQueries(scriptState->isolate()), &m_queryWrappers, static_cast<uint32_t>(target), query);
|
| + preserveObjectWrapper(scriptState, this, V8PrivateProperty::getWebGLRenderingContextQueries(scriptState->isolate()), &m_queryWrappers, static_cast<uint32_t>(target), query);
|
| }
|
|
|
| void WebGL2RenderingContextBase::endQuery(GLenum target)
|
| @@ -1938,7 +1938,7 @@ void WebGL2RenderingContextBase::bindSampler(ScriptState* scriptState, GLuint un
|
|
|
| contextGL()->BindSampler(unit, objectOrZero(sampler));
|
|
|
| - preserveObjectWrapper(scriptState, this, V8HiddenValue::webglSamplers(scriptState->isolate()), &m_samplerWrappers, static_cast<uint32_t>(unit), sampler);
|
| + preserveObjectWrapper(scriptState, this, V8PrivateProperty::getWebGLRenderingContextSamplers(scriptState->isolate()), &m_samplerWrappers, static_cast<uint32_t>(unit), sampler);
|
| }
|
|
|
| void WebGL2RenderingContextBase::samplerParameter(WebGLSampler* sampler, GLenum pname, GLfloat paramf, GLint parami, bool isFloat)
|
| @@ -2197,7 +2197,7 @@ void WebGL2RenderingContextBase::bindTransformFeedback(ScriptState* scriptState,
|
| contextGL()->BindTransformFeedback(target, objectOrZero(feedback));
|
| if (feedback) {
|
| feedback->setTarget(target);
|
| - preserveObjectWrapper(scriptState, this, V8HiddenValue::webglMisc(scriptState->isolate()), &m_miscWrappers, static_cast<uint32_t>(PreservedTransformFeedback), feedback);
|
| + preserveObjectWrapper(scriptState, this, V8PrivateProperty::getWebGLRenderingContextMisc(scriptState->isolate()), &m_miscWrappers, static_cast<uint32_t>(PreservedTransformFeedback), feedback);
|
| }
|
|
|
| }
|
| @@ -2738,7 +2738,7 @@ void WebGL2RenderingContextBase::bindFramebuffer(ScriptState* scriptState, GLenu
|
|
|
| setFramebuffer(target, buffer);
|
| if (scriptState) {
|
| - preserveObjectWrapper(scriptState, this, V8HiddenValue::webglMisc(scriptState->isolate()), &m_miscWrappers, static_cast<uint32_t>(PreservedFramebuffer), buffer);
|
| + preserveObjectWrapper(scriptState, this, V8PrivateProperty::getWebGLRenderingContextMisc(scriptState->isolate()), &m_miscWrappers, static_cast<uint32_t>(PreservedFramebuffer), buffer);
|
| }
|
| }
|
|
|
|
|