Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/compressedtexture/qsgcompressedatlastexture_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | class QSGCompressedTextureFactory; | - |
7 | - | |
8 | namespace QSGCompressedAtlasTexture { | - |
9 | - | |
10 | class Texture; | - |
11 | - | |
12 | class Atlas : public QSGAtlasTexture::AtlasBase | - |
13 | { | - |
14 | public: | - |
15 | Atlas(const QSize &size, uint format); | - |
16 | ~Atlas(); | - |
17 | - | |
18 | void generateTexture() override; | - |
19 | void uploadPendingTexture(int i) override; | - |
20 | - | |
21 | Texture *create(const QByteArray &data, int dataLength, int dataOffset, const QSize &size, const QSize &paddedSize); | - |
22 | - | |
23 | uint format() const { return never executed: m_format;return m_format; never executed: }return m_format; | 0 |
24 | - | |
25 | private: | - |
26 | uint m_format; | - |
27 | }; | - |
28 | - | |
29 | class Texture : public QSGAtlasTexture::TextureBase | - |
30 | { | - |
31 | public: | - |
32 | #pragma GCC diagnostic push | - |
33 | - | |
34 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
35 | 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: | - |
36 | #pragma GCC diagnostic ignored "-Wattributes" | - |
37 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
38 | #pragma GCC diagnostic pop | - |
39 | struct QPrivateSignal {}; | - |
40 | public: | - |
41 | Texture(Atlas *atlas, const QRect &textureRect, const QByteArray &data, int dataLength, int dataOffset, const QSize &size); | - |
42 | ~Texture(); | - |
43 | - | |
44 | QSize textureSize() const override { return never executed: m_size;return m_size; never executed: }return m_size; | 0 |
45 | bool hasAlphaChannel() const override; | - |
46 | bool hasMipmaps() const override { return never executed: false;return false; never executed: }return false; | 0 |
47 | - | |
48 | QRectF normalizedTextureSubRect() const override { return never executed: m_texture_coords_rect;return m_texture_coords_rect; never executed: }return m_texture_coords_rect; | 0 |
49 | - | |
50 | QSGTexture *removedFromAtlas() const override; | - |
51 | - | |
52 | const QByteArray &data() const { return never executed: m_data;return m_data; never executed: }return m_data; | 0 |
53 | int sizeInBytes() const { return never executed: m_dataLength;return m_dataLength; never executed: }return m_dataLength; | 0 |
54 | int dataOffset() const { return never executed: m_dataOffset;return m_dataOffset; never executed: }return m_dataOffset; | 0 |
55 | - | |
56 | private: | - |
57 | QRectF m_texture_coords_rect; | - |
58 | mutable QSGTexture *m_nonatlas_texture; | - |
59 | QByteArray m_data; | - |
60 | QSize m_size; | - |
61 | int m_dataLength; | - |
62 | int m_dataOffset; | - |
63 | }; | - |
64 | - | |
65 | } | - |
66 | - | |
67 | - | |
Switch to Source code | Preprocessed file |