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

Commit 71781045 authored by Sungtak Lee's avatar Sungtak Lee
Browse files

GraphicsTracker: do not provide FrameEventHistoryDelta when dequeuBuffer

Providing FrameEventHistoryDelta output parameter to dequeueBuffer()
will fetch frame event history and clear it, therefore queueBuffer()
cannot fetch frame event history.

Currently rendered timestamp is retrieved from queueBuffer().
So do not provide output FrameEventHistoryDelta output parameter when
dequeueBuffer().

Bug: 345640513
Change-Id: Icf7d8ff2fd8b0a7cef79aefdca67ec26ca93ae9b
parent 8ad0f403
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -664,11 +664,10 @@ c2_status_t GraphicsTracker::_allocate(const std::shared_ptr<BufferCache> &cache

    int slotId;
    uint64_t outBufferAge;
    ::android::FrameEventHistoryDelta outTimestamps;
    sp<Fence> fence;

    ::android::status_t status = igbp->dequeueBuffer(
            &slotId, &fence, width, height, format, usage, &outBufferAge, &outTimestamps);
            &slotId, &fence, width, height, format, usage, &outBufferAge, nullptr);
    if (status < ::android::OK) {
        if (status == ::android::TIMED_OUT || status == ::android::WOULD_BLOCK) {
            ALOGW("BQ might not be ready for dequeueBuffer()");