diff -r 56cd8111b7f7 -r 41300fa6a67c src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h --- a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h Tue Jan 26 12:42:25 2010 +0200 +++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h Tue Feb 02 00:43:10 2010 +0200 @@ -108,23 +108,23 @@ void clear(); QGLPoint* data() {return vertexArray.data();} - QVector& stops() {return vertexArrayStops;} + int *stops() const { return vertexArrayStops.data(); } + int stopCount() const { return vertexArrayStops.size(); } QGLRect boundingRect() const; + int vertexCount() const { return vertexArray.size(); } + void lineToArray(const GLfloat x, const GLfloat y); private: QDataBuffer vertexArray; - QVector vertexArrayStops; + QDataBuffer vertexArrayStops; GLfloat maxX; GLfloat maxY; GLfloat minX; GLfloat minY; bool boundingRectDirty; - - inline void curveToArray(const QGLPoint &cp1, const QGLPoint &cp2, const QGLPoint &ep, GLfloat inverseScale); - void addClosingLine(int index); void addCentroid(const QVectorPath &path, int subPathIndex); };