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

Commit 0c1966e2 authored by Robert Carr's avatar Robert Carr
Browse files

BufferStateLayer: ATRACE_CALL setBuffer

This roughly corresponds to the trace-point for
BufferQueueLayer::onFrameAvailable and should ease reading
traces as we transition from BQL to BSL.

Bug: 171232941
Test: Existing tests pass
Change-Id: Ibb2f31b34a0d9353003320af9625c027989a9e00
parent 9aa774d1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -262,6 +262,8 @@ bool BufferStateLayer::addFrameEvent(const sp<Fence>& acquireFence, nsecs_t post
bool BufferStateLayer::setBuffer(const sp<GraphicBuffer>& buffer, const sp<Fence>& acquireFence,
                                 nsecs_t postTime, nsecs_t desiredPresentTime,
                                 const client_cache_t& clientCacheId, uint64_t frameNumber) {
    ATRACE_CALL();

    if (mCurrentState.buffer) {
        mReleasePreviousBuffer = true;
    }