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

Add SK_USE_LEGACY_BLUR_RASTER staging flag #54314

Merged
merged 2 commits into from
Aug 5, 2024
Merged

Conversation

lhkbob
Copy link
Contributor

@lhkbob lhkbob commented Aug 2, 2024

Skia's CPU-based blur implementation is inaccurate for sigma < 2, but the Dart imagefilter test uses a case with sigma = 1.

In https://skia-review.googlesource.com/c/skia/+/885107, the algorithm is updated to be more accurate when sigma < 2, so the output is more accurate. In order to roll into flutter, the expected color values in the tests will need to be updated with the removal of this staging flag.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

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 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.

lhkbob added 2 commits August 2, 2024 11:25
Skia's CPU-based blur implementation is inaccurate for sigma < 2, but the Dart imagefilter test uses a case with sigma = 1.

In https://skia-review.googlesource.com/c/skia/+/885107, the algorithm is updated to be more accurate when sigma < 2, so the output is more accurate. In order to roll into flutter, the expected color values in the tests will need to be updated with the removal of this staging flag.
@brianosman brianosman merged commit 9254125 into flutter:main Aug 5, 2024
22 of 24 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 5, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 5, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 5, 2024
…152868)

flutter/engine@0aac603...1bfd06c

2024-08-05 skia-flutter-autoroll@skia.org Roll Dart SDK from d4a2c6a52b4a to bdeaec130e8e (1 revision) (flutter/engine#54344)
2024-08-05 lhkbob@gmail.com Add SK_USE_LEGACY_BLUR_RASTER staging flag (flutter/engine#54314)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TytaniumDev pushed a commit to TytaniumDev/flutter that referenced this pull request Aug 7, 2024
…lutter#152868)

flutter/engine@0aac603...1bfd06c

2024-08-05 skia-flutter-autoroll@skia.org Roll Dart SDK from d4a2c6a52b4a to bdeaec130e8e (1 revision) (flutter/engine#54344)
2024-08-05 lhkbob@gmail.com Add SK_USE_LEGACY_BLUR_RASTER staging flag (flutter/engine#54314)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
…lutter#152868)

flutter/engine@0aac603...1bfd06c

2024-08-05 skia-flutter-autoroll@skia.org Roll Dart SDK from d4a2c6a52b4a to bdeaec130e8e (1 revision) (flutter/engine#54344)
2024-08-05 lhkbob@gmail.com Add SK_USE_LEGACY_BLUR_RASTER staging flag (flutter/engine#54314)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants