summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatyam Kumar Singh <quic_satysing@quicinc.com>2023-12-26 18:56:21 +0530
committerSatyam Singh <quic_satysing@quicinc.com>2023-12-29 07:10:27 +0000
commit38f1929ece5a8b3128b39864a07e212c996a8d1a (patch)
tree9c5280e6e251a11015e66edd7eadb3a4de8caf35
parent6e9d854d73a3820780e1bcffe9b33711bd840ec9 (diff)
AidlComposerHal: Add handling for presentOrValidatedisplay state
Add handling for state 2, i.e. validate and present display succeeded with composition changes. Change-Id: I9f11917d4442f8a22e3a19a1a03ff16f055eb251 CRs-Fixed: 3679887
-rw-r--r--services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp b/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
index 6c3c67f3a6..f126710cbc 100644
--- a/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
+++ b/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
@@ -815,6 +815,16 @@ Error AidlComposer::presentOrValidateDisplay(Display display, nsecs_t expectedPr
*state = translate<uint32_t>(*result);
+ /* QTI_BEGIN */
+ if (*state == 2) {
+ auto fence = reader->get().takePresentFence(displayId);
+ // take ownership
+ *outPresentFence = fence.get();
+ *fence.getR() = -1;
+ reader->get().hasChanges(displayId, outNumTypes, outNumRequests);
+ }
+ /* QTI_END */
+
if (*result == PresentOrValidate::Result::Presented) {
auto fence = reader->get().takePresentFence(displayId);
// take ownership