path: root/src/gui/painting/qtextureglyphcache_p.h
diff options
authorLaszlo Agocs <>2016-03-16 11:01:28 +0100
committerLaszlo Agocs <>2016-03-16 12:36:55 +0000
commitd64f0781738519add9e3c3eb7a92c7dae5f8470c (patch)
tree0a4f4982186ca3d957377ea7324e476bb71883f6 /src/gui/painting/qtextureglyphcache_p.h
parentb122989e734013af00ee6a5b9918a65703ea7806 (diff)
Add begin-end virtuals to the internal glyph cache
Just having a single fillTexture() is not sufficient for efficient operation with modern, low-level graphics APIs. Having a begin-end pair of functions that are invoked before the stream of calls to fillTexture allow glyph caches to build command lists and defer command submission until it is known that all pending glyphs have been processed. Change-Id: Ifac645f83e9cfb6f246be9c8e79e5aa3bde5758d Reviewed-by: Andy Nichols <>
Diffstat (limited to 'src/gui/painting/qtextureglyphcache_p.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qtextureglyphcache_p.h b/src/gui/painting/qtextureglyphcache_p.h
index 14271ccc65..a8efb4abb1 100644
--- a/src/gui/painting/qtextureglyphcache_p.h
+++ b/src/gui/painting/qtextureglyphcache_p.h
@@ -117,7 +117,9 @@ public:
virtual void resizeTextureData(int width, int height) = 0;
virtual int glyphPadding() const { return 0; }
+ virtual void beginFillTexture() { }
virtual void fillTexture(const Coord &coord, glyph_t glyph, QFixed subPixelPosition) = 0;
+ virtual void endFillTexture() { }
inline void createCache(int width, int height) {
m_w = width;