dawn-cmake/generator/templates/dawn_wire
Austin Eng f0d7cc4f5a dawn_wire: Make all objects owned by the client
This removes the logic where the Client owns the Device and the
Device owns all other objects. Ownership should be tracked in
dawn_native either with refcounting or validation to disallow
operations after an object's parent has been destroyed.

This simplifies the wire client code in that the client only
tracks allocated handles and does not manage parent/child lifetimes.
This is an important simplification so we can support multiple WebGPU
instances, adapters, and devices on a single wire.

Bug: dawn:384
Change-Id: I8ecc7c368130b8917202150c467b5f0e7d4b753e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37000
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2021-01-13 18:31:47 +00:00
..
client dawn_wire: Make all objects owned by the client 2021-01-13 18:31:47 +00:00
server Remove the hardcoded device tick in Server::HandleCommands 2020-12-16 09:37:40 +00:00
ObjectType.h Track and destroy all child objects on wire client destruction 2020-11-11 19:46:18 +00:00
WireCmd.cpp dawn_wire: Support chunked commands 2020-10-13 22:35:34 +00:00
WireCmd.h Track and destroy all child objects on wire client destruction 2020-11-11 19:46:18 +00:00