WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
297900
[WebXR] Unify WebXROpaqueFramebuffer and WebXROpaqueFramebufferCocoa
https://bugs.webkit.org/show_bug.cgi?id=297900
Summary
[WebXR] Unify WebXROpaqueFramebuffer and WebXROpaqueFramebufferCocoa
Carlos Garcia Campos
Reported
2025-08-26 06:31:41 PDT
Those are mostly the same except for a few bits that can be easily ifdefed.
Attachments
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2025-08-26 06:34:08 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/49881
Radar WebKit Bug Importer
Comment 2
2025-09-02 06:32:15 PDT
<
rdar://problem/159662988
>
EWS
Comment 3
2025-10-23 06:23:33 PDT
Committed
302027@main
(030d681521d7): <
https://commits.webkit.org/302027@main
> Reviewed commits have been landed. Closing PR #49881 and removing active labels.
Adrian Perez
Comment 4
2025-10-24 05:18:46 PDT
This broke the Android build, instead of the added ExternalTexture::isNull() method, what we have to do is define an “operator bool()“ for Cocoa: on Android we get the operator from RefPtr<AHardwareBuffer>, for non-Cocoa there was already an operator defined (line 332 of PlatformXR.cpp). The errors are: /home/aperez/devel/WebKit-Android/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:493:35: error: no member named 'isNull' in 'WTF::RefPtr<AHardwareBuffer>' 493 | if (!textureData.colorTexture.isNull()) | ~~~~~~~~~~~~~~~~~~~~~~~~ ^ /home/aperez/devel/WebKit-Android/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:531:49: error: no member named 'isNull' in 'WTF::RefPtr<AHardwareBuffer>' 531 | if (layerData.textureData->colorTexture.isNull()) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /home/aperez/devel/WebKit-Android/Source/WebCore/Modules/webxr/WebXROpaqueFramebuffer.cpp:540:56: error: no member named 'isNull' in 'WTF::RefPtr<AHardwareBuffer>' 540 | if (!layerData.textureData->depthStencilBuffer.isNull()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 3 errors generated.
Adrian Perez
Comment 5
2025-10-24 05:27:35 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/52954
EWS
Comment 6
2025-10-24 13:06:51 PDT
Committed
302109@main
(af9ccb99d5c4): <
https://commits.webkit.org/302109@main
> Reviewed commits have been landed. Closing PR #52954 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug