[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 2 12:13:53 UTC 2020
vcl/skia/gdiimpl.cxx | 18 ------------------
1 file changed, 18 deletions(-)
New commits:
commit 52ccf06081d7aea3aefb7c582862987ec5380a45
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Jul 1 14:55:08 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Thu Jul 2 14:13:02 2020 +0200
Revert "implement Skia workaround for ... (tdf#133016)" (tdf#134346)
The workaround breaks a valid use in tdf#134346, so the original
problem will need to be handled differently.
Change-Id: I1560ef5714a90f1d170341c1b716010a0eb5aafc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97723
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx
index addb0903c499..bb837b03493b 100644
--- a/vcl/skia/gdiimpl.cxx
+++ b/vcl/skia/gdiimpl.cxx
@@ -713,24 +713,6 @@ bool SkiaSalGraphicsImpl::drawPolyPolygon(const basegfx::B2DHomMatrix& rObjectTo
aPaint.setColor(toSkColorWithTransparency(mFillColor, fTransparency));
aPaint.setStyle(SkPaint::kFill_Style);
getDrawCanvas()->drawPath(aPath, aPaint);
- // There is some code that needlessly subdivides areas into adjacent rectangles,
- // but Skia doesn't line them up perfectly if AA is enabled (e.g. Cairo, Qt5 do,
- // but Skia devs claim it's working as intended
- // https://groups.google.com/d/msg/skia-discuss/NlKpD2X_5uc/Vuwd-kyYBwAJ).
- // An example is tdf#133016, which triggers SvgStyleAttributes::add_stroke()
- // implementing a line stroke as a bunch of polygons instead of just one, and
- // SvgLinearAtomPrimitive2D::create2DDecomposition() creates a gradient
- // as a series of polygons of gradually changing color. Those places should be
- // changed, but for now explicitly draw the polygon outline in these cases,
- // which will fill the holes between polygons left by AA.
- // TODO: If fTransparency != 0 then this will draw some pixels twice, if that
- // is a problem then this can be handled by drawing to a temporary surface
- // and drawing that using the given transparency.
- if (mParent.getAntiAliasB2DDraw() && mLineColor == SALCOLOR_NONE)
- {
- aPaint.setStyle(SkPaint::kStroke_Style);
- getDrawCanvas()->drawPath(aPath, aPaint);
- }
}
if (mLineColor != SALCOLOR_NONE)
{
More information about the Libreoffice-commits
mailing list