diff options
| author | 2021-04-01 16:38:25 -0400 | |
|---|---|---|
| committer | 2021-04-21 17:34:13 -0400 | |
| commit | f8a183121abb5445adb138f51fd702842dec626d (patch) | |
| tree | ee309902478c9bac2d52436b871cc88bcbe9e637 /libs/gui/LayerDebugInfo.cpp | |
| parent | 344d6a62dbb31e48b47bc2f660c8242352505334 (diff) | |
Identify a PIP window and implement hole punch
Bug: 163076219
Test: manual
Test: I53fc851eca876d44ba7cb9347f1c62d659c38932
In order to use a hole punch + device compositing to render a PIP, we
need to find a PIP that follows a CachedSet. A PIP (or, more generally,
a layer that we can render in this way in order to use device
composition more frequently) must have rounded corners and a buffer.
Add LayerFE::hasRoundedCorners (and implement in Layer) to allow
identifying whether a layer has rounded corners.
If a CachedSet has a hole punch layer, use a modified version of its
LayerSettings to draw a transparent round rect into its buffer.
Only active if caching and debug.sf.enable_hole_punch_pip are enabled
and PIPs use rounded corners (as in frameworks/base change
Ib0f61bbcbee6ead82beec2b149b0892836492b78).
Change-Id: I56e2a6debce6ede4bebfcbd32bffa01c20461542
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions