Lines Matching refs:backbuffer

136     VulkanSurface::BackbufferInfo* backbuffer =  in getAvailableBackbuffer()  local
142 mWaitForFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences, true, UINT64_MAX); in getAvailableBackbuffer()
147 return backbuffer; in getAvailableBackbuffer()
151 VulkanSurface::BackbufferInfo* backbuffer = getAvailableBackbuffer(surface); in getBackbufferSurface() local
152 SkASSERT(backbuffer); in getBackbufferSurface()
156 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences); in getBackbufferSurface()
162 backbuffer->mAcquireSemaphore, VK_NULL_HANDLE, in getBackbufferSurface()
163 &backbuffer->mImageIndex); in getBackbufferSurface()
175 backbuffer = getAvailableBackbuffer(surface); in getBackbufferSurface()
176 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences); in getBackbufferSurface()
181 backbuffer->mAcquireSemaphore, VK_NULL_HANDLE, in getBackbufferSurface()
182 &backbuffer->mImageIndex); in getBackbufferSurface()
190 VkImageLayout layout = surface->mImageInfos[backbuffer->mImageIndex].mImageLayout; in getBackbufferSurface()
209 surface->mImages[backbuffer->mImageIndex], // image in getBackbufferSurface()
212 mResetCommandBuffer(backbuffer->mTransitionCmdBuffers[0], 0); in getBackbufferSurface()
218 mBeginCommandBuffer(backbuffer->mTransitionCmdBuffers[0], &info); in getBackbufferSurface()
220 mCmdPipelineBarrier(backbuffer->mTransitionCmdBuffers[0], srcStageMask, dstStageMask, 0, 0, in getBackbufferSurface()
223 mEndCommandBuffer(backbuffer->mTransitionCmdBuffers[0]); in getBackbufferSurface()
232 submitInfo.pWaitSemaphores = &backbuffer->mAcquireSemaphore; in getBackbufferSurface()
235 submitInfo.pCommandBuffers = &backbuffer->mTransitionCmdBuffers[0]; in getBackbufferSurface()
239 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[0]); in getBackbufferSurface()
243 sk_sp<SkSurface> skSurface = surface->mImageInfos[backbuffer->mImageIndex].mSurface; in getBackbufferSurface()
608 VulkanSurface::BackbufferInfo* backbuffer = in swapBuffers() local
611 SkSurface* skSurface = surface->mImageInfos[backbuffer->mImageIndex].mSurface.get(); in swapBuffers()
615 SkASSERT(imageInfo->fImage == surface->mImages[backbuffer->mImageIndex]); in swapBuffers()
634 surface->mImages[backbuffer->mImageIndex], // image in swapBuffers()
638 mResetCommandBuffer(backbuffer->mTransitionCmdBuffers[1], 0); in swapBuffers()
643 mBeginCommandBuffer(backbuffer->mTransitionCmdBuffers[1], &info); in swapBuffers()
644 mCmdPipelineBarrier(backbuffer->mTransitionCmdBuffers[1], srcStageMask, dstStageMask, 0, 0, in swapBuffers()
646 mEndCommandBuffer(backbuffer->mTransitionCmdBuffers[1]); in swapBuffers()
648 surface->mImageInfos[backbuffer->mImageIndex].mImageLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; in swapBuffers()
657 submitInfo.pCommandBuffers = &backbuffer->mTransitionCmdBuffers[1]; in swapBuffers()
661 submitInfo.pSignalSemaphores = &backbuffer->mRenderSemaphore; in swapBuffers()
664 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[1]); in swapBuffers()
673 &backbuffer->mRenderSemaphore, // pWaitSemaphores in swapBuffers()
676 &backbuffer->mImageIndex, // pImageIndices in swapBuffers()
683 surface->mImageInfos[backbuffer->mImageIndex].mLastUsed = surface->mCurrentTime; in swapBuffers()
684 surface->mImageInfos[backbuffer->mImageIndex].mInvalid = false; in swapBuffers()
690 VulkanSurface::BackbufferInfo* backbuffer = in getAge() local
693 surface->mImageInfos[backbuffer->mImageIndex].mInvalid) { in getAge()
696 uint16_t lastUsed = surface->mImageInfos[backbuffer->mImageIndex].mLastUsed; in getAge()