gecko-dev/dom/webgpu/ipc
Andrew Osmond 5e0eefe182 Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark
This patch ensures that we only update the external image resource for
WebGPU when there has been an actual change for the resource. In order
to guarantee this, we wait for the present to complete, and only then
issue the update. WebRenderBridgeChild::SendResourceUpdates will also
trigger a frame generation if any resources were changed, which means we
don't need to trigger a paint on the frame itself anymore.

Note that we still have a race condition when we write into the
MemoryTextureHost while in PresentCallback, and the renderer thread may
be accessing the pixel data to upload to the GPU.

Differential Revision: https://phabricator.services.mozilla.com/D138349
2022-02-11 01:26:42 +00:00
..
PWebGPU.ipdl Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark 2022-02-11 01:26:42 +00:00
WebGPUChild.cpp Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark 2022-02-11 01:26:42 +00:00
WebGPUChild.h Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark 2022-02-11 01:26:42 +00:00
WebGPUParent.cpp Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark 2022-02-11 01:26:42 +00:00
WebGPUParent.h Bug 1754556 - Update WebGPU external image resource only after present is complete. r=kvark 2022-02-11 01:26:42 +00:00
WebGPUSerialize.h WIP: Bug 1622846 - Support WebGPU adapter isFallbackAdapter r=emilio 2021-12-08 15:54:26 +00:00
WebGPUTypes.h Bug 1723050 - Part 32: Replace typedef by using in dom/webgpu/ r=kvark 2021-08-05 00:11:58 +00:00