diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-01-20 04:12:18 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-01-28 14:13:15 +0000 |
commit | d2819f2f47f8a98e0ee58242d9a2b54fca383add (patch) | |
tree | e4ac8e026c730787d940a9cf963c7becc19fb65b /include | |
parent | e471f3861bda5575742eac3f1d9747108e5e8e7a (diff) |
some debug code for finding leaked OpenGLContexts
Change-Id: I10e8c344ae6aa2e0a4ef562154f57e2070c70e2f
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 7d721233582f..717502309fd9 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -56,9 +56,12 @@ class NSOpenGLView; #include <tools/gen.hxx> #include <vcl/syschild.hxx> +#include <set> + class OpenGLFramebuffer; class OpenGLProgram; class OpenGLTexture; +class SalGraphicsImpl; /// Holds the information of our new child window struct GLWindow @@ -212,8 +215,13 @@ public: bool AcquireDefaultFramebuffer(); OpenGLFramebuffer* AcquireFramebuffer( const OpenGLTexture& rTexture ); void ReleaseFramebuffer( OpenGLFramebuffer* pFramebuffer ); +#ifdef DBG_UTIL + void AddRef(SalGraphicsImpl*); + void DeRef(SalGraphicsImpl*); +#else void AddRef(); void DeRef(); +#endif void ReleaseFramebuffer( const OpenGLTexture& rTexture ); void ReleaseFramebuffers(); @@ -283,6 +291,9 @@ private: boost::unordered_map<ProgramKey, OpenGLProgram*> maPrograms; OpenGLProgram* mpCurrentProgram; +#ifdef DBG_UTIL + std::set<SalGraphicsImpl*> maParents; +#endif public: vcl::Region maClipRegion; |