diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 17:50:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 17:50:44 +0200 |
commit | 66e2f20c5610eb500b4a9cf22ef024492ba0fd00 (patch) | |
tree | 057c5018430402d5f9fcd17a3a7e06b780008c0c /vcl/inc | |
parent | 698153d9096f705cc5e16e8ae6fc0ebd9210c79d (diff) |
CairoFontsCache is only used in cairotextrender.cxx
...so move it there and remove the VCL_DLLPUBLIC
Change-Id: I1fc75984f8a9935e34cd9ac36d878809b538bd1e
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/cairotextrender.hxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/vcl/inc/unx/cairotextrender.hxx b/vcl/inc/unx/cairotextrender.hxx index 1e2eb9cc6b18..8c678135535e 100644 --- a/vcl/inc/unx/cairotextrender.hxx +++ b/vcl/inc/unx/cairotextrender.hxx @@ -26,40 +26,10 @@ #include <deque> -typedef struct FT_FaceRec_* FT_Face; - class ServerFont; class GlyphCache; typedef struct _cairo cairo_t; -class VCL_DLLPUBLIC CairoFontsCache -{ -public: - struct CacheId - { - FT_Face maFace; - const void *mpOptions; - bool mbEmbolden; - bool mbVerticalMetrics; - bool operator ==(const CacheId& rOther) const - { - return maFace == rOther.maFace && - mpOptions == rOther.mpOptions && - mbEmbolden == rOther.mbEmbolden && - mbVerticalMetrics == rOther.mbVerticalMetrics; - } - }; - -private: - typedef std::deque< std::pair<void *, CacheId> > LRUFonts; - static LRUFonts maLRUFonts; -public: - CairoFontsCache() = delete; - - static void CacheFont(void *pFont, const CacheId &rId); - static void* FindCachedFont(const CacheId &rId); -}; - class VCL_DLLPUBLIC CairoTextRender : public TextRenderImpl { ServerFont* mpServerFont[ MAX_FALLBACK ]; |