-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] move path out of PathBuilder in TakePath. #50444
Conversation
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, just a couple of questions/nits.
| }; | ||
|
|
||
| auto path1 = builder.TakePath(); | ||
| auto path1 = builder.CopyPath(); |
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 probably change the unit test name from "Taken" to "Copied".
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.
Done
impeller/geometry/path.cc
Outdated
| } | ||
|
|
||
| Path::Data Path::Data::Clone() const { | ||
| return Path::Data(*this); |
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.
Is this method really needed compared to a public copy constructor?
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.
Not really, removed
…143131) flutter/engine@322a461...4ea7bd0 2024-02-07 [email protected] Roll Skia from 8332438cbeb9 to 91a9154d0dfa (2 revisions) (flutter/engine#50452) 2024-02-07 [email protected] [Impeller] move path out of PathBuilder in TakePath. (flutter/engine#50444) 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
We should move this path so we don't end up allocating/deallocating twice.
Fixes flutter/flutter#142873