summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc4.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2024-02-16 17:52:42 -0500
committer Leon Scroggins III <scroggo@google.com> 2024-02-20 17:56:45 -0500
commitf3369eda0af91df158d66f1e4d906a0f0b1496e7 (patch)
tree10c4f43d526b75618a68bd22aa3d01d6e92fca1c /libs/ui/Gralloc4.cpp
parent43cacc5820060c97e8d1c6192f5912a39932bf61 (diff)
vulkan_renderengine: Check for support first
The vulkan_renderengine flag allows us to switch some users to using Vulkan as part of the trunk stable process. But not all devices support Vulkan. Move canSupportSkiaVkRenderEngine into the RenderEngine header, so it can be used by SurfaceFlinger. When the vulkan_renderengine flag is set, check for support before choosing Vulkan. Do *not* log an error, since this is specified broadly, so it is expected that the flag will be set for devices that do not have support. This introduces an extra call to initVulkanInterface, so log the amount of time it takes. On my device, the first call is only ~17ms, so this seems fine. The next call is much faster, ~4ms. The next call is not interestingly different, possibly because the first call was already made. Bug: 293371537 Bug: 325619183 Test: atest librenderengine_test Test: manual Change-Id: Iba66e67347c69b95dc9c05ca838fa1391ef4ab81
Diffstat (limited to 'libs/ui/Gralloc4.cpp')
0 files changed, 0 insertions, 0 deletions