-
Notifications
You must be signed in to change notification settings - Fork 6k
Make iOS PlatformView to reuse VisualEffectView when possible. #37263
Make iOS PlatformView to reuse VisualEffectView when possible. #37263
Conversation
| return NO; | ||
| } | ||
|
|
||
| - (void)applyBlurBackdropFilters:(NSMutableArray<PlatformViewFilter*>*)filters { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use NSArray instead since you're not mutating it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| [self addSubview:backdropFilterView]; | ||
| [self.backdropFilterSubviews addObject:backdropFilterView]; | ||
| } else { | ||
| [filter updateVisualEffectView:self.backdropFilterSubviews[index]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to just update the CAFilters instead so you don't have to remove the existing view from its superview?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what the code is doing: update the CAFilters and Frame of the existing views.
…114667) * 49acbfb08 Make iOS PlatformView to reuse VisualEffectView when possible. (flutter/engine#37263) * 48f31a539 Roll Skia from 8e48bb8ea52e to 10acfb0efbc9 (2 revisions) (flutter/engine#37300) * af61d4092 [Impeller] Add non-rrect polygon to shadow test (flutter/engine#37296) * 97fb982f3 [web] Improve CPU usage when building wasm_release (flutter/engine#37294) * ca0755adc Roll Skia from 10acfb0efbc9 to b8209dce9a48 (1 revision) (flutter/engine#37303) * 44398ccf5 Make hot reload work (flutter/engine#37304) * 69a275300 Roll Fuchsia Mac SDK from mOXbRSWGSdWRXIefR... to JKfnEvEVIL_Cg3_9f... (flutter/engine#37305)
…er#37263) * reuse visual effect view is possible * fix double retain * review * rewview * remove unnecessary check
…lutter#114667) * 49acbfb08 Make iOS PlatformView to reuse VisualEffectView when possible. (flutter/engine#37263) * 48f31a539 Roll Skia from 8e48bb8ea52e to 10acfb0efbc9 (2 revisions) (flutter/engine#37300) * af61d4092 [Impeller] Add non-rrect polygon to shadow test (flutter/engine#37296) * 97fb982f3 [web] Improve CPU usage when building wasm_release (flutter/engine#37294) * ca0755adc Roll Skia from 10acfb0efbc9 to b8209dce9a48 (1 revision) (flutter/engine#37303) * 44398ccf5 Make hot reload work (flutter/engine#37304) * 69a275300 Roll Fuchsia Mac SDK from mOXbRSWGSdWRXIefR... to JKfnEvEVIL_Cg3_9f... (flutter/engine#37305)
Keeps visual effect view alive and reuse them when possible.
Fixes flutter/flutter#114443
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.