-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[m111] media: Destroy D3D11 resources before stub destruction
If the CommandBufferStub gets destroyed before the D3D11VideoDecoder, DefaultTexture2DWrapper::GpuResources destructor will fail to make the context current and set the context lost flag on its shared images which prevents the destruction of the associated GL textures. This CL fixes that by hooking up the WillDestroyStub callback so that GpuResources can destroy its shared images before the stub is destroyed. This is intended as a speculative fix for crbug.com/1410436. (cherry picked from commit f80d846) Bug: 1410436 Change-Id: Ic369f67fb87d466ec634cf9c92d31fef6d508bca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4201186 Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1099034} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4217996 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/branch-heads/5563@{#119} Cr-Branched-From: 3ac59a6-refs/heads/main@{#1097615}
- Loading branch information
Showing
6 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters