From 48590783fa40362f1d5b5ab555d77c11db972277 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Thu, 2 Nov 2017 10:08:52 +0530 Subject: [PATCH] [platforms/hwcomposer] Set value of surfaceDamage.numRects to 0 Newer hwcomposer implementation seem to require this. This additional fix is required in addition to 54565a94bd81f5 for newer hwcomposer interface. --- plugins/platforms/hwcomposer/hwcomposer_backend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/platforms/hwcomposer/hwcomposer_backend.cpp b/plugins/platforms/hwcomposer/hwcomposer_backend.cpp index 797b7b2465..6cc024fa95 100644 --- a/plugins/platforms/hwcomposer/hwcomposer_backend.cpp +++ b/plugins/platforms/hwcomposer/hwcomposer_backend.cpp @@ -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)