diff options
author | Namit Solanki <nsolanki@codeaurora.org> | 2018-02-27 11:39:05 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-01 22:27:35 -0800 |
commit | b7066b6bd7355eff6542b009c6fbf2e9d75efbec (patch) | |
tree | b18b0f7cf8a9514a1dbeecb019549f1e08206ed2 /sdm/libs/hwc2/hwc_display_primary.cpp | |
parent | 7a44dd183167af0ccfa7a087ef961036aff11099 (diff) | |
download | display-b7066b6bd7355eff6542b009c6fbf2e9d75efbec.tar.gz |
sdm: Drop idle timeout event if refresh is in progress.
- Drop idle timeout event if it occurs between prepare()
and commit() i.e. device is not really in idle state
since a new refresh cycle has already started.
Change-Id: If66353ac38bd3a5463fb7fa002e61fb8ed7c80d8
CRs-Fixed: 2181941
Diffstat (limited to 'sdm/libs/hwc2/hwc_display_primary.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_display_primary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp index 531f2093..6149831d 100644 --- a/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/sdm/libs/hwc2/hwc_display_primary.cpp @@ -223,6 +223,7 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n } status = PrepareLayerStack(out_num_types, out_num_requests); + pending_commit_ = true; return status; } @@ -245,7 +246,7 @@ HWC2::Error HWCDisplayPrimary::Present(int32_t *out_retire_fence) { status = HWCDisplay::PostCommitLayerStack(out_retire_fence); } } - + pending_commit_ = false; return status; } |