Stop using deprecated GrBackendRenderTarget constructor (flutter/engine#44694)

Sample count is part of GrVkImageInfo (and was already being set in both places).
This commit is contained in:
Brian Osman
2023-08-14 23:47:09 -04:00
committed by GitHub
parent 737340ae1d
commit 829b42e044
2 changed files with 2 additions and 2 deletions

View File

@@ -408,7 +408,7 @@ bool VulkanSurface::SetupSkiaSurface(sk_sp<GrDirectContext> context,
image_info.fSampleCount = 1;
image_info.fLevelCount = image_create_info.mipLevels;
GrBackendRenderTarget sk_render_target(size.width(), size.height(), 0,
GrBackendRenderTarget sk_render_target(size.width(), size.height(),
image_info);
SkSurfaceProps sk_surface_props(0, kUnknown_SkPixelGeometry);

View File

@@ -242,7 +242,7 @@ sk_sp<SkSurface> VulkanSwapchain::CreateSkiaSurface(
image_info.fLevelCount = 1;
// TODO(chinmaygarde): Setup the stencil buffer and the sampleCnt.
GrBackendRenderTarget backend_render_target(size.fWidth, size.fHeight, 0,
GrBackendRenderTarget backend_render_target(size.fWidth, size.fHeight,
image_info);
SkSurfaceProps props(0, kUnknown_SkPixelGeometry);