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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/engine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fe2476743b59
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5cf141f7c03c
Choose a head ref
  • 2 commits
  • 15 files changed
  • 2 contributors

Commits on May 16, 2023

  1. [ios_platform_view] only recycle maskView when the view is applying m…

    …utators (#41573)
    
    A mistake was introduced in #39498  where the maskViews are already recycles each frame. 
    
    Sometimes a PlatformView does not need to be re-composite: (https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm#L398-L401), so the mask view for such PlatformView should not be recycled.
    
    This PR changed the `recycleMaskViews` API to allow individual maskviews to be recycled. `ApplyMutator` then only recycle the maskView for that particular PlatformView.
    
    The MaskViewPool is also reworked to be simpler. 
    
    - The pool now contains a single set of mask views, there is no index counter needed.
    - When a maskView is needed, try to get it from the pool. 
      - If pool is empty, create a new view.
      - If pool has an available maskview, remove it from the pool.
    - When a PlatformView starts to `applyMutator`, it removes current the maskView, insert the maskView to the pool.
    - When the above PlatformView needs to a maskView, it grabs one from the pool. 
    
    fixes: flutter/flutter#125620
    
    [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
    Chris Yang authored May 16, 2023
    Configuration menu
    Copy the full SHA
    17d5100 View commit details
    Browse the repository at this point in the history
  2. Add linux_clang_tidy builder. (#41990)

    This builder run android and host clang tidy in an engine v2 build.
    
    [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
    godofredoc authored May 16, 2023
    Configuration menu
    Copy the full SHA
    5cf141f View commit details
    Browse the repository at this point in the history
Loading