Lines Matching refs:mBackendContext

46         mDestroyCommandPool(mBackendContext->fDevice, mCommandPool, nullptr);
49 mBackendContext.reset();
57 mBackendContext.reset(GrVkBackendContext::Create(&mPresentQueueIndex, canPresent));
60 VkInstance instance = mBackendContext->fInstance;
61 VkDevice device = mBackendContext->fDevice;
98 commandPoolInfo.queueFamilyIndex = mBackendContext->fGraphicsQueueIndex;
100 SkDEBUGCODE(VkResult res =) mCreateCommandPool(mBackendContext->fDevice,
105 mGetDeviceQueue(mBackendContext->fDevice, mPresentQueueIndex, 0, &mPresentQueue);
108 (GrBackendContext) mBackendContext.get()));
133 VkResult res = mWaitForFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences,
149 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences);
154 res = mAcquireNextImageKHR(mBackendContext->fDevice, surface->mSwapchain, UINT64_MAX,
168 res = mResetFences(mBackendContext->fDevice, 2, backbuffer->mUsageFences);
172 res = mAcquireNextImageKHR(mBackendContext->fDevice, surface->mSwapchain, UINT64_MAX,
199 mBackendContext->fGraphicsQueueIndex, // dstQueueFamilyIndex
230 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[0]);
246 mWaitForFences(mBackendContext->fDevice, 2, surface->mBackbuffers[i].mUsageFences, true,
249 mDestroySemaphore(mBackendContext->fDevice, surface->mBackbuffers[i].mAcquireSemaphore,
251 mDestroySemaphore(mBackendContext->fDevice, surface->mBackbuffers[i].mRenderSemaphore,
253 mFreeCommandBuffers(mBackendContext->fDevice, mCommandPool, 2,
255 mDestroyFence(mBackendContext->fDevice, surface->mBackbuffers[i].mUsageFences[0], 0);
256 mDestroyFence(mBackendContext->fDevice, surface->mBackbuffers[i].mUsageFences[1], 0);
273 mDeviceWaitIdle(mBackendContext->fDevice);
278 mDestroySwapchainKHR(mBackendContext->fDevice, surface->mSwapchain, nullptr);
283 mDestroySurfaceKHR(mBackendContext->fInstance, surface->mVkSurface, nullptr);
290 mGetSwapchainImagesKHR(mBackendContext->fDevice, surface->mSwapchain, &surface->mImageCount,
294 mGetSwapchainImagesKHR(mBackendContext->fDevice, surface->mSwapchain,
354 SkDEBUGCODE(res = ) mCreateSemaphore(mBackendContext->fDevice, &semaphoreInfo, nullptr,
356 SkDEBUGCODE(res = ) mCreateSemaphore(mBackendContext->fDevice, &semaphoreInfo, nullptr,
358 SkDEBUGCODE(res = ) mAllocateCommandBuffers(mBackendContext->fDevice, &commandBuffersInfo,
360 SkDEBUGCODE(res = ) mCreateFence(mBackendContext->fDevice, &fenceInfo, nullptr,
362 SkDEBUGCODE(res = ) mCreateFence(mBackendContext->fDevice, &fenceInfo, nullptr,
372 VkResult res = mGetPhysicalDeviceSurfaceCapabilitiesKHR(mBackendContext->fPhysicalDevice,
379 res = mGetPhysicalDeviceSurfaceFormatsKHR(mBackendContext->fPhysicalDevice, surface->mVkSurface,
386 res = mGetPhysicalDeviceSurfaceFormatsKHR(mBackendContext->fPhysicalDevice, surface->mVkSurface,
393 res = mGetPhysicalDeviceSurfacePresentModesKHR(mBackendContext->fPhysicalDevice,
400 res = mGetPhysicalDeviceSurfacePresentModesKHR(mBackendContext->fPhysicalDevice,
481 uint32_t queueFamilies[] = { mBackendContext->fGraphicsQueueIndex, mPresentQueueIndex };
482 if (mBackendContext->fGraphicsQueueIndex != mPresentQueueIndex) {
498 res = mCreateSwapchainKHR(mBackendContext->fDevice, &swapchainCreateInfo, nullptr,
506 mDeviceWaitIdle(mBackendContext->fDevice);
510 mDestroySwapchainKHR(mBackendContext->fDevice, swapchainCreateInfo.oldSwapchain, nullptr);
535 VkResult res = mCreateAndroidSurfaceKHR(mBackendContext->fInstance, &surfaceCreateInfo,
544 res = mGetPhysicalDeviceSurfaceSupportKHR(mBackendContext->fPhysicalDevice,
608 mDeviceWaitIdle(mBackendContext->fDevice);
635 mBackendContext->fGraphicsQueueIndex, // srcQueueFamilyIndex
667 mQueueSubmit(mBackendContext->fQueue, 1, &submitInfo, backbuffer->mUsageFences[1]);