mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibWeb: Enable anti-aliasing in DisplayListPlayerSkia::fill_rect
Set SkPaint anti-aliasing to true when filling rectangles This improves rendering quality by smoothing jagged edges update clip-path-transformed.html and ref image with anti-aliasing Partially fixes #5909
This commit is contained in:
parent
e41cfb92e2
commit
43978ba459
|
|
@ -122,6 +122,7 @@ void DisplayListPlayerSkia::fill_rect(FillRect const& command)
|
||||||
auto const& rect = command.rect;
|
auto const& rect = command.rect;
|
||||||
auto& canvas = surface().canvas();
|
auto& canvas = surface().canvas();
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
|
paint.setAntiAlias(true);
|
||||||
paint.setColor(to_skia_color(command.color));
|
paint.setColor(to_skia_color(command.color));
|
||||||
canvas.drawRect(to_skia_rect(rect), paint);
|
canvas.drawRect(to_skia_rect(rect), paint);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 63 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<link rel="match" href="../expected/clip-path-transformed-ref.html" />
|
<link rel="match" href="../expected/clip-path-transformed-ref.html" />
|
||||||
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-15">
|
<meta name="fuzzy" content="maxDifference=0-2;totalPixels=0-907">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user