diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-01-26 11:17:57 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-26 11:43:50 +0200 |
commit | 2c55288357c9d5410afae58c1fbb97cdfabf0360 (patch) | |
tree | 5cd0ab352add75f31bb5d7eadf05e5257ed3d424 /include/vcl | |
parent | 7c151f39144b7401a99c7b736a41e5dce4ac4db1 (diff) |
Add API to get the number of OpenGL buffer swaps, including through UNO
Change-Id: Iff29ac615ad4b6516790b1cbbde0215a3cd0efe6
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 5 |
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; |