dawn-cmake/generator/templates/dawn_wire/server
Austin Eng 5ad5557667 Remove special-casing of device reference/release in the wire
The wire's device is externally owned so reference/release were no-ops.
To unify the code paths, remove the special casing and instead
take an extra ref on the device the wire server is created with. This
is functionally equivalent and will allow both the current wire code,
and the incoming change to allow multiple device/adapter creation to
both work.

This CL also makes it possible for the client to destroy the device
before child objects.
A follow-up CL will mitigate this on the server side.

Bug: dawn:384
Change-Id: Ic5427074469012dccf8689ec95a848e6ba2c1fc2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37001
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2021-01-13 19:23:48 +00:00
..
ServerBase.h Remove special-casing of device reference/release in the wire 2021-01-13 19:23:48 +00:00
ServerDoers.cpp Remove special-casing of device reference/release in the wire 2021-01-13 19:23:48 +00:00
ServerHandlers.cpp Remove the hardcoded device tick in Server::HandleCommands 2020-12-16 09:37:40 +00:00
ServerPrototypes.inc Introduce a "callback" type in dawn.json 2019-11-22 13:18:22 +00:00