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