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:
Austin Eng
2019-08-27 21:43:56 +00:00
committed by Commit Bot service account
parent cb0cb658d4
commit 45ea7e66bf
19 changed files with 33 additions and 33 deletions

View File

@@ -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;