Bug 120632 - [Qt] Images scaled poorly in canvas
Summary: [Qt] Images scaled poorly in canvas
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Allan Sandfeld Jensen
Depends on:
Reported: 2013-09-03 05:40 PDT by Allan Sandfeld Jensen
Modified: 2013-09-03 08:31 PDT (History)
4 users (show)

See Also:

Patch (1.59 KB, patch)
2013-09-03 05:42 PDT, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff
Patch (2.23 KB, patch)
2013-09-03 07:44 PDT, Allan Sandfeld Jensen
jturcotte: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld Jensen 2013-09-03 05:40:27 PDT
The WebKit canvas code assumes that antialiasing and average image quality is enabled by default. The Qt ImageBuffer implementation does not however set any default render-hints causing the defaults in the GraphicsContext to be antialiasing and smooth scaling disabled.

Ideally these default should follow the render-hints set on the webview, but I don't see how that is possible currently, so let us default the defaults to the default.
Comment 1 Allan Sandfeld Jensen 2013-09-03 05:40:54 PDT
Btw, this is Issue 2 from https://bugreports.qt-project.org/browse/QTBUG-33081.
Comment 2 Allan Sandfeld Jensen 2013-09-03 05:42:46 PDT
Created attachment 210360 [details]
Comment 3 Allan Sandfeld Jensen 2013-09-03 07:44:25 PDT
Created attachment 210372 [details]

Moved the fix to better defining image-interpolation quality in TextureMapper since that is where the problem is.
Comment 4 Allan Sandfeld Jensen 2013-09-03 08:31:08 PDT
Committed r154985: <http://trac.webkit.org/changeset/154985>