-
Notifications
You must be signed in to change notification settings - Fork 6k
Use SkTextBlob::bounds
instead of TextFrame::getBounds()
.
#45148
Use SkTextBlob::bounds
instead of TextFrame::getBounds()
.
#45148
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
If our text frame bounds computation is wrong, that is going to bubble up to more places too.
Can we either 1) make impeller::TextFrame use the bounds data from the SkTextFrame 2) fix the impeller::TextFrame computation?
I'm still learning the words, so I'm not sure what difference between a |
The impeller::TextFrame is the analog of the SkTextBlob |
(Not necessarily in this PR, FWIW) |
Actually in general TextFrame::GetBounds is super hot, so we might want to take the SkiaBounds in the constructor and use them cached, see #45131 (comment) |
Ah, sure! Filed flutter/flutter#133388. |
…133401) flutter/engine@683d7dc...b5f1821 2023-08-27 [email protected] Use `SkTextBlob::bounds` instead of `TextFrame::getBounds()`. (flutter/engine#45148) 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
Closes flutter/flutter#133157.