Dawn's webgpu.h header is moving from using const char* for strings in
callbacks to using WGPUStringView. When using the C++ API the
deprecation is handled gracefully, but a few places in Chromium still
use the C API and need to be updated using the "BREAKING_CHANGE" define
in Dawn. In particular the LoggingCallback doesn't have a C++ equivalent
(wgpu::Device::SetLoggingCallback takes a C callback for various reasons).
- dawn_context_provider: Uses the LoggingCallback.
- webgpu_decoder_impl: Proxies some WebGPU calls and needs to call the
callbacks with the correct type.
- video_effects_processor_webgpu: Uses the LoggingCallback, also had a
few C callbacks remaining that could be converted to C++.
- gpu_device: Uses the LoggingCallback.
Bug: 42241188
Change-Id: Ib4b64cced9ba8b35014a60578464c79000371e32
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5905367
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1366743}