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

Commit bdf43af2 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Do not use transparent region hints to crop layers

Transparent region hints provided by ViewRootImpl maybe stale or
inaccurate. Specifically, ViewRootImpl only updates the transparent
region hints after a layout pass, it does not handle cases where
surfaceview might be rounded, or the SurfaceView is moved outside of
layout.

Using the region to crop layers might create artifacts on the screen.
Instead we limit the usage to remove the entire layer from the
composition list to avoid performance regressions when SurfaceView fills
the entire window.

Test: SurfaceView inside a scrollable view does not cause rendering artifacts
Bug: 428386342
Flag: com.android.graphics.surfaceflinger.flags.disable_transparent_region_hint
Change-Id: I29713070630e56a3bac761f7f7b89013c8043301
parent 6eff7eaf
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