Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WebGL] Skip vertexAttrib0 simulation when using ANGLE
https://bugs.webkit.org/show_bug.cgi?id=209416 <rdar://problem/60765734> Reviewed by Antoine Quint. Source/WebCore: When using ANGLE as a backend, we do not need to simulate a missing vertexAttrib0 at the WebGL layer, since ANGLE will handle it for us. This causes a couple of tests to begin passing (they were marked as failures). It also allows us to re-land r258025, which was rolled out in r258226. * html/canvas/WebGL2RenderingContext.cpp: Wrap any code that does vertexAttrib0 simulation in a !USE(ANGLE). (WebCore::WebGL2RenderingContext::initializeVertexArrayObjects): * html/canvas/WebGLRenderingContext.cpp: (WebCore::WebGLRenderingContext::initializeVertexArrayObjects): * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::~WebGLRenderingContextBase): (WebCore::WebGLRenderingContextBase::disableVertexAttribArray): (WebCore::WebGLRenderingContextBase::validateDrawArrays): (WebCore::WebGLRenderingContextBase::validateDrawElements): (WebCore::WebGLRenderingContextBase::drawArrays): (WebCore::WebGLRenderingContextBase::drawElements): (WebCore::WebGLRenderingContextBase::getActiveUniform): (WebCore::WebGLRenderingContextBase::getVertexAttrib): (WebCore::WebGLRenderingContextBase::vertexAttribfImpl): (WebCore::WebGLRenderingContextBase::vertexAttribfvImpl): * html/canvas/WebGLRenderingContextBase.h: * html/canvas/WebGLVertexArrayObjectBase.cpp: (WebCore::WebGLVertexArrayObjectBase::unbindBuffer): LayoutTests: Remove the console logging that is no longer output when using ANGLE. Remove failing expectations for some tests. * fast/canvas/webgl/index-validation-with-subsequent-draws-expected.txt: * fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays-expected.txt: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/222371@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
106 additions
and 8 deletions.
- +15 −0 LayoutTests/ChangeLog
- +0 −2 LayoutTests/fast/canvas/webgl/index-validation-with-subsequent-draws-expected.txt
- +0 −1 LayoutTests/fast/canvas/webgl/out-of-bounds-simulated-vertexAttrib0-drawArrays-expected.txt
- +4 −0 LayoutTests/platform/ios-simulator/TestExpectations
- +0 −3 LayoutTests/platform/mac/TestExpectations
- +36 −0 Source/WebCore/ChangeLog
- +2 −0 Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
- +2 −0 Source/WebCore/html/canvas/WebGLRenderingContext.cpp
- +41 −2 Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
- +4 −0 Source/WebCore/html/canvas/WebGLRenderingContextBase.h
- +2 −0 Source/WebCore/html/canvas/WebGLVertexArrayObjectBase.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,3 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,2 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters