[Webkit-unassigned] [Bug 51309] Share blur code between FEGaussianBlur and ContextShadow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 20 10:16:32 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=51309





--- Comment #3 from Dirk Schulze <krit at webkit.org>  2010-12-20 10:16:31 PST ---
(In reply to comment #2)
> Must the alpha-only blur not touch the other channels?
No, for source alpha the image is filled with solid black. Just the alpha channel differs.

> 
> Even if we don't share code, it would be good to have all the blurring code in the same file.
All FE*-files (as well as FEGaussianBlur) need FILTERs enabled, while ContextShadow doesn't. So if you want to share code, FEGaussianBlur needs access to ContextShadow for alpha blurring. Does ContextShadow clear all other channels afterwards, or are they still filled with the temporary data of the blurring? I guess it doesn't clear the data, so it would be necessary to use a composite operator afterwards (source-in?), and I'm not sure if all platforms support accessing the GraphicsContext after a pixel manipulation on the ImageBuffer (Cairo does, and the others?). So we either need a second round for filling all channels other than alpha with zero, or need a second temp imageBuffer to make the compositing.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list