Skip to content
Commit edb6bdfa authored by Alec Mouri's avatar Alec Mouri
Browse files

Drive SurfaceView visibility on renderthread

In some scenarios, a SurfaceView:

1. May be moved offscreen by an app, such as through a ViewPager2
2. Have its RenderNode removed from the draw tree
3. The SurfaceView is remade visible on the UI thread

In this case, the view position is offscreen, but the SurfaceControl
position is at (0, 0). If there happens to be another SurfaceView at (0,
0), then this causes an accidental overlap.

To avoid this, visibility should be fully driven by RenderNode position
callbacks.

Bug: 269113414
Test: Test app with ViewPager2
Change-Id: Ia0abd56fe4be8b669d39864c5fc82e941fb3be8e
parent 3e49d76a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment