Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions shell/common/shell_test_platform_view_vulkan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ ShellTestPlatformViewVulkan::OffScreenSurface::AcquireFrame(
SkAlphaType::kOpaque_SkAlphaType);
auto surface = SkSurface::MakeRenderTarget(context_.get(), SkBudgeted::kNo,
image_info, 0, nullptr);
SurfaceFrame::SubmitCallback callback =
[](const SurfaceFrame&, SkCanvas* canvas) -> bool { return true; };
SurfaceFrame::SubmitCallback callback = [](const SurfaceFrame&,
SkCanvas* canvas) -> bool {
canvas->flush();
return true;
};

return std::make_unique<SurfaceFrame>(std::move(surface), true,
std::move(callback));
Expand Down