From 4962f72985dbc5789dc89dcd47b0a717441620aa Mon Sep 17 00:00:00 2001 From: twwang Date: Thu, 10 Sep 2020 22:18:21 +0800 Subject: [PATCH] hwcomposer: show some framebuffers which are hide. Some framebuffers have alpha not equal to 0xFF, that will not show, show it to solve this bug. --- services/surfaceflinger/DisplayHardware/HWComposer_hwc1.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/surfaceflinger/DisplayHardware/HWComposer_hwc1.cpp b/services/surfaceflinger/DisplayHardware/HWComposer_hwc1.cpp index aa6dba90c..f71f7fe63 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer_hwc1.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer_hwc1.cpp @@ -985,10 +985,6 @@ public: virtual void setPlaneAlpha(uint8_t alpha) { if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) { getLayer()->planeAlpha = alpha; - } else { - if (alpha < 0xFF) { - getLayer()->flags |= HWC_SKIP_LAYER; - } } } virtual void setDefaultState() { -- Gitee