Android 9.0.0 Release 30 (PQ1A.190105.004)
hwc: fix display issue when no buffer handle update

Cherry-pick from CL 3577634 on partner gerrit

When there's no buffer handle update for a given plan, current HWC implementation
will assume no content update and will not commit/flip the new content to display.
When the layer stack is changing (new layer added/removed...This's advertised by
SF through GEOMETRY_CHANGED flag), this assumption is no longer valid.

This patch will reset the current data buffer attached to the given plan when it's
being reclaimed. This should happen when rebuilding the new layer stack to be composed,
by the time we deinit the current layer list.
This way we can prevent black screen issue that may occur when a new activity's layer
keeps using the same buffer handle attached to the previous layer.

Change-Id: I4c24c963466db478633121dadcb6434208fc1b4a
Tracked-On: https://jira01.devtools.intel.com/browse/AW-7570
Signed-off-by: Zaghdoud Walidx <walidx.zaghdoud@intel.com>
3 files changed
tree: 8bf9daaab702c2c8703f2f172ea418fe7e46df3d
  1. merrifield/
  2. moorefield_hdmi/