Lines Matching refs:slot

165         int slot = front->mSlot;  in acquireBuffer()  local
167 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
170 slot, front->mFrameNumber, front->mGraphicBuffer->handle); in acquireBuffer()
173 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
174 mSlots[slot].mNeedsCleanupOnRelease = false; in acquireBuffer()
175 mSlots[slot].mBufferState = BufferSlot::ACQUIRED; in acquireBuffer()
176 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
207 status_t BufferQueueConsumer::detachBuffer(int slot) { in detachBuffer() argument
209 ATRACE_BUFFER_INDEX(slot); in detachBuffer()
210 BQ_LOGV("detachBuffer(C): slot %d", slot); in detachBuffer()
218 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { in detachBuffer()
220 slot, BufferQueueDefs::NUM_BUFFER_SLOTS); in detachBuffer()
222 } else if (mSlots[slot].mBufferState != BufferSlot::ACQUIRED) { in detachBuffer()
224 "(state = %d)", slot, mSlots[slot].mBufferState); in detachBuffer()
228 mCore->freeBufferLocked(slot); in detachBuffer()
274 auto slot = mCore->mFreeSlots.begin(); in attachBuffer() local
275 found = *slot; in attachBuffer()
276 mCore->mFreeSlots.erase(slot); in attachBuffer()
319 status_t BufferQueueConsumer::releaseBuffer(int slot, uint64_t frameNumber, in releaseBuffer() argument
323 ATRACE_BUFFER_INDEX(slot); in releaseBuffer()
325 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS || in releaseBuffer()
327 BQ_LOGE("releaseBuffer: slot %d out of range or fence %p NULL", slot, in releaseBuffer()
338 if (frameNumber != mSlots[slot].mFrameNumber) { in releaseBuffer()
345 if (current->mSlot == slot) { in releaseBuffer()
347 "currently queued", slot); in releaseBuffer()
353 if (mSlots[slot].mBufferState == BufferSlot::ACQUIRED) { in releaseBuffer()
354 mSlots[slot].mEglDisplay = eglDisplay; in releaseBuffer()
355 mSlots[slot].mEglFence = eglFence; in releaseBuffer()
356 mSlots[slot].mFence = releaseFence; in releaseBuffer()
357 mSlots[slot].mBufferState = BufferSlot::FREE; in releaseBuffer()
358 mCore->mFreeBuffers.push_back(slot); in releaseBuffer()
360 BQ_LOGV("releaseBuffer: releasing slot %d", slot); in releaseBuffer()
361 } else if (mSlots[slot].mNeedsCleanupOnRelease) { in releaseBuffer()
363 "(state = %d)", slot, mSlots[slot].mBufferState); in releaseBuffer()
364 mSlots[slot].mNeedsCleanupOnRelease = false; in releaseBuffer()
368 "but its state was %d", slot, mSlots[slot].mBufferState); in releaseBuffer()