-
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.
gpu: Pass plane format to compound image gpu backing factory
For YUV formats, CompoundImageBacking uses the resource format instead of the plane format when trying to find a compatible GPU backing. This just happens to work because D3DImageBackingFactory special cases NV12 for CPU upload usage set by the compound backing. This CL fixes this by passing the plane format instead and updating the D3D backing factory. This is necessary if we want more platforms to use compound backings for software video frames e.g. using GL texture backing on Linux. Bug: 1371982 Change-Id: I49301e40b137f1b9d1b49664790bb59178e496b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4043646 Reviewed-by: Saifuddin Hitawala <hitawala@chromium.org> Reviewed-by: Kyle Charbonneau <kylechar@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1076994}
- Loading branch information
Showing
4 changed files
with
78 additions
and
52 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