Line | Source | Count |
1 | | - |
2 | | - |
3 | void QSGImageNode::rebuildGeometry(QSGGeometry *g, | - |
4 | QSGTexture *texture, | - |
5 | const QRectF &rect, | - |
6 | QRectF sourceRect, | - |
7 | TextureCoordinatesTransformMode texCoordMode) | - |
8 | { | - |
9 | if (!textureTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
10 | return; never executed: return; | 0 |
11 | | - |
12 | if (!sourceRect.width()TRUE | never evaluated | FALSE | never evaluated |
|| !sourceRect.height()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
13 | QSize ts = texture->textureSize(); | - |
14 | sourceRect = QRectF(0, 0, ts.width(), ts.height()); | - |
15 | } never executed: end of block | 0 |
16 | | - |
17 | | - |
18 | if (texCoordMode.testFlag(QSGImageNode::MirrorHorizontally)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
19 | float tmp = sourceRect.left(); | - |
20 | sourceRect.setLeft(sourceRect.right()); | - |
21 | sourceRect.setRight(tmp); | - |
22 | } never executed: end of block | 0 |
23 | if (texCoordMode.testFlag(QSGImageNode::MirrorVertically)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
24 | float tmp = sourceRect.top(); | - |
25 | sourceRect.setTop(sourceRect.bottom()); | - |
26 | sourceRect.setBottom(tmp); | - |
27 | } never executed: end of block | 0 |
28 | | - |
29 | QSGGeometry::updateTexturedRectGeometry(g, rect, texture->convertToNormalizedSourceRect(sourceRect)); | - |
30 | } never executed: end of block | 0 |
31 | | - |
32 | | - |
| | |