• Home
  • Raw
  • Download

Lines Matching refs:mSlots

75     mSlots(core->mSlots),  in BufferQueueProducer()
109 } else if (!mSlots[slot].mBufferState.isDequeued()) { in requestBuffer()
111 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in requestBuffer()
115 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
116 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
145 if (mSlots[s].mBufferState.isDequeued()) { in setMaxDequeuedBufferCount()
287 if (mSlots[s].mBufferState.isDequeued()) { in waitForFreeSlotThenRelock()
290 if (mSlots[s].mBufferState.isAcquired()) { in waitForFreeSlotThenRelock()
453 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
473 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
488 attachedByConsumer = mSlots[found].mNeedsReallocation; in dequeueBuffer()
489 mSlots[found].mNeedsReallocation = false; in dequeueBuffer()
491 mSlots[found].mBufferState.dequeue(); in dequeueBuffer()
496 mSlots[found].mAcquireCalled = false; in dequeueBuffer()
497 mSlots[found].mGraphicBuffer = nullptr; in dequeueBuffer()
498 mSlots[found].mRequestBufferCalled = false; in dequeueBuffer()
499 mSlots[found].mEglDisplay = EGL_NO_DISPLAY; in dequeueBuffer()
500 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
501 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
509 mCore->mBufferAge = mCore->mFrameCounter + 1 - mSlots[found].mFrameNumber; in dequeueBuffer()
515 if (CC_UNLIKELY(mSlots[found].mFence == nullptr)) { in dequeueBuffer()
521 eglDisplay = mSlots[found].mEglDisplay; in dequeueBuffer()
522 eglFence = mSlots[found].mEglFence; in dequeueBuffer()
527 Fence::NO_FENCE : mSlots[found].mFence; in dequeueBuffer()
528 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
529 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
536 mSlots[found].mBufferState.mShared = true; in dequeueBuffer()
541 mCore->mConsumerListener->onFrameDequeued(mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer()
559 mSlots[*outSlot].mGraphicBuffer = graphicBuffer; in dequeueBuffer()
562 mSlots[*outSlot].mGraphicBuffer->getId()); in dequeueBuffer()
608 mSlots[*outSlot].mFrameNumber, in dequeueBuffer()
609 mSlots[*outSlot].mGraphicBuffer->handle, returnFlags); in dequeueBuffer()
647 } else if (!mSlots[slot].mBufferState.isDequeued()) { in detachBuffer()
649 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in detachBuffer()
651 } else if (!mSlots[slot].mRequestBufferCalled) { in detachBuffer()
658 auto gb = mSlots[slot].mGraphicBuffer; in detachBuffer()
662 mSlots[slot].mBufferState.detachProducer(); in detachBuffer()
721 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer()
722 *outFence = mSlots[found].mFence; in detachNextBuffer()
791 mSlots[*outSlot].mGraphicBuffer = buffer; in attachBuffer()
792 mSlots[*outSlot].mBufferState.attachProducer(); in attachBuffer()
793 mSlots[*outSlot].mEglFence = EGL_NO_SYNC_KHR; in attachBuffer()
794 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
795 mSlots[*outSlot].mRequestBufferCalled = true; in attachBuffer()
796 mSlots[*outSlot].mAcquireCalled = false; in attachBuffer()
797 mSlots[*outSlot].mNeedsReallocation = false; in attachBuffer()
864 } else if (!mSlots[slot].mBufferState.isDequeued()) { in queueBuffer()
866 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in queueBuffer()
868 } else if (!mSlots[slot].mRequestBufferCalled) { in queueBuffer()
879 mSlots[slot].mBufferState.mShared = true; in queueBuffer()
889 const sp<GraphicBuffer>& graphicBuffer(mSlots[slot].mGraphicBuffer); in queueBuffer()
904 mSlots[slot].mFence = acquireFence; in queueBuffer()
905 mSlots[slot].mBufferState.queue(); in queueBuffer()
911 mSlots[slot].mFrameNumber = currentFrameNumber; in queueBuffer()
913 item.mAcquireCalled = mSlots[slot].mAcquireCalled; in queueBuffer()
914 item.mGraphicBuffer = mSlots[slot].mGraphicBuffer; in queueBuffer()
963 mSlots[last.mSlot].mBufferState.freeQueued(); in queueBuffer()
969 mSlots[last.mSlot].mBufferState.isFree()) { in queueBuffer()
970 mSlots[last.mSlot].mBufferState.mShared = false; in queueBuffer()
973 if (!mSlots[last.mSlot].mBufferState.isShared()) { in queueBuffer()
1101 } else if (!mSlots[slot].mBufferState.isDequeued()) { in cancelBuffer()
1103 "(state = %s)", slot, mSlots[slot].mBufferState.string()); in cancelBuffer()
1110 mSlots[slot].mBufferState.cancel(); in cancelBuffer()
1114 if (!mCore->mSharedBufferMode && mSlots[slot].mBufferState.isFree()) { in cancelBuffer()
1115 mSlots[slot].mBufferState.mShared = false; in cancelBuffer()
1119 if (!mSlots[slot].mBufferState.isShared()) { in cancelBuffer()
1124 auto gb = mSlots[slot].mGraphicBuffer; in cancelBuffer()
1128 mSlots[slot].mFence = fence; in cancelBuffer()
1489 mSlots[*slot].mGraphicBuffer = buffers[i]; in allocateBuffers()
1490 mSlots[*slot].mFence = Fence::NO_FENCE; in allocateBuffers()
1610 *outBuffer = mSlots[mCore->mLastQueuedSlot].mGraphicBuffer; in getLastQueuedBuffer()
1618 mSlots[mCore->mLastQueuedSlot].mGraphicBuffer, mLastQueuedCrop, in getLastQueuedBuffer()
1636 *outBuffer = mSlots[mCore->mLastQueuedSlot].mGraphicBuffer; in getLastQueuedBuffer()