Lines Matching refs:bufferInfo
349 VulkanSurface::NativeBufferInfo& bufferInfo = mNativeBuffers[i]; in releaseBuffers() local
351 if (bufferInfo.buffer.get() != nullptr && bufferInfo.dequeued) { in releaseBuffers()
352 int err = mNativeWindow->cancelBuffer(mNativeWindow.get(), bufferInfo.buffer.get(), in releaseBuffers()
353 bufferInfo.dequeue_fence.release()); in releaseBuffers()
357 bufferInfo.dequeued = false; in releaseBuffers()
358 bufferInfo.dequeue_fence.reset(); in releaseBuffers()
361 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeued); in releaseBuffers()
362 LOG_ALWAYS_FATAL_IF(bufferInfo.dequeue_fence.ok()); in releaseBuffers()
364 bufferInfo.skSurface.reset(); in releaseBuffers()
365 bufferInfo.buffer.clear(); in releaseBuffers()
366 bufferInfo.hasValidContents = false; in releaseBuffers()
367 bufferInfo.lastPresentedCount = 0; in releaseBuffers()
446 VulkanSurface::NativeBufferInfo* bufferInfo = &mNativeBuffers[idx]; in dequeueNativeBuffer() local
448 if (bufferInfo->skSurface.get() == nullptr) { in dequeueNativeBuffer()
449 bufferInfo->skSurface = SkSurface::MakeFromAHardwareBuffer( in dequeueNativeBuffer()
450 mGrContext, ANativeWindowBuffer_getHardwareBuffer(bufferInfo->buffer.get()), in dequeueNativeBuffer()
452 if (bufferInfo->skSurface.get() == nullptr) { in dequeueNativeBuffer()
461 mCurrentBufferInfo = bufferInfo; in dequeueNativeBuffer()
462 return bufferInfo; in dequeueNativeBuffer()