Summary: | Each call to FilterEffect::effectContext() allocates a new m_effectBuffer | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | kbalazs, krit, simon.fraser, zherczeg, zimmermann |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Description
Simon Fraser (smfr)
2010-12-11 19:20:38 PST
I don't know much about that code path but this is definitely not a leak since m_effectBuffer is an OwnPtr. I'll also take a look at this later. Still a bit busy right now. Update title. The behavior still seems wrong. If I ever get an r+, this will be fixed in: https://bugs.webkit.org/show_bug.cgi?id=49907 (In reply to comment #4) > If I ever get an r+, this will be fixed in: > https://bugs.webkit.org/show_bug.cgi?id=49907 Ah, so it is because of the multiple apply() calls of an effect? > Ah, so it is because of the multiple apply() calls of an effect?
Exactly. Example:
<feA result="a" />
<feB in="a" result="b" />
<feC in="a" result="c" />
<feComposite in="b" in2="c">
In this case the apply() of feA was called twice, and the result was generated twice before. This is unnecessary (and usually costly).
Fixed in r73894 ( https://bugs.webkit.org/show_bug.cgi?id=49907 ). |