summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2021-04-16 12:02:05 -0400
committer Leon Scroggins III <scroggo@google.com> 2021-04-21 17:34:57 -0400
commitff3c57e9f53496c9c419a73b600be1334125dbb3 (patch)
tree4c3afbfed72fee06eaa95884f78cb18bdc03d39f /libs/gui/LayerDebugInfo.cpp
parentd305ef2847c7ab6f496fcda0aa41dfc3b1e574a4 (diff)
SF: only hole punch through opaque layers
Bug: 163076219 Test: manual The hole punch requires that the layer with the hole be opaque where the PIP is (or more accurately, where its corners are), so that it will cover up the square corners. Only add a hole punch if a layer in the prior CachedSet is opaque and contains the PIP's area. Consider a layer with rounded corners non-opaque for simplicity and practical reasons (it is an unexpected use case). Consider the very first layer to be opaque because nothing is drawn behind it (besides the layer that peeks through the hole punch). This allows apps like Gmail, which may not report its layer to be opaque, to support using a hole punch. Change-Id: I593bedb1308cf318431b5ef7f177f20d91102a9b
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions