diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2012-03-05 09:28:10 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-05 11:26:23 +0100 |
commit | 416786d0f7fee72e235814c98eb2d887b6098ae3 (patch) | |
tree | c5e56a0afe871f5e61c0d60384efa6f6b4902ebf /src/quick/scenegraph/qsgcontextplugin.cpp | |
parent | 12048b91d95034725830a465c33c387cec26a971 (diff) |
Made QQuickWindowManager pluggable via QSGContext.
Also rename paint() to exposureChanged() as that is what the function
actually means. The implementation of paint() has been removed in both
trivial and threaded version as it is superflous as show() already
triggers rendering.
Change-Id: I7e53f42786efaf961921f10a39977de511965d71
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontextplugin.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontextplugin.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin.cpp b/src/quick/scenegraph/qsgcontextplugin.cpp index b8a66fd0c0..bd1c4cece8 100644 --- a/src/quick/scenegraph/qsgcontextplugin.cpp +++ b/src/quick/scenegraph/qsgcontextplugin.cpp @@ -152,5 +152,23 @@ QQuickTextureFactory *QSGContext::createTextureFactoryFromImage(const QImage &im } +/*! + \fn QQuickWindowManager *createWindowManager() + + Calls into the scene graph adaptation if available and creates a hardware + specific window manager. + */ + +QQuickWindowManager *QSGContext::createWindowManager() +{ + QSGAdaptionPluginData *plugin = contextFactory(); + if (plugin->factory) + return plugin->factory->createWindowManager(); + return 0; +} + + + + QT_END_NAMESPACE |