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

[cp] only recycle maskView when the view is applying mutators #43007

Conversation

cyanglaz
Copy link
Contributor

cp #42823.

The PR fixes flutter/flutter#125620, which was a regression caused by #38989. We cannot simply revert #38989 because #38989 addressed a critical performance issue

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.

…plying mutators flutter#42115" (flutter#42823)

Relands flutter#42115, which was reverted in flutter#42231 due to a crash in the framework test.

The crash is due to a memory management issue that I fixed it in this PR, I also added a scenario test to catch the crash.

fixes: flutter/flutter#125620

See also: orignal PR flutter#41573 for more details.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@cyanglaz
Copy link
Contributor Author

@hellohuanlin was the reviewer for the original PR. Also add @stuartmorgan as he is the iOS TL.

@XilaiZhang XilaiZhang added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 20, 2023
@auto-submit auto-submit bot merged commit 233f004 into flutter:flutter-3.12-candidate.0 Jun 20, 2023
@cyanglaz cyanglaz deleted the cp_platform_view_clip_bug branch July 6, 2023 16:34
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants