diff --git a/src/dawn_native/Buffer.cpp b/src/dawn_native/Buffer.cpp index b293b9617b..6da550bf26 100644 --- a/src/dawn_native/Buffer.cpp +++ b/src/dawn_native/Buffer.cpp @@ -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; }