From c9c13e9efa0f4c66260823fb38c9c8765bb13340 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Mon, 11 Sep 2023 16:53:12 +0000 Subject: [PATCH] Update skwasm build to use safer flush call --- lib/web_ui/skwasm/surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web_ui/skwasm/surface.cpp b/lib/web_ui/skwasm/surface.cpp index 8497b18ef55a3..f1601bbef976c 100644 --- a/lib/web_ui/skwasm/surface.cpp +++ b/lib/web_ui/skwasm/surface.cpp @@ -148,7 +148,7 @@ void Surface::_renderPicture(const SkPicture* picture, uint32_t callbackId) { auto canvas = _surface->getCanvas(); canvas->drawColor(SK_ColorTRANSPARENT, SkBlendMode::kSrc); canvas->drawPicture(sk_ref_sp(picture), &matrix, nullptr); - _grContext->flush(_surface); + _grContext->flush(_surface.get()); skwasm_captureImageBitmap(this, _glContext, callbackId, roundedOutRect.width(), roundedOutRect.height()); }