LibreOffice Module vcl (master) 1
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 <skia/gdiimpl.hxx>
16#include <unx/salgdi.h>
17#include <unx/x11/x11gdiimpl.h>
18
20 public X11GraphicsImpl
21{
22private:
24
25public:
27
28 virtual void Init() override;
29 virtual void freeResources() override;
30 virtual void Flush() override;
31
32 static void prepareSkia();
33
34private:
35 virtual void createWindowSurfaceInternal(bool forceRaster = false) override;
36 virtual bool avoidRecreateByResize() const override;
37 static std::unique_ptr<sk_app::WindowContext>
38 createWindowContext(Display* display, Drawable drawable, const XVisualInfo* visual, int width,
39 int height, SkiaHelper::RenderMethod renderMethod, bool temporary);
40 friend std::unique_ptr<sk_app::WindowContext> createVulkanWindowContext(bool);
41};
42
43#endif // INCLUDED_VCL_INC_SKIA_X11_GDIIMPL_HXX
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
X11SalGraphics & mX11Parent
Definition: x11/gdiimpl.hxx:23
X11SkiaSalGraphicsImpl(X11SalGraphics &rParent)
static std::unique_ptr< sk_app::WindowContext > createWindowContext(Display *display, Drawable drawable, const XVisualInfo *visual, int width, int height, SkiaHelper::RenderMethod renderMethod, bool temporary)
virtual void Init() override
static void prepareSkia()
virtual bool avoidRecreateByResize() const override
virtual void createWindowSurfaceInternal(bool forceRaster=false) override
virtual void freeResources() override
virtual void Flush() override
friend std::unique_ptr< sk_app::WindowContext > createVulkanWindowContext(bool)
#define VCL_PLUGIN_PUBLIC
Definition: dllapi.h:40
Display