diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-12 14:53:20 +0200 |
---|---|---|
committer | Kim M. Kalland <kim.kalland@nokia.com> | 2011-09-12 17:44:41 +0200 |
commit | fa42faaee527b9822500cd9a69023be817083d92 (patch) | |
tree | 008f09e786673065fb5a66b5e76a2d1a914a6218 /src/gui/kernel/qopenglcontext_p.h | |
parent | 2d5fbd05bb93dcc4c5a85f8cf36e6b8ea522e86d (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 'src/gui/kernel/qopenglcontext_p.h')
-rw-r--r-- | src/gui/kernel/qopenglcontext_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext_p.h b/src/gui/kernel/qopenglcontext_p.h index bfe0f9dedf..059872c09f 100644 --- a/src/gui/kernel/qopenglcontext_p.h +++ b/src/gui/kernel/qopenglcontext_p.h @@ -154,6 +154,8 @@ public: QOpenGLSharedResource *value(QOpenGLContext *context); + QList<QOpenGLSharedResource *> resources() const; + template <typename T> T *value(QOpenGLContext *context) { QOpenGLContextGroup *group = context->shareGroup(); |