-
Notifications
You must be signed in to change notification settings - Fork 6k
Use new DlBlendMode Object #32026
Use new DlBlendMode Object #32026
Conversation
|
I think the patch looks fine but updating the non-opaque types at this time is not the most pressing priority. |
|
As Chinmay says, the enums aren't the highest priority, but we should convert them as we encounter them in the larger objects. This potentially should have been done when I converted DlColorFilter. In my most recent commit for my DlColorSource PR I converted DlTileMode as it was used by that object. Take a look at the way I did it with the conversion functions being inlined rather than declared as an actual function (the cast is a NOP, so it shouldn't force a function call). PR: #31981 |
|
Right. My comment about the priority was more towards convincing @JsouLiang that if they want to help out in tacking the items in flutter/flutter#95434 (comment) (which I would be super appreciative of), perhaps the right ones to tackle first would be the opaque and semi-opaque ones. But the direction here especially after @flar s last comment is sound. |
|
The DlColorSource work has landed, which includes the enum rework for DlTileMode/SkTileMode. Take a look at that and update this for consistency (and please comment if you have suggestions on the way those are implemented). Note that I added an enum_unittests.cc to hold the (not very complicated) unit tests for the enums. They will help us discover if we ever run across a change in the Sk enums. |
ec91dd6 to
e37c645
Compare
|
@flar hey, I have change the implement of |
I was waiting for you to fix all of the broken checks, but I'll take a first pass look. |
flar
left a comment
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.
It looks good except for a couple of minor suggestions. Also, there are changes required to pass all the submit checks, so I'll make this a comment review for now.
|
Note that the impeller directory in the engine tree is imported from engine/src/flutter/impeller is one of the directories synchronized by Fork the impeller repo and make the same changes to it as you made to your local impeller copy and push those changes to your fork and make a PR for that repo. You can mark it WIP, but this all shouldn't take too long to complete. You can test if your impeller PR works by temporarily changing the entry in your engine's DEPS file to point to your commit in your forked impeller repo and executing Note that you still have other pieces broken in the current version of this PR before we can coordinate that dependency update. Particularly it looks like there are missing items in the licenses file? |
e37c645 to
1e686a2
Compare
|
@flar Hey bro, I have push change to the |
dd341eb to
6339a57
Compare
6339a57 to
d92382b
Compare
flar
left a comment
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
|
This pull request is not suitable for automatic merging in its current state.
|
|
Ah, sorry, it needs a second reviewer. |
Use new DlBlendMode enum to change SkBlendMode