[webkit-changes] [WebKit/WebKit] 2228e1: [WebGPU] Replace asynchronous .requestAdapterInfo(...
mwyrzykowski
noreply at github.com
Thu May 30 08:42:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2228e1db0bd91bd4dac15c25dc4bbbaddd482485
https://github.com/WebKit/WebKit/commit/2228e1db0bd91bd4dac15c25dc4bbbaddd482485
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2024-05-30 (Thu, 30 May 2024)
Changed paths:
M Source/WebCore/Modules/WebGPU/GPUAdapter.cpp
M Source/WebCore/Modules/WebGPU/GPUAdapter.h
M Source/WebCore/Modules/WebGPU/GPUAdapter.idl
Log Message:
-----------
[WebGPU] Replace asynchronous .requestAdapterInfo() with synchronous .info
https://bugs.webkit.org/show_bug.cgi?id=274797
<radar://128896785>
Reviewed by Dan Glastonbury.
Per recent spec change, requestAdapterInfo has become a synchronous info
call.
Our implementation already resolved the promise synchronously, so the impact
is minimal.
Reland keeping both implementations as removing the old version regresses
some websites.
* Source/WebCore/Modules/WebGPU/GPUAdapter.cpp:
(WebCore::GPUAdapter::info):
* Source/WebCore/Modules/WebGPU/GPUAdapter.h:
* Source/WebCore/Modules/WebGPU/GPUAdapter.idl:
Canonical link: https://commits.webkit.org/279516@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list