summaryrefslogtreecommitdiffstats
path: root/tests/auto/qopengl
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-09-12 14:53:20 +0200
committerKim M. Kalland <kim.kalland@nokia.com>2011-09-12 17:44:41 +0200
commitfa42faaee527b9822500cd9a69023be817083d92 (patch)
tree008f09e786673065fb5a66b5e76a2d1a914a6218 /tests/auto/qopengl
parent2d5fbd05bb93dcc4c5a85f8cf36e6b8ea522e86d (diff)
Implemented texture cache for GL paint engine in QtGui.
This is simpler than the existing texture cache in QtOpenGL, as it only serves the GL paint engine. There's one per context group, to simplify the design and to prevent performance degradations. Change-Id: I61e3c9a444d8e246a8b38da019a56f2c0a533c0c Reviewed-on: http://codereview.qt-project.org/4674 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'tests/auto/qopengl')
-rw-r--r--tests/auto/qopengl/tst_qopengl.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qopengl/tst_qopengl.cpp b/tests/auto/qopengl/tst_qopengl.cpp
index 18e7e07d94..577fbafe4a 100644
--- a/tests/auto/qopengl/tst_qopengl.cpp
+++ b/tests/auto/qopengl/tst_qopengl.cpp
@@ -418,14 +418,20 @@ void tst_QOpenGL::openGLPaintDevice()
QCOMPARE(image, fbo.toImage().convertToFormat(QImage::Format_RGB32));
- QSKIP("Image / pixmap painting needs to be implemented", SkipSingle);
p.begin(&device);
+ p.fillRect(0, 0, image.width(), image.height(), Qt::black);
p.drawImage(0, 0, image);
p.end();
QCOMPARE(image, fbo.toImage().convertToFormat(QImage::Format_RGB32));
-}
+ p.begin(&device);
+ p.fillRect(0, 0, image.width(), image.height(), Qt::black);
+ p.fillRect(0, 0, image.width(), image.height(), QBrush(image));
+ p.end();
+
+ QCOMPARE(image, fbo.toImage().convertToFormat(QImage::Format_RGB32));
+}
QTEST_MAIN(tst_QOpenGL)
#include "tst_qopengl.moc"