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: 791f505c8c6e
Choose a base ref
...
head repository: flutter/engine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1433e23c8a3d
Choose a head ref
  • 1 commit
  • 11 files changed
  • 1 contributor

Commits on Aug 1, 2023

  1. [Impeller] Implement, non user-facing, dithering for LinearGradients. (

    …#44181)
    
    Partial work towards flutter/flutter#131450.
    
    ---
    
    Run the Playground locally:
    
    ```bash
    $ENGINE/out/host_debug_unopt/impeller_unittests \
      --enable_playground \
      --gtest_filter="*CanRenderLinearGradientWithDithering*"
    ```
    
    Summary of changes:
    
    - Added a playground/test for dithering disabled and enabled.
    - Added `bool dither` to Impeller's `Paint`, but `SetDither` (use-facing) is ignored.
    - Converted [Skia's dithering](https://github.com/google/skia/blob/f9de059517a6f58951510fc7af0cba21e13dd1a8/src/opts/SkRasterPipeline_opts.h#L1717) to GLSL and invoked it when `dither` is set.
    
    ## Before
    
    ![Screenshot 2023-07-31 at 1 29 16 PM](https://github.com/flutter/engine/assets/168174/51d2f7a0-dc22-44fe-b7f9-990b826c5fd9)
    
    ## After
    
    ![Screenshot 2023-07-31 at 1 29 25 PM](https://github.com/flutter/engine/assets/168174/78da2efe-2c5d-438f-b7f7-d8eb092c6a2c)
    
    ## Deleted Scenes
    
    <details>
    <summary>Here are some of my earlier attempts that are fun to share :)</summary>
    
    ![Screenshot 2023-07-31 at 11 35 07 AM](https://github.com/flutter/engine/assets/168174/719f97fc-1a3d-4920-8687-486c4de28b79)
    
    ![Screenshot 2023-07-31 at 12 12 38 PM](https://github.com/flutter/engine/assets/168174/ed262f83-442f-484b-8288-30e8e0d5e768)
    
    ![Screenshot 2023-07-31 at 12 19 56 PM](https://github.com/flutter/engine/assets/168174/057b1f95-fbd2-4ae2-bb25-8dd967cf8466)
    
    ![Screenshot 2023-07-31 at 12 25 59 PM](https://github.com/flutter/engine/assets/168174/34857c6e-49cd-40c1-9e91-646b7bfbf97c)
    
    ![Screenshot 2023-07-31 at 12 44 08 PM](https://github.com/flutter/engine/assets/168174/3b272428-b5be-4ca5-8cfe-1b12062a64f4)
    
    </details>
    matanlurey authored Aug 1, 2023
    Configuration menu
    Copy the full SHA
    1433e23 View commit details
    Browse the repository at this point in the history
Loading