[webkit-changes] [WebKit/WebKit] 135e0e: [Cairo] Use CAIRO_FILTER_BILINEAR for low interpol...
Carlos Garcia Campos
noreply at github.com
Fri Nov 10 22:59:54 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 135e0e4dacf5144efba3e163cafbbc231cb49760
https://github.com/WebKit/WebKit/commit/135e0e4dacf5144efba3e163cafbbc231cb49760
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2023-11-10 (Fri, 10 Nov 2023)
Changed paths:
M Source/WebCore/html/CanvasBase.cpp
M Source/WebCore/platform/graphics/cairo/CairoOperations.cpp
Log Message:
-----------
[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@main
More information about the webkit-changes
mailing list