Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgdefaultpainternode_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | class QOpenGLFramebufferObject; | - |
7 | class QOpenGLPaintDevice; | - |
8 | class QSGDefaultRenderContext; | - |
9 | - | |
10 | class __attribute__((visibility("default"))) QSGPainterTexture : public QSGPlainTexture | - |
11 | { | - |
12 | public: | - |
13 | QSGPainterTexture(); | - |
14 | - | |
15 | void setDirtyRect(const QRect &rect) { m_dirty_rect = rect; } executed 50 times by 1 test: end of block Executed by:
| 50 |
16 | - | |
17 | void bind() override; | - |
18 | - | |
19 | private: | - |
20 | QRect m_dirty_rect; | - |
21 | }; | - |
22 | - | |
23 | class __attribute__((visibility("default"))) QSGDefaultPainterNode : public QSGPainterNode | - |
24 | { | - |
25 | public: | - |
26 | QSGDefaultPainterNode(QQuickPaintedItem *item); | - |
27 | virtual ~QSGDefaultPainterNode(); | - |
28 | - | |
29 | void setPreferredRenderTarget(QQuickPaintedItem::RenderTarget target) override; | - |
30 | - | |
31 | void setSize(const QSize &size) override; | - |
32 | QSize size() const { return executed 8 times by 1 test: m_size;return m_size; Executed by:
executed 8 times by 1 test: }return m_size; Executed by:
| 8 |
33 | - | |
34 | void setDirty(const QRect &dirtyRect = QRect()) override; | - |
35 | - | |
36 | void setOpaquePainting(bool opaque) override; | - |
37 | bool opaquePainting() const { return executed 6 times by 1 test: m_opaquePainting;return m_opaquePainting; Executed by:
executed 6 times by 1 test: }return m_opaquePainting; Executed by:
| 6 |
38 | - | |
39 | void setLinearFiltering(bool linearFiltering) override; | - |
40 | bool linearFiltering() const { return never executed: m_linear_filtering;return m_linear_filtering; never executed: }return m_linear_filtering; | 0 |
41 | - | |
42 | void setMipmapping(bool mipmapping) override; | - |
43 | bool mipmapping() const { return executed 6 times by 1 test: m_mipmapping;return m_mipmapping; Executed by:
executed 6 times by 1 test: }return m_mipmapping; Executed by:
| 6 |
44 | - | |
45 | void setSmoothPainting(bool s) override; | - |
46 | bool smoothPainting() const { return executed 6 times by 1 test: m_smoothPainting;return m_smoothPainting; Executed by:
executed 6 times by 1 test: }return m_smoothPainting; Executed by:
| 6 |
47 | - | |
48 | void setFillColor(const QColor &c) override; | - |
49 | QColor fillColor() const { return executed 6 times by 1 test: m_fillColor;return m_fillColor; Executed by:
executed 6 times by 1 test: }return m_fillColor; Executed by:
| 6 |
50 | - | |
51 | void setContentsScale(qreal s) override; | - |
52 | qreal contentsScale() const { return executed 6 times by 1 test: m_contentsScale;return m_contentsScale; Executed by:
executed 6 times by 1 test: }return m_contentsScale; Executed by:
| 6 |
53 | - | |
54 | void setFastFBOResizing(bool fastResizing) override; | - |
55 | bool fastFBOResizing() const { return executed 6 times by 1 test: m_fastFBOResizing;return m_fastFBOResizing; Executed by:
executed 6 times by 1 test: }return m_fastFBOResizing; Executed by:
| 6 |
56 | - | |
57 | void setTextureSize(const QSize &textureSize) override; | - |
58 | QSize textureSize() const { return never executed: m_textureSize;return m_textureSize; never executed: }return m_textureSize; | 0 |
59 | - | |
60 | QImage toImage() const override; | - |
61 | void update() override; | - |
62 | - | |
63 | void paint(); | - |
64 | - | |
65 | QSGTexture *texture() const override { return never executed: m_texture;return m_texture; never executed: }return m_texture; | 0 |
66 | - | |
67 | private: | - |
68 | void updateTexture(); | - |
69 | void updateGeometry(); | - |
70 | void updateRenderTarget(); | - |
71 | void updateFBOSize(); | - |
72 | - | |
73 | QSGDefaultRenderContext *m_context; | - |
74 | - | |
75 | QQuickPaintedItem::RenderTarget m_preferredRenderTarget; | - |
76 | QQuickPaintedItem::RenderTarget m_actualRenderTarget; | - |
77 | - | |
78 | QQuickPaintedItem *m_item; | - |
79 | - | |
80 | QOpenGLFramebufferObject *m_fbo; | - |
81 | QOpenGLFramebufferObject *m_multisampledFbo; | - |
82 | QImage m_image; | - |
83 | - | |
84 | QSGOpaqueTextureMaterial m_material; | - |
85 | QSGTextureMaterial m_materialO; | - |
86 | QSGGeometry m_geometry; | - |
87 | QSGPainterTexture *m_texture; | - |
88 | QOpenGLPaintDevice *m_gl_device; | - |
89 | - | |
90 | QSize m_size; | - |
91 | QSize m_fboSize; | - |
92 | QSize m_textureSize; | - |
93 | QRect m_dirtyRect; | - |
94 | QColor m_fillColor; | - |
95 | - | |
96 | - | |
97 | - | |
98 | qreal m_contentsScale; | - |
99 | - | |
100 | bool m_dirtyContents : 1; | - |
101 | bool m_opaquePainting : 1; | - |
102 | bool m_linear_filtering : 1; | - |
103 | bool m_mipmapping : 1; | - |
104 | bool m_smoothPainting : 1; | - |
105 | bool m_extensionsChecked : 1; | - |
106 | bool m_multisamplingSupported : 1; | - |
107 | bool m_fastFBOResizing : 1; | - |
108 | bool m_dirtyGeometry : 1; | - |
109 | bool m_dirtyRenderTarget : 1; | - |
110 | bool m_dirtyTexture : 1; | - |
111 | }; | - |
112 | - | |
113 | - | |
Switch to Source code | Preprocessed file |