remove assert looking for new compatibilityMode DOCX
[LibreOffice.git] / vcl / inc / skia / osx / gdiimpl.hxx
blob2bd5a308b52380c2a0046c8d87bf318de0fd4f6a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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
25 public:
26 AquaSkiaSalGraphicsImpl(AquaSalGraphics& rParent, AquaSharedAttributes& rShared);
27 virtual ~AquaSkiaSalGraphicsImpl() override;
29 virtual void UpdateGeometryProvider(SalGeometryProvider* provider) override
31 setProvider(provider);
33 static void prepareSkia();
35 virtual bool drawNativeControl(ControlType nType, ControlPart nPart,
36 const tools::Rectangle& rControlRegion, ControlState nState,
37 const ImplControlValue& aValue) override;
39 virtual void drawTextLayout(const GenericSalLayout& layout) override;
41 virtual void Flush() override;
42 virtual void Flush(const tools::Rectangle&) override;
43 virtual void WindowBackingPropertiesChanged() override;
45 CGImageRef createCGImageFromRasterSurface(const NSRect& rDirtyRect, CGPoint& rImageOrigin,
46 bool& rImageFlipped);
48 private:
49 virtual int getWindowScaling() const override;
50 virtual void createWindowSurfaceInternal(bool forceRaster = false) override;
51 virtual void flushSurfaceToWindowContext() override;
52 static inline sk_sp<SkFontMgr> fontManager;
55 #endif // INCLUDED_VCL_INC_SKIA_OSX_GDIIMPL_HXX
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */