diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-01-12 19:02:13 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-01-16 16:33:39 +0100 |
commit | b1d3ef798a89d11b853c467fa9ce0fe6ed235735 (patch) | |
tree | 2b4bfa828a7d46e6e6d68dc9a61ae6181386f9f7 /vcl/inc/win | |
parent | 0874fa237b3b6be3890915a744c5d34ba2bef8f7 (diff) |
use surface atlas for Skia text drawing on Windows
Just like with the OpenGL case the idea is that rather than caching
many tiny surfaces for each glyph it should be more efficient to have
large surfaces with the glyphs packed inside.
Change-Id: I4bc6ece40d4bc85d373340bd03f959fde3a45abf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86777
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/inc/win')
-rw-r--r-- | vcl/inc/win/winlayout.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/inc/win/winlayout.hxx b/vcl/inc/win/winlayout.hxx index d8cdd310b50f..c8da95d3fb3c 100644 --- a/vcl/inc/win/winlayout.hxx +++ b/vcl/inc/win/winlayout.hxx @@ -66,7 +66,6 @@ struct GlobalWinGlyphCache virtual ~GlobalWinGlyphCache() {} virtual bool AllocateTexture(WinGlyphDrawElement& rElement, CompatibleDC* dc) = 0; - virtual void NotifyElementUsed(WinGlyphDrawElement& /*rElement*/) {} virtual void Prune() {} }; @@ -99,9 +98,7 @@ public: { assert(GlobalWinGlyphCache::get()); assert(IsGlyphCached(nGlyphIndex)); - WinGlyphDrawElement& element = maWinTextureCache[nGlyphIndex]; - GlobalWinGlyphCache::get()->NotifyElementUsed(element); - return element; + return maWinTextureCache[nGlyphIndex]; } bool IsGlyphCached(int nGlyphIndex) const |