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

Commit abc64f0d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: skip buffer cache when BYPASS_IHWC"

parents 3b70dffa 406acb8c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -914,6 +914,10 @@ void HWComposerBufferCache::getHwcBuffer(int slot,
        const sp<GraphicBuffer>& buffer,
        uint32_t* outSlot, sp<GraphicBuffer>* outBuffer)
{
#ifdef BYPASS_IHWC
    *outSlot = slot;
    *outBuffer = buffer;
#else
    if (slot == BufferQueue::INVALID_BUFFER_SLOT || slot < 0) {
        // default to slot 0
        slot = 0;
@@ -934,6 +938,7 @@ void HWComposerBufferCache::getHwcBuffer(int slot,
        // update cache
        mBuffers[slot] = buffer;
    }
#endif
}

// ---------------------------------------------------------------------------