OpenCoverage

qsgtexturematerial.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgtexturematerial.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class __attribute__((visibility("default"))) QSGOpaqueTextureMaterial : public QSGMaterial-
5{-
6public:-
7 QSGOpaqueTextureMaterial();-
8-
9 QSGMaterialType *type() const override;-
10 QSGMaterialShader *createShader() const override;-
11 int compare(const QSGMaterial *other) const override;-
12-
13 void setTexture(QSGTexture *texture);-
14 QSGTexture *texture() const { return
executed 80763 times by 14 tests: return m_texture;
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
m_texture;
executed 80763 times by 14 tests: return m_texture;
Executed by:
  • tst_examples
  • tst_nodestest
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
80763
15-
16 void setMipmapFiltering(QSGTexture::Filtering filteringType) { m_mipmap_filtering = filteringType; }
executed 62 times by 5 tests: end of block
Executed by:
  • tst_nodestest
  • tst_qquickframebufferobject
  • tst_qquickitemlayer
  • tst_qquickpainteditem
  • tst_scenegraph
62
17 QSGTexture::Filtering mipmapFiltering() const { return
executed 26091 times by 13 tests: return QSGTexture::Filtering(m_mipmap_filtering);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
QSGTexture::Filtering(m_mipmap_filtering);
executed 26091 times by 13 tests: return QSGTexture::Filtering(m_mipmap_filtering);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
26091
18-
19 void setFiltering(QSGTexture::Filtering filteringType) { m_filtering = filteringType; }
executed 15421 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
15421
20 QSGTexture::Filtering filtering() const { return
executed 26141 times by 13 tests: return QSGTexture::Filtering(m_filtering);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
QSGTexture::Filtering(m_filtering);
executed 26141 times by 13 tests: return QSGTexture::Filtering(m_filtering);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
26141
21-
22 void setHorizontalWrapMode(QSGTexture::WrapMode mode) { m_horizontal_wrap = mode; }
executed 24 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimage
24
23 QSGTexture::WrapMode horizontalWrapMode() const { return
executed 26091 times by 13 tests: return QSGTexture::WrapMode(m_horizontal_wrap);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
QSGTexture::WrapMode(m_horizontal_wrap);
executed 26091 times by 13 tests: return QSGTexture::WrapMode(m_horizontal_wrap);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
26091
24-
25 void setVerticalWrapMode(QSGTexture::WrapMode mode) { m_vertical_wrap = mode; }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquickimage
18
26 QSGTexture::WrapMode verticalWrapMode() const { return
executed 26091 times by 13 tests: return QSGTexture::WrapMode(m_vertical_wrap);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
QSGTexture::WrapMode(m_vertical_wrap);
executed 26091 times by 13 tests: return QSGTexture::WrapMode(m_vertical_wrap);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
26091
27-
28 void setAnisotropyLevel(QSGTexture::AnisotropyLevel level) { m_anisotropy_level = level; }
never executed: end of block
0
29 QSGTexture::AnisotropyLevel anisotropyLevel() const { return
executed 20814 times by 13 tests: return QSGTexture::AnisotropyLevel(m_anisotropy_level);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
QSGTexture::AnisotropyLevel(m_anisotropy_level);
executed 20814 times by 13 tests: return QSGTexture::AnisotropyLevel(m_anisotropy_level);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquickpainteditem
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquickwindow
  • tst_scenegraph
}
20814
30-
31protected:-
32 QSGTexture *m_texture;-
33-
34 uint m_filtering: 2;-
35 uint m_mipmap_filtering: 2;-
36 uint m_horizontal_wrap : 1;-
37 uint m_vertical_wrap: 1;-
38 uint m_anisotropy_level : 3;-
39 uint m_reserved : 23;-
40};-
41-
42-
43class __attribute__((visibility("default"))) QSGTextureMaterial : public QSGOpaqueTextureMaterial-
44{-
45public:-
46 QSGMaterialType *type() const override;-
47 QSGMaterialShader *createShader() const override;-
48};-
49-
50-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0