1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_VCL_INC_SKIA_OSX_GDIIMPL_HXX
11 #define INCLUDED_VCL_INC_SKIA_OSX_GDIIMPL_HXX
13 #include <vcl/dllapi.h>
15 #include <quartz/salgdi.h>
17 #include <skia/gdiimpl.hxx>
18 #include <skia/utils.hxx>
20 #include <SkFontMgr.h>
22 class VCL_PLUGIN_PUBLIC AquaSkiaSalGraphicsImpl final
: public SkiaSalGraphicsImpl
,
23 public AquaGraphicsBackendBase
26 AquaSkiaSalGraphicsImpl(AquaSalGraphics
& rParent
, AquaSharedAttributes
& rShared
);
27 virtual ~AquaSkiaSalGraphicsImpl() override
;
29 virtual void freeResources() override
;
31 virtual void UpdateGeometryProvider(SalGeometryProvider
* provider
) override
33 setProvider(provider
);
35 static void prepareSkia();
37 virtual bool drawNativeControl(ControlType nType
, ControlPart nPart
,
38 const tools::Rectangle
& rControlRegion
, ControlState nState
,
39 const ImplControlValue
& aValue
) override
;
41 virtual void drawTextLayout(const GenericSalLayout
& layout
) override
;
43 virtual void Flush() override
;
44 virtual void Flush(const tools::Rectangle
&) override
;
45 virtual void WindowBackingPropertiesChanged() override
;
48 virtual int getWindowScaling() const override
;
49 virtual void createWindowSurfaceInternal(bool forceRaster
= false) override
;
50 virtual void flushSurfaceToWindowContext() override
;
51 void flushSurfaceToScreenCG();
52 static inline sk_sp
<SkFontMgr
> fontManager
;
55 #endif // INCLUDED_VCL_INC_SKIA_OSX_GDIIMPL_HXX
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */