Add empty implementations of Push/PopErrorScope
This adds Push/PopErrorScope to the API with empty implementations which
just call the error callback. Also adds unittests that the wire callbacks
return as expected.
Bug: dawn:153
Change-Id: I63826360e39fbac4c9855d3d55a05b5ca26db450
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10543
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
diff --git a/dawn_wire.json b/dawn_wire.json
index 509d823..cbd8b30 100644
--- a/dawn_wire.json
+++ b/dawn_wire.json
@@ -48,6 +48,10 @@
{ "name": "handle create info length", "type": "uint64_t" },
{ "name": "handle create info", "type": "uint8_t", "annotation": "const*", "length": "handle create info length", "skip_serialize": true}
],
+ "device pop error scope": [
+ { "name": "device", "type": "device" },
+ { "name": "request serial", "type": "uint64_t" }
+ ],
"destroy object": [
{ "name": "object type", "type": "ObjectType" },
{ "name": "object id", "type": "ObjectId" }
@@ -70,6 +74,11 @@
{ "name": "type", "type": "error type"},
{ "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
],
+ "device pop error scope callback": [
+ { "name": "request serial", "type": "uint64_t" },
+ { "name": "type", "type": "error type" },
+ { "name": "message", "type": "char", "annotation": "const*", "length": "strlen" }
+ ],
"fence update completed value": [
{ "name": "fence", "type": "ObjectHandle", "handle_type": "fence" },
{ "name": "value", "type": "uint64_t" }
@@ -89,6 +98,8 @@
"DeviceCreateBuffer",
"DeviceCreateBufferMapped",
"DeviceCreateBufferMappedAsync",
+ "DevicePushErrorScope",
+ "DevicePopErrorScope",
"QueueCreateFence",
"FenceGetCompletedValue",
"QueueSignal"