WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 213886
[WebXR] Retrieve WebGL framebuffer resolution from XR devices
https://bugs.webkit.org/show_bug.cgi?id=213886
Summary
[WebXR] Retrieve WebGL framebuffer resolution from XR devices
Sergio Villar Senin
Reported
2020-07-02 08:47:19 PDT
[WebXR] Retrieve WebGL framebuffer resolution from XR devices
Attachments
Patch
(15.68 KB, patch)
2020-07-02 09:08 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Patch
(15.74 KB, patch)
2020-07-03 00:47 PDT
,
Sergio Villar Senin
cgarcia
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2020-07-02 09:08:03 PDT
Created
attachment 403370
[details]
Patch
youenn fablet
Comment 2
2020-07-03 00:02:15 PDT
Comment on
attachment 403370
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403370&action=review
> Source/WebCore/Modules/webxr/WebXRRenderState.h:66 > + HTMLCanvasElement* m_outputCanvas { nullptr };
Can we use a WeakPtr<HTMLCanvasElement> instead? It is not set in this patch so it is unclear how should we use it. Also it seems this is only used for getting the size at the moment. In principle, we could store a size instead.
> Source/WebCore/platform/xr/PlatformXR.h:57 > + using IntSize = WebCore::IntSize;
Why do we need to redefine it?
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp:262 > + XrResult result = xrEnumerateViewConfigurationViews(m_instance, m_systemId, configType, 0, &viewCount, nullptr);
auto?
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp:278 > + m_configurationViews.add(configType, configViews);
WTFMove(configViews)
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp:284 > + XrViewConfigurationType configType = mode == SessionMode::Inline ? XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO : XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO;
auto?
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.h:55 > + using ViewConfigurationPropertiesMap = WTF::HashMap<XrViewConfigurationType, XrViewConfigurationProperties, WTF::IntHash<XrViewConfigurationType>, WTF::StrongEnumHashTraits<XrViewConfigurationType>>;
s/WTF:://
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.h:57 > + using ViewConfigurationViewsMap = WTF::HashMap<XrViewConfigurationType, Vector<XrViewConfigurationView>, WTF::IntHash<XrViewConfigurationType>, WTF::StrongEnumHashTraits<XrViewConfigurationType>>;
s/WTF:://
Sergio Villar Senin
Comment 3
2020-07-03 00:47:21 PDT
Created
attachment 403446
[details]
Patch
Sergio Villar Senin
Comment 4
2020-07-09 02:24:42 PDT
(In reply to Sergio Villar Senin from
comment #3
)
> Created
attachment 403446
[details]
> Patch
Kindly ping
Carlos Garcia Campos
Comment 5
2020-07-09 23:24:12 PDT
Comment on
attachment 403446
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=403446&action=review
> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.h:26 > +#include <wtf/Optional.h>
What is this include for? I don't see any use of Optional in this header.
Sergio Villar Senin
Comment 6
2020-07-10 04:08:20 PDT
Committed
r264215
: <
https://trac.webkit.org/changeset/264215
>
Radar WebKit Bug Importer
Comment 7
2020-07-10 04:09:13 PDT
<
rdar://problem/65328138
>
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