aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h')
-rw-r--r--tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h b/tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h
deleted file mode 100644
index 5fe2de8de0..0000000000
--- a/tests/auto/quick/qquickitemrhiintegration/rhiitem_p.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-
-#ifndef RHIITEM_P_H
-#define RHIITEM_P_H
-
-#include "rhiitem.h"
-#include <QSGSimpleTextureNode>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgplaintexture_p.h>
-
-class RhiItemNode : public QSGTextureProvider, public QSGSimpleTextureNode
-{
- Q_OBJECT
-
-public:
- RhiItemNode(RhiItem *item);
- ~RhiItemNode();
-
- QSGTexture *texture() const override;
-
- void sync();
- bool isValid() const { return m_rhi && m_texture && m_sgWrapperTexture; }
- void scheduleUpdate();
- bool hasRenderer() const { return m_renderer; }
- void setRenderer(RhiItemRenderer *r) { m_renderer = r; }
- void setMirrorVertically(bool b);
-
-private slots:
- void render();
-
-private:
- void createNativeTexture();
- void releaseNativeTexture();
-
- RhiItem *m_item;
- QQuickWindow *m_window;
- QSize m_pixelSize;
- qreal m_dpr = 0.0f;
- QRhi *m_rhi = nullptr;
- QRhiTexture *m_texture = nullptr;
- QSGPlainTexture *m_sgWrapperTexture = nullptr;
- bool m_renderPending = true;
- RhiItemRenderer *m_renderer = nullptr;
-};
-
-class RhiItemPrivate : public QQuickItemPrivate
-{
- Q_DECLARE_PUBLIC(RhiItem)
-public:
- static RhiItemPrivate *get(RhiItem *item) { return item->d_func(); }
- mutable RhiItemNode *node = nullptr;
- int explicitTextureWidth = 0;
- int explicitTextureHeight = 0;
- bool blend = true;
- bool mirrorVertically = false;
- QSize effectiveTextureSize;
-};
-
-#endif