diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 22:25:56 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-15 22:47:07 +0100 |
commit | ff55a35975e677b74d3b7632bbfc39b8633d6b0a (patch) | |
tree | 92e1a3271c523bee78fb66211afc61635a728bc1 /include | |
parent | a6ba404dcaaf1e284f52e2a1e1b988274d35d7f9 (diff) |
vcl: Re-use a framebuffer of the same size when possible
Conflicts:
include/vcl/opengl/OpenGLContext.hxx
Change-Id: Id9c7932976ce9d9282776c20d93d9cca4d290056
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 21f45d207d6f..a98f82592e1b 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -208,18 +208,21 @@ public: // use these methods right after setting a context to make sure drawing happens // in the right FBO (default one is for onscreen painting) + bool BindFramebuffer( OpenGLFramebuffer* pFramebuffer ); bool AcquireDefaultFramebuffer(); - bool AcquireFramebuffer( OpenGLFramebuffer* pFramebuffer ); OpenGLFramebuffer* AcquireFramebuffer( const OpenGLTexture& rTexture ); void ReleaseFramebuffer( OpenGLFramebuffer* pFramebuffer ); void AddRef(); void DeRef(); + void ReleaseFramebuffer( const OpenGLTexture& rTexture ); + void ReleaseFramebuffers(); // retrieve a program from the cache or compile/link it OpenGLProgram* GetProgram( const OUString& rVertexShader, const OUString& rFragmentShader ); OpenGLProgram* UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader ); bool isCurrent(); + void clearCurrent(); void makeCurrent(); void resetCurrent(); void swapBuffers(); |