diff options
| author | 2021-09-10 12:03:42 +0000 | |
|---|---|---|
| committer | 2022-03-16 16:45:59 +0000 | |
| commit | b4a2d3a77ab2fc8b7e3d88c528c71269651f0ddb (patch) | |
| tree | e951346e83383aeb0a8784d52a6020ef88714a29 /services/surfaceflinger/Layer.cpp | |
| parent | fe4d05cd44be3ee805c14c49e59b88d8cf67c4a1 (diff) | |
Initialize DrawingState::trustedOverlay to false in constructor
To avoid it being initialised to true randomly.
Bug: 199483370
Bug: 196389741
Bug: 218605327
Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
(cherry picked from commit edb375df82f6b48688d85c11dbca91adef088bc8)
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 1 |
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. |