-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Make PathComponent POD, allow querying specific component type counts #40605
Conversation
| static_assert(!std::is_polymorphic<LinearPathComponent>::value); | ||
| static_assert(!std::is_polymorphic<QuadraticPathComponent>::value); | ||
| static_assert(!std::is_polymorphic<CubicPathComponent>::value); |
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 my "test" that these stay POD.
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.
Ooh nice, I didn't know this was a thing.
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.
I was going to add some asserts about the sizes but this is better
bdero
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!
| static_assert(!std::is_polymorphic<LinearPathComponent>::value); | ||
| static_assert(!std::is_polymorphic<QuadraticPathComponent>::value); | ||
| static_assert(!std::is_polymorphic<CubicPathComponent>::value); |
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.
Ooh nice, I didn't know this was a thing.
|
I think this needs a rebase to resolve the build failure. |
|
Actually there might be a caching problem on the bots flutter/flutter#123416 |
|
auto label is removed for flutter/engine, pr: 40605, due to - The status or check suite Mac Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label. |
I manually verified that this does not regress #39124
This will make these things a bit easier to use in compute (I can just memcpy them). Also makes them take a little less memory which is nice?