Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/coreapi/qsgrenderer_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | class QSGBindable; | - |
8 | class QSGNodeUpdater; | - |
9 | - | |
10 | __attribute__((visibility("default"))) bool qsg_test_and_clear_fatal_render_error(); | - |
11 | __attribute__((visibility("default"))) void qsg_set_fatal_renderer_error(); | - |
12 | - | |
13 | class __attribute__((visibility("default"))) QSGRenderer : public QSGAbstractRenderer | - |
14 | { | - |
15 | public: | - |
16 | - | |
17 | QSGRenderer(QSGRenderContext *context); | - |
18 | virtual ~QSGRenderer(); | - |
19 | - | |
20 | - | |
21 | QMatrix4x4 currentProjectionMatrix() const { return never executed: m_current_projection_matrix;return m_current_projection_matrix; never executed: }return m_current_projection_matrix; | 0 |
22 | QMatrix4x4 currentModelViewMatrix() const { return never executed: m_current_model_view_matrix;return m_current_model_view_matrix; never executed: }return m_current_model_view_matrix; | 0 |
23 | QMatrix4x4 currentCombinedMatrix() const { return executed 150174 times by 70 tests: m_current_projection_matrix * m_current_model_view_matrix;return m_current_projection_matrix * m_current_model_view_matrix; Executed by:
executed 150174 times by 70 tests: }return m_current_projection_matrix * m_current_model_view_matrix; Executed by:
| 150174 |
24 | qreal currentOpacity() const { return executed 59094 times by 67 tests: m_current_opacity;return m_current_opacity; Executed by:
executed 59094 times by 67 tests: }return m_current_opacity; Executed by:
| 59094 |
25 | qreal determinant() const { return executed 34190 times by 24 tests: m_current_determinant;return m_current_determinant; Executed by:
executed 34190 times by 24 tests: }return m_current_determinant; Executed by:
| 34190 |
26 | - | |
27 | void setDevicePixelRatio(qreal ratio) { m_device_pixel_ratio = ratio; } executed 50708 times by 76 tests: end of block Executed by:
| 50708 |
28 | qreal devicePixelRatio() const { return executed 34190 times by 24 tests: m_device_pixel_ratio;return m_device_pixel_ratio; Executed by:
executed 34190 times by 24 tests: }return m_device_pixel_ratio; Executed by:
| 34190 |
29 | QSGRenderContext *context() const { return executed 84802 times by 34 tests: m_context;return m_context; Executed by:
executed 84802 times by 34 tests: }return m_context; Executed by:
| 84802 |
30 | - | |
31 | bool isMirrored() const; | - |
32 | void renderScene(const QSGBindable &bindable); | - |
33 | void renderScene(uint fboId = 0) override; | - |
34 | void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override; | - |
35 | - | |
36 | QSGNodeUpdater *nodeUpdater() const; | - |
37 | void setNodeUpdater(QSGNodeUpdater *updater); | - |
38 | inline QSGMaterialShader::RenderState state(QSGMaterialShader::RenderState::DirtyStates dirty) const; | - |
39 | virtual void setCustomRenderMode(const QByteArray &) { } | - |
40 | virtual void releaseCachedResources() { } | - |
41 | - | |
42 | void clearChangedFlag() { m_changed_emitted = false; } never executed: end of block | 0 |
43 | - | |
44 | protected: | - |
45 | virtual void render() = 0; | - |
46 | - | |
47 | const QSGBindable *bindable() const { return executed 50770 times by 75 tests: m_bindable;return m_bindable; Executed by:
executed 50770 times by 75 tests: }return m_bindable; Executed by:
| 50770 |
48 | - | |
49 | virtual void preprocess(); | - |
50 | - | |
51 | void addNodesToPreprocess(QSGNode *node); | - |
52 | void removeNodesToPreprocess(QSGNode *node); | - |
53 | - | |
54 | QMatrix4x4 m_current_projection_matrix; | - |
55 | QMatrix4x4 m_current_model_view_matrix; | - |
56 | qreal m_current_opacity; | - |
57 | qreal m_current_determinant; | - |
58 | qreal m_device_pixel_ratio; | - |
59 | - | |
60 | QSGRenderContext *m_context; | - |
61 | - | |
62 | private: | - |
63 | QSGNodeUpdater *m_node_updater; | - |
64 | - | |
65 | QSet<QSGNode *> m_nodes_to_preprocess; | - |
66 | QSet<QSGNode *> m_nodes_dont_preprocess; | - |
67 | - | |
68 | const QSGBindable *m_bindable; | - |
69 | - | |
70 | uint m_changed_emitted : 1; | - |
71 | uint m_is_rendering : 1; | - |
72 | uint m_is_preprocessing : 1; | - |
73 | }; | - |
74 | - | |
75 | class __attribute__((visibility("default"))) QSGBindable | - |
76 | { | - |
77 | public: | - |
78 | virtual ~QSGBindable() { } | - |
79 | virtual void bind() const = 0; | - |
80 | virtual void clear(QSGAbstractRenderer::ClearMode mode) const; | - |
81 | virtual void reactivate() const; | - |
82 | }; | - |
83 | - | |
84 | class QSGBindableFboId : public QSGBindable | - |
85 | { | - |
86 | public: | - |
87 | QSGBindableFboId(uint); | - |
88 | void bind() const override; | - |
89 | private: | - |
90 | uint m_id; | - |
91 | }; | - |
92 | - | |
93 | - | |
94 | - | |
95 | QSGMaterialShader::RenderState QSGRenderer::state(QSGMaterialShader::RenderState::DirtyStates dirty) const | - |
96 | { | - |
97 | QSGMaterialShader::RenderState s; | - |
98 | s.m_dirty = dirty; | - |
99 | s.m_data = this; | - |
100 | return executed 116002 times by 70 tests: s;return s; Executed by:
executed 116002 times by 70 tests: return s; Executed by:
| 116002 |
101 | } | - |
102 | - | |
103 | - | |
104 | class __attribute__((visibility("default"))) QSGNodeDumper : public QSGNodeVisitor { | - |
105 | - | |
106 | public: | - |
107 | static void dump(QSGNode *n); | - |
108 | - | |
109 | QSGNodeDumper() {} | - |
110 | void visitNode(QSGNode *n) override; | - |
111 | void visitChildren(QSGNode *n) override; | - |
112 | - | |
113 | private: | - |
114 | int m_indent = 0; | - |
115 | }; | - |
116 | - | |
117 | - | |
118 | - | |
119 | - | |
Switch to Source code | Preprocessed file |