OpenCoverage

qsgdefaultcontext.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultcontext.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10namespace QSGMultisampleAntialiasing {-
11 class ImageNode : public QSGDefaultInternalImageNode {-
12 public:-
13 void setAntialiasing(bool) override { }-
14 };-
15-
16-
17 class RectangleNode : public QSGDefaultInternalRectangleNode {-
18 public:-
19 void setAntialiasing(bool) override { }-
20 };-
21}-
22-
23static bool qmlDisableDistanceField() { static enum { Yes, No, Unknown } status = Unknown; if (status == Unknown
status == UnknownDescription
TRUEevaluated 194 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickfontloader_static
  • tst_qquickshortcut
) { status = No; if (__builtin_expect(!!(!qEnvironmentVariableIsEmpty("QML_DISABLE_DISTANCEFIELD")), false)
__builtin_expe...ELD")), false)Description
TRUEnever evaluated
FALSEevaluated 194 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
) { const QByteArray v = qgetenv("QML_DISABLE_DISTANCEFIELD"); if (v != "0"
v != "0"Description
TRUEnever evaluated
FALSEnever evaluated
&& v != "false"
v != "false"Description
TRUEnever evaluated
FALSEnever evaluated
) status = Yes;
never executed: status = Yes;
}
never executed: end of block
}
executed 194 times by 90 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
return
executed 200 times by 90 tests: return status == Yes;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
status == Yes;
executed 200 times by 90 tests: return status == Yes;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
}
0-200
24-
25QSGDefaultContext::QSGDefaultContext(QObject *parent)-
26 : QSGContext (parent)-
27 , m_antialiasingMethod(QSGContext::UndecidedAntialiasing)-
28 , m_distanceFieldDisabled(qmlDisableDistanceField())-
29 , m_distanceFieldAntialiasing(QSGGlyphNode::HighQualitySubPixelAntialiasing)-
30 , m_distanceFieldAntialiasingDecided(false)-
31{-
32 if (__builtin_expect(!!(!qEnvironmentVariableIsEmpty("QSG_DISTANCEFIELD_ANTIALIASING")), false)
__builtin_expe...ING")), false)Description
TRUEnever evaluated
FALSEevaluated 200 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
) {
0-200
33 const QByteArray mode = qgetenv("QSG_DISTANCEFIELD_ANTIALIASING");-
34 m_distanceFieldAntialiasingDecided = true;-
35 if (mode == "subpixel"
mode == "subpixel"Description
TRUEnever evaluated
FALSEnever evaluated
)
0
36 m_distanceFieldAntialiasing = QSGGlyphNode::HighQualitySubPixelAntialiasing;
never executed: m_distanceFieldAntialiasing = QSGGlyphNode::HighQualitySubPixelAntialiasing;
0
37 else if (mode == "subpixel-lowq"
mode == "subpixel-lowq"Description
TRUEnever evaluated
FALSEnever evaluated
)
0
38 m_distanceFieldAntialiasing = QSGGlyphNode::LowQualitySubPixelAntialiasing;
never executed: m_distanceFieldAntialiasing = QSGGlyphNode::LowQualitySubPixelAntialiasing;
0
39 else if (mode == "gray"
mode == "gray"Description
TRUEnever evaluated
FALSEnever evaluated
)
0
40 m_distanceFieldAntialiasing = QSGGlyphNode::GrayAntialiasing;
never executed: m_distanceFieldAntialiasing = QSGGlyphNode::GrayAntialiasing;
0
41 }
never executed: end of block
0
42-
43-
44 if (qEnvironmentVariableIsSet("QSG_RENDER_TIMING")
qEnvironmentVa...ENDER_TIMING")Description
TRUEnever evaluated
FALSEevaluated 200 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
) {
0-200
45 const_cast<QLoggingCategory &>(QSG_LOG_TIME_GLYPH()).setEnabled(QtDebugMsg, true);-
46 const_cast<QLoggingCategory &>(QSG_LOG_TIME_TEXTURE()).setEnabled(QtDebugMsg, true);-
47 const_cast<QLoggingCategory &>(QSG_LOG_TIME_RENDERER()).setEnabled(QtDebugMsg, true);-
48 const_cast<QLoggingCategory &>(QSG_LOG_TIME_RENDERLOOP()).setEnabled(QtDebugMsg, true);-
49 const_cast<QLoggingCategory &>(QSG_LOG_TIME_COMPILATION()).setEnabled(QtDebugMsg, true);-
50 }
never executed: end of block
0
51}
executed 200 times by 90 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
200
52-
53QSGDefaultContext::~QSGDefaultContext()-
54{-
55-
56}-
57-
58void QSGDefaultContext::renderContextInitialized(QSGRenderContext *renderContext)-
59{-
60 m_mutex.lock();-
61-
62 auto openglRenderContext = static_cast<const QSGDefaultRenderContext *>(renderContext);-
63 if (m_antialiasingMethod == UndecidedAntialiasing
m_antialiasing...edAntialiasingDescription
TRUEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
FALSEevaluated 2966 times by 45 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
) {
158-2966
64 if (__builtin_expect(!!(qEnvironmentVariableIsSet("QSG_ANTIALIASING_METHOD")), false)
__builtin_expe...HOD")), false)Description
TRUEnever evaluated
FALSEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
) {
0-158
65 const QByteArray aaType = qgetenv("QSG_ANTIALIASING_METHOD");-
66 if (aaType == "msaa"
aaType == "msaa"Description
TRUEnever evaluated
FALSEnever evaluated
)
0
67 m_antialiasingMethod = MsaaAntialiasing;
never executed: m_antialiasingMethod = MsaaAntialiasing;
0
68 else if (aaType == "vertex"
aaType == "vertex"Description
TRUEnever evaluated
FALSEnever evaluated
)
0
69 m_antialiasingMethod = VertexAntialiasing;
never executed: m_antialiasingMethod = VertexAntialiasing;
0
70 }
never executed: end of block
0
71 if (m_antialiasingMethod == UndecidedAntialiasing
m_antialiasing...edAntialiasingDescription
TRUEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
FALSEnever evaluated
) {
0-158
72 if (openglRenderContext->openglContext()->format().samples() > 0
openglRenderCo....samples() > 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
)
0-158
73 m_antialiasingMethod = MsaaAntialiasing;
never executed: m_antialiasingMethod = MsaaAntialiasing;
0
74 else-
75 m_antialiasingMethod = VertexAntialiasing;
executed 158 times by 76 tests: m_antialiasingMethod = VertexAntialiasing;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
158
76 }-
77 }
executed 158 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
158
78-
79-
80-
81-
82 if (!m_distanceFieldAntialiasingDecided
!m_distanceFie...liasingDecidedDescription
TRUEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
FALSEevaluated 2966 times by 45 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
) {
158-2966
83 m_distanceFieldAntialiasingDecided = true;-
84-
85 if (openglRenderContext->openglContext()->isOpenGLES()
openglRenderCo...->isOpenGLES()Description
TRUEnever evaluated
FALSEevaluated 158 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
)
0-158
86 m_distanceFieldAntialiasing = QSGGlyphNode::GrayAntialiasing;
never executed: m_distanceFieldAntialiasing = QSGGlyphNode::GrayAntialiasing;
0
87-
88 }
executed 158 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
158
89-
90 static bool dumped = false;-
91 if (!dumped
!dumpedDescription
TRUEevaluated 3124 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
FALSEnever evaluated
&& QSG_LOG_INFO().isDebugEnabled()
QSG_LOG_INFO()...DebugEnabled()Description
TRUEnever evaluated
FALSEevaluated 3124 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
) {
0-3124
92 dumped = true;-
93 QSurfaceFormat format = openglRenderContext->openglContext()->format();-
94 QOpenGLFunctions *funcs = QOpenGLContext::currentContext()->functions();-
95 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
96 __FILE__
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
97 ,
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
98 153
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
99 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize())
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
100 ;
never executed: QMessageLogger( __FILE__ , 153 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("R/G/B/A Buffers: %d %d %d %d", format.redBufferSize(), format.greenBufferSize(), format.blueBufferSize(), format.alphaBufferSize()) ;
0
101 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 154, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Depth Buffer: %d", format.depthBufferSize());
never executed: QMessageLogger(__FILE__, 154, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Depth Buffer: %d", format.depthBufferSize());
0
102 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 155, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Stencil Buffer: %d", format.stencilBufferSize());
never executed: QMessageLogger(__FILE__, 155, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Stencil Buffer: %d", format.stencilBufferSize());
0
103 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 156, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Samples: %d", format.samples());
never executed: QMessageLogger(__FILE__, 156, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Samples: %d", format.samples());
0
104 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 157, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VENDOR: %s", (const char*)funcs->glGetString(
never executed: QMessageLogger(__FILE__, 157, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VENDOR: %s", (const char*)funcs->glGetString( 0x1F00 ));
0
105 0x1F00
never executed: QMessageLogger(__FILE__, 157, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VENDOR: %s", (const char*)funcs->glGetString( 0x1F00 ));
0
106 ));
never executed: QMessageLogger(__FILE__, 157, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VENDOR: %s", (const char*)funcs->glGetString( 0x1F00 ));
0
107 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
108 __FILE__
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
109 ,
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
110 159
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
111 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString(
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
112 0x1F01
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
113 ))
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
114 ;
never executed: QMessageLogger( __FILE__ , 159 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_RENDERER: %s", (const char*)funcs->glGetString( 0x1F01 )) ;
0
115 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 160, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VERSION: %s", (const char*)funcs->glGetString(
never executed: QMessageLogger(__FILE__, 160, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VERSION: %s", (const char*)funcs->glGetString( 0x1F02 ));
0
116 0x1F02
never executed: QMessageLogger(__FILE__, 160, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VERSION: %s", (const char*)funcs->glGetString( 0x1F02 ));
0
117 ));
never executed: QMessageLogger(__FILE__, 160, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_VERSION: %s", (const char*)funcs->glGetString( 0x1F02 ));
0
118 QSet<QByteArray> exts = openglRenderContext->openglContext()->extensions();-
119 QByteArray all;-
120 for (const QByteArray &e : qAsConst(exts))-
121 all += ' ' + e;
never executed: all += ' ' + e;
0
122 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 165, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_EXTENSIONS: %s", all.constData());
never executed: QMessageLogger(__FILE__, 165, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("GL_EXTENSIONS: %s", all.constData());
0
123 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(__FILE__, 166, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Max Texture Size: %d", openglRenderContext->maxTextureSize());
never executed: QMessageLogger(__FILE__, 166, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Max Texture Size: %d", openglRenderContext->maxTextureSize());
0
124 for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
; qt_category_enabled = false) QMessageLogger(
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
125 __FILE__
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
126 ,
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
127 168
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
128 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false")
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
129 ;
never executed: QMessageLogger( __FILE__ , 168 , __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Debug context: %s", format.testOption(QSurfaceFormat::DebugContext) ? "true" : "false") ;
0
130 }
never executed: end of block
0
131-
132 m_mutex.unlock();-
133}
executed 3124 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
3124
134-
135void QSGDefaultContext::renderContextInvalidated(QSGRenderContext *)-
136{-
137}-
138-
139QSGRenderContext *QSGDefaultContext::createRenderContext()-
140{-
141 return
executed 314 times by 90 tests: return new QSGDefaultRenderContext(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
new QSGDefaultRenderContext(this);
executed 314 times by 90 tests: return new QSGDefaultRenderContext(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
314
142}-
143-
144QSGInternalRectangleNode *QSGDefaultContext::createInternalRectangleNode()-
145{-
146 return
executed 72061 times by 66 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::RectangleNode : new QSGDefaultInternalRectangleNode;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
m_antialiasingMethod == MsaaAntialiasing
executed 72061 times by 66 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::RectangleNode : new QSGDefaultInternalRectangleNode;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
72061
147 ? new QSGMultisampleAntialiasing::RectangleNode
executed 72061 times by 66 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::RectangleNode : new QSGDefaultInternalRectangleNode;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
72061
148 : new QSGDefaultInternalRectangleNode;
executed 72061 times by 66 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::RectangleNode : new QSGDefaultInternalRectangleNode;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
72061
149}-
150-
151QSGInternalImageNode *QSGDefaultContext::createInternalImageNode()-
152{-
153 return
executed 5189 times by 10 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::ImageNode : new QSGDefaultInternalImageNode;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
m_antialiasingMethod == MsaaAntialiasing
executed 5189 times by 10 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::ImageNode : new QSGDefaultInternalImageNode;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
5189
154 ? new QSGMultisampleAntialiasing::ImageNode
executed 5189 times by 10 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::ImageNode : new QSGDefaultInternalImageNode;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
5189
155 : new QSGDefaultInternalImageNode;
executed 5189 times by 10 tests: return m_antialiasingMethod == MsaaAntialiasing ? new QSGMultisampleAntialiasing::ImageNode : new QSGDefaultInternalImageNode;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_scenegraph
5189
156}-
157-
158QSGPainterNode *QSGDefaultContext::createPainterNode(QQuickPaintedItem *item)-
159{-
160 return
executed 16 times by 1 test: return new QSGDefaultPainterNode(item);
Executed by:
  • tst_qquickpainteditem
new QSGDefaultPainterNode(item);
executed 16 times by 1 test: return new QSGDefaultPainterNode(item);
Executed by:
  • tst_qquickpainteditem
16
161}-
162-
163QSGGlyphNode *QSGDefaultContext::createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode)-
164{-
165 if (m_distanceFieldDisabled
m_distanceFieldDisabledDescription
TRUEnever evaluated
FALSEevaluated 249203 times by 24 tests
Evaluated 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
|| preferNativeGlyphNode
preferNativeGlyphNodeDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
FALSEevaluated 249131 times by 24 tests
Evaluated 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-249203
166 return
executed 72 times by 1 test: return new QSGDefaultGlyphNode;
Executed by:
  • tst_scenegraph
new QSGDefaultGlyphNode;
executed 72 times by 1 test: return new QSGDefaultGlyphNode;
Executed by:
  • tst_scenegraph
72
167 } else {-
168 QSGDistanceFieldGlyphNode *node = new QSGDistanceFieldGlyphNode(rc);-
169 node->setPreferredAntialiasingMode(m_distanceFieldAntialiasing);-
170 return
executed 249131 times by 24 tests: return node;
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
node;
executed 249131 times by 24 tests: return node;
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
171 }-
172}-
173-
174QSGLayer *QSGDefaultContext::createLayer(QSGRenderContext *renderContext)-
175{-
176 return
executed 109 times by 6 tests: return new QSGDefaultLayer(renderContext);
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
new QSGDefaultLayer(renderContext);
executed 109 times by 6 tests: return new QSGDefaultLayer(renderContext);
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
109
177}-
178-
179QSurfaceFormat QSGDefaultContext::defaultSurfaceFormat() const-
180{-
181 QSurfaceFormat format = QSurfaceFormat::defaultFormat();-
182 static bool useDepth = qEnvironmentVariableIsEmpty("QSG_NO_DEPTH_BUFFER");-
183 static bool useStencil = qEnvironmentVariableIsEmpty("QSG_NO_STENCIL_BUFFER");-
184 static bool enableDebug = qEnvironmentVariableIsSet("QSG_OPENGL_DEBUG");-
185 format.setDepthBufferSize(useDepth ? 24 : 0);-
186 format.setStencilBufferSize(useStencil ? 8 : 0);-
187 if (enableDebug
enableDebugDescription
TRUEnever evaluated
FALSEevaluated 8480 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
)
0-8480
188 format.setOption(QSurfaceFormat::DebugContext);
never executed: format.setOption(QSurfaceFormat::DebugContext);
0
189 if (QQuickWindow::hasDefaultAlphaBuffer()
QQuickWindow::...tAlphaBuffer()Description
TRUEnever evaluated
FALSEevaluated 8480 times by 90 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
)
0-8480
190 format.setAlphaBufferSize(8);
never executed: format.setAlphaBufferSize(8);
0
191 format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);-
192 return
executed 8480 times by 90 tests: return format;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
format;
executed 8480 times by 90 tests: return format;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdraghandler
  • ...
8480
193}-
194-
195void QSGDefaultContext::setDistanceFieldEnabled(bool enabled)-
196{-
197 m_distanceFieldDisabled = !enabled;-
198}
never executed: end of block
0
199-
200bool QSGDefaultContext::isDistanceFieldEnabled() const-
201{-
202 return
never executed: return !m_distanceFieldDisabled;
!m_distanceFieldDisabled;
never executed: return !m_distanceFieldDisabled;
0
203}-
204-
205QSGRendererInterface *QSGDefaultContext::rendererInterface(QSGRenderContext *renderContext)-
206{-
207 (void)renderContext;;-
208 return
executed 4072 times by 31 tests: return this;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshortcut
  • tst_qquickspritegoal
  • ...
this;
executed 4072 times by 31 tests: return this;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshortcut
  • tst_qquickspritegoal
  • ...
4072
209}-
210-
211QSGRectangleNode *QSGDefaultContext::createRectangleNode()-
212{-
213 return
never executed: return new QSGDefaultRectangleNode;
new QSGDefaultRectangleNode;
never executed: return new QSGDefaultRectangleNode;
0
214}-
215-
216QSGImageNode *QSGDefaultContext::createImageNode()-
217{-
218 return
never executed: return new QSGDefaultImageNode;
new QSGDefaultImageNode;
never executed: return new QSGDefaultImageNode;
0
219}-
220-
221QSGNinePatchNode *QSGDefaultContext::createNinePatchNode()-
222{-
223 return
never executed: return new QSGDefaultNinePatchNode;
new QSGDefaultNinePatchNode;
never executed: return new QSGDefaultNinePatchNode;
0
224}-
225-
226-
227QSGSpriteNode *QSGDefaultContext::createSpriteNode()-
228{-
229 return
executed 30 times by 2 tests: return new QSGDefaultSpriteNode;
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickspritesequence
new QSGDefaultSpriteNode;
executed 30 times by 2 tests: return new QSGDefaultSpriteNode;
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickspritesequence
30
230}-
231-
232-
233QSGRendererInterface::GraphicsApi QSGDefaultContext::graphicsApi() const-
234{-
235 return
executed 4072 times by 31 tests: return OpenGL;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshortcut
  • tst_qquickspritegoal
  • ...
OpenGL;
executed 4072 times by 31 tests: return OpenGL;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshortcut
  • tst_qquickspritegoal
  • ...
4072
236}-
237-
238QSGRendererInterface::ShaderType QSGDefaultContext::shaderType() const-
239{-
240 return
executed 2 times by 1 test: return GLSL;
Executed by:
  • tst_qquickgraphicsinfo
GLSL;
executed 2 times by 1 test: return GLSL;
Executed by:
  • tst_qquickgraphicsinfo
2
241}-
242-
243QSGRendererInterface::ShaderCompilationTypes QSGDefaultContext::shaderCompilationType() const-
244{-
245 return
executed 2 times by 1 test: return RuntimeCompilation;
Executed by:
  • tst_qquickgraphicsinfo
RuntimeCompilation;
executed 2 times by 1 test: return RuntimeCompilation;
Executed by:
  • tst_qquickgraphicsinfo
2
246}-
247-
248QSGRendererInterface::ShaderSourceTypes QSGDefaultContext::shaderSourceType() const-
249{-
250 return
executed 2 times by 1 test: return ShaderSourceString | ShaderSourceFile;
Executed by:
  • tst_qquickgraphicsinfo
ShaderSourceString | ShaderSourceFile;
executed 2 times by 1 test: return ShaderSourceString | ShaderSourceFile;
Executed by:
  • tst_qquickgraphicsinfo
2
251}-
252-
253-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0