forked from gpuweb/gpuweb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace asynchronous .requestAdapterInfo() with synchronous .info (gp…
…uweb#4662) Replaces the GPUAdapter method `Promise<GPUAdapterInfo> requestAdapterInfo();` with a synchronous attribute `[SameObject] readonly attribute GPUAdapterInfo info;` Important points: - `requestAdapterInfo()` is removed. Chromium will deprecate and remove it and attempt to get any sites migrated off of it, so hopefully Firefox/Safari won't have to implement it at all (though the implementation is trivial so they may choose to, for compatibility with outdated sites). - The available info about a given `GPUAdapter` may no longer change. You can only get new info by getting a new `GPUAdapter`. (The only reason this should happen is if someone adds a permission prompt for fingerprintability.) Less important points: - You can now only get one `GPUAdapterInfo` object per `GPUAdapter` object, since `adapter.info` returns the same object every time you access it.
- Loading branch information
Showing
2 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters