summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-04 09:07:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-04 14:22:40 +0200
commitffa35b82ce845d82a5beae36eb57cec2b0c01233 (patch)
treeea6ff3a2245e4deea0223ab6470de5b71cc6fa30 /vcl/opengl
parent41383ad341dbfcb0233cbbdaafceeb545b955ce3 (diff)
loplugin:unusedmethods
Change-Id: Idd98dc9e1090a6b09124c80eed5a878e5e966cfc Reviewed-on: https://gerrit.libreoffice.org/80182 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/x11/gdiimpl.cxx36
1 files changed, 0 insertions, 36 deletions
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index c9ae89b04d1f..f238422ff441 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -595,40 +595,4 @@ void X11OpenGLSalGraphicsImpl::copyBits( const SalTwoRect& rPosAry, SalGraphics*
OpenGLSalGraphicsImpl::DoCopyBits( rPosAry, *pImpl );
}
-typedef typename std::pair<ControlCacheKey, std::unique_ptr<TextureCombo>> ControlCachePair;
-typedef o3tl::lru_map<ControlCacheKey, std::unique_ptr<TextureCombo>, ControlCacheHashFunction> ControlCacheType;
-
-static vcl::DeleteOnDeinit<ControlCacheType> gTextureCache(new ControlCacheType(200));
-
-bool X11OpenGLSalGraphicsImpl::TryRenderCachedNativeControl(ControlCacheKey& rControlCacheKey, int nX, int nY)
-{
- static bool gbCacheEnabled = !getenv("SAL_WITHOUT_WIDGET_CACHE");
-
- if (!gbCacheEnabled || !gTextureCache.get())
- return false;
-
- ControlCacheType::const_iterator iterator = gTextureCache.get()->find(rControlCacheKey);
-
- if (iterator == gTextureCache.get()->end())
- return false;
-
- const std::unique_ptr<TextureCombo>& pCombo = iterator->second;
-
- PreDraw();
-
- OpenGLTexture& rTexture = *pCombo->mpTexture;
-
- SalTwoRect aPosAry(0, 0, rTexture.GetWidth(), rTexture.GetHeight(),
- nX, nY, rTexture.GetWidth(), rTexture.GetHeight());
-
- if (pCombo->mpMask)
- DrawTextureDiff(rTexture, *pCombo->mpMask, aPosAry, true);
- else
- DrawTexture(rTexture, aPosAry, true);
-
- PostDraw();
-
- return true;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */