Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WinCairo] Enable USE_ANGLE
https://bugs.webkit.org/show_bug.cgi?id=219421 Reviewed by Don Olmstead. .: * Source/cmake/OptionsWinCairo.cmake: Source/ThirdParty/ANGLE: * CMakeLists.txt: Added entry_points_egl_ext.h to libglesv2_entry_points_headers. Source/WebCore: Switch GraphicsContextGLOpenGL implementation from old one (GraphicsContextGLOpenGLES.cpp) to new one (GraphicsContextGLANGLE.cpp), which is using ANGLE's internal API and verification code, for WinCairo port. I will enable WebGL2 for WinCairo in a follow-up patch. GL_TEXTURE_RECTANGLE_ANGLE is not available for ANGLE D3D backend. Use GL_TEXTURE_2D instead. Add a new class WebCore::ANGLEContext by copying Nicosia::GCGLANGLELayer::ANGLEContext. It'd be better to merge them after GTK and WPE will also switch. * PlatformWin.cmake: * platform/TextureMapper.cmake: * platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): (WebCore::GraphicsContextGLOpenGL::compileShader): * platform/graphics/opengl/GraphicsContextGLOpenGL.h: * platform/graphics/texmap/ANGLEContext.cpp: Added. (WebCore::ANGLEContext::errorString): (WebCore::ANGLEContext::lastErrorString): (WebCore::ANGLEContext::createContext): (WebCore::ANGLEContext::ANGLEContext): (WebCore::ANGLEContext::~ANGLEContext): (WebCore::ANGLEContext::makeContextCurrent): (WebCore::ANGLEContext::platformContext const): * platform/graphics/texmap/ANGLEContext.h: Added. * platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp: (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::isGLES2Compliant const): (WebCore::GraphicsContextGLOpenGL::drawingBufferTextureTarget): * platform/graphics/texmap/TextureMapperGCGLPlatformLayer.cpp: (WebCore::TextureMapperGCGLPlatformLayer::TextureMapperGCGLPlatformLayer): (WebCore::TextureMapperGCGLPlatformLayer::paintToTextureMapper): * platform/graphics/texmap/TextureMapperGCGLPlatformLayer.h: LayoutTests: * platform/wincairo/TestExpectations: Canonical link: https://commits.webkit.org/232533@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
401 additions
and 56 deletions.
- +9 −0 ChangeLog
- +9 −0 LayoutTests/ChangeLog
- +8 −12 LayoutTests/platform/wincairo/TestExpectations
- +1 −0 Source/ThirdParty/ANGLE/CMakeLists.txt
- +9 −0 Source/ThirdParty/ANGLE/ChangeLog
- +44 −0 Source/WebCore/ChangeLog
- +5 −5 Source/WebCore/PlatformWin.cmake
- +4 −0 Source/WebCore/platform/TextureMapper.cmake
- +18 −12 Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
- +3 −1 Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.h
- +178 −0 Source/WebCore/platform/graphics/texmap/ANGLEContext.cpp
- +65 −0 Source/WebCore/platform/graphics/texmap/ANGLEContext.h
- +34 −18 Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp
- +10 −6 Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.cpp
- +2 −2 Source/WebCore/platform/graphics/texmap/TextureMapperGCGLPlatformLayer.h
- +2 −0 Source/cmake/OptionsWinCairo.cmake
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
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
Oops, something went wrong.