diff options
author | Luboš Luňák <l.lunak@centrum.cz> | 2020-11-16 11:14:33 +0000 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-11-17 10:55:19 +0100 |
commit | 1724b7a2cb16336b2c6e066504708396b8ecfa32 (patch) | |
tree | 8b5e4ea0e8abd0643a96dbe9f626cfe7e7e38ee9 /vcl/skia/gdiimpl.cxx | |
parent | 319a03fe3975f24f1bccc88019a92217bc1df53b (diff) |
set Skia pixel geometry for every surface
Skia update chrome/m88 removed the possibility to call
SkFontLCDConfig::SetSubpixelOrder() to set subpixel setup for all
surfaces. So I guess now we have to explicitly pass SkSurfaceProps
to every single SkSurface we create.
Change-Id: I15be37ba9301c92d0cb109e88f3d1396a7223208
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105922
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/gdiimpl.cxx')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index c2e96cd44576..e339171d9d80 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -1403,7 +1403,8 @@ void SkiaSalGraphicsImpl::invert(basegfx::B2DPolygon const& rPoly, SalInvert eFl SkRect area; aPath.getBounds().roundOut(&area); SkRect size = SkRect::MakeWH(area.width(), area.height()); - sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(area.width(), area.height()); + sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(area.width(), area.height(), + SkiaHelper::surfaceProps()); SkPaint copy; copy.setBlendMode(SkBlendMode::kSrc); flushDrawing(); @@ -1450,7 +1451,8 @@ void SkiaSalGraphicsImpl::invert(basegfx::B2DPolygon const& rPoly, SalInvert eFl SkRect area; aPath.getBounds().roundOut(&area); SkRect size = SkRect::MakeWH(area.width(), area.height()); - sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(area.width(), area.height()); + sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(area.width(), area.height(), + SkiaHelper::surfaceProps()); SkPaint copy; copy.setBlendMode(SkBlendMode::kSrc); flushDrawing(); |