summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2021-04-06 09:53:26 -0400
committer Leon Scroggins III <scroggo@google.com> 2021-04-21 17:34:57 -0400
commitd305ef2847c7ab6f496fcda0aa41dfc3b1e574a4 (patch)
tree330be6e7ac765c55b53696039c620bbe00f6e0c0 /libs/gui/LayerDebugInfo.cpp
parente2ee040d21294c55a8c76f90ea82b2c9dc93277f (diff)
SF: Ignore rounded corners if the layer can peek through
Bug: 163076219 Test: manual Test: I53fc851eca876d44ba7cb9347f1c62d659c38932 In Layer::preparePerFrameCompositionState, no longer set forceClientComposition to true based on the presence of rounded corners. This will be determined later, based on whether the Layer will peek through a Layer with a hole-punch. In CachedSet::requiresHolePunch, return false if the layer must be client composited for reasons other than rounded corners (which no longer force client composition). While we could still use a hole punch, it would not provide the desired effect (preventing waking up the GPU). Add an extra field to overrideInfo, denoting whether this layer will peek through another layer. Set it on a peekThroughLayer before sending it to the HWC. If it's not set, and the layer has rounded corners, the layer must be client composited, as before. Change-Id: I3b4341d049c0fa5020dfd89ca9e765588a457eb1
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions