LibreOffice Module vcl (master)  1
skia/x11/gdiimpl.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #ifndef INCLUDED_VCL_INC_SKIA_X11_GDIIMPL_HXX
11 #define INCLUDED_VCL_INC_SKIA_X11_GDIIMPL_HXX
12 
13 #include <vcl/dllapi.h>
14 
15 #include <unx/salgdi.h>
16 #include <unx/x11/x11gdiimpl.h>
17 #include <skia/gdiimpl.hxx>
18 #include <skia/utils.hxx>
19 
21  public X11GraphicsImpl
22 {
23 private:
25 
26 public:
28  virtual ~X11SkiaSalGraphicsImpl() override;
29 
30  virtual void Init() override;
31  virtual void DeInit() override;
32  virtual void freeResources() override;
33 
34  static void prepareSkia();
35 
36 private:
37  virtual void createWindowContext() override;
38  virtual void performFlush() override;
39  virtual bool avoidRecreateByResize() const override;
40  static std::unique_ptr<sk_app::WindowContext>
41  createWindowContext(Display* display, Drawable drawable, const XVisualInfo* visual, int width,
42  int height, SkiaHelper::RenderMethod renderMethod, bool temporary);
43  friend std::unique_ptr<sk_app::WindowContext> createVulkanWindowContext(bool);
44 };
45 
46 #endif // INCLUDED_VCL_INC_SKIA_X11_GDIIMPL_HXX
47 
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void createWindowContext()=0
virtual void freeResources()=0
virtual void Init() override
virtual void DeInit() override
X11SalGraphics & mX11Parent
virtual bool avoidRecreateByResize() const
Display
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
virtual void performFlush()=0
VCL_DLLPUBLIC void prepareSkia(std::unique_ptr< sk_app::WindowContext >(*createVulkanWindowContext)(bool))