Skip to content

Commit

Permalink
DO NOT MERGE Initialize DrawingState::trustedOverlay to false in cons…
Browse files Browse the repository at this point in the history
…tructor

To avoid it being initialised to true randomly.

Bug: 199483370
Bug: 196389741
Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
  • Loading branch information
hex539 authored and Winson Chung committed Nov 5, 2021
1 parent 7605fb4 commit 41f48c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/surfaceflinger/Layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 41f48c7

Please sign in to comment.