Skip to content

Commit

Permalink
Reset layer changes & layer request when layer set empty
Browse files Browse the repository at this point in the history
When layer set become empty, cached layers_changes and
layer_request need to be cleared other wise it will return
wrong values during SET_DISPLAY_REQUEST

Change-Id: I01ea20fded240043fc71bfacbfed27a41b7726d3
  • Loading branch information
Vinoth Jayaram authored and Gerrit - the friendly Code Review server committed Mar 10, 2022
1 parent 384dec4 commit 6ac8216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions composer/hwc_display_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ HWC2::Error HWCDisplayBuiltIn::Validate(uint32_t *out_num_types, uint32_t *out_n
// Avoid flush for Command mode panel.
flush_ = !client_connected_;
validated_ = true;
layer_changes_.clear();
layer_requests_.clear();
DLOGV_IF(kTagDisplay, "layer_set is empty");
return status;
}

Expand Down

0 comments on commit 6ac8216

Please sign in to comment.