From 96d100ebb0b1b12148fa8818b4c5d8f2f67b96b2 Mon Sep 17 00:00:00 2001 From: JiaJian <33014143+endless7@users.noreply.github.com> Date: Sat, 3 Dec 2022 08:41:46 +0800 Subject: [PATCH] save (flutter/engine#37107) --- .../platform/darwin/ios/framework/Source/FlutterPlatformViews.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index 9208bbf0f8..12bdf28269 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -800,6 +800,7 @@ std::shared_ptr FlutterPlatformViewsController::GetLay return layer; } SkCanvas* overlay_canvas = frame->SkiaCanvas(); + overlay_canvas->clipRect(rect); overlay_canvas->clear(SK_ColorTRANSPARENT); if (frame->GetDisplayListBuilder()) { slice->render_into(frame->GetDisplayListBuilder().get());