DescriptionInline FloatRect::enclosingIntRect
FloatRect::enclosingIntRect is hot on blink_perf.paint's paint offset
microbenchmark. A similar change to inline LayoutRect::enclosingIntRect[1]
was a large perf win [2] and this patch should have similar benefits.
There are relatively few callers so the risk of binary bloat is low.
enclosedIntRect and roundedIntRect are two additional candidates for
inlining but I'd like to separate these changes so we can measure
the impact (perf, binary) independently.
[1] https://crrev.com/af2c8d1e6a537c356b4cf931bb5aca1e5f09f119
[2] https://chromeperf.appspot.com/group_report?rev=436323
BUG=678597
Review-Url: https://codereview.chromium.org/2628903003
Cr-Commit-Position: refs/heads/master@{#443132}
Committed: https://chromium.googlesource.com/chromium/src/+/f76945dbb3afd556549b72544644a2e14fd32271
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|