We can share more code between the effects. The imageBuffer creation and drawRect calculation to Filtereffect.
Created attachment 31412 [details] Share the code share the code
*** Bug 26478 has been marked as a duplicate of this bug. ***
Comment on attachment 31412 [details] Share the code I think it makes sense to hoist 78 GraphicsContext* filterContext = getEffectContext(); 79 if (!filterContext) 80 return; to above the creation of dstRect for clarity
landed in r44810.