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

Use SkImageFilters::Shader instead of ::Paint #37682

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

lhkbob
Copy link
Contributor

@lhkbob lhkbob commented Nov 16, 2022

SkImageFilters::Paint() is deprecated and will be removed in https://skia-review.googlesource.com/c/skia/+/604917.
These unit tests are the last known usage of ::Paint(), but since they are just solid colors, the migration is very straightforward to switch to SkShader::Color().

https://bugs.chromium.org/p/skia/issues/detail?id=13927

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.

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Nov 16, 2022

auto label is removed for flutter/engine, pr: 37682, due to - Please get at least one approved review if you are already a member or two member reviews if you are not a member before re-applying this label. Reviewers: If you left a comment approving, please use the "approve" review action instead.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Nov 16, 2022

auto label is removed for flutter/engine, pr: 37682, due to Validations Fail.

@jason-simmons jason-simmons merged commit 35ecb2b into flutter:main Nov 16, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 16, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 16, 2022
…115495)

* 62571900b Roll Skia from 74a57221dfb3 to 1dfecd7cd478 (6 revisions) (flutter/engine#37685)

* 35ecb2bf4 Use SkImageFilters::Shader instead of ::Paint (flutter/engine#37682)
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#115495)

* 62571900b Roll Skia from 74a57221dfb3 to 1dfecd7cd478 (6 revisions) (flutter/engine#37685)

* 35ecb2bf4 Use SkImageFilters::Shader instead of ::Paint (flutter/engine#37682)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#115495)

* 62571900b Roll Skia from 74a57221dfb3 to 1dfecd7cd478 (6 revisions) (flutter/engine#37685)

* 35ecb2bf4 Use SkImageFilters::Shader instead of ::Paint (flutter/engine#37682)
@lhkbob lhkbob deleted the shader-test-fix branch January 5, 2024 15:00
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.

2 participants