diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-11-22 13:29:55 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-11-22 22:29:16 +0000 |
commit | 07cde200e55ee03bf9e2f9af89c20f91072deccc (patch) | |
tree | a59282f7fa93a57e60d4f9e66b29535d64864c39 /src/quick/scenegraph/util/qsgninepatchnode.h | |
parent | 39bed6135cd08b346866bb35ac95eaaf6f69b95c (diff) |
Move rebuildGeometry() functions of nodes
Move QSGDefaultImageNode::rebuildGeometry(),
QSGDefaultNinePatchNode::rebuildGeometry() to
QSGImageNode::rebuildGeometry(),
QSGNinePatchNode::rebuildGeometry()
respectively.
This makes it possible to use then from the D3D12 plugin
when built without OpenGL support.
Task-number: QTBUG-57185
Change-Id: Ib88c5622f7048618151a63d7536d76296a25842e
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/scenegraph/util/qsgninepatchnode.h')
-rw-r--r-- | src/quick/scenegraph/util/qsgninepatchnode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgninepatchnode.h b/src/quick/scenegraph/util/qsgninepatchnode.h index 8677a432ba..8509cbd326 100644 --- a/src/quick/scenegraph/util/qsgninepatchnode.h +++ b/src/quick/scenegraph/util/qsgninepatchnode.h @@ -55,6 +55,10 @@ public: virtual void setDevicePixelRatio(qreal ratio) = 0; virtual void setPadding(qreal left, qreal top, qreal right, qreal bottom) = 0; virtual void update() = 0; + + static void rebuildGeometry(QSGTexture *texture, QSGGeometry *geometry, + const QVector4D &padding, + const QRectF &bounds, qreal dpr); }; QT_END_NAMESPACE |