summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorLubosz Sarnecki <lubosz.sarnecki@collabora.co.uk>2015-08-20 16:22:43 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-08-26 13:50:32 +0900
commit97bf7c6cc7c756109e75dc11641300e28e8b3d1f (patch)
treec0f1d13556ce8d5928408dfd57a4fa0193e9fd92 /vcl/inc/opengl
parent4f0bb271c300253d1812c6cccf813eff442a02db (diff)
vcl OpenGL program: Cache mvp matrix to reduce ~200 api calls per frame.
(cherry picked from commit e3cd97ce0b2e153b8b6812cc66f2e7d33504a7da) Conflicts: vcl/opengl/program.cxx Change-Id: I86ae50bd8d2148e86a6c8fc0821d3e2bc29a0cd4
Diffstat (limited to 'vcl/inc/opengl')
-rw-r--r--vcl/inc/opengl/program.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/opengl/program.hxx b/vcl/inc/opengl/program.hxx
index 7ac1936e1936..8289a56de4bf 100644
--- a/vcl/inc/opengl/program.hxx
+++ b/vcl/inc/opengl/program.hxx
@@ -40,6 +40,11 @@ private:
TextureList maTextures;
bool mbBlending;
+ float mfLastWidth;
+ float mfLastHeight;
+ float mfLastPixelOffset;
+
+
OpenGLProgram(const OpenGLProgram &) SAL_DELETED_FUNCTION;
public:
OpenGLProgram();