WebGPU: Only disconnect, don't destroy the client context on page teardown
We cannot immediately destroy the context as JS code can still execute after the iframe is removed. Instead we disconnect the context so that new commands do nothing. Now, the context is not destroyed until all WebGPU objects are GC'ed. A future change will improve this to tear down the server GPU objects but keep the client context alive until GC. Bug: 1160459 Change-Id: Iba58279a565d0099bf13420e1743003fc7c7aa23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2613517 Auto-Submit: Austin Eng <enga@chromium.org> Reviewed-by:Kai Ninomiya <kainino@chromium.org> Reviewed-by:
Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Cr-Commit-Position: refs/heads/master@{#845175}
Showing
Please register or sign in to comment