[Webkit-unassigned] [Bug 39582] [Cairo] Enhance the performance of shadowed elements by tiling the shadow area

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 31 09:51:58 PDT 2010


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





--- Comment #37 from Alejandro G. Castro <alex at igalia.com>  2010-08-31 09:51:57 PST ---
(In reply to comment #36)
> // Find the extra space needed from the curve of the corners.
> int extraWidthFromCornerRadii = max(topLeftRadius.width(), bottomLeftRadius.width()) + tileWidth + radiusTwice + max(topRightRadius.width(), bottomRightRadius.width();
> int extraHeightFromCornerRadii = max(topLeftRadius.height(), topRightRadius.height()) + tileWidth + radiusTwice + max(bottomLeftRadius.height(), bottomRightRadius.height();
> 
> // The length of a side of the buffer is the enough space for two blur radii,
> // the radii of the corners, and then 1 pixel to draw the side tiles.
> IntSize smallBufferSize = IntSize((blurRadius * 2) + 1 + extraWidthFromCornerRadii,
>                                   (blurRadius * 2) + 1 + extraHeightFromCornerRadii));
> 
> Notice that I renamed radius to blurRadius.

I like it, I'm going to add it.

-- 
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