Lines Matching refs:mSlots

52     mSlots(core->mSlots),  in BufferQueueProducer()
86 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
88 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
92 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
93 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
122 if (mSlots[s].mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
264 if (mSlots[s].mBufferState.isDequeued()) { in waitForFreeSlotThenRelock()
267 if (mSlots[s].mBufferState.isAcquired()) { in waitForFreeSlotThenRelock()
426 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
446 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
461 attachedByConsumer = mSlots[found].mNeedsReallocation; in dequeueBuffer()
462 mSlots[found].mNeedsReallocation = false; in dequeueBuffer()
464 mSlots[found].mBufferState.dequeue(); in dequeueBuffer()
469 mSlots[found].mAcquireCalled = false; in dequeueBuffer()
470 mSlots[found].mGraphicBuffer = nullptr; in dequeueBuffer()
471 mSlots[found].mRequestBufferCalled = false; in dequeueBuffer()
472 mSlots[found].mEglDisplay = EGL_NO_DISPLAY; in dequeueBuffer()
473 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
474 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
482 mCore->mBufferAge = mCore->mFrameCounter + 1 - mSlots[found].mFrameNumber; in dequeueBuffer()
488 if (CC_UNLIKELY(mSlots[found].mFence == nullptr)) { in dequeueBuffer()
494 eglDisplay = mSlots[found].mEglDisplay; in dequeueBuffer()
495 eglFence = mSlots[found].mEglFence; in dequeueBuffer()
500 Fence::NO_FENCE : mSlots[found].mFence; in dequeueBuffer()
501 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
502 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
509 mSlots[found].mBufferState.mShared = true; in dequeueBuffer()
526 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer()
571 mSlots[*outSlot].mFrameNumber, in dequeueBuffer()
572 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer()
610 } else if (!mSlots[slot].mBufferState.isDequeued()) { in detachBuffer()
612 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in detachBuffer()
614 } else if (!mSlots[slot].mRequestBufferCalled) { in detachBuffer()
620 mSlots[slot].mBufferState.detachProducer(); in detachBuffer()
680 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer()
681 *outFence = mSlots[found].mFence; in detachNextBuffer()
750 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer()
751 mSlots[*outSlot].mBufferState.attachProducer(); in attachBuffer()
752 mSlots[*outSlot].mEglFence = EGL_NO_SYNC_KHR; in attachBuffer()
753 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
754 mSlots[*outSlot].mRequestBufferCalled = true; in attachBuffer()
755 mSlots[*outSlot].mAcquireCalled = false; in attachBuffer()
756 mSlots[*outSlot].mNeedsReallocation = false; in attachBuffer()
823 } else if (!mSlots[slot].mBufferState.isDequeued()) { in queueBuffer()
825 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in queueBuffer()
827 } else if (!mSlots[slot].mRequestBufferCalled) { in queueBuffer()
838 mSlots[slot].mBufferState.mShared = true; in queueBuffer()
848 const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); in queueBuffer()
863 mSlots[slot].mFence = acquireFence; in queueBuffer()
864 mSlots[slot].mBufferState.queue(); in queueBuffer()
870 mSlots[slot].mFrameNumber = currentFrameNumber; in queueBuffer()
872 item.mAcquireCalled = mSlots[slot].mAcquireCalled; in queueBuffer()
873 item.mGraphicBuffer = mSlots[slot].mGraphicBuffer; in queueBuffer()
922 mSlots[last.mSlot].mBufferState.freeQueued(); in queueBuffer()
928 mSlots[last.mSlot].mBufferState.isFree()) { in queueBuffer()
929 mSlots[last.mSlot].mBufferState.mShared = false; in queueBuffer()
932 if (!mSlots[last.mSlot].mBufferState.isShared()) { in queueBuffer()
1050 } else if (!mSlots[slot].mBufferState.isDequeued()) { in cancelBuffer()
1052 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in cancelBuffer()
1059 mSlots[slot].mBufferState.cancel(); in cancelBuffer()
1063 if (!mCore->mSharedBufferMode && mSlots[slot].mBufferState.isFree()) { in cancelBuffer()
1064 mSlots[slot].mBufferState.mShared = false; in cancelBuffer()
1068 if (!mSlots[slot].mBufferState.isShared()) { in cancelBuffer()
1073 mSlots[slot].mFence = fence; in cancelBuffer()
1420 mSlots[*slot].mGraphicBuffer = buffers[i]; in allocateBuffers()
1421 mSlots[*slot].mFence = Fence::NO_FENCE; in allocateBuffers()
1541 *outBuffer = mSlots[mCore->mLastQueuedSlot].mGraphicBuffer; in getLastQueuedBuffer()
1549 mSlots[mCore->mLastQueuedSlot].mGraphicBuffer, mLastQueuedCrop, in getLastQueuedBuffer()