-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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] Fix RadialGradientBrush for non center origin #17925
Conversation
c2379a0
to
29ee228
Compare
29ee228
to
90125e4
Compare
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
603f7ff
to
e29a256
Compare
You can test this PR using the following package version. |
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.
The logic looks good to me!
* Matrix.CreateTranslation(centerPoint); | ||
|
||
|
||
if (radialGradient.Transform != null) | ||
{ |
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.
Formatting nit: the whole case has an extra indentation level.
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.
This is done by VS for some reason. Ideally I would want to split the method into multiple parts to better organize it.
2586b6b
to
9a94a62
Compare
Something is wrong with the initial formatting of the DrawingContextImpl.cs I leave it as is now. Too much pain to manually adjust the formatting. |
The diff is now perfectly readable so it's good :) (We should probably implement auto formatting on commit at some point to get consistent files everywhere, way out of scope of this PR.) |
It seems some lines were reverted when they shouldn't, this doesn't compile anymore. |
701323b
to
0b46143
Compare
…onia into fixes/RadialGradientBrush
You can test this PR using the following package version. |
What does the pull request do?
This PR adjusts the Skia RadialGradientBrush not to reverse the order of gradient stops when the gradient isn't covering the full radius. Otherwise, the shader isn't working as expected.
What is the current behavior?
What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues