From 906b86b15903894d28bd4efdfff261f69335edbb Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Tue, 5 May 2020 17:59:39 -0700 Subject: [PATCH] [iOS platform view] fix active_composition_order_ never cleared (flutter/engine#18153) --- .../darwin/ios/framework/Source/FlutterPlatformViews.mm | 2 ++ 1 file changed, 2 insertions(+) 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 14a45142eb9..168a463123a 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 @@ -576,6 +576,8 @@ bool FlutterPlatformViewsController::SubmitFrame(GrContext* gr_context, void FlutterPlatformViewsController::BringLayersIntoView(LayersMap layer_map) { UIView* flutter_view = flutter_view_.get(); auto zIndex = 0; + // Clear the `active_composition_order_`, which will be populated down below. + active_composition_order_.clear(); for (size_t i = 0; i < composition_order_.size(); i++) { int64_t platform_view_id = composition_order_[i]; std::vector> layers = layer_map[platform_view_id];