The Web GPU API (https://github.com/gpuweb/gpuweb/blob/master/design/sketch.webidl) has diverged from the WebKit Web GPU implementation in the naming of interfaces and dictionaries (from WebGPU* -> GPU*) and enums (from camelCase to hyphen-case).
<rdar://problem/47806315>
This is also a good opportunity to simplify the Web GPU file structure in WebKit: A lot of the dictionary classes are only referenced by one interface (e.g. GPUDevice) and their IDL definitions can be moved into that interface's file. Their C++ implementations can be made sub-structs of their interface's class. If this is decided to be preferable to what we have now, I'll make the changes for this patch.
In addition, a lot of Web GPU function parameters are being passed as rvalue references (e.g. descriptor objects) when a raw reference will suffice.
This work will be split into two parts: 1) Naming updates that affect how the API is used (enum class names, enum strings, function names) 2) Class name updates visible only through e.g. inspection (WebGPUDevice -> GPUDevice)
To solve our IDL prefix discrepancy with Web GPU (WebGPU vs GPU), all IDL interface and dictionary names will continue using WebGPU* in order to match the implementation and to prevent confusion when parsing the IDL files, but be exposed to the DOM as GPU* as per the API.
Updating name to reflect that this bug now will handle just the class name updates.
Created attachment 365823 [details] Patch
Comment on attachment 365823 [details] Patch Clearing flags on attachment: 365823 Committed r243438: <https://trac.webkit.org/changeset/243438>
All reviewed patches have been landed. Closing bug.
Reverted r243438 for reason: 243319 Caused Mac WK2 testers to crash and become unresponsive. Committed r243456: <https://trac.webkit.org/changeset/243456>
This patch https://trac.webkit.org/changeset/243438 was blocking the rollout of https://trac.webkit.org/changeset/243419/webkit that broke Mac WK2 testing.
<rdar://problem/50309484>
Created attachment 368704 [details] Patch
Created attachment 368713 [details] Patch
Comment on attachment 368713 [details] Patch Clearing flags on attachment: 368713 Committed r244856: <https://trac.webkit.org/changeset/244856>