Commit 1414b782 authored by Austin Eng's avatar Austin Eng Committed by Commit Bot

WebGPU: Remove copy of DawnCommands before passing to dawn_wire

This copy was needed because dawn_wire did not previously support
volatile pointers.

Bug: dawn:230
Change-Id: Ib5baff5c3e5da129086c40ef5b22a6d840f9f65b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1846657Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703897}
parent a5c06806
...@@ -636,8 +636,7 @@ error::Error WebGPUDecoderImpl::HandleDawnCommands( ...@@ -636,8 +636,7 @@ error::Error WebGPUDecoderImpl::HandleDawnCommands(
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("gpu.dawn"), TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("gpu.dawn"),
"WebGPUDecoderImpl::HandleDawnCommands", "bytes", size); "WebGPUDecoderImpl::HandleDawnCommands", "bytes", size);
std::vector<char> commands(shm_commands, shm_commands + size); if (!wire_server_->HandleCommands(shm_commands, size)) {
if (!wire_server_->HandleCommands(commands.data(), size)) {
NOTREACHED(); NOTREACHED();
return error::kLostContext; return error::kLostContext;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment