Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | const QLoggingCategory &QSG_LOG_INFO() { static const QLoggingCategory category("qt.scenegraph.general"); returnexecuted 6642 times by 91 tests: return category; 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
- ...
category;executed 6642 times by 91 tests: return category; 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
- ...
} | 6642 |
10 | | - |
11 | | - |
12 | | - |
13 | const QLoggingCategory &QSG_LOG_RENDERLOOP() { static const QLoggingCategory category("qt.scenegraph.renderloop"); returnexecuted 1707 times by 38 tests: return category; Executed by:- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- tst_qquickflipable
- tst_qquickfocusscope
- tst_qquickgraphicsinfo
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickopenglinfo
- tst_qquickparticlesystem
- ...
category;executed 1707 times by 38 tests: return category; Executed by:- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickanimatedimage
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- tst_qquickflipable
- tst_qquickfocusscope
- tst_qquickgraphicsinfo
- tst_qquickgridview
- tst_qquickimage
- tst_qquickitem
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickopenglinfo
- tst_qquickparticlesystem
- ...
} | 1707 |
14 | | - |
15 | | - |
16 | | - |
17 | const QLoggingCategory &QSG_LOG_TIME_COMPILATION() { static const QLoggingCategory category("qt.scenegraph.time.compilation"); returnexecuted 9008 times by 70 tests: return category; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmltypeloader
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- 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
- tst_qquickgravity
- tst_qquickgridview
- tst_qquickgroupgoal
- ...
category;executed 9008 times by 70 tests: return category; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmltypeloader
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- 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
- tst_qquickgravity
- tst_qquickgridview
- tst_qquickgroupgoal
- ...
} | 9008 |
18 | | - |
19 | | - |
20 | const QLoggingCategory &QSG_LOG_TIME_RENDERLOOP() { static const QLoggingCategory category("qt.scenegraph.time.renderloop"); returnexecuted 100522 times by 74 tests: return category; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- 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
- tst_qquickgravity
- ...
category;executed 100522 times by 74 tests: return category; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- 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
- tst_qquickgravity
- ...
} | 100522 |
21 | | - |
22 | | - |
23 | const QLoggingCategory &QSG_LOG_TIME_TEXTURE() { static const QLoggingCategory category("qt.scenegraph.time.texture"); returnexecuted 813 times by 33 tests: return category; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimage
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickpainteditem
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickshadereffect
- ...
category;executed 813 times by 33 tests: return category; Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimage
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickpainteditem
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickshadereffect
- ...
} | 813 |
24 | | - |
25 | | - |
26 | const QLoggingCategory &QSG_LOG_TIME_GLYPH() { static const QLoggingCategory category("qt.scenegraph.time.glyph"); returnexecuted 4686 times by 24 tests: return category; 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
category;executed 4686 times by 24 tests: return category; 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
} | 4686 |
27 | | - |
28 | | - |
29 | const QLoggingCategory &QSG_LOG_TIME_RENDERER() { static const QLoggingCategory category("qt.scenegraph.time.renderer"); returnexecuted 152142 times by 77 tests: return category; 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
- ...
category;executed 152142 times by 77 tests: return category; 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
- ...
} | 152142 |
30 | | - |
31 | bool qsg_useConsistentTiming() | - |
32 | { | - |
33 | int use = -1; | - |
34 | if (use < 0TRUE | evaluated 196 times by 89 testsEvaluated 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
- ...
| FALSE | never evaluated |
) { | 0-196 |
35 | use = !qEnvironmentVariableIsEmpty("QSG_FIXED_ANIMATION_STEP")TRUE | never evaluated | FALSE | evaluated 196 times by 89 testsEvaluated 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
- ...
|
&& qgetenv("QSG_FIXED_ANIMATION_STEP") != "no"TRUE | never evaluated | FALSE | never evaluated |
| 0-196 |
36 | ? 1 : 0; | - |
37 | for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | evaluated 196 times by 89 testsEvaluated 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
- ...
|
; qt_category_enabled = false) QMessageLogger(__FILE__, 107, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Using %s", bool(use) ? "fixed animation steps" : "sg animation driver");never executed: QMessageLogger(__FILE__, 107, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Using %s", bool(use) ? "fixed animation steps" : "sg animation driver"); | 0-196 |
38 | }executed 196 times by 89 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
- ...
| 196 |
39 | returnexecuted 196 times by 89 tests: return bool(use); 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
- ...
bool(use);executed 196 times by 89 tests: return bool(use); 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
- ...
| 196 |
40 | } | - |
41 | | - |
42 | class QSGAnimationDriver : public QAnimationDriver | - |
43 | { | - |
44 | public: | - |
45 | #pragma GCC diagnostic push | - |
46 | | - |
47 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
48 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
49 | #pragma GCC diagnostic ignored "-Wattributes" | - |
50 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
51 | #pragma GCC diagnostic pop | - |
52 | struct QPrivateSignal {}; | - |
53 | public: | - |
54 | enum Mode { | - |
55 | VSyncMode, | - |
56 | TimerMode | - |
57 | }; | - |
58 | | - |
59 | QSGAnimationDriver(QObject *parent) | - |
60 | : QAnimationDriver(parent) | - |
61 | , m_time(0) | - |
62 | , m_vsync(0) | - |
63 | , m_mode(VSyncMode) | - |
64 | , m_lag(0) | - |
65 | , m_bad(0) | - |
66 | , m_good(0) | - |
67 | { | - |
68 | QScreen *screen = QGuiApplication::primaryScreen(); | - |
69 | if (screenTRUE | never evaluated | FALSE | never evaluated |
&& !qsg_useConsistentTiming()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
70 | m_vsync = 1000.0 / screen->refreshRate(); | - |
71 | if (m_vsync <= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
72 | m_mode = TimerMode; never executed: m_mode = TimerMode; | 0 |
73 | } never executed: end of block else { | 0 |
74 | m_mode = TimerMode; | - |
75 | if (qsg_useConsistentTiming()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
76 | QUnifiedTimer::instance(true)->setConsistentTiming(true); never executed: QUnifiedTimer::instance(true)->setConsistentTiming(true); | 0 |
77 | } never executed: end of block | 0 |
78 | if (m_mode == VSyncModeTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
79 | for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 141, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Animation Driver: using vsync: %.2f ms", m_vsync);never executed: QMessageLogger(__FILE__, 141, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Animation Driver: using vsync: %.2f ms", m_vsync); | 0 |
80 | else | - |
81 | for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 143, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Animation Driver: using walltime");never executed: QMessageLogger(__FILE__, 143, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("Animation Driver: using walltime"); | 0 |
82 | } never executed: end of block | 0 |
83 | | - |
84 | void start() override | - |
85 | { | - |
86 | m_time = 0; | - |
87 | m_timer.start(); | - |
88 | m_wallTime.restart(); | - |
89 | QAnimationDriver::start(); | - |
90 | } never executed: end of block | 0 |
91 | | - |
92 | qint64 elapsed() const override | - |
93 | { | - |
94 | return never executed: return m_mode == VSyncMode ? qint64(m_time) : qint64(m_time) + m_wallTime.elapsed(); m_mode == VSyncModenever executed: return m_mode == VSyncMode ? qint64(m_time) : qint64(m_time) + m_wallTime.elapsed(); | 0 |
95 | ? qint64(m_time) never executed: return m_mode == VSyncMode ? qint64(m_time) : qint64(m_time) + m_wallTime.elapsed(); | 0 |
96 | : qint64(m_time) + m_wallTime.elapsed(); never executed: return m_mode == VSyncMode ? qint64(m_time) : qint64(m_time) + m_wallTime.elapsed(); | 0 |
97 | } | - |
98 | | - |
99 | void advance() override | - |
100 | { | - |
101 | qint64 delta = m_timer.restart(); | - |
102 | | - |
103 | if (m_mode == VSyncModeTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
104 | m_time += m_vsync; | - |
105 | | - |
106 | if (delta > m_vsync * 1.25TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
107 | m_lag += (delta / m_vsync); | - |
108 | m_bad++; | - |
109 | | - |
110 | | - |
111 | | - |
112 | if (m_lag > 10TRUE | never evaluated | FALSE | never evaluated |
&& m_bad > 2TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
113 | m_mode = TimerMode; | - |
114 | for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 191, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("animation driver switched to timer mode");never executed: QMessageLogger(__FILE__, 191, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("animation driver switched to timer mode"); | 0 |
115 | m_wallTime.restart(); | - |
116 | } never executed: end of block | 0 |
117 | } never executed: end of block else { | 0 |
118 | m_lag = 0; | - |
119 | m_bad = 0; | - |
120 | } never executed: end of block | 0 |
121 | | - |
122 | } else { | - |
123 | if (delta < 1.25 * m_vsyncTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
124 | ++m_good; | - |
125 | } never executed: end of block else { | 0 |
126 | m_good = 0; | - |
127 | } never executed: end of block | 0 |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | if (m_good > 10TRUE | never evaluated | FALSE | never evaluated |
&& !qsg_useConsistentTiming()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
133 | m_time = elapsed(); | - |
134 | m_mode = VSyncMode; | - |
135 | m_bad = 0; | - |
136 | m_lag = 0; | - |
137 | for (bool qt_category_enabled = QSG_LOG_INFO().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 214, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("animation driver switched to vsync mode");never executed: QMessageLogger(__FILE__, 214, __PRETTY_FUNCTION__, QSG_LOG_INFO().categoryName()).debug("animation driver switched to vsync mode"); | 0 |
138 | } never executed: end of block | 0 |
139 | } never executed: end of block | 0 |
140 | | - |
141 | advanceAnimation(); | - |
142 | } never executed: end of block | 0 |
143 | | - |
144 | double m_time; | - |
145 | double m_vsync; | - |
146 | Mode m_mode; | - |
147 | QElapsedTimer m_timer; | - |
148 | QElapsedTimer m_wallTime; | - |
149 | double m_lag; | - |
150 | int m_bad; | - |
151 | int m_good; | - |
152 | }; | - |
153 | QSGContext::QSGContext(QObject *parent) : | - |
154 | QObject(parent) | - |
155 | { | - |
156 | }executed 202 times by 91 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
- ...
| 202 |
157 | | - |
158 | QSGContext::~QSGContext() | - |
159 | { | - |
160 | } | - |
161 | | - |
162 | void QSGContext::renderContextInitialized(QSGRenderContext *) | - |
163 | { | - |
164 | } | - |
165 | | - |
166 | void QSGContext::renderContextInvalidated(QSGRenderContext *) | - |
167 | { | - |
168 | } | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | QSGInternalRectangleNode *QSGContext::createInternalRectangleNode(const QRectF &rect, const QColor &c) | - |
175 | { | - |
176 | QSGInternalRectangleNode *node = createInternalRectangleNode(); | - |
177 | node->setRect(rect); | - |
178 | node->setColor(c); | - |
179 | node->update(); | - |
180 | returnexecuted 304 times by 7 tests: return node; Executed by:- tst_examples
- tst_qquickfocusscope
- tst_qquickitem
- tst_qquickitem2
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
node;executed 304 times by 7 tests: return node; Executed by:- tst_examples
- tst_qquickfocusscope
- tst_qquickitem
- tst_qquickitem2
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 304 |
181 | } | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | QSGGuiThreadShaderEffectManager *QSGContext::createGuiThreadShaderEffectManager() | - |
189 | { | - |
190 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
191 | } | - |
192 | | - |
193 | | - |
194 | | - |
195 | | - |
196 | | - |
197 | | - |
198 | QSGShaderEffectNode *QSGContext::createShaderEffectNode(QSGRenderContext *, QSGGuiThreadShaderEffectManager *) | - |
199 | { | - |
200 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
201 | } | - |
202 | | - |
203 | | - |
204 | | - |
205 | | - |
206 | QAnimationDriver *QSGContext::createAnimationDriver(QObject *parent) | - |
207 | { | - |
208 | return never executed: return new QSGAnimationDriver(parent); new QSGAnimationDriver(parent);never executed: return new QSGAnimationDriver(parent); | 0 |
209 | } | - |
210 | | - |
211 | QSize QSGContext::minimumFBOSize() const | - |
212 | { | - |
213 | returnexecuted 235 times by 8 tests: return QSize(1, 1); Executed by:- tst_examples
- tst_qquickcustomparticle
- tst_qquickframebufferobject
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquickpainteditem
- tst_qquickshadereffect
- tst_qquicktext
QSize(1, 1);executed 235 times by 8 tests: return QSize(1, 1); Executed by:- tst_examples
- tst_qquickcustomparticle
- tst_qquickframebufferobject
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquickpainteditem
- tst_qquickshadereffect
- tst_qquicktext
| 235 |
214 | } | - |
215 | QSGRendererInterface *QSGContext::rendererInterface(QSGRenderContext *renderContext) | - |
216 | { | - |
217 | (void)renderContext;; | - |
218 | QMessageLogger(__FILE__, 322, __PRETTY_FUNCTION__).warning("QSGRendererInterface not implemented"); | - |
219 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
220 | } | - |
221 | | - |
222 | QSGRenderContext::QSGRenderContext(QSGContext *context) | - |
223 | : m_sg(context) | - |
224 | { | - |
225 | }executed 316 times by 91 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
- ...
| 316 |
226 | | - |
227 | QSGRenderContext::~QSGRenderContext() | - |
228 | { | - |
229 | } | - |
230 | | - |
231 | void QSGRenderContext::initialize(void *context) | - |
232 | { | - |
233 | (void)context;; | - |
234 | } never executed: end of block | 0 |
235 | | - |
236 | void QSGRenderContext::invalidate() | - |
237 | { | - |
238 | } | - |
239 | | - |
240 | void QSGRenderContext::endSync() | - |
241 | { | - |
242 | qDeleteAll(m_texturesToDelete); | - |
243 | m_texturesToDelete.clear(); | - |
244 | }executed 50315 times by 76 tests: end of block Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- 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
- tst_qquickgravity
- ...
| 50315 |
245 | | - |
246 | | - |
247 | | - |
248 | | - |
249 | QSGDistanceFieldGlyphCache *QSGRenderContext::distanceFieldGlyphCache(const QRawFont &) | - |
250 | { | - |
251 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
252 | } | - |
253 | | - |
254 | | - |
255 | void QSGRenderContext::registerFontengineForCleanup(QFontEngine *engine) | - |
256 | { | - |
257 | engine->ref.ref(); | - |
258 | m_fontEnginesToClean << engine; | - |
259 | }executed 16 times by 1 test: end of block | 16 |
260 | QSGTexture *QSGRenderContext::textureForFactory(QQuickTextureFactory *factory, QQuickWindow *window) | - |
261 | { | - |
262 | if (!factoryTRUE | evaluated 112 times by 2 testsEvaluated by:- tst_examples
- tst_qquickimage
| FALSE | evaluated 5161 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
|
) | 112-5161 |
263 | returnexecuted 112 times by 2 tests: return nullptr; Executed by:- tst_examples
- tst_qquickimage
nullptr;executed 112 times by 2 tests: return nullptr; Executed by:- tst_examples
- tst_qquickimage
| 112 |
264 | | - |
265 | m_mutex.lock(); | - |
266 | QSGTexture *texture = m_textures.value(factory); | - |
267 | m_mutex.unlock(); | - |
268 | | - |
269 | if (!textureTRUE | evaluated 367 times by 8 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| FALSE | evaluated 4794 times by 6 testsEvaluated by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
|
) { | 367-4794 |
270 | texture = factory->createTexture(window); | - |
271 | | - |
272 | m_mutex.lock(); | - |
273 | m_textures.insert(factory, texture); | - |
274 | m_mutex.unlock(); | - |
275 | | - |
276 | connect(factory, qFlagLocation("2""destroyed(QObject*)" "\0" __FILE__ ":" "388"), this, qFlagLocation("1""textureFactoryDestroyed(QObject*)" "\0" __FILE__ ":" "388"), Qt::DirectConnection); | - |
277 | }executed 367 times by 8 tests: end of block Executed by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| 367 |
278 | returnexecuted 5161 times by 8 tests: return texture; Executed by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
texture;executed 5161 times by 8 tests: return texture; Executed by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickitemparticle
- tst_qquickshadereffect
- tst_scenegraph
| 5161 |
279 | } | - |
280 | | - |
281 | void QSGRenderContext::textureFactoryDestroyed(QObject *o) | - |
282 | { | - |
283 | m_mutex.lock(); | - |
284 | m_texturesToDelete << m_textures.take(static_cast<QQuickTextureFactory *>(o)); | - |
285 | m_mutex.unlock(); | - |
286 | }executed 359 times by 7 tests: end of block Executed by:- tst_examples
- tst_qquickanimatedimage
- tst_qquickborderimage
- tst_qquickcustomparticle
- tst_qquickimage
- tst_qquickshadereffect
- tst_scenegraph
| 359 |
287 | QSGTexture *QSGRenderContext::compressedTextureForFactory(const QSGCompressedTextureFactory *) const | - |
288 | { | - |
289 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
290 | } | - |
291 | | - |
292 | | - |
293 | | - |
| | |