Lines Matching refs:found

135         bool async, int* found, status_t* returnFlags) const {  in waitForFreeSlotThenRelock()  argument
206 *found = BufferQueueCore::INVALID_BUFFER_SLOT; in waitForFreeSlotThenRelock()
220 *found = *slot; in waitForFreeSlotThenRelock()
226 *found = *slot; in waitForFreeSlotThenRelock()
235 tryAgain = (*found == BufferQueueCore::INVALID_BUFFER_SLOT) || in waitForFreeSlotThenRelock()
294 int found = BufferItem::INVALID_BUFFER_SLOT; in dequeueBuffer() local
295 while (found == BufferItem::INVALID_BUFFER_SLOT) { in dequeueBuffer()
297 &found, &returnFlags); in dequeueBuffer()
303 if (found == BufferQueueCore::INVALID_BUFFER_SLOT) { in dequeueBuffer()
308 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
316 mCore->freeBufferLocked(found); in dequeueBuffer()
317 found = BufferItem::INVALID_BUFFER_SLOT; in dequeueBuffer()
323 *outSlot = found; in dequeueBuffer()
324 ATRACE_BUFFER_INDEX(found); in dequeueBuffer()
326 attachedByConsumer = mSlots[found].mAttachedByConsumer; in dequeueBuffer()
328 mSlots[found].mBufferState = BufferSlot::DEQUEUED; in dequeueBuffer()
330 const sp<GraphicBuffer>& buffer(mSlots[found].mGraphicBuffer); in dequeueBuffer()
334 mSlots[found].mAcquireCalled = false; in dequeueBuffer()
335 mSlots[found].mGraphicBuffer = NULL; in dequeueBuffer()
336 mSlots[found].mRequestBufferCalled = false; in dequeueBuffer()
337 mSlots[found].mEglDisplay = EGL_NO_DISPLAY; in dequeueBuffer()
338 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
339 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
347 mCore->mFrameCounter + 1 - mSlots[found].mFrameNumber; in dequeueBuffer()
353 if (CC_UNLIKELY(mSlots[found].mFence == NULL)) { in dequeueBuffer()
356 found, buffer->width, buffer->height, buffer->format); in dequeueBuffer()
359 eglDisplay = mSlots[found].mEglDisplay; in dequeueBuffer()
360 eglFence = mSlots[found].mEglFence; in dequeueBuffer()
361 *outFence = mSlots[found].mFence; in dequeueBuffer()
362 mSlots[found].mEglFence = EGL_NO_SYNC_KHR; in dequeueBuffer()
363 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
474 int found = mCore->mFreeBuffers.front(); in detachNextBuffer() local
475 mCore->mFreeBuffers.remove(found); in detachNextBuffer()
477 BQ_LOGV("detachNextBuffer detached slot %d", found); in detachNextBuffer()
479 *outBuffer = mSlots[found].mGraphicBuffer; in detachNextBuffer()
480 *outFence = mSlots[found].mFence; in detachNextBuffer()
481 mCore->freeBufferLocked(found); in detachNextBuffer()
510 int found; in attachBuffer() local
515 &found, &returnFlags); in attachBuffer()
521 if (found == BufferQueueCore::INVALID_BUFFER_SLOT) { in attachBuffer()
526 *outSlot = found; in attachBuffer()