[CHROMIUM] Prefer the medium-quality (bilinear) image resampling for 2D canvas.
Created attachment 63765 [details]
Is there a way to do this without throwing an #ifdef in the middle of that file? Is this something other ports should consider?
(In reply to comment #2)
> Is there a way to do this without throwing an #ifdef in the middle of that file? Is this something other ports should consider?
Another way it could be done would be to define a "CanvasImageInterpolationQuality" in graphics.h, which could be #defined'ed by each platform. Then at least the platform #if would be in platform/graphics, rather than here at this level.
Whether other ports want to do it is really up to their maintainers -- the canvas spec does not specify any particular algorithm for image resampling.
Created attachment 63909 [details]
(In reply to comment #4)
> Created an attachment (id=63909) [details]
Here's a version with the platform-specific stuff pushed into GraphicsContext.h.
Committed r65097: <http://trac.webkit.org/changeset/65097>
http://trac.webkit.org/changeset/65097 might have broken GTK Linux 32-bit Release