Bug 118066
| Summary: | [SVG] Speed up SVG sprites by only painting the source rect in SVGImage::draw | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sergio Villar Senin <svillar> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | elima, svillar, zimmermann |
| Priority: | P2 | Keywords: | BlinkMergeCandidate |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sergio Villar Senin
We should probably merge:
Speed 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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Eduardo Lima Mitev
Already ported in git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152020 268f45cc-cd09-0410-ab3c-d52691b4dbfc (git 465bcedaa35595c4550219ef2c87afc9cc50a612)
Sergio Villar Senin
*** This bug has been marked as a duplicate of bug 118070 ***