hwc: unset the layer in the vblank_handler 58/158858/1
authorKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Wed, 25 Oct 2017 12:53:15 +0000 (15:53 +0300)
committerRoman Marchenko <r.marchenko@samsung.com>
Fri, 3 Nov 2017 10:19:35 +0000 (12:19 +0200)
commitbfb60f9ec6e21a939a3a6ddb30e9dd1cb7133be1
tree5c62ed27eea9af9e987e5862f0f25e389b44bf51
parenteca7c0daa8e7ff5b518a756f265c438bf8db7bd3
hwc: unset the layer in the vblank_handler

If we unset layer immediately we have flickering because I think it will
be better to unset layer after vblank.

For example the video is being displayed on layer with zpos 0 and UI
is being composited on layer with zpos 1 and HWC decide to composite video
to target_window. Then we do unset for layer 0 and set to layer 1 target buffer
with UI and video and we have the flickering. If we postpone unset till vblank
we don't have the flickering.

Change-Id: I64a5bcb02edb87a82890fc3278a68164c89f71c1
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
src/tdm_sprd_display.c