[Webkit-unassigned] [Bug 72073] [Skia] Computing the resampling mode ignores scale applied to the canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 16 18:48:21 PST 2011


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





--- Comment #10 from Daniel Sievers <sievers at chromium.org>  2011-11-16 18:48:20 PST ---

> > Hrm, this doesn't affect tiles/drawPattern, because the canvas scale is applied at the very end, right? I.e. we would only sample and cache one tile.
> 
> I was just thinking (perhaps naively) that if a pattern was drawn with full-page zoom applied, it should use the same heuristic as images.  For example, you could create an SVG pattern with a single image tile, drawn at 1:1 scale in SVG, then with a page zoom.  It seems strange that full-page zoom would affect the criteria for high-quality resize in one case but not the other.
> 


Actually, drawPattern() is a bit busted. If you look at fast/borders/border-image-scale-transform.html there is some areas that go through that codepath and actually end up using nearest filtering for the canvas scale.

This does not take into account the canvas scale or destRect:
 paint.setFilterBitmap(resampling == RESAMPLE_LINEAR);

'resampling' was decided upon based on affineTransform only.

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