Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f68ea30

Browse files
committed
wip
1 parent 4889f66 commit f68ea30

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,14 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect,
706706
int64_t current_platform_view_id = composition_order_[j - 1];
707707
SkRect platform_view_rect = GetPlatformViewRect(current_platform_view_id);
708708
std::vector<SkIRect> intersection_rects = slice->region(platform_view_rect).getRects();
709+
for (auto it = intersection_rects.begin(); it != intersection_rects.end(); /*no-op*/) {
710+
if (it->width() <= 1 || it->height() <= 1) {
711+
it = intersection_rects.erase(it);
712+
} else {
713+
++it;
714+
}
715+
}
716+
709717
auto allocation_size = intersection_rects.size();
710718

711719
// For testing purposes, the overlay id is used to find the overlay view.

0 commit comments

Comments
 (0)