| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #include "qsgdistancefieldglyphnode_p.h" | - |
| 41 | #include "qsgdistancefieldglyphnode_p_p.h" | - |
| 42 | #include <QtQuick/private/qsgcontext_p.h> | - |
| 43 | | - |
| 44 | QT_BEGIN_NAMESPACE | - |
| 45 | | - |
| 46 | QSGDistanceFieldGlyphNode::QSGDistanceFieldGlyphNode(QSGRenderContext *context) | - |
| 47 | : m_glyphNodeType(RootGlyphNode) | - |
| 48 | , m_context(context) | - |
| 49 | , m_material(nullptr) | - |
| 50 | , m_glyph_cache(nullptr) | - |
| 51 | , m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 0) | - |
| 52 | , m_style(QQuickText::Normal) | - |
| 53 | , m_antialiasingMode(GrayAntialiasing) | - |
| 54 | , m_texture(nullptr) | - |
| 55 | , m_dirtyGeometry(false) | - |
| 56 | , m_dirtyMaterial(false) | - |
| 57 | { | - |
| 58 | m_geometry.setDrawingMode(GL_TRIANGLES); | - |
| 59 | setGeometry(&m_geometry); | - |
| 60 | setFlag(UsePreprocess); | - |
| 61 | #ifdef QSG_RUNTIME_DESCRIPTION | - |
| 62 | qsgnode_set_description(this, QLatin1String("glyphs")); | - |
| 63 | #endif | - |
| 64 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 65 | | - |
| 66 | QSGDistanceFieldGlyphNode::~QSGDistanceFieldGlyphNode() | - |
| 67 | { | - |
| 68 | delete m_material; | - |
| 69 | | - |
| 70 | if (m_glyphNodeType == SubGlyphNode)| TRUE | never evaluated | | FALSE | evaluated 249131 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-249131 |
| 71 | return; never executed: return; | 0 |
| 72 | | - |
| 73 | if (m_glyph_cache) {| TRUE | evaluated 249131 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-249131 |
| 74 | m_glyph_cache->release(m_glyphs.glyphIndexes()); | - |
| 75 | m_glyph_cache->unregisterGlyphNode(this); | - |
| 76 | m_glyph_cache->unregisterOwnerElement(ownerElement()); | - |
| 77 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 78 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 79 | | - |
| 80 | void QSGDistanceFieldGlyphNode::setColor(const QColor &color) | - |
| 81 | { | - |
| 82 | m_color = color; | - |
| 83 | if (m_material != nullptr) {| TRUE | never evaluated | | FALSE | evaluated 249131 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-249131 |
| 84 | m_material->setColor(color); | - |
| 85 | markDirty(DirtyMaterial); | - |
| 86 | } else { never executed: end of block | 0 |
| 87 | m_dirtyMaterial = true; | - |
| 88 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 89 | } | - |
| 90 | | - |
| 91 | void QSGDistanceFieldGlyphNode::setPreferredAntialiasingMode(AntialiasingMode mode) | - |
| 92 | { | - |
| 93 | if (mode == m_antialiasingMode)| TRUE | never evaluated | | FALSE | evaluated 249131 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-249131 |
| 94 | return; never executed: return; | 0 |
| 95 | m_antialiasingMode = mode; | - |
| 96 | m_dirtyMaterial = true; | - |
| 97 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 98 | | - |
| 99 | void QSGDistanceFieldGlyphNode::setGlyphs(const QPointF &position, const QGlyphRun &glyphs) | - |
| 100 | { | - |
| 101 | QRawFont font = glyphs.rawFont(); | - |
| 102 | m_originalPosition = position; | - |
| 103 | m_position = QPointF(position.x(), position.y() - font.ascent()); | - |
| 104 | m_glyphs = glyphs; | - |
| 105 | | - |
| 106 | m_dirtyGeometry = true; | - |
| 107 | m_dirtyMaterial = true; | - |
| 108 | | - |
| 109 | QSGDistanceFieldGlyphCache *oldCache = m_glyph_cache; | - |
| 110 | m_glyph_cache = m_context->distanceFieldGlyphCache(m_glyphs.rawFont()); | - |
| 111 | | - |
| 112 | if (m_glyphNodeType == SubGlyphNode)| TRUE | never evaluated | | FALSE | evaluated 249131 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-249131 |
| 113 | return; never executed: return; | 0 |
| 114 | | - |
| 115 | if (m_glyph_cache != oldCache) {| TRUE | evaluated 249131 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-249131 |
| 116 | Q_ASSERT(ownerElement() != nullptr); | - |
| 117 | if (oldCache) {| TRUE | never evaluated | | FALSE | evaluated 249131 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-249131 |
| 118 | oldCache->unregisterGlyphNode(this); | - |
| 119 | oldCache->unregisterOwnerElement(ownerElement()); | - |
| 120 | } never executed: end of block | 0 |
| 121 | m_glyph_cache->registerGlyphNode(this); | - |
| 122 | m_glyph_cache->registerOwnerElement(ownerElement()); | - |
| 123 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 124 | m_glyph_cache->populate(glyphs.glyphIndexes()); | - |
| 125 | | - |
| 126 | const QVector<quint32> glyphIndexes = m_glyphs.glyphIndexes(); | - |
| 127 | for (int i = 0; i < glyphIndexes.count(); ++i)| TRUE | evaluated 1379907 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 249131 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
|
| 249131-1379907 |
| 128 | m_allGlyphIndexesLookup.insert(glyphIndexes.at(i));executed 1379907 times by 24 tests: m_allGlyphIndexesLookup.insert(glyphIndexes.at(i));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
| 1379907 |
| 129 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 130 | | - |
| 131 | void QSGDistanceFieldGlyphNode::setStyle(QQuickText::TextStyle style) | - |
| 132 | { | - |
| 133 | if (m_style == style)| TRUE | evaluated 249097 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 34 times by 1 test |
| 34-249097 |
| 134 | return;executed 249097 times by 24 tests: return;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
| 249097 |
| 135 | m_style = style; | - |
| 136 | m_dirtyMaterial = true; | - |
| 137 | }executed 34 times by 1 test: end of block | 34 |
| 138 | | - |
| 139 | void QSGDistanceFieldGlyphNode::setStyleColor(const QColor &color) | - |
| 140 | { | - |
| 141 | if (m_styleColor == color)| TRUE | evaluated 779 times by 6 testsEvaluated by:- tst_examples
- tst_qquickfocusscope
- tst_qquickitem
- tst_qquickitem2
- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | evaluated 248352 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
- tst_touchmouse
|
| 779-248352 |
| 142 | return;executed 779 times by 6 tests: return;Executed by:- tst_examples
- tst_qquickfocusscope
- tst_qquickitem
- tst_qquickitem2
- tst_qquicktextedit
- tst_qquicktextinput
| 779 |
| 143 | m_styleColor = color; | - |
| 144 | m_dirtyMaterial = true; | - |
| 145 | }executed 248352 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
- tst_touchmouse
| 248352 |
| 146 | | - |
| 147 | void QSGDistanceFieldGlyphNode::update() | - |
| 148 | { | - |
| 149 | if (m_dirtyMaterial)| TRUE | evaluated 249131 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-249131 |
| 150 | updateMaterial();executed 249131 times by 24 tests: updateMaterial();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 |
| 151 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 152 | | - |
| 153 | void QSGDistanceFieldGlyphNode::preprocess() | - |
| 154 | { | - |
| 155 | Q_ASSERT(m_glyph_cache); | - |
| 156 | | - |
| 157 | m_glyph_cache->processPendingGlyphs(); | - |
| 158 | m_glyph_cache->update(); | - |
| 159 | | - |
| 160 | if (m_dirtyGeometry)| TRUE | evaluated 240904 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 488825 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
|
| 240904-488825 |
| 161 | updateGeometry();executed 240904 times by 24 tests: updateGeometry();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
| 240904 |
| 162 | }executed 729729 times by 24 tests: end of blockExecuted 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
| 729729 |
| 163 | | - |
| 164 | void QSGDistanceFieldGlyphNode::invalidateGlyphs(const QVector<quint32> &glyphs) | - |
| 165 | { | - |
| 166 | if (m_dirtyGeometry)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 167 | return; never executed: return; | 0 |
| 168 | | - |
| 169 | for (int i = 0; i < glyphs.count(); ++i) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 170 | if (m_allGlyphIndexesLookup.contains(glyphs.at(i))) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 171 | m_dirtyGeometry = true; | - |
| 172 | return; never executed: return; | 0 |
| 173 | } | - |
| 174 | } never executed: end of block | 0 |
| 175 | } never executed: end of block | 0 |
| 176 | | - |
| 177 | void QSGDistanceFieldGlyphNode::updateGeometry() | - |
| 178 | { | - |
| 179 | Q_ASSERT(m_glyph_cache); | - |
| 180 | | - |
| 181 | | - |
| 182 | | - |
| 183 | QSGNode *subnode = firstChild(); | - |
| 184 | QSGNode *nextNode = nullptr; | - |
| 185 | while (subnode) {| TRUE | never evaluated | | FALSE | evaluated 240904 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-240904 |
| 186 | nextNode = subnode->nextSibling(); | - |
| 187 | delete subnode; | - |
| 188 | subnode = nextNode; | - |
| 189 | } never executed: end of block | 0 |
| 190 | | - |
| 191 | QSGGeometry *g = geometry(); | - |
| 192 | | - |
| 193 | Q_ASSERT(g->indexType() == GL_UNSIGNED_SHORT); | - |
| 194 | | - |
| 195 | QHash<const QSGDistanceFieldGlyphCache::Texture *, GlyphInfo> glyphsInOtherTextures; | - |
| 196 | | - |
| 197 | const QVector<quint32> indexes = m_glyphs.glyphIndexes(); | - |
| 198 | const QVector<QPointF> positions = m_glyphs.positions(); | - |
| 199 | qreal fontPixelSize = m_glyphs.rawFont().pixelSize(); | - |
| 200 | | - |
| 201 | | - |
| 202 | | - |
| 203 | QVarLengthArray<QSGGeometry::TexturedPoint2D, 256> vp; | - |
| 204 | vp.reserve(indexes.size() * 4); | - |
| 205 | QVarLengthArray<ushort, 384> ip; | - |
| 206 | ip.reserve(indexes.size() * 6); | - |
| 207 | | - |
| 208 | qreal maxTexMargin = m_glyph_cache->distanceFieldRadius(); | - |
| 209 | qreal fontScale = m_glyph_cache->fontScale(fontPixelSize); | - |
| 210 | qreal margin = 2; | - |
| 211 | qreal texMargin = margin / fontScale; | - |
| 212 | if (texMargin > maxTexMargin) {| TRUE | evaluated 240524 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 380 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
| 380-240524 |
| 213 | texMargin = maxTexMargin; | - |
| 214 | margin = maxTexMargin * fontScale; | - |
| 215 | }executed 240524 times by 24 tests: end of blockExecuted 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
| 240524 |
| 216 | | - |
| 217 | for (int i = 0; i < indexes.size(); ++i) {| TRUE | evaluated 1332008 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 240904 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
|
| 240904-1332008 |
| 218 | const int glyphIndex = indexes.at(i); | - |
| 219 | QSGDistanceFieldGlyphCache::TexCoord c = m_glyph_cache->glyphTexCoord(glyphIndex); | - |
| 220 | | - |
| 221 | if (c.isNull())| TRUE | evaluated 83855 times by 18 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| | FALSE | evaluated 1248153 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
|
| 83855-1248153 |
| 222 | continue;executed 83855 times by 18 tests: continue;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 83855 |
| 223 | | - |
| 224 | const QPointF position = positions.at(i); | - |
| 225 | | - |
| 226 | const QSGDistanceFieldGlyphCache::Texture *texture = m_glyph_cache->glyphTexture(glyphIndex); | - |
| 227 | if (texture->textureId && !m_texture)| TRUE | evaluated 1248153 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 |
| TRUE | evaluated 240900 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 1007253 times by 22 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_qquickpositioners
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
| 0-1248153 |
| 228 | m_texture = texture;executed 240900 times by 24 tests: m_texture = texture;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
| 240900 |
| 229 | | - |
| 230 | | - |
| 231 | | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | if (m_texture != texture || vp.size() >= 65536) {| TRUE | never evaluated | | FALSE | evaluated 1248153 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
|
| TRUE | never evaluated | | FALSE | evaluated 1248153 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-1248153 |
| 236 | if (texture->textureId) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 237 | GlyphInfo &glyphInfo = glyphsInOtherTextures[texture]; | - |
| 238 | glyphInfo.indexes.append(glyphIndex); | - |
| 239 | glyphInfo.positions.append(position); | - |
| 240 | } never executed: end of block | 0 |
| 241 | continue; never executed: continue; | 0 |
| 242 | } | - |
| 243 | | - |
| 244 | QSGDistanceFieldGlyphCache::Metrics metrics = m_glyph_cache->glyphMetrics(glyphIndex, fontPixelSize); | - |
| 245 | | - |
| 246 | if (!metrics.isNull() && !c.isNull()) {| TRUE | evaluated 1248153 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 |
| TRUE | evaluated 1248153 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-1248153 |
| 247 | metrics.width += margin * 2; | - |
| 248 | metrics.height += margin * 2; | - |
| 249 | metrics.baselineX -= margin; | - |
| 250 | metrics.baselineY += margin; | - |
| 251 | c.xMargin -= texMargin; | - |
| 252 | c.yMargin -= texMargin; | - |
| 253 | c.width += texMargin * 2; | - |
| 254 | c.height += texMargin * 2; | - |
| 255 | }executed 1248153 times by 24 tests: end of blockExecuted 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
| 1248153 |
| 256 | | - |
| 257 | qreal x = position.x() + metrics.baselineX + m_position.x(); | - |
| 258 | qreal y = position.y() - metrics.baselineY + m_position.y(); | - |
| 259 | | - |
| 260 | m_boundingRect |= QRectF(x, y, metrics.width, metrics.height); | - |
| 261 | | - |
| 262 | float cx1 = x; | - |
| 263 | float cx2 = x + metrics.width; | - |
| 264 | float cy1 = y; | - |
| 265 | float cy2 = y + metrics.height; | - |
| 266 | | - |
| 267 | float tx1 = c.x + c.xMargin; | - |
| 268 | float tx2 = tx1 + c.width; | - |
| 269 | float ty1 = c.y + c.yMargin; | - |
| 270 | float ty2 = ty1 + c.height; | - |
| 271 | | - |
| 272 | if (m_baseLine.isNull())| TRUE | evaluated 240900 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 1007253 times by 22 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_qquickpositioners
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
|
| 240900-1007253 |
| 273 | m_baseLine = position;executed 240900 times by 24 tests: m_baseLine = position;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
| 240900 |
| 274 | | - |
| 275 | int o = vp.size(); | - |
| 276 | | - |
| 277 | QSGGeometry::TexturedPoint2D v1; | - |
| 278 | v1.set(cx1, cy1, tx1, ty1); | - |
| 279 | QSGGeometry::TexturedPoint2D v2; | - |
| 280 | v2.set(cx2, cy1, tx2, ty1); | - |
| 281 | QSGGeometry::TexturedPoint2D v3; | - |
| 282 | v3.set(cx1, cy2, tx1, ty2); | - |
| 283 | QSGGeometry::TexturedPoint2D v4; | - |
| 284 | v4.set(cx2, cy2, tx2, ty2); | - |
| 285 | vp.append(v1); | - |
| 286 | vp.append(v2); | - |
| 287 | vp.append(v3); | - |
| 288 | vp.append(v4); | - |
| 289 | | - |
| 290 | ip.append(o + 0); | - |
| 291 | ip.append(o + 2); | - |
| 292 | ip.append(o + 3); | - |
| 293 | ip.append(o + 3); | - |
| 294 | ip.append(o + 1); | - |
| 295 | ip.append(o + 0); | - |
| 296 | }executed 1248153 times by 24 tests: end of blockExecuted 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
| 1248153 |
| 297 | | - |
| 298 | QHash<const QSGDistanceFieldGlyphCache::Texture *, GlyphInfo>::const_iterator ite = glyphsInOtherTextures.constBegin(); | - |
| 299 | while (ite != glyphsInOtherTextures.constEnd()) {| TRUE | never evaluated | | FALSE | evaluated 240904 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-240904 |
| 300 | QGlyphRun subNodeGlyphRun(m_glyphs); | - |
| 301 | subNodeGlyphRun.setGlyphIndexes(ite->indexes); | - |
| 302 | subNodeGlyphRun.setPositions(ite->positions); | - |
| 303 | | - |
| 304 | QSGDistanceFieldGlyphNode *subNode = new QSGDistanceFieldGlyphNode(m_context); | - |
| 305 | subNode->setGlyphNodeType(SubGlyphNode); | - |
| 306 | subNode->setColor(m_color); | - |
| 307 | subNode->setStyle(m_style); | - |
| 308 | subNode->setStyleColor(m_styleColor); | - |
| 309 | subNode->setPreferredAntialiasingMode(m_antialiasingMode); | - |
| 310 | subNode->setGlyphs(m_originalPosition, subNodeGlyphRun); | - |
| 311 | subNode->update(); | - |
| 312 | subNode->updateGeometry(); | - |
| 313 | appendChildNode(subNode); | - |
| 314 | | - |
| 315 | ++ite; | - |
| 316 | } never executed: end of block | 0 |
| 317 | | - |
| 318 | g->allocate(vp.size(), ip.size()); | - |
| 319 | memcpy(g->vertexDataAsTexturedPoint2D(), vp.constData(), vp.size() * sizeof(QSGGeometry::TexturedPoint2D)); | - |
| 320 | memcpy(g->indexDataAsUShort(), ip.constData(), ip.size() * sizeof(quint16)); | - |
| 321 | | - |
| 322 | setBoundingRect(m_boundingRect); | - |
| 323 | markDirty(DirtyGeometry); | - |
| 324 | m_dirtyGeometry = false; | - |
| 325 | | - |
| 326 | m_material->setTexture(m_texture); | - |
| 327 | }executed 240904 times by 24 tests: end of blockExecuted 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
| 240904 |
| 328 | | - |
| 329 | void QSGDistanceFieldGlyphNode::updateMaterial() | - |
| 330 | { | - |
| 331 | delete m_material; | - |
| 332 | | - |
| 333 | if (m_style == QQuickText::Normal) {| TRUE | evaluated 249097 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 34 times by 1 test |
| 34-249097 |
| 334 | switch (m_antialiasingMode) { | - |
| 335 | case HighQualitySubPixelAntialiasing:executed 249097 times by 24 tests: case HighQualitySubPixelAntialiasing: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
| 249097 |
| 336 | m_material = new QSGHiQSubPixelDistanceFieldTextMaterial; | - |
| 337 | break;executed 249097 times by 24 tests: break;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
| 249097 |
| 338 | case LowQualitySubPixelAntialiasing: never executed: case LowQualitySubPixelAntialiasing: | 0 |
| 339 | m_material = new QSGLoQSubPixelDistanceFieldTextMaterial; | - |
| 340 | break; never executed: break; | 0 |
| 341 | case GrayAntialiasing: never executed: case GrayAntialiasing: | 0 |
| 342 | default: never executed: default: | 0 |
| 343 | m_material = new QSGDistanceFieldTextMaterial; | - |
| 344 | break; never executed: break; | 0 |
| 345 | } | - |
| 346 | } else { | - |
| 347 | QSGDistanceFieldStyledTextMaterial *material; | - |
| 348 | if (m_style == QQuickText::Outline) {| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 26 times by 1 test |
| 8-26 |
| 349 | material = new QSGDistanceFieldOutlineTextMaterial; | - |
| 350 | } else {executed 8 times by 1 test: end of block | 8 |
| 351 | QSGDistanceFieldShiftedStyleTextMaterial *sMaterial = new QSGDistanceFieldShiftedStyleTextMaterial; | - |
| 352 | if (m_style == QQuickText::Raised)| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 10-16 |
| 353 | sMaterial->setShift(QPointF(0.0, 1.0));executed 16 times by 1 test: sMaterial->setShift(QPointF(0.0, 1.0)); | 16 |
| 354 | else | - |
| 355 | sMaterial->setShift(QPointF(0.0, -1.0));executed 10 times by 1 test: sMaterial->setShift(QPointF(0.0, -1.0)); | 10 |
| 356 | material = sMaterial; | - |
| 357 | }executed 26 times by 1 test: end of block | 26 |
| 358 | material->setStyleColor(m_styleColor); | - |
| 359 | m_material = material; | - |
| 360 | }executed 34 times by 1 test: end of block | 34 |
| 361 | | - |
| 362 | m_material->setGlyphCache(m_glyph_cache); | - |
| 363 | if (m_glyph_cache)| TRUE | evaluated 249131 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-249131 |
| 364 | m_material->setFontScale(m_glyph_cache->fontScale(m_glyphs.rawFont().pixelSize()));executed 249131 times by 24 tests: m_material->setFontScale(m_glyph_cache->fontScale(m_glyphs.rawFont().pixelSize()));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 |
| 365 | m_material->setColor(m_color); | - |
| 366 | setMaterial(m_material); | - |
| 367 | m_dirtyMaterial = false; | - |
| 368 | }executed 249131 times by 24 tests: end of blockExecuted 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 |
| 369 | | - |
| 370 | QT_END_NAMESPACE | - |
| | |