diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2015-09-13 12:15:13 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-09-15 15:08:01 +0000 |
commit | d8f78d624b779244f5953fd32960c4f487e320d3 (patch) | |
tree | 9fa99447c01a33807a7c003d4d97b2c31a999105 /vcl/opengl/program.cxx | |
parent | a191076e3b4063a074ebf1a4ef4cded25cebdb8c (diff) |
tdf#93814: Added support for caching shader program binaries.
Change-Id: I21c844b47282f6b3eec443933a86421a074e24df
Reviewed-on: https://gerrit.libreoffice.org/18555
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/opengl/program.cxx')
-rw-r--r-- | vcl/opengl/program.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx index eec4e92bad98..0919c1ac8b09 100644 --- a/vcl/opengl/program.cxx +++ b/vcl/opengl/program.cxx @@ -36,9 +36,12 @@ OpenGLProgram::~OpenGLProgram() glDeleteProgram( mnId ); } -bool OpenGLProgram::Load( const OUString& rVertexShader, const OUString& rFragmentShader, const OString& preamble ) +bool OpenGLProgram::Load( const OUString& rVertexShader, + const OUString& rFragmentShader, + const rtl::OString& preamble, + const rtl::OString& rDigest ) { - mnId = OpenGLHelper::LoadShaders( rVertexShader, rFragmentShader, preamble ); + mnId = OpenGLHelper::LoadShaders( rVertexShader, rFragmentShader, preamble, rDigest ); return ( mnId != 0 ); } |