DescriptionSpeed up SVG sprites by only painting the source rect in SVGImage::draw
Previously we painted an entire SVG sprite image, even if only a small
region was needed. This patch fixes this mistake by only painting
the minimum required area.
This patch takes a high-profile SVG scroll demo by adrianosmond from
around ~10fps to 30+fps. A minimized example of this bug is at:
philbit.com/sprites2.html (improved from less than 1fps to 30+fps)
BUG=253091
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153069
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|