aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontext_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2012-02-08 08:09:11 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-09 10:57:21 +0100
commit6c041f2122920307a2506067fdf64f65c614fbf7 (patch)
tree5e257977d83850c622598faeca203960a5c01b4d /src/quick/scenegraph/qsgcontext_p.h
parent8550ed69156f0472450fd11aabcaa5d4dcc676db (diff)
Pass the QQuickCanvas to texture factories.
This makes it a lot more convenient as we then have direct access to the GL context, createTexture(), invalidation signal and more. Change-Id: I114514d1379c4d0efcc35c512fa2b485da3438b0 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext_p.h')
-rw-r--r--src/quick/scenegraph/qsgcontext_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgcontext_p.h b/src/quick/scenegraph/qsgcontext_p.h
index 84c293c107..7fa3838db9 100644
--- a/src/quick/scenegraph/qsgcontext_p.h
+++ b/src/quick/scenegraph/qsgcontext_p.h
@@ -63,7 +63,7 @@ class QSGImageNode;
class QSGGlyphNode;
class QSGRenderer;
class QSGDistanceFieldGlyphCache;
-
+class QQuickCanvas;
class QSGTexture;
class QSGMaterial;
class QSGMaterialShader;
@@ -106,7 +106,7 @@ public:
virtual QSurfaceFormat defaultSurfaceFormat() const;
- QSGTexture *textureForFactory(QDeclarativeTextureFactory *factory);
+ QSGTexture *textureForFactory(QDeclarativeTextureFactory *factory, QQuickCanvas *canvas);
static QSGContext *createDefaultContext();