Bug 233169

Summary: [WebGPU] Fix namespace comments
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch achristensen: review+

Description Myles C. Maxfield 2021-11-15 21:50:33 PST
[WebGPU] Fix namespace comments
Comment 1 Myles C. Maxfield 2021-11-15 21:51:06 PST
Created attachment 444344 [details]
Patch
Comment 2 Myles C. Maxfield 2021-11-15 21:51:39 PST
Created attachment 444345 [details]
Patch
Comment 3 Alex Christensen 2021-11-15 23:00:07 PST
Comment on attachment 444345 [details]
Patch

Sure.
Why is WebGPU inside namespace PAL at all?
Comment 4 Alex Christensen 2021-11-16 07:41:55 PST
Comment on attachment 444345 [details]
Patch

You may consider using C++17 nested namespace syntax to completely remove this instead.
namespace PAL::WebGPU {
...
} // namespace PAL::WebGPU
Comment 5 Myles C. Maxfield 2021-11-16 09:48:59 PST
(In reply to Alex Christensen from comment #3)
> Comment on attachment 444345 [details]
> Patch
> 
> Sure.
> Why is WebGPU inside namespace PAL at all?

This part of the WebGPU implementation is in pal/graphics/WebGPU, so I assumed that means it should get the PAL namespace. The parts that are in WebGPU.framework won't use the PAL namespace.
Comment 6 Myles C. Maxfield 2021-11-16 12:24:46 PST
Committed r285879 (244305@main): <https://commits.webkit.org/244305@main>
Comment 7 Radar WebKit Bug Importer 2021-11-16 12:25:21 PST
<rdar://problem/85469938>