summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2021-09-10 12:03:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-10-18 07:23:07 +0000
commit9e2685a80fd866105d40f0d714386d3aaafb8bd2 (patch)
treee3ab74ac33103d7833c80705c50d78dcfbabd2db
parent01271f37d4bb7dda66347d2e2177565d0fde700d (diff)
downloadnative-9e2685a80fd866105d40f0d714386d3aaafb8bd2.tar.gz
DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor
To avoid it being initialised to true randomly. Bug: 199483370 Bug: 196389741 Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa (cherry picked from commit 41f48c7b10132c94822ab109de99978ee65cc743) Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
-rw-r--r--services/surfaceflinger/Layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 6817c5aabc..fc93e141d3 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -118,6 +118,7 @@ Layer::Layer(const LayerCreationArgs& args)
mCurrentState.shadowRadius = 0.f;
mCurrentState.treeHasFrameRateVote = false;
mCurrentState.fixedTransformHint = ui::Transform::ROT_INVALID;
+ mCurrentState.isTrustedOverlay = false;
if (args.flags & ISurfaceComposerClient::eNoColorFill) {
// Set an invalid color so there is no color fill.