| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgtexturematerial.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | class __attribute__((visibility("default"))) QSGOpaqueTextureMaterial : public QSGMaterial | - |
| 5 | { | - |
| 6 | public: | - |
| 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: m_texture;return m_texture;Executed by:
executed 80763 times by 14 tests: }return m_texture;Executed by:
| 80763 |
| 15 | - | |
| 16 | void setMipmapFiltering(QSGTexture::Filtering filteringType) { m_mipmap_filtering = filteringType; } executed 62 times by 5 tests: end of blockExecuted by:
| 62 |
| 17 | QSGTexture::Filtering mipmapFiltering() const { return executed 26091 times by 13 tests: QSGTexture::Filtering(m_mipmap_filtering);return QSGTexture::Filtering(m_mipmap_filtering);Executed by:
executed 26091 times by 13 tests: }return QSGTexture::Filtering(m_mipmap_filtering);Executed by:
| 26091 |
| 18 | - | |
| 19 | void setFiltering(QSGTexture::Filtering filteringType) { m_filtering = filteringType; } executed 15421 times by 13 tests: end of blockExecuted by:
| 15421 |
| 20 | QSGTexture::Filtering filtering() const { return executed 26141 times by 13 tests: QSGTexture::Filtering(m_filtering);return QSGTexture::Filtering(m_filtering);Executed by:
executed 26141 times by 13 tests: }return QSGTexture::Filtering(m_filtering);Executed by:
| 26141 |
| 21 | - | |
| 22 | void setHorizontalWrapMode(QSGTexture::WrapMode mode) { m_horizontal_wrap = mode; } executed 24 times by 2 tests: end of blockExecuted by:
| 24 |
| 23 | QSGTexture::WrapMode horizontalWrapMode() const { return executed 26091 times by 13 tests: QSGTexture::WrapMode(m_horizontal_wrap);return QSGTexture::WrapMode(m_horizontal_wrap);Executed by:
executed 26091 times by 13 tests: }return QSGTexture::WrapMode(m_horizontal_wrap);Executed by:
| 26091 |
| 24 | - | |
| 25 | void setVerticalWrapMode(QSGTexture::WrapMode mode) { m_vertical_wrap = mode; } executed 18 times by 1 test: end of blockExecuted by:
| 18 |
| 26 | QSGTexture::WrapMode verticalWrapMode() const { return executed 26091 times by 13 tests: QSGTexture::WrapMode(m_vertical_wrap);return QSGTexture::WrapMode(m_vertical_wrap);Executed by:
executed 26091 times by 13 tests: }return QSGTexture::WrapMode(m_vertical_wrap);Executed by:
| 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: QSGTexture::AnisotropyLevel(m_anisotropy_level);return QSGTexture::AnisotropyLevel(m_anisotropy_level);Executed by:
executed 20814 times by 13 tests: }return QSGTexture::AnisotropyLevel(m_anisotropy_level);Executed by:
| 20814 |
| 30 | - | |
| 31 | protected: | - |
| 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 | - | |
| 43 | class __attribute__((visibility("default"))) QSGTextureMaterial : public QSGOpaqueTextureMaterial | - |
| 44 | { | - |
| 45 | public: | - |
| 46 | QSGMaterialType *type() const override; | - |
| 47 | QSGMaterialShader *createShader() const override; | - |
| 48 | }; | - |
| 49 | - | |
| 50 | - | |
| Switch to Source code | Preprocessed file |