summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintbuffer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement proper QStaticText support in QPaintBufferEskil Abrahamsen Blomfeldt2010-03-291-14/+19
| | | | | | | | | Use qt_draw_glyphs() to implement a QPaintBuffer::drawStaticText() which will actually replay via drawStaticTextItem() on engines that support it. Task-number: QTBUG-9064 Reviewed-by: Gunnar
* Paintbuffer single frame profiling.Samuel Rødal2010-03-261-13/+290
| | | | | | | 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
* Reduced the memory footprint of qttrace files.Samuel Rødal2010-02-181-8/+106
| | | | | | | | | | | | A couple of improvements have been made: * Use single precision floats for the traces. * Reduce the number of variant wrapped transforms by introducing a new translate command. * Reduce the number of bytes streamed per image / pixmap draw command. * Add versioning info to qttrace files to be more future proof. Reviewed-by: Gunnar Sletta
* Make QStaticText public API againEskil Abrahamsen Blomfeldt2010-02-101-3/+4
| | | | | QStaticText was previously made private API to support inclusion in Qt 4.6.x. This change turns it back into public API for Qt 4.7.0.
* Temporarily remove QPainter::drawStaticText() for Qt 4.6.x integrationEskil Abrahamsen Blomfeldt2010-02-051-1/+1
| | | | | | | | | | | We can't add new symbols to QPainter for Qt 4.6.x, as we would not be able to remove them again if we regretted the API. Hence, I've made removable symbols instead, a private global function and a drawStaticText() in QPainterPrivate. In order to tie things together, I needed a static private-getter in QPainterPrivate, and hence it had to be a friend of QPainter. Reviewed-by: Trond
* Use state in QPaintBuffer rather than search for the transform cmdEskil Abrahamsen Blomfeldt2010-02-051-10/+1
| | | | | | | No reason to look through all the commands, since we have the transform saved in the state. Reviewed-by: Trond
* Make QStaticText private APIEskil Abrahamsen Blomfeldt2010-02-011-0/+1
| | | | | | | | Turns QStaticText into private API in preparation for Qt 4.6.x. The related functions in QPainter are marked as internal in the docs. There are already internal functions in QPainter, so this seemed like a reasonable solution. Since the functions require QStaticText they will not be accessible to anyone who does not include private API.
* CompileEskil Abrahamsen Blomfeldt2010-01-201-5/+2
| | | | | Compile QStaticText and also use font object in QPaintBuffer since it's now available
* Implement QPaintBufferEngine::drawStaticTextItem()Eskil Abrahamsen Blomfeldt2010-01-181-0/+37
| | | | | | Make QPaintEngineEx::drawStaticTextItem() pure virtual to make sure it's implemented in all engines, and implement the paint buffer version to make gui compile.
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Ran the script utils/normalizeOlivier Goffart2009-11-181-1/+1
| | | | Over src/ tools/ examples/ and demos/
* Fixed some debug and some minor optims to QPaintBuffergunnar2009-11-041-38/+57
| | | | Reviewed-by: TrustMe
* Deep copy QImage based on non-owned data so we can safely store themGunnar Sletta2009-09-281-2/+11
| | | | Reviewed-by: Samuel
* compile fix with namespacehjk2009-09-281-0/+5
| | | | Reviewed-by: sroedal
* Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-091-4/+4
|\
| * Update license headers again.Jason McDonald2009-09-091-4/+4
| | | | | | | | Reviewed-by: Trust Me
* | Fixed 'illegal empty declaration' warning for Nokia X86 compiler.Janne Anttila2009-09-081-1/+1
|/ | | | | Task-number: 241223 Reviewed-by: TrustMe
* Fixed compile for S60.Rohan McGovern2009-09-051-1/+1
| | | | Q_DECLARE_METATYPE must appear before qRegisterMetaType.
* Added multiple frames to QPaintBuffer.Samuel Rødal2009-09-041-5/+21
| | | | | | | | | This lets us stream a single QPaintBuffer instead of one QPaintBuffer per frame in the trace graphicssystem, which leads to not streaming pixmaps / images once per frame. Performance when doing a trace is also a lot better for painting heavy applications. Reviewed-by: Trond
* Avoided streaming multiple copies of images/pixmaps in QPaintBuffer.Samuel Rødal2009-09-041-1/+74
| | | | | | This reduces the size of the trace files significantly in certain cases. Reviewed-by: Trond
* Added trace graphics system for painting performance profiling.Samuel Rødal2009-09-031-0/+1745
When running an application with graphics system trace everything that gets painted to the window surface is proxied through a QPaintBuffer, which is then both streamed to a trace file and replayed on a raster window surface. The trace file can then be replayed with tools/qttracereplay to measure pure painting performance. Reviewed-by: Gunnar Sletta