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

Conversation

@cyanglaz
Copy link
Contributor

@cyanglaz cyanglaz commented Nov 2, 2022

Keeps visual effect view alive and reuse them when possible.

Fixes flutter/flutter#114443

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

return NO;
}

- (void)applyBlurBackdropFilters:(NSMutableArray<PlatformViewFilter*>*)filters {
Copy link
Contributor

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?

Copy link
Contributor Author

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]];
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@cyanglaz cyanglaz added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 4, 2022
@auto-submit auto-submit bot merged commit 49acbfb into flutter:main Nov 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 4, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 4, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 4, 2022
…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)
@cyanglaz cyanglaz deleted the visual_effect_view_disable_touch branch November 4, 2022 16:06
schwa423 pushed a commit to schwa423/engine that referenced this pull request Nov 16, 2022
…er#37263)

* reuse visual effect view is possible

* fix double retain

* review

* rewview

* remove unnecessary check
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blur filter on iOS interrupts gesture detector events

2 participants