diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-07 06:15:37 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-07 06:15:37 (GMT) |
commit | 4976130171033abdd8323a19229dcbfc5b008cfe (patch) | |
tree | 06fb286c8831e943941a9dabf081fe704fcfda88 /src/opengl/gl2paintengineex/qtriangulatingstroker_p.h | |
parent | 65d04843759d14f15f559c78df94626568bc0cb8 (diff) | |
download | Qt-4976130171033abdd8323a19229dcbfc5b008cfe.zip Qt-4976130171033abdd8323a19229dcbfc5b008cfe.tar.gz Qt-4976130171033abdd8323a19229dcbfc5b008cfe.tar.bz2 |
Avoid many unnecessary allocations, so so that paint engines attached to pixmaps
do not consume excessive amounts of memory, and so can still be reasonably kept
cached with the pixmap.
Saves 8K for every pixmaps drawn to on raster paint engine. Saves about 2K for other graphicssystems.
Task-number: QTBUG-10215
Reviewed-by: Gunnar
Diffstat (limited to 'src/opengl/gl2paintengineex/qtriangulatingstroker_p.h')
-rw-r--r-- | src/opengl/gl2paintengineex/qtriangulatingstroker_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h b/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h index 956d7cc..ab27ed6 100644 --- a/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h +++ b/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h @@ -54,6 +54,7 @@ QT_BEGIN_NAMESPACE class QTriangulatingStroker { public: + QTriangulatingStroker() : m_vertices(0) {} void process(const QVectorPath &path, const QPen &pen, const QRectF &clip); inline int vertexCount() const { return m_vertices.size(); } |