diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-05 09:41:32 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-10-06 10:06:44 +0200 |
commit | 7d8a756164dda3b5b08eef68a2925fa4704c33ab (patch) | |
tree | f924fbe33156ca9cfb2dd68bc08440891e28bc37 /vcl/win | |
parent | 897b393ee516f1d731996ac9058edb828d1f8caf (diff) |
WIN rename GlyphCache to OpenGLGlyphCache
The Windows-backend based GlyphCache is OpenGL specific, so
reflect that by renaming it.
Change-Id: I1034bfde14792f0b6a807f8e938742556a31fcfb
Reviewed-on: https://gerrit.libreoffice.org/61452
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 84cc3600de3b..35303fc5c8a5 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -48,12 +48,12 @@ #include <shlwapi.h> #include <winver.h> -GlobalGlyphCache * GlobalGlyphCache::get() { +GlobalOpenGLGlyphCache * GlobalOpenGLGlyphCache::get() { SalData * data = GetSalData(); - if (!data->m_pGlobalGlyphCache) { - data->m_pGlobalGlyphCache.reset(new GlobalGlyphCache); + if (!data->m_pGlobalOpenGLGlyphCache) { + data->m_pGlobalOpenGLGlyphCache.reset(new GlobalOpenGLGlyphCache); } - return data->m_pGlobalGlyphCache.get(); + return data->m_pGlobalOpenGLGlyphCache.get(); } bool WinFontInstance::CacheGlyphToAtlas(HDC hDC, HFONT hFont, int nGlyphIndex, SalGraphics& rGraphics) @@ -200,12 +200,12 @@ bool WinFontInstance::CacheGlyphToAtlas(HDC hDC, HFONT hFont, int nGlyphIndex, S pTxt->ReleaseFont(); - if (!GlyphCache::ReserveTextureSpace(aElement, nBitmapWidth, nBitmapHeight)) + if (!OpenGLGlyphCache::ReserveTextureSpace(aElement, nBitmapWidth, nBitmapHeight)) return false; if (!aDC.copyToTexture(aElement.maTexture)) return false; - maGlyphCache.PutDrawElementInCache(aElement, nGlyphIndex); + maOpenGLGlyphCache.PutDrawElementInCache(aElement, nGlyphIndex); SelectFont(aDC.getCompatibleHDC(), hOrigFont); @@ -418,7 +418,7 @@ bool WinSalGraphics::CacheGlyphs(const GenericSalLayout& rLayout) const GlyphItem* pGlyph; while (rLayout.GetNextGlyph(&pGlyph, aPos, nStart)) { - if (!rFont.GetGlyphCache().IsGlyphCached(pGlyph->maGlyphId)) + if (!rFont.GetOpenGLGlyphCache().IsGlyphCached(pGlyph->maGlyphId)) { if (!rFont.CacheGlyphToAtlas(hDC, hFONT, pGlyph->maGlyphId, *this)) return false; @@ -449,7 +449,7 @@ bool WinSalGraphics::DrawCachedGlyphs(const GenericSalLayout& rLayout) const GlyphItem* pGlyph; while (rLayout.GetNextGlyph(&pGlyph, aPos, nStart)) { - OpenGLGlyphDrawElement& rElement(rFont.GetGlyphCache().GetDrawElement(pGlyph->maGlyphId)); + OpenGLGlyphDrawElement& rElement(rFont.GetOpenGLGlyphCache().GetDrawElement(pGlyph->maGlyphId)); OpenGLTexture& rTexture = rElement.maTexture; if (!rTexture) |