Lines Matching refs:currentBuffer
542 VulkanSurface::NativeBufferInfo& currentBuffer = *mCurrentBufferInfo; in presentCurrentBuffer() local
543 int queuedFd = (semaphoreFd != -1) ? semaphoreFd : currentBuffer.dequeue_fence; in presentCurrentBuffer()
544 int err = mNativeWindow->queueBuffer(mNativeWindow.get(), currentBuffer.buffer.get(), queuedFd); in presentCurrentBuffer()
546 currentBuffer.dequeued = false; in presentCurrentBuffer()
550 mNativeWindow->cancelBuffer(mNativeWindow.get(), currentBuffer.buffer.get(), in presentCurrentBuffer()
551 currentBuffer.dequeue_fence); in presentCurrentBuffer()
553 currentBuffer.hasValidContents = true; in presentCurrentBuffer()
554 currentBuffer.lastPresentedCount = mPresentCount; in presentCurrentBuffer()
558 if (currentBuffer.dequeue_fence >= 0) { in presentCurrentBuffer()
559 close(currentBuffer.dequeue_fence); in presentCurrentBuffer()
560 currentBuffer.dequeue_fence = -1; in presentCurrentBuffer()
568 VulkanSurface::NativeBufferInfo& currentBuffer = *mCurrentBufferInfo; in getCurrentBuffersAge() local
569 return currentBuffer.hasValidContents ? (mPresentCount - currentBuffer.lastPresentedCount) : 0; in getCurrentBuffersAge()