Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | class QSGDistanceFieldTextMaterialShader : public QSGMaterialShader | - |
5 | { | - |
6 | public: | - |
7 | QSGDistanceFieldTextMaterialShader(); | - |
8 | | - |
9 | void updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override; | - |
10 | char const *const *attributeNames() const override; | - |
11 | | - |
12 | protected: | - |
13 | void initialize() override; | - |
14 | | - |
15 | void updateAlphaRange(); | - |
16 | void updateColor(const QVector4D &c); | - |
17 | void updateTextureScale(const QVector2D &ts); | - |
18 | | - |
19 | float m_fontScale = 1.0; | - |
20 | float m_matrixScale = 1.0; | - |
21 | | - |
22 | int m_matrix_id = -1; | - |
23 | int m_textureScale_id = -1; | - |
24 | int m_alphaMin_id = -1; | - |
25 | int m_alphaMax_id = -1; | - |
26 | int m_color_id = -1; | - |
27 | | - |
28 | QVector2D m_lastTextureScale; | - |
29 | QVector4D m_lastColor; | - |
30 | float m_lastAlphaMin = -1; | - |
31 | float m_lastAlphaMax = -1; | - |
32 | }; | - |
33 | | - |
34 | char const *const *QSGDistanceFieldTextMaterialShader::attributeNames() const { | - |
35 | static char const *const attr[] = { "vCoord", "tCoord", nullptr }; | - |
36 | returnexecuted 95811 times by 24 tests: return attr; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
attr;executed 95811 times by 24 tests: return attr; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 95811 |
37 | } | - |
38 | | - |
39 | QSGDistanceFieldTextMaterialShader::QSGDistanceFieldTextMaterialShader() | - |
40 | { | - |
41 | setShaderSourceFile(QOpenGLShader::Vertex, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/distancefieldtext.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/distancefieldtext.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 1543 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
qstring_literal_temp;executed 1543 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
}())); | 1543 |
42 | setShaderSourceFile(QOpenGLShader::Fragment, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/distancefieldtext.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/distancefieldtext.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 1543 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
qstring_literal_temp;executed 1543 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
}())); | 1543 |
43 | }executed 1543 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 1543 |
44 | | - |
45 | static float qt_sg_envFloat(const char *name, float defaultValue) | - |
46 | { | - |
47 | if (__builtin_expect(!!(!qEnvironmentVariableIsSet(name)), true)TRUE | evaluated 240 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | never evaluated |
) | 0-240 |
48 | returnexecuted 240 times by 24 tests: return defaultValue; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
defaultValue;executed 240 times by 24 tests: return defaultValue; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 240 |
49 | bool ok = false; | - |
50 | const float value = qgetenv(name).toFloat(&ok); | - |
51 | return never executed: return ok ? value : defaultValue; ok ? value : defaultValue;never executed: return ok ? value : defaultValue; | 0 |
52 | } | - |
53 | | - |
54 | static float thresholdFunc(float glyphScale) | - |
55 | { | - |
56 | static const float base = qt_sg_envFloat("QT_DF_BASE", 0.5f); | - |
57 | static const float baseDev = qt_sg_envFloat("QT_DF_BASEDEVIATION", 0.065f); | - |
58 | static const float devScaleMin = qt_sg_envFloat("QT_DF_SCALEFORMAXDEV", 0.15f); | - |
59 | static const float devScaleMax = qt_sg_envFloat("QT_DF_SCALEFORNODEV", 0.3f); | - |
60 | returnexecuted 34196 times by 24 tests: return base - ((qBound(devScaleMin, glyphScale, devScaleMax) - devScaleMin) / (devScaleMax - devScaleMin) * -baseDev + baseDev); Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
base - ((qBound(devScaleMin, glyphScale, devScaleMax) - devScaleMin) / (devScaleMax - devScaleMin) * -baseDev + baseDev);executed 34196 times by 24 tests: return base - ((qBound(devScaleMin, glyphScale, devScaleMax) - devScaleMin) / (devScaleMax - devScaleMin) * -baseDev + baseDev); Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34196 |
61 | } | - |
62 | | - |
63 | static float spreadFunc(float glyphScale) | - |
64 | { | - |
65 | static const float range = qt_sg_envFloat("QT_DF_RANGE", 0.06f); | - |
66 | returnexecuted 34196 times by 24 tests: return range / glyphScale; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
range / glyphScale;executed 34196 times by 24 tests: return range / glyphScale; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34196 |
67 | } | - |
68 | | - |
69 | void QSGDistanceFieldTextMaterialShader::updateAlphaRange() | - |
70 | { | - |
71 | float combinedScale = m_fontScale * m_matrixScale; | - |
72 | float base = thresholdFunc(combinedScale); | - |
73 | float range = spreadFunc(combinedScale); | - |
74 | float alphaMin = qMax(0.0f, base - range); | - |
75 | float alphaMax = qMin(base + range, 1.0f); | - |
76 | if (alphaMin != m_lastAlphaMinTRUE | evaluated 3295 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 30895 times by 23 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 3295-30895 |
77 | program()->setUniformValue(m_alphaMin_id, GLfloat(alphaMin)); | - |
78 | m_lastAlphaMin = alphaMin; | - |
79 | }executed 3295 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 3295 |
80 | if (alphaMax != m_lastAlphaMaxTRUE | evaluated 3301 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 30889 times by 23 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 3301-30889 |
81 | program()->setUniformValue(m_alphaMax_id, GLfloat(alphaMax)); | - |
82 | m_lastAlphaMax = alphaMax; | - |
83 | }executed 3301 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 3301 |
84 | }executed 34190 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34190 |
85 | | - |
86 | void QSGDistanceFieldTextMaterialShader::updateColor(const QVector4D &c) | - |
87 | { | - |
88 | if (m_lastColor != cTRUE | evaluated 2415 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 28040 times by 23 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 2415-28040 |
89 | program()->setUniformValue(m_color_id, c); | - |
90 | m_lastColor = c; | - |
91 | }executed 2415 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 2415 |
92 | }executed 30455 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 30455 |
93 | | - |
94 | void QSGDistanceFieldTextMaterialShader::updateTextureScale(const QVector2D &ts) | - |
95 | { | - |
96 | if (m_lastTextureScale != tsTRUE | evaluated 2249 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 30841 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 2249-30841 |
97 | program()->setUniformValue(m_textureScale_id, ts); | - |
98 | m_lastTextureScale = ts; | - |
99 | }executed 2249 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 2249 |
100 | }executed 33090 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 33090 |
101 | | - |
102 | void QSGDistanceFieldTextMaterialShader::initialize() | - |
103 | { | - |
104 | QSGMaterialShader::initialize(); | - |
105 | m_matrix_id = program()->uniformLocation("matrix"); | - |
106 | m_textureScale_id = program()->uniformLocation("textureScale"); | - |
107 | m_color_id = program()->uniformLocation("color"); | - |
108 | m_alphaMin_id = program()->uniformLocation("alphaMin"); | - |
109 | m_alphaMax_id = program()->uniformLocation("alphaMax"); | - |
110 | }executed 1543 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 1543 |
111 | | - |
112 | void QSGDistanceFieldTextMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) | - |
113 | { | - |
114 | ((oldEffect == nullptr || newEffect->type() == oldEffect->type()) ? static_cast<void>(0) : qt_assert("oldEffect == nullptr || newEffect->type() == oldEffect->type()", __FILE__, 159)); | - |
115 | QSGDistanceFieldTextMaterial *material = static_cast<QSGDistanceFieldTextMaterial *>(newEffect); | - |
116 | QSGDistanceFieldTextMaterial *oldMaterial = static_cast<QSGDistanceFieldTextMaterial *>(oldEffect); | - |
117 | | - |
118 | bool updated = material->updateTextureSize(); | - |
119 | | - |
120 | if (oldMaterial == nullptrTRUE | evaluated 30039 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 4151 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
| 4151-30039 |
121 | || material->color() != oldMaterial->color()TRUE | evaluated 412 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| FALSE | evaluated 3739 times by 7 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
| 412-3739 |
122 | || state.isOpacityDirty()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 3735 times by 7 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
) { | 4-3735 |
123 | QVector4D color = material->color(); | - |
124 | color *= state.opacity(); | - |
125 | updateColor(color); | - |
126 | }executed 30455 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 30455 |
127 | | - |
128 | bool updateRange = false; | - |
129 | if (oldMaterial == nullptrTRUE | evaluated 30039 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 4151 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
| 4151-30039 |
130 | || material->fontScale() != oldMaterial->fontScale()TRUE | evaluated 1224 times by 8 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| FALSE | evaluated 2927 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
) { | 1224-2927 |
131 | m_fontScale = material->fontScale(); | - |
132 | updateRange = true; | - |
133 | }executed 31263 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 31263 |
134 | if (state.isMatrixDirty()TRUE | evaluated 34190 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | never evaluated |
) { | 0-34190 |
135 | program()->setUniformValue(m_matrix_id, state.combinedMatrix()); | - |
136 | m_matrixScale = qSqrt(qAbs(state.determinant())) * state.devicePixelRatio(); | - |
137 | updateRange = true; | - |
138 | }executed 34190 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34190 |
139 | if (updateRangeTRUE | evaluated 34190 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | never evaluated |
) { | 0-34190 |
140 | updateAlphaRange(); | - |
141 | }executed 34190 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34190 |
142 | | - |
143 | ((material->glyphCache()) ? static_cast<void>(0) : qt_assert("material->glyphCache()", __FILE__, 188)); | - |
144 | | - |
145 | if (updatedTRUE | evaluated 10560 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 23630 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
| 10560-23630 |
146 | || oldMaterial == nullptrTRUE | evaluated 22526 times by 22 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 1104 times by 8 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
|
| 1104-22526 |
147 | || oldMaterial->texture()->textureId != material->texture()->textureIdTRUE | evaluated 4 times by 1 test | FALSE | evaluated 1100 times by 8 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
|
) { | 4-1100 |
148 | updateTextureScale(QVector2D(1.0 / material->textureSize().width(), | - |
149 | 1.0 / material->textureSize().height())); | - |
150 | | - |
151 | QOpenGLFunctions *funcs = state.context()->functions(); | - |
152 | funcs->glBindTexture( | - |
153 | 0x0DE1 | - |
154 | , material->texture()->textureId); | - |
155 | | - |
156 | if (updatedTRUE | evaluated 10560 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 22530 times by 22 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 10560-22530 |
157 | | - |
158 | | - |
159 | funcs->glTexParameteri( | - |
160 | 0x0DE1 | - |
161 | , | - |
162 | 0x2800 | - |
163 | , | - |
164 | 0x2601 | - |
165 | ); | - |
166 | funcs->glTexParameteri( | - |
167 | 0x0DE1 | - |
168 | , | - |
169 | 0x2801 | - |
170 | , | - |
171 | 0x2601 | - |
172 | ); | - |
173 | funcs->glTexParameteri( | - |
174 | 0x0DE1 | - |
175 | , | - |
176 | 0x2802 | - |
177 | , | - |
178 | 0x812F | - |
179 | ); | - |
180 | funcs->glTexParameteri( | - |
181 | 0x0DE1 | - |
182 | , | - |
183 | 0x2803 | - |
184 | , | - |
185 | 0x812F | - |
186 | ); | - |
187 | }executed 10560 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 10560 |
188 | }executed 33090 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 33090 |
189 | }executed 34190 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34190 |
190 | | - |
191 | QSGDistanceFieldTextMaterial::QSGDistanceFieldTextMaterial() | - |
192 | : m_glyph_cache(nullptr) | - |
193 | , m_texture(nullptr) | - |
194 | , m_fontScale(1.0) | - |
195 | { | - |
196 | setFlag(Blending | RequiresDeterminant, true); | - |
197 | }executed 249131 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 249131 |
198 | | - |
199 | QSGDistanceFieldTextMaterial::~QSGDistanceFieldTextMaterial() | - |
200 | { | - |
201 | } | - |
202 | | - |
203 | QSGMaterialType *QSGDistanceFieldTextMaterial::type() const | - |
204 | { | - |
205 | static QSGMaterialType type; | - |
206 | return never executed: return &type; &type;never executed: return &type; | 0 |
207 | } | - |
208 | | - |
209 | void QSGDistanceFieldTextMaterial::setColor(const QColor &color) | - |
210 | { | - |
211 | m_color = QVector4D(color.redF() * color.alphaF(), | - |
212 | color.greenF() * color.alphaF(), | - |
213 | color.blueF() * color.alphaF(), | - |
214 | color.alphaF()); | - |
215 | }executed 34 times by 1 test: end of block | 34 |
216 | | - |
217 | QSGMaterialShader *QSGDistanceFieldTextMaterial::createShader() const | - |
218 | { | - |
219 | return never executed: return new QSGDistanceFieldTextMaterialShader; new QSGDistanceFieldTextMaterialShader;never executed: return new QSGDistanceFieldTextMaterialShader; | 0 |
220 | } | - |
221 | | - |
222 | bool QSGDistanceFieldTextMaterial::updateTextureSize() | - |
223 | { | - |
224 | if (!m_textureTRUE | never evaluated | FALSE | evaluated 34190 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) | 0-34190 |
225 | m_texture = m_glyph_cache->glyphTexture(0); never executed: m_texture = m_glyph_cache->glyphTexture(0); | 0 |
226 | | - |
227 | if (m_texture->size != m_sizeTRUE | evaluated 10560 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 23630 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
) { | 10560-23630 |
228 | m_size = m_texture->size; | - |
229 | returnexecuted 10560 times by 24 tests: return true; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
true;executed 10560 times by 24 tests: return true; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 10560 |
230 | } else { | - |
231 | returnexecuted 23630 times by 23 tests: return false; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
false;executed 23630 times by 23 tests: return false; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 23630 |
232 | } | - |
233 | } | - |
234 | | - |
235 | int QSGDistanceFieldTextMaterial::compare(const QSGMaterial *o) const | - |
236 | { | - |
237 | ((o && type() == o->type()) ? static_cast<void>(0) : qt_assert("o && type() == o->type()", __FILE__, 256)); | - |
238 | const QSGDistanceFieldTextMaterial *other = static_cast<const QSGDistanceFieldTextMaterial *>(o); | - |
239 | if (m_glyph_cache != other->m_glyph_cacheTRUE | evaluated 389 times by 3 testsEvaluated by:- tst_examples
- tst_qquickpathview
- tst_qquicktext
| FALSE | evaluated 515555 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
|
) | 389-515555 |
240 | returnexecuted 389 times by 3 tests: return m_glyph_cache - other->m_glyph_cache; Executed by:- tst_examples
- tst_qquickpathview
- tst_qquicktext
m_glyph_cache - other->m_glyph_cache;executed 389 times by 3 tests: return m_glyph_cache - other->m_glyph_cache; Executed by:- tst_examples
- tst_qquickpathview
- tst_qquicktext
| 389 |
241 | if (m_fontScale != other->m_fontScaleTRUE | evaluated 3577 times by 7 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktextedit
| FALSE | evaluated 511978 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
|
) { | 3577-511978 |
242 | returnexecuted 3577 times by 7 tests: return int(other->m_fontScale < m_fontScale) - int(m_fontScale < other->m_fontScale); Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktextedit
int(other->m_fontScale < m_fontScale) - int(m_fontScale < other->m_fontScale);executed 3577 times by 7 tests: return int(other->m_fontScale < m_fontScale) - int(m_fontScale < other->m_fontScale); Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktextedit
| 3577 |
243 | } | - |
244 | if (m_color != other->m_colorTRUE | evaluated 120 times by 4 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| FALSE | evaluated 511858 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
|
) | 120-511858 |
245 | returnexecuted 120 times by 4 tests: return &m_color < &other->m_color ? -1 : 1; Executed by:- tst_examples
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
&m_color < &other->m_color ? -1 : 1;executed 120 times by 4 tests: return &m_color < &other->m_color ? -1 : 1; Executed by:- tst_examples
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| 120 |
246 | int t0 = m_textureTRUE | evaluated 511858 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
| FALSE | never evaluated |
? m_texture->textureId : 0; | 0-511858 |
247 | int t1 = other->m_textureTRUE | evaluated 511858 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
| FALSE | never evaluated |
? other->m_texture->textureId : 0; | 0-511858 |
248 | returnexecuted 511858 times by 17 tests: return t0 - t1; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
t0 - t1;executed 511858 times by 17 tests: return t0 - t1; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_touchmouse
| 511858 |
249 | } | - |
250 | | - |
251 | | - |
252 | class DistanceFieldStyledTextMaterialShader : public QSGDistanceFieldTextMaterialShader | - |
253 | { | - |
254 | public: | - |
255 | DistanceFieldStyledTextMaterialShader(); | - |
256 | | - |
257 | void updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override; | - |
258 | | - |
259 | protected: | - |
260 | void initialize() override; | - |
261 | | - |
262 | int m_styleColor_id = -1; | - |
263 | }; | - |
264 | | - |
265 | DistanceFieldStyledTextMaterialShader::DistanceFieldStyledTextMaterialShader() | - |
266 | : QSGDistanceFieldTextMaterialShader() | - |
267 | { | - |
268 | }executed 8 times by 1 test: end of block | 8 |
269 | | - |
270 | void DistanceFieldStyledTextMaterialShader::initialize() | - |
271 | { | - |
272 | QSGDistanceFieldTextMaterialShader::initialize(); | - |
273 | m_styleColor_id = program()->uniformLocation("styleColor"); | - |
274 | }executed 8 times by 1 test: end of block | 8 |
275 | | - |
276 | void DistanceFieldStyledTextMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) | - |
277 | { | - |
278 | QSGDistanceFieldTextMaterialShader::updateState(state, newEffect, oldEffect); | - |
279 | | - |
280 | QSGDistanceFieldStyledTextMaterial *material = static_cast<QSGDistanceFieldStyledTextMaterial *>(newEffect); | - |
281 | QSGDistanceFieldStyledTextMaterial *oldMaterial = static_cast<QSGDistanceFieldStyledTextMaterial *>(oldEffect); | - |
282 | | - |
283 | if (oldMaterial == nullptrTRUE | evaluated 16 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-16 |
284 | || material->styleColor() != oldMaterial->styleColor()TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
285 | || (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
state.isOpacityDirty())TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) { | 0-2 |
286 | QVector4D color = material->styleColor(); | - |
287 | color *= state.opacity(); | - |
288 | program()->setUniformValue(m_styleColor_id, color); | - |
289 | }executed 16 times by 1 test: end of block | 16 |
290 | }executed 18 times by 1 test: end of block | 18 |
291 | | - |
292 | QSGDistanceFieldStyledTextMaterial::QSGDistanceFieldStyledTextMaterial() | - |
293 | : QSGDistanceFieldTextMaterial() | - |
294 | { | - |
295 | }executed 34 times by 1 test: end of block | 34 |
296 | | - |
297 | QSGDistanceFieldStyledTextMaterial::~QSGDistanceFieldStyledTextMaterial() | - |
298 | { | - |
299 | } | - |
300 | | - |
301 | void QSGDistanceFieldStyledTextMaterial::setStyleColor(const QColor &color) | - |
302 | { | - |
303 | m_styleColor = QVector4D(color.redF() * color.alphaF(), | - |
304 | color.greenF() * color.alphaF(), | - |
305 | color.blueF() * color.alphaF(), | - |
306 | color.alphaF()); | - |
307 | }executed 34 times by 1 test: end of block | 34 |
308 | | - |
309 | int QSGDistanceFieldStyledTextMaterial::compare(const QSGMaterial *o) const | - |
310 | { | - |
311 | ((o && type() == o->type()) ? static_cast<void>(0) : qt_assert("o && type() == o->type()", __FILE__, 330)); | - |
312 | const QSGDistanceFieldStyledTextMaterial *other = static_cast<const QSGDistanceFieldStyledTextMaterial *>(o); | - |
313 | if (m_styleColor != other->m_styleColorTRUE | never evaluated | FALSE | evaluated 22 times by 1 test |
) | 0-22 |
314 | return never executed: return &m_styleColor < &other->m_styleColor ? -1 : 1; &m_styleColor < &other->m_styleColor ? -1 : 1;never executed: return &m_styleColor < &other->m_styleColor ? -1 : 1; | 0 |
315 | returnexecuted 22 times by 1 test: return QSGDistanceFieldTextMaterial::compare(o); QSGDistanceFieldTextMaterial::compare(o);executed 22 times by 1 test: return QSGDistanceFieldTextMaterial::compare(o); | 22 |
316 | } | - |
317 | | - |
318 | | - |
319 | class DistanceFieldOutlineTextMaterialShader : public DistanceFieldStyledTextMaterialShader | - |
320 | { | - |
321 | public: | - |
322 | DistanceFieldOutlineTextMaterialShader(); | - |
323 | | - |
324 | void updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override; | - |
325 | | - |
326 | protected: | - |
327 | void initialize() override; | - |
328 | | - |
329 | void updateOutlineAlphaRange(int dfRadius); | - |
330 | | - |
331 | int m_outlineAlphaMax0_id = -1; | - |
332 | int m_outlineAlphaMax1_id = -1; | - |
333 | }; | - |
334 | | - |
335 | DistanceFieldOutlineTextMaterialShader::DistanceFieldOutlineTextMaterialShader() | - |
336 | : DistanceFieldStyledTextMaterialShader() | - |
337 | { | - |
338 | setShaderSourceFile(QOpenGLShader::Fragment, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/distancefieldoutlinetext.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/distancefieldoutlinetext.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }())); | 4 |
339 | }executed 4 times by 1 test: end of block | 4 |
340 | | - |
341 | void DistanceFieldOutlineTextMaterialShader::initialize() | - |
342 | { | - |
343 | DistanceFieldStyledTextMaterialShader::initialize(); | - |
344 | m_outlineAlphaMax0_id = program()->uniformLocation("outlineAlphaMax0"); | - |
345 | m_outlineAlphaMax1_id = program()->uniformLocation("outlineAlphaMax1"); | - |
346 | }executed 4 times by 1 test: end of block | 4 |
347 | | - |
348 | void DistanceFieldOutlineTextMaterialShader::updateOutlineAlphaRange(int dfRadius) | - |
349 | { | - |
350 | float combinedScale = m_fontScale * m_matrixScale; | - |
351 | float base = thresholdFunc(combinedScale); | - |
352 | float range = spreadFunc(combinedScale); | - |
353 | float outlineLimit = qMax(0.2f, base - 0.5f / dfRadius / m_fontScale); | - |
354 | | - |
355 | float alphaMin = qMax(0.0f, base - range); | - |
356 | float styleAlphaMin0 = qMax(0.0f, outlineLimit - range); | - |
357 | float styleAlphaMin1 = qMin(outlineLimit + range, alphaMin); | - |
358 | program()->setUniformValue(m_outlineAlphaMax0_id, GLfloat(styleAlphaMin0)); | - |
359 | program()->setUniformValue(m_outlineAlphaMax1_id, GLfloat(styleAlphaMin1)); | - |
360 | }executed 6 times by 1 test: end of block | 6 |
361 | | - |
362 | void DistanceFieldOutlineTextMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) | - |
363 | { | - |
364 | DistanceFieldStyledTextMaterialShader::updateState(state, newEffect, oldEffect); | - |
365 | | - |
366 | QSGDistanceFieldOutlineTextMaterial *material = static_cast<QSGDistanceFieldOutlineTextMaterial *>(newEffect); | - |
367 | QSGDistanceFieldOutlineTextMaterial *oldMaterial = static_cast<QSGDistanceFieldOutlineTextMaterial *>(oldEffect); | - |
368 | | - |
369 | if (oldMaterial == nullptrTRUE | evaluated 4 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-4 |
370 | || material->fontScale() != oldMaterial->fontScale()TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
| 0-2 |
371 | || state.isMatrixDirty()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
372 | updateOutlineAlphaRange(material->glyphCache()->distanceFieldRadius());executed 6 times by 1 test: updateOutlineAlphaRange(material->glyphCache()->distanceFieldRadius()); | 6 |
373 | }executed 6 times by 1 test: end of block | 6 |
374 | | - |
375 | | - |
376 | QSGDistanceFieldOutlineTextMaterial::QSGDistanceFieldOutlineTextMaterial() | - |
377 | : QSGDistanceFieldStyledTextMaterial() | - |
378 | { | - |
379 | }executed 8 times by 1 test: end of block | 8 |
380 | | - |
381 | QSGDistanceFieldOutlineTextMaterial::~QSGDistanceFieldOutlineTextMaterial() | - |
382 | { | - |
383 | } | - |
384 | | - |
385 | QSGMaterialType *QSGDistanceFieldOutlineTextMaterial::type() const | - |
386 | { | - |
387 | static QSGMaterialType type; | - |
388 | returnexecuted 28 times by 1 test: return &type; &type;executed 28 times by 1 test: return &type; | 28 |
389 | } | - |
390 | | - |
391 | QSGMaterialShader *QSGDistanceFieldOutlineTextMaterial::createShader() const | - |
392 | { | - |
393 | returnexecuted 4 times by 1 test: return new DistanceFieldOutlineTextMaterialShader; new DistanceFieldOutlineTextMaterialShader;executed 4 times by 1 test: return new DistanceFieldOutlineTextMaterialShader; | 4 |
394 | } | - |
395 | | - |
396 | | - |
397 | class DistanceFieldShiftedStyleTextMaterialShader : public DistanceFieldStyledTextMaterialShader | - |
398 | { | - |
399 | public: | - |
400 | DistanceFieldShiftedStyleTextMaterialShader(); | - |
401 | | - |
402 | void updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override; | - |
403 | | - |
404 | protected: | - |
405 | void initialize() override; | - |
406 | | - |
407 | void updateShift(qreal fontScale, const QPointF& shift); | - |
408 | | - |
409 | int m_shift_id = -1; | - |
410 | }; | - |
411 | | - |
412 | DistanceFieldShiftedStyleTextMaterialShader::DistanceFieldShiftedStyleTextMaterialShader() | - |
413 | : DistanceFieldStyledTextMaterialShader() | - |
414 | { | - |
415 | setShaderSourceFile(QOpenGLShader::Vertex, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/distancefieldshiftedtext.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/distancefieldshiftedtext.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }())); | 4 |
416 | setShaderSourceFile(QOpenGLShader::Fragment, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/distancefieldshiftedtext.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/distancefieldshiftedtext.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }())); | 4 |
417 | }executed 4 times by 1 test: end of block | 4 |
418 | | - |
419 | void DistanceFieldShiftedStyleTextMaterialShader::initialize() | - |
420 | { | - |
421 | DistanceFieldStyledTextMaterialShader::initialize(); | - |
422 | m_shift_id = program()->uniformLocation("shift"); | - |
423 | }executed 4 times by 1 test: end of block | 4 |
424 | | - |
425 | void DistanceFieldShiftedStyleTextMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) | - |
426 | { | - |
427 | DistanceFieldStyledTextMaterialShader::updateState(state, newEffect, oldEffect); | - |
428 | | - |
429 | QSGDistanceFieldShiftedStyleTextMaterial *material = static_cast<QSGDistanceFieldShiftedStyleTextMaterial *>(newEffect); | - |
430 | QSGDistanceFieldShiftedStyleTextMaterial *oldMaterial = static_cast<QSGDistanceFieldShiftedStyleTextMaterial *>(oldEffect); | - |
431 | | - |
432 | if (oldMaterial == nullptrTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
| 0-12 |
433 | || oldMaterial->fontScale() != material->fontScale()TRUE | never evaluated | FALSE | never evaluated |
| 0 |
434 | || oldMaterial->shift() != material->shift()TRUE | never evaluated | FALSE | never evaluated |
| 0 |
435 | || oldMaterial->textureSize() != material->textureSize()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
436 | updateShift(material->fontScale(), material->shift()); | - |
437 | }executed 12 times by 1 test: end of block | 12 |
438 | }executed 12 times by 1 test: end of block | 12 |
439 | | - |
440 | void DistanceFieldShiftedStyleTextMaterialShader::updateShift(qreal fontScale, const QPointF &shift) | - |
441 | { | - |
442 | QPointF texel(1.0 / fontScale * shift.x(), | - |
443 | 1.0 / fontScale * shift.y()); | - |
444 | program()->setUniformValue(m_shift_id, texel); | - |
445 | }executed 12 times by 1 test: end of block | 12 |
446 | | - |
447 | QSGDistanceFieldShiftedStyleTextMaterial::QSGDistanceFieldShiftedStyleTextMaterial() | - |
448 | : QSGDistanceFieldStyledTextMaterial() | - |
449 | { | - |
450 | }executed 26 times by 1 test: end of block | 26 |
451 | | - |
452 | QSGDistanceFieldShiftedStyleTextMaterial::~QSGDistanceFieldShiftedStyleTextMaterial() | - |
453 | { | - |
454 | } | - |
455 | | - |
456 | QSGMaterialType *QSGDistanceFieldShiftedStyleTextMaterial::type() const | - |
457 | { | - |
458 | static QSGMaterialType type; | - |
459 | returnexecuted 198 times by 1 test: return &type; &type;executed 198 times by 1 test: return &type; | 198 |
460 | } | - |
461 | | - |
462 | QSGMaterialShader *QSGDistanceFieldShiftedStyleTextMaterial::createShader() const | - |
463 | { | - |
464 | returnexecuted 4 times by 1 test: return new DistanceFieldShiftedStyleTextMaterialShader; new DistanceFieldShiftedStyleTextMaterialShader;executed 4 times by 1 test: return new DistanceFieldShiftedStyleTextMaterialShader; | 4 |
465 | } | - |
466 | | - |
467 | int QSGDistanceFieldShiftedStyleTextMaterial::compare(const QSGMaterial *o) const | - |
468 | { | - |
469 | const QSGDistanceFieldShiftedStyleTextMaterial *other = static_cast<const QSGDistanceFieldShiftedStyleTextMaterial *>(o); | - |
470 | if (m_shift != other->m_shiftTRUE | never evaluated | FALSE | evaluated 20 times by 1 test |
) | 0-20 |
471 | return never executed: return &m_shift < &other->m_shift ? -1 : 1; &m_shift < &other->m_shift ? -1 : 1;never executed: return &m_shift < &other->m_shift ? -1 : 1; | 0 |
472 | returnexecuted 20 times by 1 test: return QSGDistanceFieldStyledTextMaterial::compare(o); QSGDistanceFieldStyledTextMaterial::compare(o);executed 20 times by 1 test: return QSGDistanceFieldStyledTextMaterial::compare(o); | 20 |
473 | } | - |
474 | | - |
475 | class QSGHiQSubPixelDistanceFieldTextMaterialShader : public QSGDistanceFieldTextMaterialShader | - |
476 | { | - |
477 | public: | - |
478 | QSGHiQSubPixelDistanceFieldTextMaterialShader(); | - |
479 | | - |
480 | void initialize() override; | - |
481 | void activate() override; | - |
482 | void deactivate() override; | - |
483 | void updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override; | - |
484 | | - |
485 | private: | - |
486 | int m_fontScale_id = -1; | - |
487 | int m_vecDelta_id = -1; | - |
488 | }; | - |
489 | | - |
490 | QSGHiQSubPixelDistanceFieldTextMaterialShader::QSGHiQSubPixelDistanceFieldTextMaterialShader() | - |
491 | : QSGDistanceFieldTextMaterialShader() | - |
492 | { | - |
493 | setShaderSourceFile(QOpenGLShader::Vertex, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/hiqsubpixeldistancefieldtext.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 1535 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
qstring_literal_temp;executed 1535 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
}())); | 1535 |
494 | setShaderSourceFile(QOpenGLShader::Fragment, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/hiqsubpixeldistancefieldtext.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 1535 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
qstring_literal_temp;executed 1535 times by 24 tests: return qstring_literal_temp; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
}())); | 1535 |
495 | }executed 1535 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 1535 |
496 | | - |
497 | void QSGHiQSubPixelDistanceFieldTextMaterialShader::initialize() | - |
498 | { | - |
499 | QSGDistanceFieldTextMaterialShader::initialize(); | - |
500 | m_fontScale_id = program()->uniformLocation("fontScale"); | - |
501 | m_vecDelta_id = program()->uniformLocation("vecDelta"); | - |
502 | }executed 1535 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 1535 |
503 | | - |
504 | void QSGHiQSubPixelDistanceFieldTextMaterialShader::activate() | - |
505 | { | - |
506 | QSGDistanceFieldTextMaterialShader::activate(); | - |
507 | QOpenGLContext::currentContext()->functions()->glBlendFunc(0x8001, | - |
508 | 0x0301 | - |
509 | ); | - |
510 | }executed 30023 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 30023 |
511 | | - |
512 | void QSGHiQSubPixelDistanceFieldTextMaterialShader::deactivate() | - |
513 | { | - |
514 | QSGDistanceFieldTextMaterialShader::deactivate(); | - |
515 | QOpenGLContext::currentContext()->functions()->glBlendFunc( | - |
516 | 1 | - |
517 | , | - |
518 | 0x0303 | - |
519 | ); | - |
520 | }executed 30023 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 30023 |
521 | | - |
522 | void QSGHiQSubPixelDistanceFieldTextMaterialShader::updateState(const RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) | - |
523 | { | - |
524 | ((oldEffect == nullptr || newEffect->type() == oldEffect->type()) ? static_cast<void>(0) : qt_assert("oldEffect == nullptr || newEffect->type() == oldEffect->type()", __FILE__, 537)); | - |
525 | QSGDistanceFieldTextMaterial *material = static_cast<QSGDistanceFieldTextMaterial *>(newEffect); | - |
526 | QSGDistanceFieldTextMaterial *oldMaterial = static_cast<QSGDistanceFieldTextMaterial *>(oldEffect); | - |
527 | | - |
528 | if (oldMaterial == nullptrTRUE | evaluated 30023 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 4149 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
|| material->color() != oldMaterial->color()TRUE | evaluated 412 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| FALSE | evaluated 3737 times by 7 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
) { | 412-30023 |
529 | QVector4D c = material->color(); | - |
530 | state.context()->functions()->glBlendColor(c.x(), c.y(), c.z(), 1.0f); | - |
531 | }executed 30435 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 30435 |
532 | | - |
533 | if (oldMaterial == nullptrTRUE | evaluated 30023 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 4149 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
|| material->fontScale() != oldMaterial->fontScale()TRUE | evaluated 1222 times by 8 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktextedit
| FALSE | evaluated 2927 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
) | 1222-30023 |
534 | program()->setUniformValue(m_fontScale_id, GLfloat(material->fontScale()));executed 31245 times by 24 tests: program()->setUniformValue(m_fontScale_id, GLfloat(material->fontScale())); Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 31245 |
535 | | - |
536 | if (oldMaterial == nullptrTRUE | evaluated 30023 times by 24 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| FALSE | evaluated 4149 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
|| state.isMatrixDirty()TRUE | evaluated 4149 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| FALSE | never evaluated |
) { | 0-30023 |
537 | int viewportWidth = state.viewportRect().width(); | - |
538 | QMatrix4x4 mat = state.combinedMatrix().inverted(); | - |
539 | program()->setUniformValue(m_vecDelta_id, mat.column(0) * (qreal(2) / viewportWidth)); | - |
540 | }executed 34172 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34172 |
541 | | - |
542 | QSGDistanceFieldTextMaterialShader::updateState(state, newEffect, oldEffect); | - |
543 | }executed 34172 times by 24 tests: end of block Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 34172 |
544 | | - |
545 | QSGMaterialType *QSGHiQSubPixelDistanceFieldTextMaterial::type() const | - |
546 | { | - |
547 | static QSGMaterialType type; | - |
548 | returnexecuted 2114412 times by 24 tests: return &type; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
&type;executed 2114412 times by 24 tests: return &type; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 2114412 |
549 | } | - |
550 | | - |
551 | QSGMaterialShader *QSGHiQSubPixelDistanceFieldTextMaterial::createShader() const | - |
552 | { | - |
553 | returnexecuted 1535 times by 24 tests: return new QSGHiQSubPixelDistanceFieldTextMaterialShader; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
new QSGHiQSubPixelDistanceFieldTextMaterialShader;executed 1535 times by 24 tests: return new QSGHiQSubPixelDistanceFieldTextMaterialShader; Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 1535 |
554 | } | - |
555 | | - |
556 | | - |
557 | class QSGLoQSubPixelDistanceFieldTextMaterialShader : public QSGHiQSubPixelDistanceFieldTextMaterialShader | - |
558 | { | - |
559 | public: | - |
560 | QSGLoQSubPixelDistanceFieldTextMaterialShader(); | - |
561 | }; | - |
562 | | - |
563 | QSGLoQSubPixelDistanceFieldTextMaterialShader::QSGLoQSubPixelDistanceFieldTextMaterialShader() | - |
564 | : QSGHiQSubPixelDistanceFieldTextMaterialShader() | - |
565 | { | - |
566 | setShaderSourceFile(QOpenGLShader::Vertex, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/loqsubpixeldistancefieldtext.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/loqsubpixeldistancefieldtext.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: return qstring_literal_temp; qstring_literal_temp;never executed: return qstring_literal_temp; }())); | 0 |
567 | setShaderSourceFile(QOpenGLShader::Fragment, ([]() noexcept -> QString { enum { Size = sizeof(u"" ":/qt-project.org/scenegraph/shaders/loqsubpixeldistancefieldtext.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/qt-project.org/scenegraph/shaders/loqsubpixeldistancefieldtext.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return never executed: return qstring_literal_temp; qstring_literal_temp;never executed: return qstring_literal_temp; }())); | 0 |
568 | } never executed: end of block | 0 |
569 | | - |
570 | QSGMaterialType *QSGLoQSubPixelDistanceFieldTextMaterial::type() const | - |
571 | { | - |
572 | static QSGMaterialType type; | - |
573 | return never executed: return &type; &type;never executed: return &type; | 0 |
574 | } | - |
575 | | - |
576 | QSGMaterialShader *QSGLoQSubPixelDistanceFieldTextMaterial::createShader() const | - |
577 | { | - |
578 | return never executed: return new QSGLoQSubPixelDistanceFieldTextMaterialShader; new QSGLoQSubPixelDistanceFieldTextMaterialShader;never executed: return new QSGLoQSubPixelDistanceFieldTextMaterialShader; | 0 |
579 | } | - |
580 | | - |
581 | | - |
| | |