Lines Matching refs:slot
244 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument
253 status_t result = mConsumer->detachBuffer(slot); in detachBuffer()
259 freeBufferLocked(slot); in detachBuffer()
413 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument
416 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
419 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument
421 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
425 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked()
429 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
430 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
437 auto currentStatus = mSlots[slot].mFence->getStatus(); in addReleaseFenceLocked()
446 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
454 snprintf(fenceName, 32, "%.28s:%d", mName.string(), slot); in addReleaseFenceLocked()
456 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked()
461 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
464 mSlots[slot].mFence = mergedFence; in addReleaseFenceLocked()
473 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
481 int slot, const sp<GraphicBuffer> graphicBuffer, in releaseBufferLocked() argument
490 if (!stillTracking(slot, graphicBuffer)) { in releaseBufferLocked()
495 slot, mSlots[slot].mFrameNumber); in releaseBufferLocked()
496 status_t err = mConsumer->releaseBuffer(slot, mSlots[slot].mFrameNumber, in releaseBufferLocked()
497 display, eglFence, mSlots[slot].mFence); in releaseBufferLocked()
499 freeBufferLocked(slot); in releaseBufferLocked()
502 mPrevFinalReleaseFence = mSlots[slot].mFence; in releaseBufferLocked()
503 mSlots[slot].mFence = Fence::NO_FENCE; in releaseBufferLocked()
508 bool ConsumerBase::stillTracking(int slot, in stillTracking() argument
510 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) { in stillTracking()
513 return (mSlots[slot].mGraphicBuffer != nullptr && in stillTracking()
514 mSlots[slot].mGraphicBuffer->handle == graphicBuffer->handle); in stillTracking()