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 51349cb70e..784045f1b6 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 @@ -703,7 +703,7 @@ bool FlutterPlatformViewsController::SubmitFrame(GrDirectContext* gr_context, // TODO(egarciad): Consider making this configurable. // https://github.com/flutter/flutter/issues/52510 if (allocation_size > kMaxLayerAllocations) { - SkRect joined_rect; + SkRect joined_rect = SkRect::MakeEmpty(); for (const SkRect& rect : intersection_rects) { joined_rect.join(rect); }