OpenCoverage

qsgsoftwareadaptation.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwareadaptation.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QSGSoftwareAdaptation::QSGSoftwareAdaptation(QObject *parent)-
6 : QSGContextPlugin(parent)-
7{-
8}
executed 202 times by 94 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
9-
10QStringList QSGSoftwareAdaptation::keys() const-
11{-
12 return
executed 2 times by 1 test: return QStringList() << QLatin1String("software") << QLatin1String("softwarecontext");
Executed by:
  • tst_qquickshape
QStringList() << QLatin1String("software") << QLatin1String("softwarecontext");
executed 2 times by 1 test: return QStringList() << QLatin1String("software") << QLatin1String("softwarecontext");
Executed by:
  • tst_qquickshape
2
13}-
14-
15QSGContext *QSGSoftwareAdaptation::create(const QString &) const-
16{-
17 if (!instance
!instanceDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
18 instance = new QSGSoftwareContext();
never executed: instance = new QSGSoftwareContext();
0
19 return
never executed: return instance;
instance;
never executed: return instance;
0
20}-
21-
22QSGContextFactoryInterface::Flags QSGSoftwareAdaptation::flags(const QString &) const-
23{-
24-
25-
26-
27 return
executed 2 times by 1 test: return QSGContextFactoryInterface::SupportsShaderEffectNode;
Executed by:
  • tst_qquickshape
QSGContextFactoryInterface::SupportsShaderEffectNode;
executed 2 times by 1 test: return QSGContextFactoryInterface::SupportsShaderEffectNode;
Executed by:
  • tst_qquickshape
2
28}-
29-
30QSGRenderLoop *QSGSoftwareAdaptation::createWindowManager()-
31{-
32 static bool threaded = false;-
33 static bool envChecked = false;-
34 if (!envChecked
!envCheckedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickshape
FALSEnever evaluated
) {
0-2
35 envChecked = true;-
36 threaded = qgetenv("QSG_RENDER_LOOP") == "threaded";-
37 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickshape
2
38-
39 if (threaded
threadedDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickshape
)
0-2
40 return
never executed: return new QSGSoftwareThreadedRenderLoop;
new QSGSoftwareThreadedRenderLoop;
never executed: return new QSGSoftwareThreadedRenderLoop;
0
41-
42 return
executed 2 times by 1 test: return new QSGSoftwareRenderLoop();
Executed by:
  • tst_qquickshape
new QSGSoftwareRenderLoop();
executed 2 times by 1 test: return new QSGSoftwareRenderLoop();
Executed by:
  • tst_qquickshape
2
43}-
44-
45QSGSoftwareContext *QSGSoftwareAdaptation::instance = nullptr;-
46-
47-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0