Lines Matching refs:slot

146     int slot = front->mSlot;  in acquireBuffer()  local
148 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
151 slot, front->mFrameNumber, front->mGraphicBuffer->handle); in acquireBuffer()
154 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
155 mSlots[slot].mNeedsCleanupOnRelease = false; in acquireBuffer()
156 mSlots[slot].mBufferState = BufferSlot::ACQUIRED; in acquireBuffer()
157 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
179 status_t BufferQueueConsumer::detachBuffer(int slot) { in detachBuffer() argument
181 ATRACE_BUFFER_INDEX(slot); in detachBuffer()
182 BQ_LOGV("detachBuffer(C): slot %d", slot); in detachBuffer()
190 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { in detachBuffer()
192 slot, BufferQueueDefs::NUM_BUFFER_SLOTS); in detachBuffer()
194 } else if (mSlots[slot].mBufferState != BufferSlot::ACQUIRED) { in detachBuffer()
196 "(state = %d)", slot, mSlots[slot].mBufferState); in detachBuffer()
200 mCore->freeBufferLocked(slot); in detachBuffer()
277 status_t BufferQueueConsumer::releaseBuffer(int slot, uint64_t frameNumber, in releaseBuffer() argument
281 ATRACE_BUFFER_INDEX(slot); in releaseBuffer()
283 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS || in releaseBuffer()
294 if (frameNumber != mSlots[slot].mFrameNumber) { in releaseBuffer()
301 if (current->mSlot == slot) { in releaseBuffer()
303 "currently queued", slot); in releaseBuffer()
309 if (mSlots[slot].mBufferState == BufferSlot::ACQUIRED) { in releaseBuffer()
310 mSlots[slot].mEglDisplay = eglDisplay; in releaseBuffer()
311 mSlots[slot].mEglFence = eglFence; in releaseBuffer()
312 mSlots[slot].mFence = releaseFence; in releaseBuffer()
313 mSlots[slot].mBufferState = BufferSlot::FREE; in releaseBuffer()
315 BQ_LOGV("releaseBuffer: releasing slot %d", slot); in releaseBuffer()
316 } else if (mSlots[slot].mNeedsCleanupOnRelease) { in releaseBuffer()
318 "(state = %d)", slot, mSlots[slot].mBufferState); in releaseBuffer()
319 mSlots[slot].mNeedsCleanupOnRelease = false; in releaseBuffer()
323 "but its state was %d", slot, mSlots[slot].mBufferState); in releaseBuffer()