From 15ee12508ec8663ae09ebfc61cc4f0725311bdec Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 11 Aug 2014 13:21:11 +0200 Subject: Cleanup: Separate the sub-tree layering out of QtQuick into the scene graph This basically renames QQuickShaderEffectTexture to QSGDefaultLayer and introduces QSGLayer as interface to be used. QQuickShaderEffectTexture is generic for the scene graph and has no QtQuick dependencies. The interface separation allows scene graph backends to customize layers. Change-Id: I9a7f37addaa4b80a34ff9a1456b0cb9b16d4e9f3 Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/qsgcontext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/quick/scenegraph/qsgcontext.cpp') diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index f69dd7adde..6ebc479ec5 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -51,6 +51,7 @@ #include #include #include +#include #include #include @@ -321,6 +322,14 @@ QSGNinePatchNode *QSGContext::createNinePatchNode() return 0; } +/*! + Factory function for scene graph backends of layers. + */ +QSGLayer *QSGContext::createLayer(QSGRenderContext *renderContext) +{ + return new QSGDefaultLayer(renderContext); +} + QSurfaceFormat QSGContext::defaultSurfaceFormat() const { QSurfaceFormat format = QSurfaceFormat::defaultFormat(); -- cgit v1.2.3