summaryrefslogtreecommitdiff
path: root/libs/hwui/DeviceInfo.cpp
diff options
context:
space:
mode:
author Sally Qi <sallyqi@google.com> 2022-08-30 16:29:14 -0700
committer Sally Qi <sallyqi@google.com> 2022-10-10 17:46:42 -0700
commit02068d5aaa92951e8bd686acf497cf168d17cba8 (patch)
tree2a3c0505e70d73b9ef78fb194ae7c0349b444cc1 /libs/hwui/DeviceInfo.cpp
parent0dda857931b07ff871b8a045499f2920cb7da0e3 (diff)
Plumb getOverlaySupport() into Display Manager for HWUI.
- HWUI can understand if Fp16 for HDR can be supported. Bug: 242588489 Test: builds Change-Id: I603ded84a5fbe6142afd167224903cf4010a309f
Diffstat (limited to 'libs/hwui/DeviceInfo.cpp')
-rw-r--r--libs/hwui/DeviceInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/DeviceInfo.cpp b/libs/hwui/DeviceInfo.cpp
index f06fa2418003..0240c86d5f45 100644
--- a/libs/hwui/DeviceInfo.cpp
+++ b/libs/hwui/DeviceInfo.cpp
@@ -104,6 +104,10 @@ void DeviceInfo::setWideColorDataspace(ADataSpace dataspace) {
}
}
+void DeviceInfo::setSupportFp16ForHdr(bool supportFp16ForHdr) {
+ get()->mSupportFp16ForHdr = supportFp16ForHdr;
+}
+
void DeviceInfo::onRefreshRateChanged(int64_t vsyncPeriod) {
mVsyncPeriod = vsyncPeriod;
}