From 4a11c85baeb4998e12bc2ab45b0c23d7203bd5b0 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 25 Nov 2021 22:38:55 +0100 Subject: remove Skia kDifference workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I thought it was a driver problem, but now I'm actually not sure, as I cannot reproduce it anymore and I don't know if it was a driver update or Skia update. Either way, this works now. Also switch to kExclusion, because the end result is the same, but this formula is simpler (to understand primarily, the performance is going to be probably the same). Change-Id: I6ced098ca4a3361cf98d3f9b32968c128eb9f299 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126050 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- vcl/inc/skia/utils.hxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'vcl/inc/skia') diff --git a/vcl/inc/skia/utils.hxx b/vcl/inc/skia/utils.hxx index 0583e9ceb624..ac8a185e711e 100644 --- a/vcl/inc/skia/utils.hxx +++ b/vcl/inc/skia/utils.hxx @@ -103,9 +103,6 @@ enum DirectImage No }; -// Do 'paint->setBlendMode(SkBlendMode::kDifference)' (workaround for buggy drivers). -void setBlendModeDifference(SkPaint* paint); - // Must be called in any VCL backend before any Skia functionality is used. // If not set, Skia will be disabled. VCL_DLLPUBLIC void -- cgit