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

Commit 26c4976f authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SF: Fix buffer use after move

Change-Id: I5fa81999c1bccb5abc80ca3dd45d7d8da8ddad7b
Test: presubmit
Bug: 200284593
parent 66ebf74e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -452,8 +452,8 @@ bool BufferStateLayer::setBuffer(std::shared_ptr<renderengine::ExternalTexture>&

    setFrameTimelineVsyncForBufferTransaction(info, postTime);

    if (buffer && dequeueTime && *dequeueTime != 0) {
        const uint64_t bufferId = buffer->getId();
    if (dequeueTime && *dequeueTime != 0) {
        const uint64_t bufferId = mDrawingState.buffer->getId();
        mFlinger->mFrameTracer->traceNewLayer(layerId, getName().c_str());
        mFlinger->mFrameTracer->traceTimestamp(layerId, bufferId, frameNumber, *dequeueTime,
                                               FrameTracer::FrameEvent::DEQUEUE);