diff options
author | 2024-03-04 23:12:42 +0000 | |
---|---|---|
committer | 2024-03-05 19:36:15 +0000 | |
commit | 4a3035ef60006f99bba3460e1de1adcf52df413a (patch) | |
tree | 511c0f11d61ea7b96f55b80a7be2dbb138f49c87 /libs/hwui/DeviceInfo.cpp | |
parent | 19817c18168c2564606ba585d35390b7f555906d (diff) |
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
Diffstat (limited to 'libs/hwui/DeviceInfo.cpp')
-rw-r--r-- | libs/hwui/DeviceInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |