Skip to content

Commit

Permalink
Update to use new vulkan GrBackendRenderTarget ctor (part 2) (flutter…
Browse files Browse the repository at this point in the history
…#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, flutter#4962, but the github UI was only allowing me to change one file via the online edit :(
  • Loading branch information
egdaniel authored and brianosman committed Apr 10, 2018
1 parent 132ebdd commit 0c8993a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkan/vulkan_swapchain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ sk_sp<SkSurface> 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);

Expand Down

0 comments on commit 0c8993a

Please sign in to comment.