Skip to content

Commit

Permalink
Stop using deprecated GrBackendRenderTarget constructor (flutter#44694)
Browse files Browse the repository at this point in the history
Sample count is part of GrVkImageInfo (and was already being set in both places).
  • Loading branch information
brianosman authored Aug 15, 2023
1 parent fc0f662 commit 3a937ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/platform/fuchsia/flutter/vulkan_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion vulkan/vulkan_swapchain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3a937ba

Please sign in to comment.