Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgtexture_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | class QSGTexturePrivate : public QObjectPrivate | - |
7 | { | - |
8 | inline QSGTexture* q_func() { return static_cast<QSGTexture *>(q_ptr); } inline const QSGTexture* q_func() const { return static_cast<const QSGTexture *>(q_ptr); } friend class QSGTexture; | - |
9 | public: | - |
10 | QSGTexturePrivate(); | - |
11 | - | |
12 | uint wrapChanged : 1; | - |
13 | uint filteringChanged : 1; | - |
14 | uint anisotropyChanged : 1; | - |
15 | - | |
16 | uint horizontalWrap : 2; | - |
17 | uint verticalWrap : 2; | - |
18 | uint mipmapMode : 2; | - |
19 | uint filterMode : 2; | - |
20 | uint anisotropyLevel: 3; | - |
21 | }; | - |
22 | - | |
23 | class __attribute__((visibility("default"))) QSGPlainTexture : public QSGTexture | - |
24 | { | - |
25 | public: | - |
26 | #pragma GCC diagnostic push | - |
27 | - | |
28 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
29 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
30 | #pragma GCC diagnostic ignored "-Wattributes" | - |
31 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
32 | #pragma GCC diagnostic pop | - |
33 | struct QPrivateSignal {}; | - |
34 | public: | - |
35 | QSGPlainTexture(); | - |
36 | ~QSGPlainTexture() override; | - |
37 | - | |
38 | void setOwnsTexture(bool owns) { m_owns_texture = owns; } executed 116 times by 4 tests: end of block Executed by:
| 116 |
39 | bool ownsTexture() const { return never executed: m_owns_texture;return m_owns_texture; never executed: }return m_owns_texture; | 0 |
40 | - | |
41 | void setTextureId(int id); | - |
42 | int textureId() const override; | - |
43 | void setTextureSize(const QSize &size) { m_texture_size = size; } executed 118 times by 5 tests: end of block Executed by:
| 118 |
44 | QSize textureSize() const override { return executed 133 times by 4 tests: m_texture_size;return m_texture_size; Executed by:
executed 133 times by 4 tests: }return m_texture_size; Executed by:
| 133 |
45 | - | |
46 | void setHasAlphaChannel(bool alpha) { m_has_alpha = alpha; } executed 52 times by 3 tests: end of block Executed by:
| 52 |
47 | bool hasAlphaChannel() const override { return executed 822 times by 9 tests: m_has_alpha;return m_has_alpha; Executed by:
executed 822 times by 9 tests: }return m_has_alpha; Executed by:
| 822 |
48 | - | |
49 | bool hasMipmaps() const override { return executed 324 times by 30 tests: mipmapFiltering() != QSGTexture::None;return mipmapFiltering() != QSGTexture::None; Executed by:
executed 324 times by 30 tests: }return mipmapFiltering() != QSGTexture::None; Executed by:
| 324 |
50 | - | |
51 | void setImage(const QImage &image); | - |
52 | const QImage &image() { return never executed: m_image;return m_image; never executed: }return m_image; | 0 |
53 | - | |
54 | void bind() override; | - |
55 | - | |
56 | static QSGPlainTexture *fromImage(const QImage &image) { | - |
57 | QSGPlainTexture *t = new QSGPlainTexture(); | - |
58 | t->setImage(image); | - |
59 | return executed 105 times by 21 tests: t;return t; Executed by:
executed 105 times by 21 tests: return t; Executed by:
| 105 |
60 | } | - |
61 | - | |
62 | protected: | - |
63 | QImage m_image; | - |
64 | - | |
65 | uint m_texture_id; | - |
66 | QSize m_texture_size; | - |
67 | QRectF m_texture_rect; | - |
68 | - | |
69 | uint m_has_alpha : 1; | - |
70 | uint m_dirty_texture : 1; | - |
71 | uint m_dirty_bind_options : 1; | - |
72 | uint m_owns_texture : 1; | - |
73 | uint m_mipmaps_generated : 1; | - |
74 | uint m_retain_image: 1; | - |
75 | }; | - |
76 | - | |
77 | __attribute__((visibility("default"))) bool qsg_safeguard_texture(QSGTexture *); | - |
78 | - | |
79 | - | |
Switch to Source code | Preprocessed file |