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

Commit ec9c7010 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Use Layer.getAlpha instead of State.alpha to calculate occlusion"

parents 87868d79 039bbb8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2437,7 +2437,7 @@ void SurfaceFlinger::computeVisibleRegions(const sp<const DisplayDevice>& displa

                // compute the opaque region
                const int32_t layerOrientation = tr.getOrientation();
                if (s.alpha == 1.0f && !translucent &&
                if (layer->getAlpha() == 1.0f && !translucent &&
                        ((layerOrientation & Transform::ROT_INVALID) == false)) {
                    // the opaque region is the layer's footprint
                    opaqueRegion = visibleRegion;