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

Commit ec0a5ac4 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Merge "Camera3Device: Update frame counters/timestamps for dumpsys info"

parents 67999b02 c31dc7e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,9 @@ status_t Camera3InputStream::getInputBufferLocked(
                        /*releaseFence*/-1, CAMERA3_BUFFER_STATUS_OK, /*output*/false);
    mBuffersInFlight.push_back(bufferItem);

    mFrameCount++;
    mLastTimestamp = bufferItem.mTimestamp;

    return OK;
}

@@ -220,6 +223,7 @@ status_t Camera3InputStream::configureQueueLocked() {

    mHandoutTotalBufferCount = 0;
    mFrameCount = 0;
    mLastTimestamp = 0;

    if (mConsumer.get() == 0) {
        sp<IGraphicBufferProducer> producer;
+1 −0
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ status_t Camera3OutputStream::returnBufferLocked(
    }

    mLastTimestamp = timestamp;
    mFrameCount++;

    return OK;
}