| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | - | |||||||||||||||||||
| 4 | - | |||||||||||||||||||
| 5 | - | |||||||||||||||||||
| 6 | - | |||||||||||||||||||
| 7 | - | |||||||||||||||||||
| 8 | - | |||||||||||||||||||
| 9 | const QLoggingCategory &QSG_RASTER_LOG_INFO() { static const QLoggingCategory category("qt.scenegraph.info"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 10 | - | |||||||||||||||||||
| 11 | - | |||||||||||||||||||
| 12 | - | |||||||||||||||||||
| 13 | const QLoggingCategory &QSG_RASTER_LOG_RENDERLOOP() { static const QLoggingCategory category("qt.scenegraph.renderloop"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 14 | - | |||||||||||||||||||
| 15 | - | |||||||||||||||||||
| 16 | const QLoggingCategory &QSG_RASTER_LOG_TIME_COMPILATION() { static const QLoggingCategory category("qt.scenegraph.time.compilation"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 17 | - | |||||||||||||||||||
| 18 | - | |||||||||||||||||||
| 19 | const QLoggingCategory &QSG_RASTER_LOG_TIME_RENDERLOOP() { static const QLoggingCategory category("qt.scenegraph.time.renderloop"); return executed 48 times by 1 test: category;return category;Executed by:
executed 48 times by 1 test: }return category;Executed by:
| 48 | ||||||||||||||||||
| 20 | - | |||||||||||||||||||
| 21 | - | |||||||||||||||||||
| 22 | const QLoggingCategory &QSG_RASTER_LOG_TIME_TEXTURE() { static const QLoggingCategory category("qt.scenegraph.time.texture"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 23 | - | |||||||||||||||||||
| 24 | - | |||||||||||||||||||
| 25 | const QLoggingCategory &QSG_RASTER_LOG_TIME_GLYPH() { static const QLoggingCategory category("qt.scenegraph.time.glyph"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 26 | - | |||||||||||||||||||
| 27 | - | |||||||||||||||||||
| 28 | const QLoggingCategory &QSG_RASTER_LOG_TIME_RENDERER() { static const QLoggingCategory category("qt.scenegraph.time.renderer"); return never executed: category;return category;never executed: }return category; | 0 | ||||||||||||||||||
| 29 | - | |||||||||||||||||||
| 30 | - | |||||||||||||||||||
| 31 | - | |||||||||||||||||||
| 32 | QSGSoftwareRenderContext::QSGSoftwareRenderContext(QSGContext *ctx) | - | ||||||||||||||||||
| 33 | : QSGRenderContext(ctx) | - | ||||||||||||||||||
| 34 | , m_initialized(false) | - | ||||||||||||||||||
| 35 | , m_activePainter(nullptr) | - | ||||||||||||||||||
| 36 | { | - | ||||||||||||||||||
| 37 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||
| 38 | - | |||||||||||||||||||
| 39 | QSGSoftwareContext::QSGSoftwareContext(QObject *parent) | - | ||||||||||||||||||
| 40 | : QSGContext(parent) | - | ||||||||||||||||||
| 41 | { | - | ||||||||||||||||||
| 42 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||
| 43 | - | |||||||||||||||||||
| 44 | QSGInternalRectangleNode *QSGSoftwareContext::createInternalRectangleNode() | - | ||||||||||||||||||
| 45 | { | - | ||||||||||||||||||
| 46 | return never executed: new QSGSoftwareInternalRectangleNode();return new QSGSoftwareInternalRectangleNode();never executed: return new QSGSoftwareInternalRectangleNode(); | 0 | ||||||||||||||||||
| 47 | } | - | ||||||||||||||||||
| 48 | - | |||||||||||||||||||
| 49 | QSGInternalImageNode *QSGSoftwareContext::createInternalImageNode() | - | ||||||||||||||||||
| 50 | { | - | ||||||||||||||||||
| 51 | return never executed: new QSGSoftwareInternalImageNode();return new QSGSoftwareInternalImageNode();never executed: return new QSGSoftwareInternalImageNode(); | 0 | ||||||||||||||||||
| 52 | } | - | ||||||||||||||||||
| 53 | - | |||||||||||||||||||
| 54 | QSGPainterNode *QSGSoftwareContext::createPainterNode(QQuickPaintedItem *item) | - | ||||||||||||||||||
| 55 | { | - | ||||||||||||||||||
| 56 | return never executed: new QSGSoftwarePainterNode(item);return new QSGSoftwarePainterNode(item);never executed: return new QSGSoftwarePainterNode(item); | 0 | ||||||||||||||||||
| 57 | } | - | ||||||||||||||||||
| 58 | - | |||||||||||||||||||
| 59 | QSGGlyphNode *QSGSoftwareContext::createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode) | - | ||||||||||||||||||
| 60 | { | - | ||||||||||||||||||
| 61 | (void)rc;; | - | ||||||||||||||||||
| 62 | (void)preferNativeGlyphNode;; | - | ||||||||||||||||||
| 63 | return never executed: new QSGSoftwareGlyphNode();return new QSGSoftwareGlyphNode();never executed: return new QSGSoftwareGlyphNode(); | 0 | ||||||||||||||||||
| 64 | } | - | ||||||||||||||||||
| 65 | - | |||||||||||||||||||
| 66 | QSGLayer *QSGSoftwareContext::createLayer(QSGRenderContext *renderContext) | - | ||||||||||||||||||
| 67 | { | - | ||||||||||||||||||
| 68 | return never executed: new QSGSoftwareLayer(renderContext);return new QSGSoftwareLayer(renderContext);never executed: return new QSGSoftwareLayer(renderContext); | 0 | ||||||||||||||||||
| 69 | } | - | ||||||||||||||||||
| 70 | - | |||||||||||||||||||
| 71 | QSurfaceFormat QSGSoftwareContext::defaultSurfaceFormat() const | - | ||||||||||||||||||
| 72 | { | - | ||||||||||||||||||
| 73 | QSurfaceFormat format = QSurfaceFormat::defaultFormat(); | - | ||||||||||||||||||
| 74 | format.setRenderableType(QSurfaceFormat::DefaultRenderableType); | - | ||||||||||||||||||
| 75 | format.setMajorVersion(0); | - | ||||||||||||||||||
| 76 | format.setMinorVersion(0); | - | ||||||||||||||||||
| 77 | return executed 12 times by 1 test: format;return format;Executed by:
executed 12 times by 1 test: return format;Executed by:
| 12 | ||||||||||||||||||
| 78 | } | - | ||||||||||||||||||
| 79 | - | |||||||||||||||||||
| 80 | void QSGSoftwareRenderContext::initializeIfNeeded() | - | ||||||||||||||||||
| 81 | { | - | ||||||||||||||||||
| 82 | if (m_initialized
| 2-22 | ||||||||||||||||||
| 83 | return; executed 22 times by 1 test: return;Executed by:
| 22 | ||||||||||||||||||
| 84 | m_initialized = true; | - | ||||||||||||||||||
| 85 | initialized(); | - | ||||||||||||||||||
| 86 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||
| 87 | - | |||||||||||||||||||
| 88 | void QSGSoftwareRenderContext::invalidate() | - | ||||||||||||||||||
| 89 | { | - | ||||||||||||||||||
| 90 | m_sg->renderContextInvalidated(this); | - | ||||||||||||||||||
| 91 | invalidated(); | - | ||||||||||||||||||
| 92 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||
| 93 | - | |||||||||||||||||||
| 94 | QSGTexture *QSGSoftwareRenderContext::createTexture(const QImage &image, uint flags) const | - | ||||||||||||||||||
| 95 | { | - | ||||||||||||||||||
| 96 | return never executed: new QSGSoftwarePixmapTexture(image, flags);return new QSGSoftwarePixmapTexture(image, flags);never executed: return new QSGSoftwarePixmapTexture(image, flags); | 0 | ||||||||||||||||||
| 97 | } | - | ||||||||||||||||||
| 98 | - | |||||||||||||||||||
| 99 | QSGRenderer *QSGSoftwareRenderContext::createRenderer() | - | ||||||||||||||||||
| 100 | { | - | ||||||||||||||||||
| 101 | return executed 8 times by 1 test: new QSGSoftwareRenderer(this);return new QSGSoftwareRenderer(this);Executed by:
executed 8 times by 1 test: return new QSGSoftwareRenderer(this);Executed by:
| 8 | ||||||||||||||||||
| 102 | } | - | ||||||||||||||||||
| 103 | - | |||||||||||||||||||
| 104 | - | |||||||||||||||||||
| 105 | void QSGSoftwareRenderContext::renderNextFrame(QSGRenderer *renderer, uint fbo) | - | ||||||||||||||||||
| 106 | { | - | ||||||||||||||||||
| 107 | renderer->renderScene(fbo); | - | ||||||||||||||||||
| 108 | } executed 24 times by 1 test: end of blockExecuted by:
| 24 | ||||||||||||||||||
| 109 | - | |||||||||||||||||||
| 110 | int QSGSoftwareRenderContext::maxTextureSize() const | - | ||||||||||||||||||
| 111 | { | - | ||||||||||||||||||
| 112 | return never executed: 2048;return 2048;never executed: return 2048; | 0 | ||||||||||||||||||
| 113 | } | - | ||||||||||||||||||
| 114 | - | |||||||||||||||||||
| 115 | QSGRendererInterface *QSGSoftwareContext::rendererInterface(QSGRenderContext *renderContext) | - | ||||||||||||||||||
| 116 | { | - | ||||||||||||||||||
| 117 | (void)renderContext;; | - | ||||||||||||||||||
| 118 | return executed 24 times by 1 test: this;return this;Executed by:
executed 24 times by 1 test: return this;Executed by:
| 24 | ||||||||||||||||||
| 119 | } | - | ||||||||||||||||||
| 120 | - | |||||||||||||||||||
| 121 | QSGRectangleNode *QSGSoftwareContext::createRectangleNode() | - | ||||||||||||||||||
| 122 | { | - | ||||||||||||||||||
| 123 | return never executed: new QSGSoftwareRectangleNode;return new QSGSoftwareRectangleNode;never executed: return new QSGSoftwareRectangleNode; | 0 | ||||||||||||||||||
| 124 | } | - | ||||||||||||||||||
| 125 | - | |||||||||||||||||||
| 126 | QSGImageNode *QSGSoftwareContext::createImageNode() | - | ||||||||||||||||||
| 127 | { | - | ||||||||||||||||||
| 128 | return never executed: new QSGSoftwareImageNode;return new QSGSoftwareImageNode;never executed: return new QSGSoftwareImageNode; | 0 | ||||||||||||||||||
| 129 | } | - | ||||||||||||||||||
| 130 | - | |||||||||||||||||||
| 131 | QSGNinePatchNode *QSGSoftwareContext::createNinePatchNode() | - | ||||||||||||||||||
| 132 | { | - | ||||||||||||||||||
| 133 | return never executed: new QSGSoftwareNinePatchNode;return new QSGSoftwareNinePatchNode;never executed: return new QSGSoftwareNinePatchNode; | 0 | ||||||||||||||||||
| 134 | } | - | ||||||||||||||||||
| 135 | - | |||||||||||||||||||
| 136 | - | |||||||||||||||||||
| 137 | QSGSpriteNode *QSGSoftwareContext::createSpriteNode() | - | ||||||||||||||||||
| 138 | { | - | ||||||||||||||||||
| 139 | return never executed: new QSGSoftwareSpriteNode;return new QSGSoftwareSpriteNode;never executed: return new QSGSoftwareSpriteNode; | 0 | ||||||||||||||||||
| 140 | } | - | ||||||||||||||||||
| 141 | - | |||||||||||||||||||
| 142 | - | |||||||||||||||||||
| 143 | QSGRendererInterface::GraphicsApi QSGSoftwareContext::graphicsApi() const | - | ||||||||||||||||||
| 144 | { | - | ||||||||||||||||||
| 145 | return executed 16 times by 1 test: Software;return Software;Executed by:
executed 16 times by 1 test: return Software;Executed by:
| 16 | ||||||||||||||||||
| 146 | } | - | ||||||||||||||||||
| 147 | - | |||||||||||||||||||
| 148 | QSGRendererInterface::ShaderType QSGSoftwareContext::shaderType() const | - | ||||||||||||||||||
| 149 | { | - | ||||||||||||||||||
| 150 | return never executed: UnknownShadingLanguage;return UnknownShadingLanguage;never executed: return UnknownShadingLanguage; | 0 | ||||||||||||||||||
| 151 | } | - | ||||||||||||||||||
| 152 | - | |||||||||||||||||||
| 153 | QSGRendererInterface::ShaderCompilationTypes QSGSoftwareContext::shaderCompilationType() const | - | ||||||||||||||||||
| 154 | { | - | ||||||||||||||||||
| 155 | return never executed: nullptr;return nullptr;never executed: return nullptr; | 0 | ||||||||||||||||||
| 156 | } | - | ||||||||||||||||||
| 157 | - | |||||||||||||||||||
| 158 | QSGRendererInterface::ShaderSourceTypes QSGSoftwareContext::shaderSourceType() const | - | ||||||||||||||||||
| 159 | { | - | ||||||||||||||||||
| 160 | return never executed: nullptr;return nullptr;never executed: return nullptr; | 0 | ||||||||||||||||||
| 161 | } | - | ||||||||||||||||||
| 162 | - | |||||||||||||||||||
| 163 | void *QSGSoftwareContext::getResource(QQuickWindow *window, Resource resource) const | - | ||||||||||||||||||
| 164 | { | - | ||||||||||||||||||
| 165 | if (resource == PainterResource
| 0-8 | ||||||||||||||||||
| 166 | return executed 8 times by 1 test: static_cast<QSGSoftwareRenderContext *>(QQuickWindowPrivate::get(window)->context)->m_activePainter;return static_cast<QSGSoftwareRenderContext *>(QQuickWindowPrivate::get(window)->context)->m_activePainter;Executed by:
executed 8 times by 1 test: return static_cast<QSGSoftwareRenderContext *>(QQuickWindowPrivate::get(window)->context)->m_activePainter;Executed by:
| 8 | ||||||||||||||||||
| 167 | - | |||||||||||||||||||
| 168 | return never executed: nullptr;return nullptr;never executed: return nullptr; | 0 | ||||||||||||||||||
| 169 | } | - | ||||||||||||||||||
| 170 | - | |||||||||||||||||||
| 171 | - | |||||||||||||||||||
| 172 | - | |||||||||||||||||||
| Switch to Source code | Preprocessed file |