commit | 9bba4a936e8591c58351bc0811ed8db3658c6f5b | [log] [tgz] |
---|---|---|
author | Natasha Lee <natlee@microsoft.com> | Wed Dec 18 18:59:20 2019 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Dec 18 18:59:20 2019 +0000 |
tree | 5da7edaaf45db896b0dd9f13f5688f837fb4f8a9 | |
parent | 3d2d62813fc57ffc56cc4ee342e2e210b26664a8 [diff] [blame] |
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/src/dawn_wire/client/ClientDoers.cpp b/src/dawn_wire/client/ClientDoers.cpp index 1be0f1d..dd90406 100644 --- a/src/dawn_wire/client/ClientDoers.cpp +++ b/src/dawn_wire/client/ClientDoers.cpp
@@ -35,6 +35,11 @@ return true; } + bool Client::DoDeviceLostCallback(char const* message) { + mDevice->HandleDeviceLost(message); + return true; + } + bool Client::DoDevicePopErrorScopeCallback(uint64_t requestSerial, WGPUErrorType errorType, const char* message) {