diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-24 13:24:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-25 06:39:05 +0000 |
commit | aef70869b0fae3001648ec2a2651ffc9c507678f (patch) | |
tree | 0622c0630bc22eb09562a8d4790716a55c1ba383 /external/skia/share-grcontext.patch.1 | |
parent | 81ced283de2d0da377225afeb589b793716238bd (diff) |
Update skia to m110
Removing those bits of the patches that appear to have been
upstreamed.
Change-Id: Ia7683c26af4c622ca4fccb828df023ae30e724a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146069
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'external/skia/share-grcontext.patch.1')
-rw-r--r-- | external/skia/share-grcontext.patch.1 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/external/skia/share-grcontext.patch.1 b/external/skia/share-grcontext.patch.1 index 2a957c284358..c2f132047971 100644 --- a/external/skia/share-grcontext.patch.1 +++ b/external/skia/share-grcontext.patch.1 @@ -278,7 +278,7 @@ index c9db528ca4..634034da5a 100644 PFN_vkGetInstanceProcAddr getInstanceProc = fGetInstanceProcAddr; - GrVkBackendContext backendContext; + GrVkBackendContext& backendContext = fGlobalShared->backendContext; - GrVkExtensions extensions; + skgpu::VulkanExtensions extensions; - VkPhysicalDeviceFeatures2 features; - if (!sk_gpu_test::CreateVkBackendContext(getInstanceProc, &backendContext, &extensions, - &features, &fDebugCallback, &fPresentQueueIndex, @@ -327,10 +327,10 @@ index c9db528ca4..634034da5a 100644 + localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &d->physDeviceProperties); + uint32_t physDevVersion = d->physDeviceProperties.apiVersion; -- fInterface.reset(new GrVkInterface(backendContext.fGetProc, fInstance, fDevice, -+ d->fInterface.reset(new GrVkInterface(backendContext.fGetProc, d->fInstance, d->fDevice, - backendContext.fInstanceVersion, physDevVersion, - &extensions)); +- fInterface.reset(new skgpu::VulkanInterface(backendContext.fGetProc, fInstance, fDevice, ++ d->fInterface.reset(new skgpu::VulkanInterface(backendContext.fGetProc, d->fInstance, d->fDevice, + backendContext.fInstanceVersion, physDevVersion, + &extensions)); - GET_PROC(DestroyInstance); - if (fDebugCallback != VK_NULL_HANDLE) { @@ -650,8 +650,8 @@ index c9db528ca4..634034da5a 100644 GrFlushInfo info; info.fNumSemaphores = 1; info.fSignalSemaphores = &beSemaphore; -- GrBackendSurfaceMutableState presentState(VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, fPresentQueueIndex); -+ GrBackendSurfaceMutableState presentState(VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, fShared->fPresentQueueIndex); +- skgpu::MutableTextureState presentState(VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, fPresentQueueIndex); ++ skgpu::MutableTextureState presentState(VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, fShared->fPresentQueueIndex); surface->flush(info, &presentState); surface->recordingContext()->asDirectContext()->submit(); @@ -666,7 +666,7 @@ diff --git a/tools/sk_app/VulkanWindowContext.h b/tools/sk_app/VulkanWindowConte index 7e1fdd9af5..946bca7522 100644 --- a/tools/sk_app/VulkanWindowContext.h +++ b/tools/sk_app/VulkanWindowContext.h -@@ -19,18 +19,22 @@ +@@ -19,20 +19,24 @@ #include "tools/gpu/vk/VkTestUtils.h" #include "tools/sk_app/WindowContext.h" @@ -674,6 +674,8 @@ index 7e1fdd9af5..946bca7522 100644 + class GrRenderTarget; + namespace skgpu { struct VulkanInterface; } + namespace sk_app { -class VulkanWindowContext : public WindowContext { @@ -742,7 +744,7 @@ index 7e1fdd9af5..946bca7522 100644 + VkDevice fDevice = VK_NULL_HANDLE; + VkDebugReportCallbackEXT fDebugCallback = VK_NULL_HANDLE; + - sk_sp<const GrVkInterface> fInterface; + sk_sp<const skgpu::VulkanInterface> fInterface; - VkSurfaceKHR fSurface; - VkSwapchainKHR fSwapchain; |