Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | class QSGSimpleRectNode; | - |
6 | | - |
7 | class QSGSoftwareRenderableNode; | - |
8 | class QSGSoftwareRenderableNodeUpdater; | - |
9 | | - |
10 | class __attribute__((visibility("default"))) QSGAbstractSoftwareRenderer : public QSGRenderer | - |
11 | { | - |
12 | public: | - |
13 | QSGAbstractSoftwareRenderer(QSGRenderContext *context); | - |
14 | virtual ~QSGAbstractSoftwareRenderer(); | - |
15 | | - |
16 | QSGSoftwareRenderableNode *renderableNode(QSGNode *node) const; | - |
17 | void addNodeMapping(QSGNode *node, QSGSoftwareRenderableNode *renderableNode); | - |
18 | void appendRenderableNode(QSGSoftwareRenderableNode *node); | - |
19 | | - |
20 | void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override; | - |
21 | | - |
22 | void markDirty(); | - |
23 | | - |
24 | protected: | - |
25 | QRegion renderNodes(QPainter *painter); | - |
26 | void buildRenderList(); | - |
27 | QRegion optimizeRenderList(); | - |
28 | | - |
29 | void setBackgroundColor(const QColor &color); | - |
30 | void setBackgroundRect(const QRect &rect); | - |
31 | QColor backgroundColor(); | - |
32 | QRect backgroundRect(); | - |
33 | | - |
34 | bool isOpaque() const { return never executed: return m_isOpaque; m_isOpaque;never executed: return m_isOpaque; } | 0 |
35 | const QLinkedList<QSGSoftwareRenderableNode*> &renderableNodes() const; | - |
36 | | - |
37 | private: | - |
38 | void nodeAdded(QSGNode *node); | - |
39 | void nodeRemoved(QSGNode *node); | - |
40 | void nodeGeometryUpdated(QSGNode *node); | - |
41 | void nodeMaterialUpdated(QSGNode *node); | - |
42 | void nodeMatrixUpdated(QSGNode *node); | - |
43 | void nodeOpacityUpdated(QSGNode *node); | - |
44 | | - |
45 | QHash<QSGNode*, QSGSoftwareRenderableNode*> m_nodes; | - |
46 | QLinkedList<QSGSoftwareRenderableNode*> m_renderableNodes; | - |
47 | | - |
48 | QSGSimpleRectNode *m_background; | - |
49 | | - |
50 | QRegion m_dirtyRegion; | - |
51 | QRegion m_obscuredRegion; | - |
52 | bool m_isOpaque = false; | - |
53 | | - |
54 | QSGSoftwareRenderableNodeUpdater *m_nodeUpdater; | - |
55 | }; | - |
56 | | - |
57 | | - |
| | |