[CI] Inline FloatSize::IsZero and FloatRoundedRect::IsZero
blink_perf.events.hit-test-lots-of-layers is a microbenchmark of hit PaintLayer::HitTestLayer which uses GeometryMapper. One of the hottest functions is GeometryMapper::LocalToClipRectInternal which creates a lot of FloatClipRects that check FloatRoundedRect::IsZero in their constructor. By inlining the IsZero functions, we get a 3%-4% improvement on the entire benchmark. Bug: 818772 Change-Id: I0fb4c02152b799399aa19d521ba91ed46e326c3c Reviewed-on: https://chromium-review.googlesource.com/966797Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#543802}
Showing
Please register or sign in to comment