mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 01:46:35 +00:00
Rename SetErrorCallback to SetUncapturedErrorCallback
This is to better match the naming of the uncapturederror event in WebGPU. Bug: dawn:153 Change-Id: Ic2bc1f46bf3d1f0d14cbd5cb8ea6e54d1679f987 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10542 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
cb0cb658d4
commit
45ea7e66bf
@@ -16,13 +16,13 @@
|
||||
|
||||
namespace dawn_wire { namespace server {
|
||||
|
||||
void Server::ForwardDeviceError(DawnErrorType type, const char* message, void* userdata) {
|
||||
void Server::ForwardUncapturedError(DawnErrorType type, const char* message, void* userdata) {
|
||||
auto server = static_cast<Server*>(userdata);
|
||||
server->OnDeviceError(type, message);
|
||||
server->OnUncapturedError(type, message);
|
||||
}
|
||||
|
||||
void Server::OnDeviceError(DawnErrorType type, const char* message) {
|
||||
ReturnDeviceErrorCallbackCmd cmd;
|
||||
void Server::OnUncapturedError(DawnErrorType type, const char* message) {
|
||||
ReturnDeviceUncapturedErrorCallbackCmd cmd;
|
||||
cmd.type = type;
|
||||
cmd.message = message;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user