Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a45a054 authored by jiayongqiang's avatar jiayongqiang
Browse files

Remove redundant call in Layer's constructor.



'mDrawingState.crop.makeInvalid()' has been called twice in the
approach of Layer::Layer(const LayerCreationArgs& args), so remove
the second call.

Test: atest LayerSnapshotTest, LayerTest

Change-Id: I4cc40d9ec697ff20a1b71fa7aa50f09cef6c7afc
Signed-off-by: default avatarjiayongqiang <jiayongqiang@xiaomi.com>
parent 1a352b5a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -172,7 +172,6 @@ Layer::Layer(const LayerCreationArgs& args)
    mDrawingState.barrierProducerId = 0;
    mDrawingState.bufferTransform = 0;
    mDrawingState.transformToDisplayInverse = false;
    mDrawingState.crop.makeInvalid();
    mDrawingState.acquireFence = sp<Fence>::make(-1);
    mDrawingState.acquireFenceTime = std::make_shared<FenceTime>(mDrawingState.acquireFence);
    mDrawingState.dataspace = ui::Dataspace::V0_SRGB;