Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2eae6d38 authored by Rajavenu Kyatham's avatar Rajavenu Kyatham Committed by Yichi Chen
Browse files

SurfaceFlinger: Consider parent alpha as well

sf: Use layer alpha derived from parent layer

Layer::getAlpha() function derives the plane alpha value for child
layer from its parent layer. This alpha value is passed across all
the composition devices like MDP and GPU for all child layers. But
while clearing the FB region, only child layer alpha is checked
instead of derived alpha value from parent. This causes FB clear to
happen for non opaque layer results in flickering effect. Use derived
alpha value from parent to fix the issue

SF: Consider parent alpha as well in dim layer

Consider parent alpha as well in dim layer during client
composition same as device composition.

Bug: b/110632776
Test: Run sffakehwc_test with new test cases in ChildColorLayerTest
Change-Id: I99f320e0224f77ca1596f08d259d56907f82d6cc
parent 7fea6fe1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment