diff options
author | Jason Barron <jbarron@trolltech.com> | 2010-02-01 08:50:51 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2010-07-12 07:03:02 (GMT) |
commit | 8757747b05940d8ce6e9550b382a7ea196db90b4 (patch) | |
tree | d3323fff7c65f28297bf22b3213ec2a63c40e06b /src/openvg/qpaintengine_vg.cpp | |
parent | d7b41ca83bd11647a90b78fa388d278cf98189ab (diff) | |
download | Qt-8757747b05940d8ce6e9550b382a7ea196db90b4.zip Qt-8757747b05940d8ce6e9550b382a7ea196db90b4.tar.gz Qt-8757747b05940d8ce6e9550b382a7ea196db90b4.tar.bz2 |
Move QVGFontGlyphCache from source file into a separate header
Needed in order to subclass and override in the Symbian specific
implementation.
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index 9290b79..564b390 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -44,6 +44,7 @@ #include "qpixmapfilter_vg_p.h" #include "qvgcompositionhelper_p.h" #include "qvgimagepool_p.h" +#include "qvgfontglyphcache_p.h" #if !defined(QT_NO_EGL) #include <QtGui/private/qeglcontext_p.h> #include "qwindowsurface_vgegl_p.h" @@ -80,24 +81,6 @@ Q_DECL_IMPORT extern int qt_defaultDpiY(); class QVGPaintEnginePrivate; -class QVGFontGlyphCache -{ -public: - QVGFontGlyphCache(); - virtual ~QVGFontGlyphCache(); - - virtual void cacheGlyphs(QVGPaintEnginePrivate *d, QFontEngine *fontEngine, const glyph_t *g, int count); - - void setScaleFromText(const QFont &font, QFontEngine *fontEngine); - - VGFont font; - VGfloat scaleX; - VGfloat scaleY; - - uint cachedGlyphsMask[256 / 32]; - QSet<glyph_t> cachedGlyphs; -}; - typedef QHash<QFontEngine*, QVGFontGlyphCache*> QVGFontCache; #endif |