forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fuchsia] Enable YCbCr samplers support
Previously compositor supported YCbCr samplers only on Android and only for external Vulkan images. On Fuchsia sysmem APIs use Vulkan I420 formats to return decoded images and so YCbCr samplers have to be used to render them on the screen. In this CL: 1. Updated VulkanImplementation::CreateImageFromGpuMemoryHandle() to make it possible to return YCbCr info. 2. Added image_format in gpu::VulkanYCbCrInfo to remove the assumption YCbCr images are always external. 3. ExternalVkImageBacking now bundles returned YCbCr info in GrVkImageInfo when wrapping in GrBackendTexture. 4. SkiaOutputSurfaceImpl now passes image format when initializing GrVkYcbcrConversionInfo. 5. Updated VulkanDeviceQueue and VulkanImplementationScenic to enable YCbCr sampler extension on Fuchsia. Bug: 981022 Change-Id: I477ebf698d098bafefaadbf77dfa8d373f9ae076 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730311 Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Reviewed-by: Eric Karl <ericrk@chromium.org> Reviewed-by: Michael Spang <spang@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#686649}
- Loading branch information
1 parent
272d4b0
commit 6ff66f2
Showing
26 changed files
with
196 additions
and
115 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
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
Oops, something went wrong.