OpenCoverage

qsgdefaultpainternode_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgdefaultpainternode_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QOpenGLFramebufferObject;-
7class QOpenGLPaintDevice;-
8class QSGDefaultRenderContext;-
9-
10class __attribute__((visibility("default"))) QSGPainterTexture : public QSGPlainTexture-
11{-
12public:-
13 QSGPainterTexture();-
14-
15 void setDirtyRect(const QRect &rect) { m_dirty_rect = rect; }
executed 50 times by 1 test: end of block
Executed by:
  • tst_qquickpainteditem
50
16-
17 void bind() override;-
18-
19private:-
20 QRect m_dirty_rect;-
21};-
22-
23class __attribute__((visibility("default"))) QSGDefaultPainterNode : public QSGPainterNode-
24{-
25public:-
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: return m_size;
Executed by:
  • tst_qquickpainteditem
m_size;
executed 8 times by 1 test: return m_size;
Executed by:
  • tst_qquickpainteditem
}
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: return m_opaquePainting;
Executed by:
  • tst_qquickpainteditem
m_opaquePainting;
executed 6 times by 1 test: return m_opaquePainting;
Executed by:
  • tst_qquickpainteditem
}
6
38-
39 void setLinearFiltering(bool linearFiltering) override;-
40 bool linearFiltering() const { return
never executed: return m_linear_filtering;
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: return m_mipmapping;
Executed by:
  • tst_qquickpainteditem
m_mipmapping;
executed 6 times by 1 test: return m_mipmapping;
Executed by:
  • tst_qquickpainteditem
}
6
44-
45 void setSmoothPainting(bool s) override;-
46 bool smoothPainting() const { return
executed 6 times by 1 test: return m_smoothPainting;
Executed by:
  • tst_qquickpainteditem
m_smoothPainting;
executed 6 times by 1 test: return m_smoothPainting;
Executed by:
  • tst_qquickpainteditem
}
6
47-
48 void setFillColor(const QColor &c) override;-
49 QColor fillColor() const { return
executed 6 times by 1 test: return m_fillColor;
Executed by:
  • tst_qquickpainteditem
m_fillColor;
executed 6 times by 1 test: return m_fillColor;
Executed by:
  • tst_qquickpainteditem
}
6
50-
51 void setContentsScale(qreal s) override;-
52 qreal contentsScale() const { return
executed 6 times by 1 test: return m_contentsScale;
Executed by:
  • tst_qquickpainteditem
m_contentsScale;
executed 6 times by 1 test: return m_contentsScale;
Executed by:
  • tst_qquickpainteditem
}
6
53-
54 void setFastFBOResizing(bool fastResizing) override;-
55 bool fastFBOResizing() const { return
executed 6 times by 1 test: return m_fastFBOResizing;
Executed by:
  • tst_qquickpainteditem
m_fastFBOResizing;
executed 6 times by 1 test: return m_fastFBOResizing;
Executed by:
  • tst_qquickpainteditem
}
6
56-
57 void setTextureSize(const QSize &textureSize) override;-
58 QSize textureSize() const { return
never executed: return m_textureSize;
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: return m_texture;
m_texture;
never executed: return m_texture;
}
0
66-
67private:-
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 codePreprocessed file

Generated by Squish Coco 4.2.0