Commit 165b0ef
Cherry-pick 270586@main (135e0e4). https://bugs.webkit.org/show_bug.cgi?id=264605
[Cairo] Use CAIRO_FILTER_BILINEAR for low interpolation quality
https://bugs.webkit.org/show_bug.cgi?id=264605
Reviewed by Fujii Hironori.
We currently use CAIRO_FILTER_FAST which is the same as no
interpolation. Bilinear provides reasonable quality with good enough
performance. Also change the default interpolation quality of the canvas
to Low (like CG does) which drastically improves the performance of
downscaling high resolution images in the canvas with a reasonable
output. See for example https://vsynctester.com
* Source/WebCore/html/CanvasBase.cpp:
* Source/WebCore/platform/graphics/cairo/CairoOperations.cpp:
(WebCore::Cairo::drawSurface):
Canonical link: https://commits.webkit.org/270586@main1 parent 6113b55 commit 165b0ef
2 files changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 46 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
940 | 939 | | |
941 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
942 | 944 | | |
943 | 945 | | |
944 | 946 | | |
| |||
0 commit comments