From 88e1e1edea40016a15ea1c037582a16cf8f7e36f Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 23 Jul 2024 13:19:26 -0700 Subject: [PATCH] [iOS] Mark EmbeddedViewCount const --- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 2 +- .../darwin/ios/framework/Source/FlutterPlatformViews_Internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index 551be716b15de..c3c76ec82daa0 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -398,7 +398,7 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect, views_to_recomposite_.insert(view_id); } -size_t FlutterPlatformViewsController::EmbeddedViewCount() { +size_t FlutterPlatformViewsController::EmbeddedViewCount() const { return composition_order_.size(); } diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h index 6373e1feaa40c..afda710e7fcce 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h @@ -234,7 +234,7 @@ class FlutterPlatformViewsController { void PrerollCompositeEmbeddedView(int64_t view_id, std::unique_ptr params); - size_t EmbeddedViewCount(); + size_t EmbeddedViewCount() const; // Returns the `FlutterPlatformView`'s `view` object associated with the view_id. //