From bfceb557efcd607ef018ae35fc73f8d61a9b9a4e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 16 Sep 2015 09:17:37 +0100 Subject: GL paint-flushing guard re-work. Unfortunately, since we can have 2x SalGraphics' on a OutputDevice, and one of these can be a printer - things got very confused around which context to glFlush. This de-tangles the various reference-counts. Change-Id: I1062be0b02a91fc9009deaa3ec29c5dbb227df20 Reviewed-on: https://gerrit.libreoffice.org/18604 Reviewed-by: Michael Meeks Tested-by: Michael Meeks --- vcl/unx/generic/gdi/gdiimpl.hxx | 3 --- vcl/unx/generic/gdi/salgdi.cxx | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'vcl/unx/generic') diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx index 3059dc4a790a..24173c787ddf 100644 --- a/vcl/unx/generic/gdi/gdiimpl.hxx +++ b/vcl/unx/generic/gdi/gdiimpl.hxx @@ -270,9 +270,6 @@ public: virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) SAL_OVERRIDE; - virtual void beginPaint() SAL_OVERRIDE { } - virtual void endPaint() SAL_OVERRIDE { } - public: // implementation of X11GraphicsImpl diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 13c85b99190c..699dab03a5b5 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -556,16 +556,11 @@ bool X11SalGraphics::drawGradient(const tools::PolyPolygon& rPoly, const Gradien return mxImpl->drawGradient(rPoly, rGradient); } -void X11SalGraphics::BeginPaint() +OpenGLContext *X11SalGraphics::BeginPaint() { return mxImpl->beginPaint(); } -void X11SalGraphics::EndPaint() -{ - return mxImpl->endPaint(); -} - SalGeometryProvider *X11SalGraphics::GetGeometryProvider() const { if (m_pFrame) -- cgit