diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-05-27 08:30:07 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-05-27 08:34:16 (GMT) |
commit | 80bc757b56953065fafeffe6c4b8fb6fbca287ac (patch) | |
tree | 0aaab82faaa56f12ed0a00362c09bdf7a0b78ca5 /tests/benchmarks/qgraphicsview/qgraphicsview.qrc | |
parent | 0bcfa7aa496d460c72862369662560c49eb55f17 (diff) | |
download | Qt-80bc757b56953065fafeffe6c4b8fb6fbca287ac.zip Qt-80bc757b56953065fafeffe6c4b8fb6fbca287ac.tar.gz Qt-80bc757b56953065fafeffe6c4b8fb6fbca287ac.tar.bz2 |
Avoid deep copies of pixmaps when using cache in QGraphicsView.
When we have already a pixmap of an item in the cache, we should
remove the entry from the cache otherwise when we will repaint/modify
the copy of the pixmap (the copy of the cache) then we will trigger a
deep copy ; this is because both entries in the cache and our copy
share the same data and if you modify one of them a copy is triggered.
I have added a benchmark as well to test that.
Reviewed-by:bnilsen
Reviewed-by:andreas
Diffstat (limited to 'tests/benchmarks/qgraphicsview/qgraphicsview.qrc')
-rw-r--r-- | tests/benchmarks/qgraphicsview/qgraphicsview.qrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/benchmarks/qgraphicsview/qgraphicsview.qrc b/tests/benchmarks/qgraphicsview/qgraphicsview.qrc index 5e80029..3681648 100644 --- a/tests/benchmarks/qgraphicsview/qgraphicsview.qrc +++ b/tests/benchmarks/qgraphicsview/qgraphicsview.qrc @@ -2,6 +2,7 @@ <qresource> <file>images/designer.png</file> <file>images/wine.jpeg</file> + <file>images/wine-big.jpeg</file> <file>random.data</file> </qresource> </RCC> |