From 679a670c349b559c9606f387396f279d08c72d2d Mon Sep 17 00:00:00 2001 From: egdaniel Date: Tue, 10 Apr 2018 14:54:59 -0400 Subject: [PATCH] Update to use new vulkan GrBackendRenderTarget ctor (part 2) (flutter/engine#4963) This moves to the new skia ctor for vulkan GrBackendRenderTarget which doesn't take a stencil count since vulkan doesn't bind stencil and render target together like GL does with framebuffer so it is not needed. This is the same idea as pull, https://github.com/flutter/engine/pull/4962, but the github UI was only allowing me to change one file via the online edit :( --- engine/src/flutter/vulkan/vulkan_swapchain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/vulkan/vulkan_swapchain.cc b/engine/src/flutter/vulkan/vulkan_swapchain.cc index f3ca6d0c10..887cf0ad0d 100644 --- a/engine/src/flutter/vulkan/vulkan_swapchain.cc +++ b/engine/src/flutter/vulkan/vulkan_swapchain.cc @@ -232,7 +232,7 @@ sk_sp VulkanSwapchain::CreateSkiaSurface( }; // TODO(chinmaygarde): Setup the stencil buffer and the sampleCnt. - GrBackendRenderTarget backend_render_target(size.fWidth, size.fHeight, 0, 0, + GrBackendRenderTarget backend_render_target(size.fWidth, size.fHeight, 0, image_info); SkSurfaceProps props(SkSurfaceProps::InitType::kLegacyFontHost_InitType);