mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1630316 - Deallocate WebGPU shmems r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D71079 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
9abe89daea
commit
f9d8b44745
@ -220,6 +220,7 @@ ipc::IPCResult WebGPUParent::RecvDeviceUnmapBuffer(RawId aSelfId,
|
||||
} else {
|
||||
ffi::wgpu_server_buffer_unmap(mContext, aBufferId);
|
||||
}
|
||||
DeallocShmem(aShmem);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
@ -337,16 +338,18 @@ ipc::IPCResult WebGPUParent::RecvCommandEncoderCopyTextureToTexture(
|
||||
}
|
||||
|
||||
ipc::IPCResult WebGPUParent::RecvCommandEncoderRunComputePass(RawId aSelfId,
|
||||
Shmem&& shmem) {
|
||||
ffi::wgpu_server_encode_compute_pass(mContext, aSelfId, shmem.get<uint8_t>(),
|
||||
shmem.Size<uint8_t>());
|
||||
Shmem&& aShmem) {
|
||||
ffi::wgpu_server_encode_compute_pass(mContext, aSelfId, aShmem.get<uint8_t>(),
|
||||
aShmem.Size<uint8_t>());
|
||||
DeallocShmem(aShmem);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
ipc::IPCResult WebGPUParent::RecvCommandEncoderRunRenderPass(RawId aSelfId,
|
||||
Shmem&& shmem) {
|
||||
ffi::wgpu_server_encode_render_pass(mContext, aSelfId, shmem.get<uint8_t>(),
|
||||
shmem.Size<uint8_t>());
|
||||
Shmem&& aShmem) {
|
||||
ffi::wgpu_server_encode_render_pass(mContext, aSelfId, aShmem.get<uint8_t>(),
|
||||
aShmem.Size<uint8_t>());
|
||||
DeallocShmem(aShmem);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user