dawn-cmake/include/dawn
Austin Eng 6400e3bfc0 Add a way to query if a device exists on the wire server
Chromium tracks the devices which live on the wire so it can
automatically call tick on devices that have pending work. This used
to be done by querying an (id, generation) pair and checking if it
resolves to a non-null device.

This CL adds a new way to query directly using the device, since a
refactor in Chrome will change creation such that the id and generation
is not known when a new device is requested.

Also fixes a bug for device callbacks where the required callback
userdata wasn't fully populated for devices created with
requestAdapter. Update a test to check for this as well.

Bug: chromium:1315260
Change-Id: I7468edc3e77bade191e1e9f3eaadebbf4441d88a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89520
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Austin Eng <enga@chromium.org>
2022-05-12 00:09:26 +00:00
..
native Revert "[chromium-style] Adding constructors and destructors." 2022-05-10 23:32:44 +00:00
platform Removes device from load/store in caching interface. 2022-05-03 02:53:33 +00:00
wire Add a way to query if a device exists on the wire server 2022-05-12 00:09:26 +00:00
BUILD.gn tint->dawn: Move src/include -> include 2022-02-04 18:18:18 +00:00
EnumClassBitmasks.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
dawn_proc.h Enable build/header_guard 2022-04-11 18:30:50 +00:00
dawn_thread_dispatch_proc.h Enable build/header_guard 2022-04-11 18:30:50 +00:00
dawn_wsi.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00