OpenCoverage

qsgcontext_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgcontext_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7class QSGContextPrivate;-
8class QSGInternalRectangleNode;-
9class QSGInternalImageNode;-
10class QSGPainterNode;-
11class QSGGlyphNode;-
12class QSGRenderer;-
13class QSGDistanceFieldGlyphCache;-
14class QQuickWindow;-
15class QSGTexture;-
16class QSGMaterial;-
17class QSGRenderLoop;-
18class QSGLayer;-
19class QQuickTextureFactory;-
20class QSGCompressedTextureFactory;-
21class QSGContext;-
22class QQuickPaintedItem;-
23class QSGRendererInterface;-
24class QSGShaderEffectNode;-
25class QSGGuiThreadShaderEffectManager;-
26class QSGRectangleNode;-
27class QSGImageNode;-
28class QSGNinePatchNode;-
29class QSGSpriteNode;-
30class QSGRenderContext;-
31-
32extern const QLoggingCategory &QSG_LOG_TIME_RENDERLOOP();-
33extern const QLoggingCategory &QSG_LOG_TIME_COMPILATION();-
34extern const QLoggingCategory &QSG_LOG_TIME_TEXTURE();-
35extern const QLoggingCategory &QSG_LOG_TIME_GLYPH();-
36extern const QLoggingCategory &QSG_LOG_TIME_RENDERER();-
37-
38extern const QLoggingCategory &QSG_LOG_INFO();-
39extern const QLoggingCategory &QSG_LOG_RENDERLOOP();-
40-
41class __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-
53public:-
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-
98class __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 {};-
109public:-
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: return m_sg;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • ...
m_sg;
executed 330989 times by 74 tests: return m_sg;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgraphicsinfo
  • tst_qquickgravity
  • ...
}
330989
120 virtual bool isValid() const { return
executed 8 times by 1 test: return true;
Executed by:
  • tst_qquickshape
true;
executed 8 times by 1 test: return true;
Executed by:
  • tst_qquickshape
}
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-
140public :-
141 void initialized();-
142 void invalidated();-
143-
144public :-
145 void textureFactoryDestroyed(QObject *o);-
146-
147protected:-
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 codePreprocessed file

Generated by Squish Coco 4.2.0