-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Skia] Only respect ui.Paint.dither when the colorSource is a gradient #44730
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
8f8e630
to
a1e1fe7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested changes.
(Though I really dislike the concept of "ForSuchAndSuchBackend" when describing a basic property of an object. Really, it's just identifying that a color source is some kind of gradient...)
Fair enough! I wanted to make sure I (and nobody else) felt like it was anything more than a hack for a specific backend, but I don't have a strong feeling about the name specifically. |
d0d85ef
to
af290e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove dead code.
f504834
to
2ccbf58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(technically, ToSk(paint) could be moved to the conversions file. I'm not sure why that appears on its own (and I wrote this))
auto label is removed for flutter/engine/44730, due to - The status or check suite Linux mac_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…132618) flutter/engine@659cdfc...decaccf 2023-08-16 [email protected] Roll Fuchsia Mac SDK from 7iuIq3PsSkuCmuEMr... to Zp9or9YwxZHHPeQbA... (flutter/engine#44747) 2023-08-16 [email protected] Move cache builders to prod. (flutter/engine#44739) 2023-08-16 [email protected] Enabling the host application to control the timing of attaching the |FlutterView| to the engine (flutter/engine#43595) 2023-08-16 [email protected] Roll Skia from 9fc1c628456a to 3d2b84e28e79 (1 revision) (flutter/engine#44746) 2023-08-16 [email protected] Roll Dart SDK from b36934aae968 to e6bf503b36fe (1 revision) (flutter/engine#44745) 2023-08-16 [email protected] [Skia] Only respect ui.Paint.dither when the colorSource is a gradient (flutter/engine#44730) Also rolling transitive DEPS: fuchsia/sdk/core/mac-amd64 from 7iuIq3PsSkuC to Zp9or9YwxZHH 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 [email protected],[email protected],[email protected] 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter#44730) In the Impeller backend, we **only** support dithering of _gradients_. In addition, it will be the default (and only option). In the [process of enabling dithering by default](flutter#44705), i.e. ```diff class Paint { - static bool enableDithering = false; + static bool enableDithering = true; } ``` ... we realized with internal Google testing this will now apply dithering on more than just gradients, i.e. images in the Skia backend. Since we won't support dithering of images in the Impeller backend, this PR gives a "hint" on whether the `colorSource` (if one is set) can be dithered by the contrived rules we've created.
In the Impeller backend, we only support dithering of gradients. In addition, it will be the default (and only option).
In the process of enabling dithering by default, i.e.
... we realized with internal Google testing this will now apply dithering on more than just gradients, i.e. images in the Skia backend. Since we won't support dithering of images in the Impeller backend, this PR gives a "hint" on whether the
colorSource
(if one is set) can be dithered by the contrived rules we've created.