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
Loading
Please register or sign in to comment