summaryrefslogtreecommitdiff
path: root/vcl/inc/opengl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-04-08 17:43:04 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-04-08 19:10:13 +0900
commitf65e77c965bb47d53c994d90b7fd0bf5009b343b (patch)
tree80bb97053ca3badcd52b1c95df4d9a1327313b6b /vcl/inc/opengl
parent094faaae6982472375420e57d6b9e34eefdbced8 (diff)
opengl: cleanup texture, const internal format
- Move IncreaseRefCount and DecreaseRefCount to texture.cxx - Add a constInternalFormat constant for the internal texture format that we want to use. Change-Id: I1c1e1f784075dc0d20b033d3bd2e52d2ffbd8252
Diffstat (limited to 'vcl/inc/opengl')
-rw-r--r--vcl/inc/opengl/texture.hxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx
index a220875ba1ac..f54604a88340 100644
--- a/vcl/inc/opengl/texture.hxx
+++ b/vcl/inc/opengl/texture.hxx
@@ -50,30 +50,8 @@ public:
bool InsertBuffer(int nX, int nY, int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData);
- void IncreaseRefCount(int nSlotNumber)
- {
- mnRefCount++;
- if (mpSlotReferences && nSlotNumber >= 0)
- {
- if (mpSlotReferences->at(nSlotNumber) == 0)
- mnFreeSlots--;
- mpSlotReferences->at(nSlotNumber)++;
- }
- }
-
- void DecreaseRefCount(int nSlotNumber)
- {
- mnRefCount--;
- if (mpSlotReferences && nSlotNumber >= 0)
- {
- mpSlotReferences->at(nSlotNumber)--;
- if (mpSlotReferences->at(nSlotNumber) == 0)
- mnFreeSlots++;
- }
-
- if (mnRefCount <= 0)
- delete this;
- }
+ void IncreaseRefCount(int nSlotNumber);
+ void DecreaseRefCount(int nSlotNumber);
bool IsUnique()
{