From f2aaea720cd5500f553768c50c3d0464625d6082 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 2 Oct 2019 14:25:02 +0200 Subject: correct SkPaint usage when painting Handle SALCOLOR_NONE properly. Also avoid reusing a global SkPaint, creating a new one is as cheap as making a copy, and this way it's less error-prone. Change-Id: I12659cdc58b02f5105029b2b89d1b0c147c7a471 --- vcl/inc/skia/gdiimpl.hxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'vcl/inc/skia') diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx index 6cc61431bcce..aad4ea3e8454 100644 --- a/vcl/inc/skia/gdiimpl.hxx +++ b/vcl/inc/skia/gdiimpl.hxx @@ -25,7 +25,6 @@ #include #include -#include #include class VCL_DLLPUBLIC SkiaSalGraphicsImpl : public SalGraphicsImpl @@ -213,7 +212,6 @@ private: SalGeometryProvider* mProvider; // The Skia surface that is target of all the rendering. sk_sp mSurface; - SkPaint mPaint; // The current paint object (contains paint setup, such as color to use). vcl::Region mClipRegion; Color mLineColor; Color mFillColor; -- cgit v1.2.3