Loading dom/canvas/WebGL2ContextSamplers.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,10 @@ WebGL2Context::IsSampler(const WebGLSampler* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsSampler(obj->mGLName); if (obj->IsDeleteRequested()) return false; return true; } void Loading dom/canvas/WebGL2ContextTransformFeedback.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,10 @@ WebGL2Context::IsTransformFeedback(const WebGLTransformFeedback* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsTransformFeedback(obj->mGLName); if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } void Loading Loading @@ -90,6 +93,7 @@ WebGL2Context::BindTransformFeedback(GLenum target, WebGLTransformFeedback* tf) if (mBoundTransformFeedback) { mBoundTransformFeedback->AddBufferBindCounts(+1); mBoundTransformFeedback->mHasBeenBound = true; } } Loading dom/canvas/WebGLContext.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -2493,7 +2493,10 @@ WebGLContext::ValidateIsObject(const WebGLDeletableObject* const object) const if (!object->IsCompatibleWithContext(this)) return false; return !object->IsDeleted(); if (object->IsDeleted()) return false; return true; } bool Loading dom/canvas/WebGLContextGL.cpp +23 −15 Original line number Diff line number Diff line Loading @@ -147,9 +147,7 @@ WebGLContext::BindFramebuffer(GLenum target, WebGLFramebuffer* wfb) } else { GLuint framebuffername = wfb->mGLName; gl->fBindFramebuffer(target, framebuffername); #ifdef ANDROID wfb->mIsFB = true; #endif wfb->mHasBeenBound = true; } switch (target) { Loading Loading @@ -1065,7 +1063,10 @@ WebGLContext::IsBuffer(const WebGLBuffer* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsBuffer(obj->mGLName); if (obj->IsDeleteRequested()) return false; return obj->Content() != WebGLBuffer::Kind::Undefined; } bool Loading @@ -1075,15 +1076,10 @@ WebGLContext::IsFramebuffer(const WebGLFramebuffer* const obj) if (!ValidateIsObject(obj)) return false; #ifdef ANDROID if (gl->WorkAroundDriverBugs() && gl->Renderer() == GLRenderer::AndroidEmulator) { return obj->mIsFB; } #endif if (obj->IsDeleteRequested()) return false; return gl->fIsFramebuffer(obj->mGLName); return obj->mHasBeenBound; } bool Loading @@ -1100,7 +1096,10 @@ WebGLContext::IsQuery(const WebGLQuery* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsQuery(); if (obj->IsDeleteRequested()) return false; return bool(obj->Target()); } bool Loading @@ -1110,6 +1109,9 @@ WebGLContext::IsRenderbuffer(const WebGLRenderbuffer* const obj) if (!ValidateIsObject(obj)) return false; if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } Loading @@ -1127,7 +1129,10 @@ WebGLContext::IsTexture(const WebGLTexture* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsTexture(); if (obj->IsDeleteRequested()) return false; return bool(obj->Target()); } bool Loading @@ -1137,7 +1142,10 @@ WebGLContext::IsVertexArray(const WebGLVertexArray* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsVertexArray(); if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } // - Loading dom/canvas/WebGLContextUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -702,8 +702,8 @@ WebGLContext::AssertCachedBindings() const GetAndFlushUnderlyingGLErrors(); if (IsWebGL2() || IsExtensionEnabled(WebGLExtensionID::OES_vertex_array_object)) { GLuint bound = mBoundVertexArray ? mBoundVertexArray->GLName() : 0; AssertUintParamCorrect(gl, LOCAL_GL_VERTEX_ARRAY_BINDING, bound); AssertUintParamCorrect(gl, LOCAL_GL_VERTEX_ARRAY_BINDING, mBoundVertexArray->mGLName); } GLint stencilBits = 0; Loading Loading
dom/canvas/WebGL2ContextSamplers.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,10 @@ WebGL2Context::IsSampler(const WebGLSampler* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsSampler(obj->mGLName); if (obj->IsDeleteRequested()) return false; return true; } void Loading
dom/canvas/WebGL2ContextTransformFeedback.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,10 @@ WebGL2Context::IsTransformFeedback(const WebGLTransformFeedback* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsTransformFeedback(obj->mGLName); if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } void Loading Loading @@ -90,6 +93,7 @@ WebGL2Context::BindTransformFeedback(GLenum target, WebGLTransformFeedback* tf) if (mBoundTransformFeedback) { mBoundTransformFeedback->AddBufferBindCounts(+1); mBoundTransformFeedback->mHasBeenBound = true; } } Loading
dom/canvas/WebGLContext.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -2493,7 +2493,10 @@ WebGLContext::ValidateIsObject(const WebGLDeletableObject* const object) const if (!object->IsCompatibleWithContext(this)) return false; return !object->IsDeleted(); if (object->IsDeleted()) return false; return true; } bool Loading
dom/canvas/WebGLContextGL.cpp +23 −15 Original line number Diff line number Diff line Loading @@ -147,9 +147,7 @@ WebGLContext::BindFramebuffer(GLenum target, WebGLFramebuffer* wfb) } else { GLuint framebuffername = wfb->mGLName; gl->fBindFramebuffer(target, framebuffername); #ifdef ANDROID wfb->mIsFB = true; #endif wfb->mHasBeenBound = true; } switch (target) { Loading Loading @@ -1065,7 +1063,10 @@ WebGLContext::IsBuffer(const WebGLBuffer* const obj) if (!ValidateIsObject(obj)) return false; return gl->fIsBuffer(obj->mGLName); if (obj->IsDeleteRequested()) return false; return obj->Content() != WebGLBuffer::Kind::Undefined; } bool Loading @@ -1075,15 +1076,10 @@ WebGLContext::IsFramebuffer(const WebGLFramebuffer* const obj) if (!ValidateIsObject(obj)) return false; #ifdef ANDROID if (gl->WorkAroundDriverBugs() && gl->Renderer() == GLRenderer::AndroidEmulator) { return obj->mIsFB; } #endif if (obj->IsDeleteRequested()) return false; return gl->fIsFramebuffer(obj->mGLName); return obj->mHasBeenBound; } bool Loading @@ -1100,7 +1096,10 @@ WebGLContext::IsQuery(const WebGLQuery* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsQuery(); if (obj->IsDeleteRequested()) return false; return bool(obj->Target()); } bool Loading @@ -1110,6 +1109,9 @@ WebGLContext::IsRenderbuffer(const WebGLRenderbuffer* const obj) if (!ValidateIsObject(obj)) return false; if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } Loading @@ -1127,7 +1129,10 @@ WebGLContext::IsTexture(const WebGLTexture* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsTexture(); if (obj->IsDeleteRequested()) return false; return bool(obj->Target()); } bool Loading @@ -1137,7 +1142,10 @@ WebGLContext::IsVertexArray(const WebGLVertexArray* const obj) if (!ValidateIsObject(obj)) return false; return obj->IsVertexArray(); if (obj->IsDeleteRequested()) return false; return obj->mHasBeenBound; } // - Loading
dom/canvas/WebGLContextUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -702,8 +702,8 @@ WebGLContext::AssertCachedBindings() const GetAndFlushUnderlyingGLErrors(); if (IsWebGL2() || IsExtensionEnabled(WebGLExtensionID::OES_vertex_array_object)) { GLuint bound = mBoundVertexArray ? mBoundVertexArray->GLName() : 0; AssertUintParamCorrect(gl, LOCAL_GL_VERTEX_ARRAY_BINDING, bound); AssertUintParamCorrect(gl, LOCAL_GL_VERTEX_ARRAY_BINDING, mBoundVertexArray->mGLName); } GLint stencilBits = 0; Loading