Add DeviceLostCallback to dawn.json and dawn_wire
Bug: dawn:68
Change-Id: I6d8dd071be4ec612c67245bfde218e31e7a998b8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14660
Commit-Queue: Natasha Lee <natlee@microsoft.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/dawn.json b/dawn.json
index 44fce28..30dbbef 100644
--- a/dawn.json
+++ b/dawn.json
@@ -590,6 +590,13 @@
]
},
{
+ "name": "set device lost callback",
+ "args": [
+ {"name": "callback", "type": "device lost callback"},
+ {"name": "userdata", "type": "void", "annotation": "*"}
+ ]
+ },
+ {
"name": "push error scope",
"args": [
{"name": "filter", "type": "error filter"}
@@ -605,6 +612,13 @@
}
]
},
+ "device lost callback": {
+ "category": "callback",
+ "args" : [
+ {"name": "message", "type": "char", "annotation": "const*"},
+ {"name": "userdata", "type": "void", "annotation": "*"}
+ ]
+ },
"device properties": {
"category": "structure",
"extensible": false,