| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | class QSGSimpleRectNode; | - |
| 6 | class QSGSimpleTextureNode; | - |
| 7 | class QSGSoftwareInternalImageNode; | - |
| 8 | class QSGSoftwarePainterNode; | - |
| 9 | class QSGSoftwareInternalRectangleNode; | - |
| 10 | class QSGSoftwareGlyphNode; | - |
| 11 | class QSGSoftwareNinePatchNode; | - |
| 12 | class QSGSoftwareSpriteNode; | - |
| 13 | class QSGRenderNode; | - |
| 14 | - | |
| 15 | class __attribute__((visibility("default"))) QSGSoftwareRenderableNode | - |
| 16 | { | - |
| 17 | public: | - |
| 18 | enum NodeType { | - |
| 19 | Invalid = -1, | - |
| 20 | SimpleRect, | - |
| 21 | SimpleTexture, | - |
| 22 | Image, | - |
| 23 | Painter, | - |
| 24 | Rectangle, | - |
| 25 | Glyph, | - |
| 26 | NinePatch, | - |
| 27 | SimpleRectangle, | - |
| 28 | SimpleImage, | - |
| 29 | - | |
| 30 | SpriteNode, | - |
| 31 | - | |
| 32 | RenderNode | - |
| 33 | }; | - |
| 34 | - | |
| 35 | QSGSoftwareRenderableNode(NodeType type, QSGNode *node); | - |
| 36 | ~QSGSoftwareRenderableNode(); | - |
| 37 | - | |
| 38 | void update(); | - |
| 39 | - | |
| 40 | QRegion renderNode(QPainter *painter, bool forceOpaquePainting = false); | - |
| 41 | QRect boundingRectMin() const { return executed 32 times by 1 test: m_boundingRectMin;return m_boundingRectMin;Executed by:
executed 32 times by 1 test: }return m_boundingRectMin;Executed by:
| 32 |
| 42 | QRect boundingRectMax() const { return executed 16 times by 1 test: m_boundingRectMax;return m_boundingRectMax;Executed by:
executed 16 times by 1 test: }return m_boundingRectMax;Executed by:
| 16 |
| 43 | NodeType type() const { return never executed: m_nodeType;return m_nodeType;never executed: }return m_nodeType; | 0 |
| 44 | bool isOpaque() const { return executed 112 times by 1 test: m_isOpaque;return m_isOpaque;Executed by:
executed 112 times by 1 test: }return m_isOpaque;Executed by:
| 112 |
| 45 | bool isDirty() const { return executed 48 times by 1 test: m_isDirty;return m_isDirty;Executed by:
executed 48 times by 1 test: }return m_isDirty;Executed by:
| 48 |
| 46 | bool isDirtyRegionEmpty() const; | - |
| 47 | QSGNode *handle() const { return never executed: m_handle.node;return m_handle.node;never executed: }return m_handle.node; | 0 |
| 48 | - | |
| 49 | void setTransform(const QTransform &transform); | - |
| 50 | void setClipRegion(const QRegion &clipRegion, bool hasClipRegion = true); | - |
| 51 | void setOpacity(float opacity); | - |
| 52 | QTransform transform() const { return never executed: m_transform;return m_transform;never executed: }return m_transform; | 0 |
| 53 | QRegion clipRegion() const { return never executed: m_clipRegion;return m_clipRegion;never executed: }return m_clipRegion; | 0 |
| 54 | float opacity() const { return never executed: m_opacity;return m_opacity;never executed: }return m_opacity; | 0 |
| 55 | - | |
| 56 | void markGeometryDirty(); | - |
| 57 | void markMaterialDirty(); | - |
| 58 | - | |
| 59 | void addDirtyRegion(const QRegion &dirtyRegion, bool forceDirty = true); | - |
| 60 | void subtractDirtyRegion(const QRegion &dirtyRegion); | - |
| 61 | - | |
| 62 | QRegion previousDirtyRegion(bool wasRemoved = false) const; | - |
| 63 | QRegion dirtyRegion() const; | - |
| 64 | - | |
| 65 | private: | - |
| 66 | union RenderableNodeHandle { | - |
| 67 | QSGNode *node; | - |
| 68 | QSGSimpleRectNode *simpleRectNode; | - |
| 69 | QSGSimpleTextureNode *simpleTextureNode; | - |
| 70 | QSGSoftwareInternalImageNode *imageNode; | - |
| 71 | QSGSoftwarePainterNode *painterNode; | - |
| 72 | QSGSoftwareInternalRectangleNode *rectangleNode; | - |
| 73 | QSGSoftwareGlyphNode *glpyhNode; | - |
| 74 | QSGSoftwareNinePatchNode *ninePatchNode; | - |
| 75 | QSGRectangleNode *simpleRectangleNode; | - |
| 76 | QSGImageNode *simpleImageNode; | - |
| 77 | QSGSoftwareSpriteNode *spriteNode; | - |
| 78 | QSGRenderNode *renderNode; | - |
| 79 | }; | - |
| 80 | - | |
| 81 | const NodeType m_nodeType; | - |
| 82 | RenderableNodeHandle m_handle; | - |
| 83 | - | |
| 84 | bool m_isOpaque; | - |
| 85 | - | |
| 86 | bool m_isDirty; | - |
| 87 | QRegion m_dirtyRegion; | - |
| 88 | QRegion m_previousDirtyRegion; | - |
| 89 | - | |
| 90 | QTransform m_transform; | - |
| 91 | QRegion m_clipRegion; | - |
| 92 | bool m_hasClipRegion; | - |
| 93 | float m_opacity; | - |
| 94 | - | |
| 95 | QRect m_boundingRectMin; | - |
| 96 | QRect m_boundingRectMax; | - |
| 97 | }; | - |
| 98 | - | |
| 99 | - | |
| Switch to Source code | Preprocessed file |