Chromium Code Reviews
DescriptionAvoid unneeded RoundedInnerRectClipper rect clips
ClipDisplayItem always applies a rectangular clip, and optionally a
list of rounded-rect clips.
As its client, RoundedInnerRectClipper is only interested in
applying the rounded-rect clips - so it passes a synthetic
"infinite" rect clip. This clip is pure overhead.
Updated ClipDisplayItem to detect and ignore this clip. While the
hood's up, remove the explicit FloatRoundedRect -> SkRRect conversion
(FloatRoundedRect already implements a SkRRect conversion operator).
This yields a ~23% improvement for Animometer/CSS Bouncing Gradient
Circles, in software mode only (no change for Ganesh).
BUG=603966
R=chrishtr@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/bef2b571b0d6d9571876f88341f47b350af3f6ce
Cr-Commit-Position: refs/heads/master@{#392734}
Patch Set 1 #Patch Set 2 : #Messages
Total messages: 12 (7 generated)
|