summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-15 23:18:45 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-15 23:21:39 (GMT)
commita0f2c60dd9f6f44b7016f879b5b3ec32c665fdb9 (patch)
treeec15735d68f20c19698cc41765220036ba1d21b2 /src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
parentad70622193f8a34c28b6536521f8612e0b500fbf (diff)
downloadQt-a0f2c60dd9f6f44b7016f879b5b3ec32c665fdb9.zip
Qt-a0f2c60dd9f6f44b7016f879b5b3ec32c665fdb9.tar.gz
Qt-a0f2c60dd9f6f44b7016f879b5b3ec32c665fdb9.tar.bz2
Optimize drawPixmapFragments for the GL2 paint engine.
In this case, we don't need QGL2PEXVertexArray to keep track of min and max information. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
index d1e7615..adc69ee 100644
--- a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
+++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
@@ -132,6 +132,11 @@ public:
}
+ inline void addVertex(const GLfloat x, const GLfloat y)
+ {
+ vertexArray.add(QGLPoint(x, y));
+ }
+
void addPath(const QVectorPath &path, GLfloat curveInverseScale, bool outline = true);
void clear();