summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Robin Lee <rgl@google.com> 2021-09-10 12:03:42 +0000
committer Winson Chung <winsonc@google.com> 2021-09-14 23:13:39 +0000
commitcccbb97d57caded61785c70ac6d5760037a15d3c (patch)
tree8838948c3a6a06a0900a509f833825f419fedd3f /services/surfaceflinger/Layer.cpp
parente86f58c53c2ae0bcfc31bc2d80e261dc3193a886 (diff)
Initialize DrawingState::trustedOverlay to false in constructor
To avoid it being initialised to true randomly. Bug: 199483370 Bug: 198370268 Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa (cherry picked from commit ba48944f4b465f5927a4764b461942fdf245ca08)
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-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 e4a777f3c7..75dd51c992 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -134,6 +134,7 @@ Layer::Layer(const LayerCreationArgs& args)
mDrawingState.frameTimelineInfo = {};
mDrawingState.postTime = -1;
mDrawingState.destinationFrame.makeInvalid();
+ mDrawingState.isTrustedOverlay = false;
if (args.flags & ISurfaceComposerClient::eNoColorFill) {
// Set an invalid color so there is no color fill.