From 4a3035ef60006f99bba3460e1de1adcf52df413a Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Mon, 4 Mar 2024 23:12:42 +0000 Subject: Add 10101010 support in HWUI. Prefer it if HWC claims support in OverlayProperties. Only add support in the vulkan path, because I don't know what GL incantation maps to VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16 Bug: 284159488 Test: builds, boots Test: courage Change-Id: I01e9c2d2d6916b1349d2f7d2662b962c3b879a28 --- libs/hwui/DeviceInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/DeviceInfo.cpp') diff --git a/libs/hwui/DeviceInfo.cpp b/libs/hwui/DeviceInfo.cpp index 32bc122fdc58..af7a49653829 100644 --- a/libs/hwui/DeviceInfo.cpp +++ b/libs/hwui/DeviceInfo.cpp @@ -108,6 +108,10 @@ void DeviceInfo::setSupportFp16ForHdr(bool supportFp16ForHdr) { get()->mSupportFp16ForHdr = supportFp16ForHdr; } +void DeviceInfo::setSupportRgba10101010ForHdr(bool supportRgba10101010ForHdr) { + get()->mSupportRgba10101010ForHdr = supportRgba10101010ForHdr; +} + void DeviceInfo::setSupportMixedColorSpaces(bool supportMixedColorSpaces) { get()->mSupportMixedColorSpaces = supportMixedColorSpaces; } -- cgit v1.2.3-59-g8ed1b