diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-12-04 12:14:47 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-12-07 20:46:49 +0100 |
commit | db89f53c31af997b9bf422b0e784afba8d62a42e (patch) | |
tree | da11fedb71f01b6d21a32f95c0a9ccecb43fc265 /vcl/unx | |
parent | 6265cfca9d775198e81166b914f5dcaea58802db (diff) |
remove OpenGL VCL backend code
It is by now practically unmaintained, even bugreports in bugzilla
have been already closed for it. AFAICT this used to be really
used only on Windows, where it's no longer the default.
There's still some OpenGL code left, because there are still two
other places that use OpenGL. One is OpenGL slideshows, which
reuse some of the base OpenGL code (and I've checked they
still work even after this removal). Second one is OpenGL canvas,
which it seems has never been finished or enabled (or so it
most probably should be dumped too).
Change-Id: I7ea5aef77ec252eb8e712d167db591209be84a13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107290
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/gdi/salbmp.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salgdi.cxx | 17 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salvd.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 2 |
4 files changed, 3 insertions, 25 deletions
diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index aa3cd0ac034d..4c25000ec13c 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -40,8 +40,6 @@ #include <unx/x11/xlimits.hxx> #include <o3tl/safeint.hxx> -#include <opengl/salbmp.hxx> -#include <vcl/opengl/OpenGLHelper.hxx> #include <config_features.h> #if HAVE_FEATURE_SKIA @@ -63,9 +61,6 @@ std::shared_ptr<SalBitmap> X11SalInstance::CreateSalBitmap() return std::make_shared<SkiaSalBitmap>(); else #endif - if (OpenGLHelper::isVCLOpenGLEnabled()) - return std::make_shared<OpenGLSalBitmap>(); - else return std::make_shared<X11SalBitmap>(); } diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 4390b4c1bd6b..41a0f7dfa9b4 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -44,16 +44,12 @@ #include <textrender.hxx> #include <salvd.hxx> #include "gdiimpl.hxx" -#include <opengl/x11/gdiimpl.hxx> -#include <unx/x11/x11cairotextrender.hxx> -#include <opengl/x11/cairotextrender.hxx> +#include <unx/x11/x11cairotextrender.hxx> #include <unx/x11/xrender_peer.hxx> #include "cairo_xlib_cairo.hxx" #include <cairo-xlib.h> -#include <vcl/opengl/OpenGLHelper.hxx> - #include <config_features.h> #include <vcl/skia/SkiaHelper.hxx> #if HAVE_FEATURE_SKIA @@ -79,7 +75,6 @@ X11SalGraphics::X11SalGraphics(): hBrush_(None), bWindow_(false), bVirDev_(false), - m_bOpenGL(OpenGLHelper::isVCLOpenGLEnabled()), m_bSkia(SkiaHelper::isVCLSkiaEnabled()) { #if HAVE_FEATURE_SKIA @@ -90,12 +85,6 @@ X11SalGraphics::X11SalGraphics(): } else #endif - if (m_bOpenGL) - { - mxImpl.reset(new X11OpenGLSalGraphicsImpl(*this)); - mxTextRenderImpl.reset(new OpenGLX11CairoTextRender(*this)); - } - else { mxTextRenderImpl.reset(new X11CairoTextRender(*this)); mxImpl.reset(new X11SalGraphicsImpl(*this)); @@ -608,7 +597,7 @@ bool X11SalGraphics::drawPolyPolygon( // enable by setting to something static const char* pUseCairoForPolygons(getenv("SAL_ENABLE_USE_CAIRO_FOR_POLYGONS")); - if (!m_bOpenGL && !m_bSkia && nullptr != pUseCairoForPolygons && SupportsCairo()) + if (!m_bSkia && nullptr != pUseCairoForPolygons && SupportsCairo()) { // snap to raster if requested const bool bSnapPoints(!getAntiAlias()); @@ -729,7 +718,7 @@ bool X11SalGraphics::drawPolyLine( // disable by setting to something static const char* pUseCairoForFatLines(getenv("SAL_DISABLE_USE_CAIRO_FOR_FATLINES")); - if (!m_bOpenGL && !m_bSkia && nullptr == pUseCairoForFatLines && SupportsCairo()) + if (!m_bSkia && nullptr == pUseCairoForFatLines && SupportsCairo()) { cairo_t* cr = getCairoContext(); clipRegion(cr); diff --git a/vcl/unx/generic/gdi/salvd.cxx b/vcl/unx/generic/gdi/salvd.cxx index eeb4e73fe62d..16df0de25728 100644 --- a/vcl/unx/generic/gdi/salvd.cxx +++ b/vcl/unx/generic/gdi/salvd.cxx @@ -29,7 +29,6 @@ #include <unx/x11/xlimits.hxx> #include <vcl/opengl/OpenGLHelper.hxx> -#include <opengl/x11/salvd.hxx> #include <config_features.h> #include <vcl/skia/SkiaHelper.hxx> @@ -47,9 +46,6 @@ std::unique_ptr<SalVirtualDevice> X11SalInstance::CreateX11VirtualDevice(SalGrap return std::unique_ptr<SalVirtualDevice>(new X11SkiaSalVirtualDevice( pGraphics, nDX, nDY, pData, std::move(pNewGraphics) )); else #endif - if (OpenGLHelper::isVCLOpenGLEnabled()) - return std::unique_ptr<SalVirtualDevice>(new X11OpenGLSalVirtualDevice( pGraphics, nDX, nDY, pData, std::move(pNewGraphics) )); - else return std::unique_ptr<SalVirtualDevice>(new X11SalVirtualDevice(pGraphics, nDX, nDY, eFormat, pData, std::move(pNewGraphics))); } diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index b8a3d2a5d0de..bdb192d376df 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -301,8 +301,6 @@ static bool lcl_SelectAppIconPixmap( SalDisplay const *pDisplay, SalX11Screen nX sal_uInt16 nIcon, sal_uInt16 iconSize, Pixmap& icon_pixmap, Pixmap& icon_mask, NetWmIconData& netwm_icon) { - PreDefaultWinNoOpenGLZone aGuard; - CreateNetWmAppIcon( nIcon, netwm_icon ); OUString sIcon; |