Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 19bf33d025b917636e0decc5f0aba9f21ff063a1
https://github.com/WebKit/WebKit/commit/19bf33d025b917636e0decc5f0aba9f21ff063a1
Author: Sergio Villar Senin <[email protected]>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M LayoutTests/platform/glib/TestExpectations
A
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webxr/webxr_availability.http.sub-expected.txt
M LayoutTests/platform/gtk/TestExpectations
M LayoutTests/platform/gtk/fast/dom/navigator-detached-no-crash-expected.txt
M
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/feature-policy/reporting/xr-reporting.https-expected.txt
M LayoutTests/platform/wpe/TestExpectations
M Source/WTF/wtf/PlatformUse.h
M Source/WebCore/SourcesGTK.txt
M Source/WebCore/SourcesWPE.txt
A Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp
A Source/WebCore/platform/xr/openxr/PlatformXROpenXR.h
M Source/WebKit/PlatformGTK.cmake
M Source/WebKit/PlatformWPE.cmake
M Source/WebKit/SourcesGTK.txt
M Source/WebKit/SourcesWPE.txt
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebPageProxyInternals.h
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
M Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp
A Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.cpp
A Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.h
A Source/WebKit/UIProcess/XR/openxr/OpenXRUtils.h
A Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp
A Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.h
A Source/WebKit/UIProcess/XR/openxr/PlatformXRSystemOpenXR.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp
M Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h
M Source/WebKit/WebProcess/WebPage/WebPage.cpp
M Source/WebKit/WebProcess/WebPage/WebPage.h
M Source/cmake/FindOpenXR.cmake
M Source/cmake/OptionsGTK.cmake
M Source/cmake/OptionsWPE.cmake
Log Message:
-----------
[WebXR][GTK][WPE] Implement PlatformXrCoordinator::getPrimaryDeviceInfo()
https://bugs.webkit.org/show_bug.cgi?id=294843
Reviewed by Carlos Garcia Campos.
The PlatformXrCoordinator is one of the most important object in the UIProcess
related to XR. Among other things it's responsible for:
* retrieving info and capabilities of the XR device/system
* start/stop XR sessions
* schedule frame rendering
For GTK & WPE ports that coordinator is implemented using OpenXR. This PR
implements the method that retrieves the device capabilities as a first step.
* LayoutTests/platform/glib/TestExpectations:
*
LayoutTests/platform/glib/imported/w3c/web-platform-tests/webxr/webxr_availability.http.sub-expected.txt:
Added.
* LayoutTests/platform/gtk/TestExpectations: Unskipped tests.
* LayoutTests/platform/gtk/fast/dom/navigator-detached-no-crash-expected.txt:
*
LayoutTests/platform/gtk/imported/w3c/web-platform-tests/feature-policy/reporting/xr-reporting.https-expected.txt:
* LayoutTests/platform/wpe/TestExpectations: Unskipped tests.
* Source/WTF/wtf/PlatformUse.h:
* Source/WebCore/SourcesGTK.txt:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp: Added.
(PlatformXR::Instance::singleton):
(PlatformXR::Instance::Instance):
(PlatformXR::Instance::enumerateImmersiveXRDevices):
* Source/WebCore/platform/xr/openxr/PlatformXROpenXR.h: Added.
* Source/WebKit/PlatformGTK.cmake:
* Source/WebKit/PlatformWPE.cmake:
* Source/WebKit/SourcesGTK.txt:
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didAttachToRunningProcess):
(WebKit::WebPageProxy::resetState):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebPageProxyInternals.h:
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp:
* Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.cpp: Added.
(WebKit::OpenXRExtensions::create):
(WebKit::OpenXRExtensions::OpenXRExtensions):
(WebKit::OpenXRExtensions::loadMethods):
(WebKit::OpenXRExtensions::isExtensionSupported const):
* Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.h: Added.
* Source/WebKit/UIProcess/XR/openxr/OpenXRUtils.h: Added.
(WebKit::createOpenXRStruct):
(WebKit::checkXrResult):
* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp: Added.
(WebKit::OpenXRCoordinator::OpenXRCoordinator):
(WebKit::OpenXRCoordinator::~OpenXRCoordinator):
(WebKit::OpenXRCoordinator::getPrimaryDeviceInfo):
(WebKit::OpenXRCoordinator::createInstance):
(WebKit::OpenXRCoordinator::recommendedResolution const):
(WebKit::OpenXRCoordinator::collectViewConfigurations):
(WebKit::OpenXRCoordinator::initializeSystem):
(WebKit::OpenXRCoordinator::initializeDevice):
* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.h: Added.
* Source/WebKit/UIProcess/XR/openxr/PlatformXRSystemOpenXR.cpp: Added.
(WebKit::PlatformXRSystem::xrCoordinator):
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp:
* Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/cmake/FindOpenXR.cmake:
* Source/cmake/OptionsGTK.cmake:
* Source/cmake/OptionsWPE.cmake:
Canonical link: https://commits.webkit.org/296610@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