summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
authorjoenchen <joenchen@google.com>2022-11-29 15:58:44 +0000
committerjoenchen <joenchen@google.com>2022-12-01 16:37:43 +0000
commitacf0fe4dd6c5ea3e633b0e354d3c128c47baa04a (patch)
tree7db8267ed0e3ea71c74737d443e7ab770edf9ffc /hwc3/impl/HalImpl.cpp
parent4e4fb83bf22fdce683d0ba9044aaf18826f76be0 (diff)
hwc3: Primary displays supports MULTI_THREADED_PRESENT
After primary displays supports this capability, SurfaceFlinger can run executeCommands(presentDisplay) for this display concurrently with other displays with the same capability. Bug: 247074458 Test: switch applications Change-Id: I55c4fe2d38f412f0e98b46502a99c90943cefbcc
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index a5d229d..3a277af 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -1050,4 +1050,11 @@ int32_t HalImpl::getDisplayIdleTimerSupport(int64_t display, bool& outSupport) {
return halDisplay->getDisplayIdleTimerSupport(outSupport);
}
+int32_t HalImpl::getDisplayMultiThreadedPresentSupport(const int64_t& display, bool& outSupport) {
+ ExynosDisplay* halDisplay;
+ RET_IF_ERR(getHalDisplay(display, halDisplay));
+
+ return halDisplay->getDisplayMultiThreadedPresentSupport(outSupport);
+}
+
} // namespace aidl::android::hardware::graphics::composer3::impl