[Webkit-unassigned] [Bug 58309] [GTK] fast/canvas/DrawImageSinglePixelStretch.html fails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 12 11:39:19 PDT 2011


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





--- Comment #1 from Matthew Delaney <mdelaney at apple.com>  2011-04-12 11:39:19 PST ---
Yea, that's the incorrect behavior you're seeing then. It does show a 'FAILED', correct?

I've interpreted this portion of the spec as the inspiration for this test:
"If the original image data is a bitmap image, the value painted at a point in the destination rectangle is computed by filtering the original image data. The user agent may use any filtering algorithm (for example bilinear interpolation or nearest-neighbor). When the filtering algorithm requires a pixel value from outside the original image data, it must instead use the value from the nearest edge pixel. (That is, the filter uses 'clamp-to-edge' behavior.)"

It also came to my attention that many rendering platforms don't usually do this behavior of clamp to edge because it's not desired in cases where tiling of an image happens and such. Though, the pixels can be first copied into a buffer image and then drawn to effectively create the clamp to edge behavior.

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