Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cab3d2d0f36fb12a72dbd9a57b798c8be347fc8e
      
https://github.com/WebKit/WebKit/commit/cab3d2d0f36fb12a72dbd9a57b798c8be347fc8e
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M Source/WebCore/Modules/webxr/WebXRSession.cpp
    M Source/WebCore/Modules/webxr/WebXRSession.h
    M Source/WebCore/Modules/webxr/XRProjectionLayer.cpp
    M Source/WebCore/platform/xr/PlatformXR.h
    M Source/WebKit/Shared/XR/XRDeviceProxy.cpp
    M Source/WebKit/Shared/XR/XRDeviceProxy.h
    M Source/WebKit/UIProcess/XR/PlatformXRCoordinator.h
    M Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp
    M Source/WebKit/UIProcess/XR/PlatformXRSystem.h
    M Source/WebKit/UIProcess/XR/xros/PlatformXRCompositor.mm
    M 
Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRProjectionLayerProxy.cpp
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.cpp
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.h
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.messages.in

  Log Message:
  -----------
  XRProjectionLayer returns incorrect values for width, height, and layer count
https://bugs.webkit.org/show_bug.cgi?id=316015
rdar://178444052

Reviewed by Dan Glastonbury.

It's possible to determine the width and height from the XRGPUSubImage but the
spec requires us to implement the properties on the XRProjectionLayer too and
we had failed to do so.

* Source/WebCore/Modules/WebGPU/Implementation/WebGPUXRProjectionLayerImpl.cpp:
(WebCore::WebGPU::XRProjectionLayerImpl::colorTextureWidth const):
(WebCore::WebGPU::XRProjectionLayerImpl::colorTextureHeight const):
(WebCore::WebGPU::XRProjectionLayerImpl::colorTextureArrayLength const):
* Source/WebGPU/WebGPU/WebGPU.h:
* Source/WebGPU/WebGPU/XRProjectionLayer.h:
* Source/WebGPU/WebGPU/XRProjectionLayer.mm:
(WebGPU::XRProjectionLayer::colorTextureWidth const):
(WebGPU::XRProjectionLayer::colorTextureHeight const):
(WebGPU::XRProjectionLayer::colorTextureArrayLength const):
(wgpuXRProjectionLayerColorTextureWidth):
(wgpuXRProjectionLayerColorTextureHeight):
(wgpuXRProjectionLayerColorTextureArrayLength):
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRProjectionLayer.cpp:
(WebKit::RemoteXRProjectionLayer::colorTextureDimensions):
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRProjectionLayer.h:
* Source/WebKit/GPUProcess/graphics/WebGPU/RemoteXRProjectionLayer.messages.in:
* Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRProjectionLayerProxy.cpp:
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::startFrame):
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::cachedColorTextureDimensions 
const const):
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::colorTextureWidth const):
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::colorTextureHeight const):
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::colorTextureArrayLength const):
(WebKit::WebGPU::RemoteXRProjectionLayerProxy::fixedFoveation const):
* Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteXRProjectionLayerProxy.h:

Canonical link: https://commits.webkit.org/314658@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to