Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a258d90c0cadfb539a4472069a4874ecd646ac64
https://github.com/WebKit/WebKit/commit/a258d90c0cadfb539a4472069a4874ecd646ac64
Author: Carlos Garcia Campos <[email protected]>
Date: 2024-07-30 (Tue, 30 Jul 2024)
Changed paths:
M Source/WebCore/PlatformPlayStation.cmake
M Source/WebCore/PlatformWin.cmake
M Source/WebCore/SourcesGTK.txt
M Source/WebCore/SourcesWPE.txt
M Source/WebCore/platform/graphics/PlatformDisplay.cpp
M Source/WebCore/platform/graphics/PlatformDisplay.h
M Source/WebCore/platform/graphics/egl/GLFence.cpp
M Source/WebCore/platform/graphics/egl/GLFence.h
A Source/WebCore/platform/graphics/egl/GLFenceEGL.cpp
A Source/WebCore/platform/graphics/egl/GLFenceEGL.h
A Source/WebCore/platform/graphics/egl/GLFenceGL.cpp
A Source/WebCore/platform/graphics/egl/GLFenceGL.h
Log Message:
-----------
[GTK][WPE] Add support for EGL fences
https://bugs.webkit.org/show_bug.cgi?id=277141
Reviewed by Miguel Gomez.
For explicit sync support we need to use the EGL API to create the
fences to be able to use the EGL_ANDROID_native_fence_sync extension.
So, we can make it possible to create a GLFence with either gl or egl
APIs depending on what we need and what's available.
There's no change in behavior in this patch, but now that we have EGL
fences we prefer to use them when available if server wait is supported.
* Source/WebCore/PlatformPlayStation.cmake:
* Source/WebCore/PlatformWin.cmake:
* Source/WebCore/SourcesGTK.txt:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/graphics/PlatformDisplay.cpp:
(WebCore::PlatformDisplay::initializeEGLDisplay):
* Source/WebCore/platform/graphics/PlatformDisplay.h:
* Source/WebCore/platform/graphics/egl/GLFence.cpp:
(WebCore::GLFence::capabilities):
(WebCore::GLFence::isSupported):
(WebCore::GLFence::create):
(WebCore::GLFence::createExportable):
(WebCore::GLFence::importFD):
(WebCore::GLFence::GLFence): Deleted.
(WebCore::GLFence::~GLFence): Deleted.
(WebCore::GLFence::wait): Deleted.
* Source/WebCore/platform/graphics/egl/GLFence.h:
(WebCore::GLFence::exportFD):
* Source/WebCore/platform/graphics/egl/GLFenceEGL.cpp: Added.
(WebCore::createEGLFence):
(WebCore::GLFenceEGL::create):
(WebCore::GLFenceEGL::createExportable):
(WebCore::GLFenceEGL::importFD):
(WebCore::GLFenceEGL::GLFenceEGL):
(WebCore::GLFenceEGL::~GLFenceEGL):
(WebCore::GLFenceEGL::clientWait):
(WebCore::GLFenceEGL::serverWait):
(WebCore::GLFenceEGL::exportFD):
* Source/WebCore/platform/graphics/egl/GLFenceEGL.h: Added.
* Source/WebCore/platform/graphics/egl/GLFenceGL.cpp: Added.
(WebCore::GLFenceGL::create):
(WebCore::GLFenceGL::GLFenceGL):
(WebCore::GLFenceGL::~GLFenceGL):
(WebCore::GLFenceGL::clientWait):
(WebCore::GLFenceGL::serverWait):
* Source/WebCore/platform/graphics/egl/GLFenceGL.h: Added.
Canonical link: https://commits.webkit.org/281558@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes