summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-22 10:25:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-03-22 11:41:54 +0100
commitfe40f6457800d4ce3d50a84b53f33b775087871f (patch)
tree42a88a05e03587f0ddff965ae95c19743ca9a5a6 /vcl/inc/opengl
parent377e6f7e8556516b6d1698c58857a5662e6f5660 (diff)
Win/X11OpenGLDeviceInfo don't need a common base class
Change-Id: I9fc7e763b8cf055c3aabaaa97fe8c85ebc5e71b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131926 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/inc/opengl')
-rw-r--r--vcl/inc/opengl/DeviceInfo.hxx23
-rw-r--r--vcl/inc/opengl/win/WinDeviceInfo.hxx7
-rw-r--r--vcl/inc/opengl/x11/X11DeviceInfo.hxx6
3 files changed, 4 insertions, 32 deletions
diff --git a/vcl/inc/opengl/DeviceInfo.hxx b/vcl/inc/opengl/DeviceInfo.hxx
deleted file mode 100644
index b0ad3a6cfec6..000000000000
--- a/vcl/inc/opengl/DeviceInfo.hxx
+++ /dev/null
@@ -1,23 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifndef INCLUDED_VCL_INC_OPENGL_DEVICEINFO_HXX
-#define INCLUDED_VCL_INC_OPENGL_DEVICEINFO_HXX
-
-class OpenGLDeviceInfo
-{
-public:
- virtual ~OpenGLDeviceInfo() = 0;
-
- virtual bool isDeviceBlocked() = 0;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/opengl/win/WinDeviceInfo.hxx b/vcl/inc/opengl/win/WinDeviceInfo.hxx
index 04d97406b54a..e79905c24c37 100644
--- a/vcl/inc/opengl/win/WinDeviceInfo.hxx
+++ b/vcl/inc/opengl/win/WinDeviceInfo.hxx
@@ -12,14 +12,13 @@
#include <vcl/dllapi.h>
-#include <opengl/DeviceInfo.hxx>
#include <driverblocklist.hxx>
#include <rtl/ustring.hxx>
#include <vector>
#include <cstdint>
-class VCL_DLLPUBLIC WinOpenGLDeviceInfo : public OpenGLDeviceInfo
+class VCL_DLLPUBLIC WinOpenGLDeviceInfo
{
private:
OUString maDriverVersion;
@@ -54,9 +53,7 @@ private:
public:
WinOpenGLDeviceInfo();
- virtual ~WinOpenGLDeviceInfo() override;
-
- virtual bool isDeviceBlocked() override;
+ bool isDeviceBlocked();
const OUString& GetDriverVersion() const
{
diff --git a/vcl/inc/opengl/x11/X11DeviceInfo.hxx b/vcl/inc/opengl/x11/X11DeviceInfo.hxx
index d51de3a69a2e..e55f24d23ec8 100644
--- a/vcl/inc/opengl/x11/X11DeviceInfo.hxx
+++ b/vcl/inc/opengl/x11/X11DeviceInfo.hxx
@@ -10,11 +10,9 @@
#ifndef INCLUDED_VCL_INC_OPENGL_X11_X11DEVICEINFO_HXX
#define INCLUDED_VCL_INC_OPENGL_X11_X11DEVICEINFO_HXX
-#include <opengl/DeviceInfo.hxx>
-
#include <rtl/string.hxx>
-class X11OpenGLDeviceInfo final : public OpenGLDeviceInfo
+class X11OpenGLDeviceInfo final
{
private:
bool mbIsMesa;
@@ -41,7 +39,7 @@ private:
public:
X11OpenGLDeviceInfo();
- virtual bool isDeviceBlocked() override;
+ bool isDeviceBlocked();
const OString& GetVendor() const
{