Skip to content

Commit 8eb727e

Browse files
author
George Wright
authored
Flush the SkCanvas when submitting a frame in ShellTestPlatformViewVulkan::OffscreenSurface (flutter#16717)
1 parent 969cfc1 commit 8eb727e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

shell/common/shell_test_platform_view_vulkan.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ ShellTestPlatformViewVulkan::OffScreenSurface::AcquireFrame(
149149
SkAlphaType::kOpaque_SkAlphaType);
150150
auto surface = SkSurface::MakeRenderTarget(context_.get(), SkBudgeted::kNo,
151151
image_info, 0, nullptr);
152-
SurfaceFrame::SubmitCallback callback =
153-
[](const SurfaceFrame&, SkCanvas* canvas) -> bool { return true; };
152+
SurfaceFrame::SubmitCallback callback = [](const SurfaceFrame&,
153+
SkCanvas* canvas) -> bool {
154+
canvas->flush();
155+
return true;
156+
};
154157

155158
return std::make_unique<SurfaceFrame>(std::move(surface), true,
156159
std::move(callback));

0 commit comments

Comments
 (0)