[Webkit-unassigned] [Bug 105300] Animated transformations on bitmap images shake

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 18 21:08:02 PST 2012


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





--- Comment #4 from Philip Rogers <pdr at google.com>  2012-12-18 21:10:18 PST ---
Looks like the issue is constrained to Skia-backed platforms (not CG / iOS). ImageSkia's RESAMPLE_AWESOME clamps to integer boundaries which is great for beautiful static images but not that awesome for animations (see http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/skia/ImageSkia.cpp#L268). Forcing linear resampling fixes this and the bouncing goes away.

A couple ideas:
1) Add an additional resampling parameter to GraphicsContext::drawImage so we would have something like LOW (nearestneighbor), DEFAULT (linear), and STATIC_HIGH (bilinear awesome).
2) Only RESAMPLE_AWESOME for identity matrices (alternatively, only for integer scales or translates). I have a simple patch to do this but the problem will still exist for animations of width/height.

@fmalita, @schenney, opinions here?

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