Fire map callback if map async operation fails
Bug: dawn:400 Change-Id: If656239714f2c088e52aff30ef27a20f2fc42ba8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/21940 Commit-Queue: Natasha Lee <natlee@microsoft.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
73c9909266
commit
04701f9f1e
|
@ -271,7 +271,7 @@ namespace dawn_native {
|
|||
mState = BufferState::Mapped;
|
||||
|
||||
if (GetDevice()->ConsumedError(MapReadAsyncImpl(mMapSerial))) {
|
||||
// TODO(natlee@microsoft.com): if map op fails fire callback with DEVICE_LOST status
|
||||
CallMapReadCallback(mMapSerial, WGPUBufferMapAsyncStatus_DeviceLost, nullptr, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@ namespace dawn_native {
|
|||
mState = BufferState::Mapped;
|
||||
|
||||
if (GetDevice()->ConsumedError(MapWriteAsyncImpl(mMapSerial))) {
|
||||
// TODO(natlee@microsoft.com): if map op fails fire callback with DEVICE_LOST status
|
||||
CallMapWriteCallback(mMapSerial, WGPUBufferMapAsyncStatus_DeviceLost, nullptr, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue