[webkit-changes] [WebKit/WebKit] 82a8c1: Use MTLSharedTexture for bounds calculation in WebXR
Dean Jackson
noreply at github.com
Sat Oct 15 16:15:51 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 82a8c10638a4093d33186e7da6d1c63f781f46f9
https://github.com/WebKit/WebKit/commit/82a8c10638a4093d33186e7da6d1c63f781f46f9
Author: Dean Jackson <dino at apple.com>
Date: 2022-10-15 (Sat, 15 Oct 2022)
Changed paths:
M Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp
M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.h
M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm
Log Message:
-----------
Use MTLSharedTexture for bounds calculation in WebXR
https://bugs.webkit.org/show_bug.cgi?id=246555
rdar://101195746
Reviewed by Antoine Quint.
The incoming IOSurface can't reliably be used for bounds calculation. It first
has to be turned back into a MTLTexture.
* Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:
(WebCore::WebXROpaqueFramebuffer::startFrame): Move the logic to test for the size
of the incoming texture until after we've associated the IOSurface with a MTLTexture.
(WebCore::WebXROpaqueFramebuffer::setupFramebuffer):
* Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.h:
* Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
(WebCore::GraphicsContextGLCocoa::attachIOSurfaceToSharedTexture): Return the width
and height of the texture along with the EGL image handle.
Canonical link: https://commits.webkit.org/255595@main
More information about the webkit-changes
mailing list