Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultrendercontext_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QOpenGLContext; | - |
5 | class QSGMaterialShader; | - |
6 | class QOpenGLFramebufferObject; | - |
7 | - | |
8 | namespace QSGAtlasTexture { | - |
9 | class Manager; | - |
10 | } | - |
11 | - | |
12 | class __attribute__((visibility("default"))) QSGDefaultRenderContext : public QSGRenderContext | - |
13 | { | - |
14 | public: | - |
15 | #pragma GCC diagnostic push | - |
16 | - | |
17 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
18 | 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: | - |
19 | #pragma GCC diagnostic ignored "-Wattributes" | - |
20 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
21 | #pragma GCC diagnostic pop | - |
22 | struct QPrivateSignal {}; | - |
23 | public: | - |
24 | QSGDefaultRenderContext(QSGContext *context); | - |
25 | - | |
26 | QOpenGLContext *openglContext() const { return executed 268535 times by 76 tests: m_gl;return m_gl; Executed by:
executed 268535 times by 76 tests: }return m_gl; Executed by:
| 268535 |
27 | bool isValid() const override { return executed 6091 times by 17 tests: m_gl;return m_gl; Executed by:
executed 6091 times by 17 tests: }return m_gl; Executed by:
| 6091 |
28 | - | |
29 | void initialize(void *context) override; | - |
30 | void invalidate() override; | - |
31 | void renderNextFrame(QSGRenderer *renderer, uint fboId) override; | - |
32 | - | |
33 | QSGDistanceFieldGlyphCache *distanceFieldGlyphCache(const QRawFont &font) override; | - |
34 | - | |
35 | virtual QSharedPointer<QSGDepthStencilBuffer> depthStencilBufferForFbo(QOpenGLFramebufferObject *fbo); | - |
36 | QSGDepthStencilBufferManager *depthStencilBufferManager(); | - |
37 | - | |
38 | QSGTexture *createTexture(const QImage &image, uint flags) const override; | - |
39 | QSGRenderer *createRenderer() override; | - |
40 | QSGTexture *compressedTextureForFactory(const QSGCompressedTextureFactory *factory) const override; | - |
41 | - | |
42 | virtual void compileShader(QSGMaterialShader *shader, QSGMaterial *material, const char *vertexCode = nullptr, const char *fragmentCode = nullptr); | - |
43 | virtual void initializeShader(QSGMaterialShader *shader); | - |
44 | - | |
45 | void setAttachToGraphicsContext(bool attach) override; | - |
46 | - | |
47 | static QSGDefaultRenderContext *from(QOpenGLContext *context); | - |
48 | - | |
49 | bool hasBrokenIndexBufferObjects() const { return executed 275449 times by 70 tests: m_brokenIBOs;return m_brokenIBOs; Executed by:
executed 275449 times by 70 tests: }return m_brokenIBOs; Executed by:
| 275449 |
50 | int maxTextureSize() const override { return executed 327 times by 28 tests: m_maxTextureSize;return m_maxTextureSize; Executed by:
executed 327 times by 28 tests: }return m_maxTextureSize; Executed by:
| 327 |
51 | bool separateIndexBuffer() const; | - |
52 | - | |
53 | protected: | - |
54 | static QString fontKey(const QRawFont &font); | - |
55 | - | |
56 | QOpenGLContext *m_gl; | - |
57 | QSGDepthStencilBufferManager *m_depthStencilManager; | - |
58 | int m_maxTextureSize; | - |
59 | bool m_brokenIBOs; | - |
60 | bool m_serializedRender; | - |
61 | bool m_attachToGLContext; | - |
62 | QSGAtlasTexture::Manager *m_atlasManager; | - |
63 | }; | - |
64 | - | |
65 | - | |
Switch to Source code | Preprocessed file |