dawn-cmake/generator/templates/dawn_wire/client
Austin Eng ba72944d3d dawn_wire: Validate all objects are from the same device in the client
This is a temporary fix until dawn_wire can support multiple devices.
When using objects from different devices, the wire will inject an
error into the receiver object's device. Methods that return objects
will return a dummy object. Using the dummy object will cause a fatal
error on the server.

Without this fix, the server would blindly lookup an ObjectId which
could point to some other object. This would bypass same-device
validation and have incorrect results.

Bug: dawn:383
Change-Id: I898f07d4b26f2a97ef952b82af488e7f807c36f0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19261
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
2020-04-15 17:58:25 +00:00
..
ApiObjects.h Separate WireClient.cpp into multiple files. 2019-01-16 02:18:06 +00:00
ApiProcs.cpp dawn_wire: Validate all objects are from the same device in the client 2020-04-15 17:58:25 +00:00
ApiProcs.h dawn_wire: Validate all objects are from the same device in the client 2020-04-15 17:58:25 +00:00
ClientBase.h Make the wire Client own ObjectAllocators and CommandSerializer 2019-01-30 02:31:37 +00:00
ClientHandlers.cpp Cleanup: Rename dawn_wire Object "serial" to "generation" 2020-04-13 17:50:51 +00:00
ClientPrototypes.inc dawn_wire: Tag deserialize commands with volatile pointer 2019-10-07 20:38:47 +00:00