Replace dawn::CallbackUserdata with void*

This initial reasoning for having a u64 userdata was to be able to pack
two u32s in a single userdata but that was never used, and made a bunch
of code uglier than it should.

BUG=dawn:160

Change-Id: Ia0d20bc23f09f5d8f3748ca4edd1a331604f2ba8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7561
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Corentin Wallez
2019-05-29 13:03:50 +00:00
committed by Commit Bot service account
parent 26d3cf08c2
commit 839053b90c
35 changed files with 345 additions and 437 deletions

View File

@@ -31,7 +31,7 @@
#include <cstring>
#include <iostream>
void PrintDeviceError(const char* message, dawn::CallbackUserdata) {
void PrintDeviceError(const char* message, void*) {
std::cout << "Device error: " << message << std::endl;
}
@@ -136,7 +136,7 @@ dawn::Device CreateCppDawnDevice() {
}
dawnSetProcs(&procs);
procs.deviceSetErrorCallback(cDevice, PrintDeviceError, 0);
procs.deviceSetErrorCallback(cDevice, PrintDeviceError, nullptr);
return dawn::Device::Acquire(cDevice);
}