GraphiteDawn: print correct error message in map callbacks for native.

Wasm & native are currently using the same callback type for AsyncMap()
calls. However, on native, AsyncMap() function has been updated with new
callback type with different arguments. We currently bypass this
differentce by casting the arguments' types. However, it is not correct
because the values for error are different between older and newer
callback types.

We need to use proper callback with correct arguments' types for native.

Bug: b/355006335
Change-Id: I33c293869174f385110af2946470863b920d2c05
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/883636
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
2 files changed