Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | class QSGSoftwarePixmapRenderer; | - |
5 | | - |
6 | class QSGSoftwareLayer : public QSGLayer | - |
7 | { | - |
8 | public: | - |
9 | #pragma GCC diagnostic push | - |
10 | | - |
11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
12 | 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: | - |
13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
15 | #pragma GCC diagnostic pop | - |
16 | struct QPrivateSignal {}; | - |
17 | public: | - |
18 | QSGSoftwareLayer(QSGRenderContext *renderContext); | - |
19 | ~QSGSoftwareLayer(); | - |
20 | | - |
21 | const QPixmap &pixmap() const { return never executed: return m_pixmap; m_pixmap;never executed: return m_pixmap; } | 0 |
22 | | - |
23 | | - |
24 | public: | - |
25 | int textureId() const override; | - |
26 | QSize textureSize() const override; | - |
27 | bool hasAlphaChannel() const override; | - |
28 | bool hasMipmaps() const override; | - |
29 | void bind() override; | - |
30 | | - |
31 | | - |
32 | public: | - |
33 | bool updateTexture() override; | - |
34 | | - |
35 | | - |
36 | public: | - |
37 | void setItem(QSGNode *item) override; | - |
38 | void setRect(const QRectF &rect) override; | - |
39 | void setSize(const QSize &size) override; | - |
40 | void scheduleUpdate() override; | - |
41 | QImage toImage() const override; | - |
42 | void setLive(bool live) override; | - |
43 | void setRecursive(bool recursive) override; | - |
44 | void setFormat(uint) override; | - |
45 | void setHasMipmaps(bool) override; | - |
46 | void setDevicePixelRatio(qreal ratio) override; | - |
47 | void setMirrorHorizontal(bool mirror) override; | - |
48 | void setMirrorVertical(bool mirror) override; | - |
49 | void setSamples(int) override { } | - |
50 | | - |
51 | public : | - |
52 | void markDirtyTexture() override; | - |
53 | void invalidated() override; | - |
54 | | - |
55 | private: | - |
56 | void grab(); | - |
57 | | - |
58 | QSGNode *m_item; | - |
59 | QSGRenderContext *m_context; | - |
60 | QSGSoftwarePixmapRenderer *m_renderer; | - |
61 | QRectF m_rect; | - |
62 | QSize m_size; | - |
63 | QPixmap m_pixmap; | - |
64 | qreal m_device_pixel_ratio; | - |
65 | bool m_mirrorHorizontal; | - |
66 | bool m_mirrorVertical; | - |
67 | bool m_live; | - |
68 | bool m_grab; | - |
69 | bool m_recursive; | - |
70 | bool m_dirtyTexture; | - |
71 | }; | - |
72 | | - |
73 | | - |
| | |