summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-01-26 11:17:57 +0200
committerTor Lillqvist <tml@collabora.com>2016-01-26 11:43:50 +0200
commit2c55288357c9d5410afae58c1fbb97cdfabf0360 (patch)
tree5cd0ab352add75f31bb5d7eadf05e5257ed3d424 /include
parent7c151f39144b7401a99c7b736a41e5dce4ac4db1 (diff)
Add API to get the number of OpenGL buffer swaps, including through UNO
Change-Id: Iff29ac615ad4b6516790b1cbbde0215a3cd0efe6
Diffstat (limited to 'include')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx5
1 files changed, 5 insertions, 0 deletions
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;