Bug 213509

Summary: [WebXR] Fix PlatformXR initialization/destruction
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: New BugsAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, dino, pnormand, svillar, webkit-bug-importer, youennf, zan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 208988    
Attachments:
Description Flags
Patch youennf: review+

Description Sergio Villar Senin 2020-06-23 04:50:25 PDT
[WebXR] Fix PlatformXR initialization/destruction
Comment 1 Sergio Villar Senin 2020-06-23 05:06:30 PDT
Created attachment 402545 [details]
Patch
Comment 2 youenn fablet 2020-06-23 06:18:54 PDT
Comment on attachment 402545 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402545&action=review

> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp:218
>              s_instance->m_impl = makeUnique<Impl>();

Can we do this assignment in Instance constructor?
And make m_impl a UniqueRef<> maybe?
Comment 3 Sergio Villar Senin 2020-06-24 01:42:29 PDT
Comment on attachment 402545 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402545&action=review

Thanks for the review!

>> Source/WebCore/platform/xr/openxr/PlatformXROpenXR.cpp:218
>>              s_instance->m_impl = makeUnique<Impl>();
> 
> Can we do this assignment in Instance constructor?
> And make m_impl a UniqueRef<> maybe?

Makes total sense.
Comment 4 Sergio Villar Senin 2020-06-24 01:50:13 PDT
Committed r263447: <https://trac.webkit.org/changeset/263447>
Comment 5 Radar WebKit Bug Importer 2020-06-24 01:51:15 PDT
<rdar://problem/64690849>