summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/opengl/OpenGLWrapper.hxx6
-rw-r--r--include/vcl/openglwin.hxx6
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx4
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx4
4 files changed, 10 insertions, 10 deletions
diff --git a/include/vcl/opengl/OpenGLWrapper.hxx b/include/vcl/opengl/OpenGLWrapper.hxx
index e73aa08466be..3b7f6a7e91da 100644
--- a/include/vcl/opengl/OpenGLWrapper.hxx
+++ b/include/vcl/opengl/OpenGLWrapper.hxx
@@ -23,6 +23,12 @@ struct VCL_DLLPUBLIC OpenGLWrapper
* Returns true if VCL has OpenGL rendering enabled
*/
static bool isVCLOpenGLEnabled();
+
+
+ /**
+ * Returns the number of times OpenGL buffers have been swapped.
+ */
+ static sal_Int64 getBufferSwapCounter();
};
#endif // INCLUDED_VCL_OPENGL_OPENGLWRAPPER_HXX
diff --git a/include/vcl/openglwin.hxx b/include/vcl/openglwin.hxx
index 9ae5d14b6ff7..6b2e58dd5c40 100644
--- a/include/vcl/openglwin.hxx
+++ b/include/vcl/openglwin.hxx
@@ -48,12 +48,6 @@ public:
virtual void MouseMove( const MouseEvent& rMEvt ) override;
virtual void Command( const CommandEvent& rCEvt ) override;
- /**
- * Returns the number of times OpenGL buffers have been swapped.
- * Not really any good reason why this is in this class, but...
- */
- static sal_Int64 getBufferSwapCounter();
-
private:
std::unique_ptr<OpenGLWindowImpl> mxImpl;
IRenderer* mpRenderer;
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 0053928d09a4..a3fed7c7c42f 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -98,7 +98,6 @@
#include <vcl/menubtn.hxx>
#include <vcl/morebtn.hxx>
#include <vcl/msgbox.hxx>
-#include <vcl/openglwin.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/spin.hxx>
#include <vcl/split.hxx>
@@ -114,6 +113,7 @@
#include <vcl/window.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/throbber.hxx>
+#include <vcl/opengl/OpenGLWrapper.hxx>
#include "toolkit/awt/vclxspinbutton.hxx"
#include <tools/debug.hxx>
#include <comphelper/processfactory.hxx>
@@ -1922,7 +1922,7 @@ void SAL_CALL VCLXToolkit::processEventsToIdle()
sal_Int64 SAL_CALL VCLXToolkit::getOpenGLBufferSwapCounter()
throw (css::uno::RuntimeException, std::exception)
{
- return OpenGLWindow::getBufferSwapCounter();
+ return OpenGLWrapper::getBufferSwapCounter();
}
// css:awt:XToolkitRobot
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index d6458c8f201c..d40564a3cea9 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -11,7 +11,7 @@
#include <vcl/opengl/OpenGLContext.hxx>
#include <vcl/opengl/OpenGLHelper.hxx>
-#include <vcl/openglwin.hxx>
+#include <vcl/opengl/OpenGLWrapper.hxx>
#include <vcl/syschild.hxx>
#include <vcl/sysdata.hxx>
@@ -1549,7 +1549,7 @@ void OpenGLContext::swapBuffers()
}
}
-sal_Int64 OpenGLWindow::getBufferSwapCounter()
+sal_Int64 OpenGLWrapper::getBufferSwapCounter()
{
return nBufferSwapCounter;
}