summaryrefslogtreecommitdiff
path: root/vcl/inc/skia/gdiimpl.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-02 14:25:02 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-02 15:02:04 +0200
commitf2aaea720cd5500f553768c50c3d0464625d6082 (patch)
treea027fefff7e46e8cc5fc7376e4fc226b1fb9cb7d /vcl/inc/skia/gdiimpl.hxx
parent35e12fc828f4e7e573511f974f2fbf9928dea363 (diff)
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
Diffstat (limited to 'vcl/inc/skia/gdiimpl.hxx')
-rw-r--r--vcl/inc/skia/gdiimpl.hxx2
1 files changed, 0 insertions, 2 deletions
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 <salgdiimpl.hxx>
#include <salgeom.hxx>
-#include <SkPaint.h>
#include <SkSurface.h>
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<SkSurface> mSurface;
- SkPaint mPaint; // The current paint object (contains paint setup, such as color to use).
vcl::Region mClipRegion;
Color mLineColor;
Color mFillColor;