diff options
author | Pullakavi Srinivas <quic_spullaka@quicinc.com> | 2022-08-29 02:14:01 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-09-08 00:51:03 -0700 |
commit | 2b9bf01079a10b62e9163273b89312016ce52e9f (patch) | |
tree | 0160a58b5f3ec21ac1138e2bc3d6861965b9944f | |
parent | 6c6f466a6065c4ba266f6aa9a25364d128ae403c (diff) |
hwc: Clear composition changes.
Clear composition changes so that the stale changes doesn't get
reapplied in next commit.
CRs-Fixed: 3258723
Change-Id: Ie5953994a8600dc5e8923acc5149990ed17ee1ec
-rw-r--r-- | composer/hwc_display.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/composer/hwc_display.cpp b/composer/hwc_display.cpp index 5407fbc9..f2ba0d72 100644 --- a/composer/hwc_display.cpp +++ b/composer/hwc_display.cpp @@ -1660,6 +1660,11 @@ HWC2::Error HWCDisplay::AcceptDisplayChanges() { DLOGW("Invalid layer: %" PRIu64, change.first); } } + + // Clear layer changes, so that they don't get applied in next commit ie; + // cases where Prepare doesn't go through. + layer_changes_.clear(); + return HWC2::Error::None; } |