Skip to content

Conversation

@litherum
Copy link
Contributor

@litherum litherum commented May 18, 2022

c111a1e

[WebGPU] Work around https://bugs.webkit.org/show_bug.cgi?id=240219
https://bugs.webkit.org/show_bug.cgi?id=240441

https://bugs.webkit.org/show_bug.cgi?id=240219 is about a bug where we can't
say "optional thingy = 0" in an IDL file. This patch works around that in WebGPU
by replacing it with "optional thingy" and then "thingy.value_or(0)" in the C++
code. This is temporary, until https://bugs.webkit.org/show_bug.cgi?id=240219 is
fixed.

No new tests because there is no behavior change.

* Modules/WebGPU/GPUBuffer.cpp:
(WebCore::GPUBuffer::mapAsync):
(WebCore::GPUBuffer::getMappedRange):
* Modules/WebGPU/GPUBuffer.h:
* Modules/WebGPU/GPUBuffer.idl:

@litherum litherum self-assigned this May 18, 2022
@litherum litherum added Bindings For bugs related to the DOM bindings WebKit Nightly Build labels May 18, 2022
https://bugs.webkit.org/show_bug.cgi?id=240441

https://bugs.webkit.org/show_bug.cgi?id=240219 is about a bug where we can't
say "optional thingy = 0" in an IDL file. This patch works around that in WebGPU
by replacing it with "optional thingy" and then "thingy.value_or(0)" in the C++
code. This is temporary, until https://bugs.webkit.org/show_bug.cgi?id=240219 is
fixed.

No new tests because there is no behavior change.

* Modules/WebGPU/GPUBuffer.cpp:
(WebCore::GPUBuffer::mapAsync):
(WebCore::GPUBuffer::getMappedRange):
* Modules/WebGPU/GPUBuffer.h:
* Modules/WebGPU/GPUBuffer.idl:
@litherum
Copy link
Contributor Author

@cdumez already reviewed this in https://bugs.webkit.org/show_bug.cgi?id=240441. Landing now.

@litherum litherum force-pushed the eng/WebGPU-Work-around-httpsbugs-webkit-orgshow_bug-cgiid240219 branch from 76dfb76 to c111a1e Compare May 18, 2022 01:07
@litherum
Copy link
Contributor Author

This landed in https://trac.webkit.org/changeset/294373/webkit somehow. I have no idea how git webkit land works

@litherum litherum closed this May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bindings For bugs related to the DOM bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant