From 9c9a711ac5d8f32ac318d0e4ecab7b3a26bc2150 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 27 Jan 2023 10:48:45 +0200 Subject: Update skia to m111 (*) Remove patches already upstream (*) Remove the skia_sk_cpu_sse_level_0_by_default.patch.1 patch and rather set that define via -D parameter, because that is how the skia BUILD.gn seems to do it. (*) I hand edited the PCH file, because running the update_pch script failed for me. Change-Id: I1fd175b9f63f8d2792a1876e4ece03fe92fb5374 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146251 Tested-by: Jenkins Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- vcl/skia/SkiaHelper.cxx | 6 +++--- vcl/skia/gdiimpl.cxx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'vcl/skia') diff --git a/vcl/skia/SkiaHelper.cxx b/vcl/skia/SkiaHelper.cxx index 02ded1c84d32..905baba98775 100644 --- a/vcl/skia/SkiaHelper.cxx +++ b/vcl/skia/SkiaHelper.cxx @@ -501,7 +501,7 @@ sk_sp createSkSurface(int width, int height, SkColorType type, SkAlph { if (GrDirectContext* grDirectContext = getSharedGrDirectContext()) { - surface = SkSurface::MakeRenderTarget(grDirectContext, SkBudgeted::kNo, + surface = SkSurface::MakeRenderTarget(grDirectContext, skgpu::Budgeted::kNo, SkImageInfo::Make(width, height, type, alpha), 0, surfaceProps()); if (surface) @@ -548,7 +548,7 @@ sk_sp createSkImage(const SkBitmap& bitmap) if (GrDirectContext* grDirectContext = getSharedGrDirectContext()) { sk_sp surface = SkSurface::MakeRenderTarget( - grDirectContext, SkBudgeted::kNo, + grDirectContext, skgpu::Budgeted::kNo, bitmap.info().makeAlphaType(kPremul_SkAlphaType), 0, surfaceProps()); if (surface) { @@ -748,7 +748,7 @@ void setBlenderXor(SkPaint* paint) // Skia does not allow binary operators in the default ES2Strict mode, but that's only // because of OpenGL support. We don't use OpenGL, and it's safe for all modes that we do use. // https://groups.google.com/g/skia-discuss/c/EPLuQbg64Kc/m/2uDXFIGhAwAJ - opts.enforceES2Restrictions = false; + opts.maxVersionAllowed = SkSL::Version::k300; auto effect = SkRuntimeEffect::MakeForBlender(SkString(diff), opts); if (!effect.effect) { diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index d0eb2ceaf51e..0ffafb040a46 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include -- cgit