Build for for -no-feature-quick-sprite
Change-Id: Iaf26d9cec7f9fa7a5d6d24c729b2dc92737cca1f Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
c021e4b412
commit
8f5366aed6
|
@ -31,7 +31,6 @@ HEADERS += \
|
|||
qsgopenvghelpers.h \
|
||||
qsgopenvgfontglyphcache.h \
|
||||
qsgopenvgpainternode.h \
|
||||
qsgopenvgspritenode.h \
|
||||
qsgopenvgrenderable.h \
|
||||
qopenvgoffscreensurface.h
|
||||
|
||||
|
@ -52,6 +51,10 @@ SOURCES += \
|
|||
qsgopenvghelpers.cpp \
|
||||
qsgopenvgfontglyphcache.cpp \
|
||||
qsgopenvgpainternode.cpp \
|
||||
qsgopenvgspritenode.cpp \
|
||||
qsgopenvgrenderable.cpp \
|
||||
qopenvgoffscreensurface.cpp
|
||||
|
||||
qtConfig(quick-sprite) {
|
||||
HEADERS += qsgopenvgspritenode.h
|
||||
SOURCES += qsgopenvgspritenode.cpp
|
||||
}
|
||||
|
|
|
@ -45,7 +45,9 @@
|
|||
#include "qsgopenvgglyphnode_p.h"
|
||||
#include "qsgopenvgfontglyphcache.h"
|
||||
#include "qsgopenvgpainternode.h"
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
#include "qsgopenvgspritenode.h"
|
||||
#endif
|
||||
|
||||
#include "qopenvgcontext_p.h"
|
||||
|
||||
|
@ -171,11 +173,12 @@ int QSGOpenVGRenderContext::maxTextureSize() const
|
|||
return qMin(width, height);
|
||||
}
|
||||
|
||||
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
QSGSpriteNode *QSGOpenVGContext::createSpriteNode()
|
||||
{
|
||||
return new QSGOpenVGSpriteNode();
|
||||
}
|
||||
#endif
|
||||
|
||||
QSGRendererInterface *QSGOpenVGContext::rendererInterface(QSGRenderContext *renderContext)
|
||||
{
|
||||
|
|
|
@ -95,7 +95,9 @@ public:
|
|||
QSurfaceFormat defaultSurfaceFormat() const override;
|
||||
QSGInternalRectangleNode *createInternalRectangleNode() override;
|
||||
QSGInternalImageNode *createInternalImageNode() override;
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
QSGSpriteNode *createSpriteNode() override;
|
||||
#endif
|
||||
QSGRendererInterface *rendererInterface(QSGRenderContext *renderContext) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -43,7 +43,9 @@
|
|||
#include "qsgopenvgpublicnodes.h"
|
||||
#include "qsgopenvgglyphnode_p.h"
|
||||
#include "qsgopenvgpainternode.h"
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
#include "qsgopenvgspritenode.h"
|
||||
#endif
|
||||
#include "qsgopenvgrenderable.h"
|
||||
|
||||
#include "qopenvgcontext_p.h"
|
||||
|
@ -209,6 +211,7 @@ void QSGOpenVGNodeVisitor::endVisit(QSGRootNode *)
|
|||
{
|
||||
}
|
||||
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
bool QSGOpenVGNodeVisitor::visit(QSGSpriteNode *node)
|
||||
{
|
||||
renderRenderableNode(static_cast<QSGOpenVGSpriteNode*>(node));
|
||||
|
@ -218,6 +221,7 @@ bool QSGOpenVGNodeVisitor::visit(QSGSpriteNode *node)
|
|||
void QSGOpenVGNodeVisitor::endVisit(QSGSpriteNode *)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
bool QSGOpenVGNodeVisitor::visit(QSGRenderNode *)
|
||||
{
|
||||
|
|
|
@ -73,8 +73,10 @@ public:
|
|||
void endVisit(QSGGlyphNode *) override;
|
||||
bool visit(QSGRootNode *) override;
|
||||
void endVisit(QSGRootNode *) override;
|
||||
#if QT_CONFIG(quick_sprite)
|
||||
bool visit(QSGSpriteNode *) override;
|
||||
void endVisit(QSGSpriteNode *) override;
|
||||
#endif
|
||||
bool visit(QSGRenderNode *) override;
|
||||
void endVisit(QSGRenderNode *) override;
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include <private/qsgadaptationlayer_p.h>
|
||||
#include "qsgopenvgrenderable.h"
|
||||
|
||||
QT_REQUIRE_CONFIG(quick_sprite);
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QSGOpenVGTexture;
|
||||
class QSGOpenVGSpriteNode : public QSGSpriteNode, public QSGOpenVGRenderable
|
||||
|
|
Loading…
Reference in New Issue