summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-04-22 18:17:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-04-22 18:17:51 +0000
commitfa030dc23f3ef12abfc37a7b1fe713fb53a446a0 (patch)
tree8db5406599ab6ba786857c2e69b759ede21b78be /services/surfaceflinger/Layer.cpp
parentdf0409b1e23d718ed8553ae97b04ad6cb93bb8db (diff)
parent9aa25c2ed820f2df637d6cfeb10e4762c582f7af (diff)
Merge changes from topics "identify_a_pip", "writeStateToHWC_update" into sc-dev
* changes: SF rounded corners: include geometry when reordering SF: only hole punch through opaque layers SF: Ignore rounded corners if the layer can peek through Reorder the layers sent to HWC Identify a PIP window and implement hole punch
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index cf215adba2..4461420b46 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -531,7 +531,9 @@ void Layer::preparePerFrameCompositionState() {
isOpaque(drawingState) && !usesRoundedCorners && getAlpha() == 1.0_hf;
// Force client composition for special cases known only to the front-end.
- if (isHdrY410() || usesRoundedCorners || drawShadows() || drawingState.blurRegions.size() > 0 ||
+ // Rounded corners no longer force client composition, since we may use a
+ // hole punch so that the layer will appear to have rounded corners.
+ if (isHdrY410() || drawShadows() || drawingState.blurRegions.size() > 0 ||
compositionState->stretchEffect.hasEffect()) {
compositionState->forceClientComposition = true;
}