[webkit-changes] [289106] trunk/Source/WebCore

2022-02-03 Thread clord
Title: [289106] trunk/Source/WebCore








Revision 289106
Author cl...@igalia.com
Date 2022-02-03 23:16:39 -0800 (Thu, 03 Feb 2022)


Log Message
[GTK][WPE] Use dmabuf when possible to transfer ANGLE rendering to the compositor
https://bugs.webkit.org/show_bug.cgi?id=235946

Reviewed by Žan Doberšek.

Use dmabuf when available to transfer ANGLE WebGL rendering contents
to the compositor.

No new tests, no change in behaviour.

* PlatformGTK.cmake:
* PlatformWPE.cmake:
* SourcesGTK.txt:
* SourcesWPE.txt:
* platform/TextureMapper.cmake:
* platform/graphics/OpenGLShims.cpp:
(WebCore::initializeOpenGLShims):
* platform/graphics/OpenGLShims.h:
* platform/graphics/angle/GraphicsContextGLANGLE.cpp:
(WebCore::GraphicsContextGLANGLE::prepareTextureImpl):
* platform/graphics/angle/GraphicsContextGLANGLE.h:
* platform/graphics/egl/GLContextEGL.cpp:
(WebCore::GLContextEGL::GLContextEGL):
(WebCore::GLContextEGL::createImage const):
(WebCore::GLContextEGL::destroyImage const):
* platform/graphics/egl/GLContextEGL.h:
* platform/graphics/gbm/GBMDevice.cpp: Added.
(WebCore::threadSpecificDevice):
(WebCore::GBMDevice::get):
(WebCore::GBMDevice::GBMDevice):
(WebCore::GBMDevice::~GBMDevice):
* platform/graphics/gbm/GBMDevice.h: Added.
(WebCore::GBMDevice::device const):
* platform/graphics/nicosia/texmap/NicosiaGCGLANGLEPipe.cpp:
(Nicosia::GCGLANGLEPipeSource::swapBuffersIfNeeded):
* platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp:
(WebCore::GraphicsContextGLANGLE::GraphicsContextGLANGLE):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::EGLImageBacking):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::~EGLImageBacking):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::format const):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::stride const):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::releaseResources):
(WebCore::GraphicsContextGLANGLE::EGLImageBacking::reset):
(WebCore::GraphicsContextGLANGLE::~GraphicsContextGLANGLE):
(WebCore::GraphicsContextGLANGLE::reshapeDisplayBufferBacking):
* platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h:
(WebCore::TextureMapperPlatformLayerBuffer::textureVariant const):
(WebCore::TextureMapperPlatformLayerBuffer::size const):
(WebCore::TextureMapperPlatformLayerBuffer::textureVariant): Deleted.
* platform/graphics/texmap/TextureMapperPlatformLayerDmabuf.cpp: Added.
(WebCore::createFourCC):
(WebCore::fourCCToGLFormat):
(WebCore::formatHasAlpha):
(WebCore::TextureMapperPlatformLayerDmabuf::TextureMapperPlatformLayerDmabuf):
(WebCore::m_fd):
(WebCore::TextureMapperPlatformLayerDmabuf::~TextureMapperPlatformLayerDmabuf):
(WebCore::TextureMapperPlatformLayerDmabuf::validateTexture):
(WebCore::TextureMapperPlatformLayerDmabuf::paintToTextureMapper):
(WebCore::TextureMapperPlatformLayerDmabuf::clone):
* platform/graphics/texmap/TextureMapperPlatformLayerDmabuf.h: Added.

Modified Paths

trunk/Source/WebCore/ChangeLog
trunk/Source/WebCore/PlatformGTK.cmake
trunk/Source/WebCore/PlatformWPE.cmake
trunk/Source/WebCore/SourcesGTK.txt
trunk/Source/WebCore/SourcesWPE.txt
trunk/Source/WebCore/platform/TextureMapper.cmake
trunk/Source/WebCore/platform/graphics/OpenGLShims.cpp
trunk/Source/WebCore/platform/graphics/OpenGLShims.h
trunk/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
trunk/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h
trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.h
trunk/Source/WebCore/platform/graphics/nicosia/texmap/NicosiaGCGLANGLEPipe.cpp
trunk/Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.cpp
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerBuffer.h


Added Paths

trunk/Source/WebCore/platform/graphics/gbm/
trunk/Source/WebCore/platform/graphics/gbm/GBMDevice.cpp
trunk/Source/WebCore/platform/graphics/gbm/GBMDevice.h
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerDmabuf.cpp
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerDmabuf.h




Diff

Modified: trunk/Source/WebCore/ChangeLog (289105 => 289106)

--- trunk/Source/WebCore/ChangeLog	2022-02-04 06:58:12 UTC (rev 289105)
+++ trunk/Source/WebCore/ChangeLog	2022-02-04 07:16:39 UTC (rev 289106)
@@ -1,3 +1,66 @@
+2022-02-03  Chris Lord  
+
+[GTK][WPE] Use dmabuf when possible to transfer ANGLE rendering to the compositor
+https://bugs.webkit.org/show_bug.cgi?id=235946
+
+Reviewed by Žan Doberšek.
+
+Use dmabuf when available to transfer ANGLE WebGL rendering contents
+to the compositor.
+
+No new tests, no change in behaviour.
+
+* PlatformGTK.cmake:
+* PlatformWPE.cmake:
+* SourcesGTK.txt:
+* SourcesWPE.txt:
+* platform/TextureMapper.cmake:
+* platform/graphics/OpenGLShims.cpp:
+(WebCore::initializeOpenGLShims):
+* platform/graphics/OpenGLShims.h:
+* 

[webkit-changes] [289105] trunk/LayoutTests/imported/w3c

2022-02-03 Thread jonlee
Title: [289105] trunk/LayoutTests/imported/w3c








Revision 289105
Author jon...@apple.com
Date 2022-02-03 22:58:12 -0800 (Thu, 03 Feb 2022)


Log Message
Pull selective WPT tests in preparation of https://bugs.webkit.org/show_bug.cgi?id=235685

These remove the empty .
* web-platform-tests/css/css-flexbox/align-content-001.htm:
* web-platform-tests/css/css-flexbox/align-content-002.htm:
* web-platform-tests/css/css-flexbox/align-content-003.htm:
* web-platform-tests/css/css-flexbox/align-content-004.htm:
* web-platform-tests/css/css-flexbox/align-content-005.htm:
* web-platform-tests/css/css-flexbox/align-items-001.htm:
* web-platform-tests/css/css-flexbox/align-items-002.htm:
* web-platform-tests/css/css-flexbox/align-items-003.htm:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-017.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-018.html:
* web-platform-tests/css/css-values/angle-units-002.html:
* web-platform-tests/css/css-values/angle-units-003.html:
* web-platform-tests/css/css-values/angle-units-004.html:
* web-platform-tests/css/css-values/angle-units-005.html:

Convert tabs to spaces.
* web-platform-tests/css/css-variables/vars-background-shorthand-001.html:

Modified Paths

trunk/LayoutTests/imported/w3c/ChangeLog
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-001.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-002.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-003.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-004.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-005.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-items-001.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-items-002.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-items-003.htm
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-017.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-018.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-values/angle-units-002.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-values/angle-units-003.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-values/angle-units-004.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-values/angle-units-005.html
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-variables/vars-background-shorthand-001.html




Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (289104 => 289105)

--- trunk/LayoutTests/imported/w3c/ChangeLog	2022-02-04 06:37:14 UTC (rev 289104)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2022-02-04 06:58:12 UTC (rev 289105)
@@ -1,3 +1,26 @@
+2022-02-03  Jon Lee  
+
+Pull selective WPT tests in preparation of https://bugs.webkit.org/show_bug.cgi?id=235685
+
+These remove the empty .
+* web-platform-tests/css/css-flexbox/align-content-001.htm:
+* web-platform-tests/css/css-flexbox/align-content-002.htm:
+* web-platform-tests/css/css-flexbox/align-content-003.htm:
+* web-platform-tests/css/css-flexbox/align-content-004.htm:
+* web-platform-tests/css/css-flexbox/align-content-005.htm:
+* web-platform-tests/css/css-flexbox/align-items-001.htm:
+* web-platform-tests/css/css-flexbox/align-items-002.htm:
+* web-platform-tests/css/css-flexbox/align-items-003.htm:
+* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-017.html:
+* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-018.html:
+* web-platform-tests/css/css-values/angle-units-002.html:
+* web-platform-tests/css/css-values/angle-units-003.html:
+* web-platform-tests/css/css-values/angle-units-004.html:
+* web-platform-tests/css/css-values/angle-units-005.html:
+
+Convert tabs to spaces.
+* web-platform-tests/css/css-variables/vars-background-shorthand-001.html:
+
 2022-02-03  Ziran Sun  
 
 [Forms] Value doesn't change for stepUp()/stepDown() with out of range values


Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-001.htm (289104 => 289105)

--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-001.htm	2022-02-04 06:37:14 UTC (rev 289104)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/align-content-001.htm	2022-02-04 06:58:12 UTC (rev 289105)
@@ -6,7 +6,6 @@
 
 
 
-
 
 
 #flexbox