Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgcontext_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | class QSGContextPrivate; | - |
8 | class QSGInternalRectangleNode; | - |
9 | class QSGInternalImageNode; | - |
10 | class QSGPainterNode; | - |
11 | class QSGGlyphNode; | - |
12 | class QSGRenderer; | - |
13 | class QSGDistanceFieldGlyphCache; | - |
14 | class QQuickWindow; | - |
15 | class QSGTexture; | - |
16 | class QSGMaterial; | - |
17 | class QSGRenderLoop; | - |
18 | class QSGLayer; | - |
19 | class QQuickTextureFactory; | - |
20 | class QSGCompressedTextureFactory; | - |
21 | class QSGContext; | - |
22 | class QQuickPaintedItem; | - |
23 | class QSGRendererInterface; | - |
24 | class QSGShaderEffectNode; | - |
25 | class QSGGuiThreadShaderEffectManager; | - |
26 | class QSGRectangleNode; | - |
27 | class QSGImageNode; | - |
28 | class QSGNinePatchNode; | - |
29 | class QSGSpriteNode; | - |
30 | class QSGRenderContext; | - |
31 | - | |
32 | extern const QLoggingCategory &QSG_LOG_TIME_RENDERLOOP(); | - |
33 | extern const QLoggingCategory &QSG_LOG_TIME_COMPILATION(); | - |
34 | extern const QLoggingCategory &QSG_LOG_TIME_TEXTURE(); | - |
35 | extern const QLoggingCategory &QSG_LOG_TIME_GLYPH(); | - |
36 | extern const QLoggingCategory &QSG_LOG_TIME_RENDERER(); | - |
37 | - | |
38 | extern const QLoggingCategory &QSG_LOG_INFO(); | - |
39 | extern const QLoggingCategory &QSG_LOG_RENDERLOOP(); | - |
40 | - | |
41 | class __attribute__((visibility("default"))) QSGContext : public QObject | - |
42 | { | - |
43 | public: | - |
44 | #pragma GCC diagnostic push | - |
45 | - | |
46 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
47 | 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: | - |
48 | #pragma GCC diagnostic ignored "-Wattributes" | - |
49 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
50 | #pragma GCC diagnostic pop | - |
51 | struct QPrivateSignal {}; | - |
52 | - | |
53 | public: | - |
54 | enum AntialiasingMethod { | - |
55 | UndecidedAntialiasing, | - |
56 | VertexAntialiasing, | - |
57 | MsaaAntialiasing | - |
58 | }; | - |
59 | - | |
60 | explicit QSGContext(QObject *parent = nullptr); | - |
61 | ~QSGContext() override; | - |
62 | - | |
63 | virtual void renderContextInitialized(QSGRenderContext *renderContext); | - |
64 | virtual void renderContextInvalidated(QSGRenderContext *renderContext); | - |
65 | virtual QSGRenderContext *createRenderContext() = 0; | - |
66 | - | |
67 | QSGInternalRectangleNode *createInternalRectangleNode(const QRectF &rect, const QColor &c); | - |
68 | virtual QSGInternalRectangleNode *createInternalRectangleNode() = 0; | - |
69 | virtual QSGInternalImageNode *createInternalImageNode() = 0; | - |
70 | virtual QSGPainterNode *createPainterNode(QQuickPaintedItem *item) = 0; | - |
71 | virtual QSGGlyphNode *createGlyphNode(QSGRenderContext *rc, bool preferNativeGlyphNode) = 0; | - |
72 | virtual QSGLayer *createLayer(QSGRenderContext *renderContext) = 0; | - |
73 | virtual QSGGuiThreadShaderEffectManager *createGuiThreadShaderEffectManager(); | - |
74 | virtual QSGShaderEffectNode *createShaderEffectNode(QSGRenderContext *renderContext, | - |
75 | QSGGuiThreadShaderEffectManager *mgr); | - |
76 | - | |
77 | virtual QSGSpriteNode *createSpriteNode() = 0; | - |
78 | - | |
79 | virtual QAnimationDriver *createAnimationDriver(QObject *parent); | - |
80 | - | |
81 | virtual QSize minimumFBOSize() const; | - |
82 | virtual QSurfaceFormat defaultSurfaceFormat() const = 0; | - |
83 | - | |
84 | virtual QSGRendererInterface *rendererInterface(QSGRenderContext *renderContext); | - |
85 | - | |
86 | virtual QSGRectangleNode *createRectangleNode() = 0; | - |
87 | virtual QSGImageNode *createImageNode() = 0; | - |
88 | virtual QSGNinePatchNode *createNinePatchNode() = 0; | - |
89 | - | |
90 | static QSGContext *createDefaultContext(); | - |
91 | static QQuickTextureFactory *createTextureFactoryFromImage(const QImage &image); | - |
92 | static QSGRenderLoop *createWindowManager(); | - |
93 | - | |
94 | static void setBackend(const QString &backend); | - |
95 | static QString backend(); | - |
96 | }; | - |
97 | - | |
98 | class __attribute__((visibility("default"))) QSGRenderContext : public QObject | - |
99 | { | - |
100 | public: | - |
101 | #pragma GCC diagnostic push | - |
102 | - | |
103 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
104 | 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: | - |
105 | #pragma GCC diagnostic ignored "-Wattributes" | - |
106 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
107 | #pragma GCC diagnostic pop | - |
108 | struct QPrivateSignal {}; | - |
109 | public: | - |
110 | enum CreateTextureFlags { | - |
111 | CreateTexture_Alpha = 0x1, | - |
112 | CreateTexture_Atlas = 0x2, | - |
113 | CreateTexture_Mipmap = 0x4 | - |
114 | }; | - |
115 | - | |
116 | QSGRenderContext(QSGContext *context); | - |
117 | ~QSGRenderContext() override; | - |
118 | - | |
119 | QSGContext *sceneGraphContext() const { return executed 330989 times by 74 tests: m_sg;return m_sg; Executed by:
executed 330989 times by 74 tests: }return m_sg; Executed by:
| 330989 |
120 | virtual bool isValid() const { return executed 8 times by 1 test: true;return true; Executed by:
executed 8 times by 1 test: }return true; Executed by:
| 8 |
121 | - | |
122 | virtual void initialize(void *context); | - |
123 | virtual void invalidate(); | - |
124 | virtual void renderNextFrame(QSGRenderer *renderer, uint fboId) = 0; | - |
125 | virtual void endSync(); | - |
126 | - | |
127 | virtual QSGDistanceFieldGlyphCache *distanceFieldGlyphCache(const QRawFont &font); | - |
128 | QSGTexture *textureForFactory(QQuickTextureFactory *factory, QQuickWindow *window); | - |
129 | - | |
130 | virtual QSGTexture *createTexture(const QImage &image, uint flags = CreateTexture_Alpha) const = 0; | - |
131 | virtual QSGRenderer *createRenderer() = 0; | - |
132 | virtual QSGTexture *compressedTextureForFactory(const QSGCompressedTextureFactory *) const; | - |
133 | - | |
134 | virtual void setAttachToGraphicsContext(bool attach) { (void)attach;; } never executed: end of block | 0 |
135 | - | |
136 | virtual int maxTextureSize() const = 0; | - |
137 | - | |
138 | void registerFontengineForCleanup(QFontEngine *engine); | - |
139 | - | |
140 | public : | - |
141 | void initialized(); | - |
142 | void invalidated(); | - |
143 | - | |
144 | public : | - |
145 | void textureFactoryDestroyed(QObject *o); | - |
146 | - | |
147 | protected: | - |
148 | - | |
149 | QPointer<QSGContext> m_sg; | - |
150 | - | |
151 | QMutex m_mutex; | - |
152 | QHash<QQuickTextureFactory *, QSGTexture *> m_textures; | - |
153 | QSet<QSGTexture *> m_texturesToDelete; | - |
154 | QHash<QString, QSGDistanceFieldGlyphCache *> m_glyphCaches; | - |
155 | - | |
156 | QSet<QFontEngine *> m_fontEnginesToClean; | - |
157 | }; | - |
158 | - | |
159 | - | |
Switch to Source code | Preprocessed file |