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: 7f12e3497428
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 220ece4d9faa
Choose a head ref
  • 6 commits
  • 20 files changed
  • 6 contributors

Commits on Jun 5, 2023

  1. Improve getting non-overlapping rectangles from RTree (#42399)

    Fixes flutter/flutter#116070
    Fixes flutter/flutter#126202
    
    Introduces `DlRegion` class which implements subset of `SkRegion`
    required to get non-overlapping rectangles from region.
    
    The implementation is different and faster than `SkRegion` for this
    particular use-case (`display_list_region_benchmarks`):
    
    Edit: Updated benchmark to latest revision and natively (initial run
    went through rosetta)
    ```
    ----------------------------------------------------------------------------
    Benchmark                                  Time             CPU   Iterations
    ----------------------------------------------------------------------------
    BM_RegionBenchmarkDlRegion/Tiny          616 us          616 us          908
    BM_RegionBenchmarkSkRegion/Tiny        70559 us        70557 us           10
    BM_RegionBenchmarkDlRegion/Small        1315 us         1314 us          537
    BM_RegionBenchmarkSkRegion/Small      121736 us       121717 us            6
    BM_RegionBenchmarkDlRegion/Medium       1079 us         1079 us          650
    BM_RegionBenchmarkSkRegion/Medium      22039 us        22035 us           32
    BM_RegionBenchmarkDlRegion/Large         399 us          399 us         1763
    BM_RegionBenchmarkSkRegion/Large        1510 us         1510 us          466
    ```
    
    ## Pre-launch Checklist
    
    - [X] I read the [Contributor Guide] and followed the process outlined
    there for submitting PRs.
    - [X] I read the [Tree Hygiene] wiki page, which explains my
    responsibilities.
    - [X] I read and followed the [Flutter Style Guide] and the [C++,
    Objective-C, Java style guides].
    - [X] I listed at least one issue that this PR fixes in the description
    above.
    - [X] 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.
    - [X] I updated/added relevant documentation (doc comments with `///`).
    - [X] I signed the [CLA].
    - [X] All existing and new tests are passing.
    
    If you need help, consider asking for advice on the #hackers-new channel
    on [Discord].
    
    <!-- Links -->
    [Contributor Guide]:
    https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
    [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
    [Flutter Style Guide]:
    https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
    [C++, Objective-C, Java style guides]:
    https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
    [testing the engine]:
    https://github.com/flutter/flutter/wiki/Testing-the-engine
    [CLA]: https://cla.developers.google.com/
    [flutter/tests]: https://github.com/flutter/tests
    [breaking change policy]:
    https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
    [Discord]: https://github.com/flutter/flutter/wiki/Chat
    knopp authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    042ebae View commit details
    Browse the repository at this point in the history
  2. Add missing #include of SkCFObject.h (#42573)

    Another follow-on to http://review.skia.org/704942 which removed some
    #includes that Flutter had been transitively depending on.
    
    Note that SkCFObject is mac-only, so I included it the appropriate
    #ifdef in embedder.cc, but the other two files are already mac-only so
    they do not need that guard.
    
    ## Pre-launch Checklist
    
    - [x] I read the [Contributor Guide] and followed the process outlined
    there for submitting PRs.
    - [x] I read the [Tree Hygiene] wiki page, which explains my
    responsibilities.
    - [x] 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.
    - [x] 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 `///`).
    - [x] I signed the [CLA].
    - [x] All existing and new tests are passing.
    
    If you need help, consider asking for advice on the #hackers-new channel
    on [Discord].
    
    <!-- Links -->
    [Contributor Guide]:
    https://github.com/flutter/flutter/wiki/Tree-hygiene#overview
    [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene
    [Flutter Style Guide]:
    https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
    [C++, Objective-C, Java style guides]:
    https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
    [testing the engine]:
    https://github.com/flutter/flutter/wiki/Testing-the-engine
    [CLA]: https://cla.developers.google.com/
    [flutter/tests]: https://github.com/flutter/tests
    [breaking change policy]:
    https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes
    [Discord]: https://github.com/flutter/flutter/wiki/Chat
    kjlubick authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    7072511 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df7ab67 View commit details
    Browse the repository at this point in the history
  4. fix bounds of inverted rendered rectangles (#42556)

    Fixes: flutter/flutter#128159
    
    In diagnosing test failures for #42330 we discovered that the DisplayList code was not always backwards compatible with computing the bounds of inverted rectangles (where left > right or top > bottom). Historically such rectangles were always rendered as if they were sorted (i.e. `SkRect::makeSorted()`), but we computed bounds as if the bounds only mattered if the supplied rectangle was ordered. So, we would sometimes render a rectangle for which we mis-computed the bounds.
    
    This would rarely surface in the current code as most rendered rectangles would pass through `SkMatrix::mapRect()` which implicitly orders the rectangle as it transforms it, but any attributes applied to the bounds before that method may have been applied "in the wrong direction" - such as:
    
    - stroke width padding
    - mask blur padding
    - image filter padding
    flar authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    5c35213 View commit details
    Browse the repository at this point in the history
  5. Run dependabot in off peak hours (#42572)

    Casey Hillers authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    a86e1fb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    220ece4 View commit details
    Browse the repository at this point in the history
Loading