Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reland: Update Color to do all calculations with floating point components #55231

Conversation

gaaclarke
Copy link
Member

Reason for revert: Broke customer tests
Reland depends on flutter/flutter#155113

This transforms the rest of Color to use the floating point parameters. This will likely break existing tests very subtly. For example, colors will be slightly different in golden tests if lerp was ever used.

issue: flutter/flutter#127855

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.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Sep 16, 2024
@gaaclarke gaaclarke force-pushed the reland-e24aa4d1710f4b30c7351cd7805aabfa00c564e1 branch 2 times, most recently from 32e9eaf to 9cb9cc5 Compare September 19, 2024 16:09
@gaaclarke gaaclarke marked this pull request as ready for review September 19, 2024 16:09
gaaclarke and others added 2 commits September 23, 2024 09:52
…lutter#54981)

This transforms the rest of Color to use the floating point parameters.  This will likely break existing tests very subtly.  For example, colors will be slightly different in golden tests if `lerp` was ever used.

issue: flutter/flutter#127855

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
@gaaclarke gaaclarke force-pushed the reland-e24aa4d1710f4b30c7351cd7805aabfa00c564e1 branch from 9cb9cc5 to c0cce1a Compare September 23, 2024 16:52
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gaaclarke
Copy link
Member Author

I double checked the zulip tests locally, everything looks good.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 23, 2024
@auto-submit auto-submit bot merged commit 95c5a09 into flutter:main Sep 23, 2024
32 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 23, 2024
chingjun added a commit to chingjun/packages that referenced this pull request Sep 25, 2024
In flutter/engine#55231, the implementation of `Color.toString()` has changed. Update the test to not depend on the exact implementation.
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Sep 25, 2024
In flutter/engine#55231, the implementation of `Color.toString()` has changed. Update the test to not depend on the exact implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants