diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2010-03-18 13:38:50 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2010-03-26 09:49:22 (GMT) |
commit | 41e9adb44137c8839d0d7e131802de198b0e7168 (patch) | |
tree | a36f1dda6ceafd1ee87c2acfe698767fb7144e0b /src/gui/painting/qpaintbuffer_p.h | |
parent | 5e2b330aaa0ef964d45f9cb60ea258b33d6e7c4a (diff) | |
download | Qt-41e9adb44137c8839d0d7e131802de198b0e7168.zip Qt-41e9adb44137c8839d0d7e131802de198b0e7168.tar.gz Qt-41e9adb44137c8839d0d7e131802de198b0e7168.tar.bz2 |
Paintbuffer single frame profiling.
Added new --instrumentframe=X argument which gives a detailed run-down
of how many milliseconds each paint command of that frame takes.
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src/gui/painting/qpaintbuffer_p.h')
-rw-r--r-- | src/gui/painting/qpaintbuffer_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintbuffer_p.h b/src/gui/painting/qpaintbuffer_p.h index 0fde290..4576947 100644 --- a/src/gui/painting/qpaintbuffer_p.h +++ b/src/gui/painting/qpaintbuffer_p.h @@ -78,6 +78,12 @@ public: int numFrames() const; void draw(QPainter *painter, int frame = 0) const; + + int frameStartIndex(int frame) const; + int frameEndIndex(int frame) const; + int processCommands(QPainter *painter, int begin, int end) const; + QString commandDescription(int command) const; + void setBoundingRect(const QRectF &rect); QRectF boundingRect() const; @@ -317,7 +323,7 @@ public: void setupTransform(QPainter *painter); virtual void process(const QPaintBufferCommand &cmd); - void draw(const QPaintBuffer &buffer, QPainter *painter, int frame); + void processCommands(const QPaintBuffer &buffer, QPainter *painter, int begin, int end); protected: QPaintBufferPrivate *d; |