From 2c55288357c9d5410afae58c1fbb97cdfabf0360 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 26 Jan 2016 11:17:57 +0200 Subject: Add API to get the number of OpenGL buffer swaps, including through UNO Change-Id: Iff29ac615ad4b6516790b1cbbde0215a3cd0efe6 --- include/vcl/opengl/OpenGLContext.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/vcl/opengl/OpenGLContext.hxx') diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index d5a9e3142173..2b4af081b755 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -186,6 +186,9 @@ public: /// reset the GL context so this context is not implicit in subsequent GL calls. void resetCurrent(); void swapBuffers(); + + static sal_Int64 getBufferSwapCounter(); + void sync(); void show(); @@ -249,6 +252,8 @@ private: ProgramCollection maPrograms; OpenGLProgram* mpCurrentProgram; + static sal_Int64 mnBufferSwapCounter; + public: vcl::Region maClipRegion; int mnPainting; -- cgit