[platforms/hwcomposer] Set value of surfaceDamage.numRects to 0

Newer hwcomposer implementation seem to require this. This additional
fix is required in addition to 54565a94bd for newer hwcomposer
interface.
This commit is contained in:
Bhushan Shah 2017-11-02 10:08:52 +05:30
parent fc887ab907
commit 48590783fa

View file

@ -417,6 +417,9 @@ static void initLayer(hwc_layer_1_t *layer, const hwc_rect_t &rect, int layerCom
layer->acquireFenceFd = -1;
layer->releaseFenceFd = -1;
layer->planeAlpha = 0xFF;
#ifdef HWC_DEVICE_API_VERSION_1_5
layer->surfaceDamage.numRects = 0;
#endif
}
HwcomposerWindow::HwcomposerWindow(HwcomposerBackend *backend)