summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:35:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:35:30 +0200
commit6d17d6930e026aa76310767ba7013bb9e9e889b0 (patch)
tree3209140d0f8f269bf61ca68b5a091894e439d04c /vcl/source/opengl
parent3b48b3cc92c93911f61535d22a2c8731574ee51a (diff)
Remove OutputDevice::PaintScope
PaintScope was introduced in commit bfceb557efcd607ef018ae35fc73f8d61a9b9a4e Author: Michael Meeks <michael.meeks@collabora.com> Date: Wed Sep 16 09:17:37 2015 +0100 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. and then mostly removed in commit 33fac4828038bc38ab4a0c4b891d762a5ae73e5e Author: Noel Grandin <noel@peralex.com> Date: Thu Dec 24 09:21:23 2015 +0200 loplugin:unnecessaryvirtual and unwind some apparently now unused VCL OpenGL and GlyphCachePeer stuff. Finish the job, it's not doing anything at all anymore Change-Id: I1365c2d0652ee92630d0649b2df6e5a7b7e37e73
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index d90400997469..f713cf87e693 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -1072,44 +1072,4 @@ void OpenGLHelper::debugMsgPrint(const int nType, const char *pFormat, ...)
va_end (aArgs);
}
-#if HAVE_FEATURE_OPENGL || defined(ANDROID)
-
-OutputDevice::PaintScope::PaintScope(OutputDevice *pDev)
- : pHandle( nullptr )
-{
- if( pDev->mpGraphics || pDev->AcquireGraphics() )
- {
- }
-}
-
-/**
- * Flush all the queued rendering commands to the screen for this context.
- */
-void OutputDevice::PaintScope::flush()
-{
- if( pHandle )
- {
- OpenGLContext *pContext = static_cast<OpenGLContext *>( pHandle );
- pHandle = nullptr;
- pContext->mnPainting--;
- assert( pContext->mnPainting >= 0 );
- if( pContext->mnPainting == 0 )
- {
- pContext->makeCurrent();
- pContext->AcquireDefaultFramebuffer();
- glFlush();
- pContext->swapBuffers();
- CHECK_GL_ERROR();
- }
- pContext->release();
- }
-}
-
-OutputDevice::PaintScope::~PaintScope()
-{
- flush();
-}
-
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */