OpenCoverage

qsgdefaultlayer_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgdefaultlayer_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6class QOpenGLFramebufferObject;-
7class QSGDepthStencilBuffer;-
8class QSGDefaultRenderContext;-
9-
10class __attribute__((visibility("default"))) QSGDefaultLayer : public QSGLayer-
11{-
12 public:-
13#pragma GCC diagnostic push-
14 -
15#pragma GCC diagnostic ignored "-Wsuggest-override"-
16 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:-
17#pragma GCC diagnostic ignored "-Wattributes"-
18 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
19#pragma GCC diagnostic pop-
20 struct QPrivateSignal {};-
21public:-
22 QSGDefaultLayer(QSGRenderContext *context);-
23 ~QSGDefaultLayer();-
24-
25 bool updateTexture() override;-
26-
27-
28 QSGNode *item() const { return
never executed: return m_item;
m_item;
never executed: return m_item;
}
0
29 void setItem(QSGNode *item) override;-
30-
31 QRectF rect() const { return
never executed: return m_rect;
m_rect;
never executed: return m_rect;
}
0
32 void setRect(const QRectF &rect) override;-
33-
34 QSize size() const { return
never executed: return m_size;
m_size;
never executed: return m_size;
}
0
35 void setSize(const QSize &size) override;-
36-
37 void setHasMipmaps(bool mipmap) override;-
38-
39 void bind() override;-
40-
41 bool hasAlphaChannel() const override;-
42 bool hasMipmaps() const override;-
43 int textureId() const override;-
44 QSize textureSize() const override { return
executed 31 times by 2 tests: return m_size;
Executed by:
  • tst_examples
  • tst_qquickitemlayer
m_size;
executed 31 times by 2 tests: return m_size;
Executed by:
  • tst_examples
  • tst_qquickitemlayer
}
31
45-
46 GLenum format() const { return
never executed: return m_format;
m_format;
never executed: return m_format;
}
0
47 void setFormat(GLenum format) override;-
48-
49 bool live() const { return
never executed: return bool(m_live);
bool(m_live);
never executed: return bool(m_live);
}
0
50 void setLive(bool live) override;-
51-
52 bool recursive() const { return
never executed: return bool(m_recursive);
bool(m_recursive);
never executed: return bool(m_recursive);
}
0
53 void setRecursive(bool recursive) override;-
54-
55 void setDevicePixelRatio(qreal ratio) override { m_device_pixel_ratio = ratio; }
executed 183 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
183
56-
57 bool mirrorHorizontal() const { return
never executed: return bool(m_mirrorHorizontal);
bool(m_mirrorHorizontal);
never executed: return bool(m_mirrorHorizontal);
}
0
58 void setMirrorHorizontal(bool mirror) override;-
59-
60 bool mirrorVertical() const { return
never executed: return bool(m_mirrorVertical);
bool(m_mirrorVertical);
never executed: return bool(m_mirrorVertical);
}
0
61 void setMirrorVertical(bool mirror) override;-
62-
63 void scheduleUpdate() override;-
64-
65 QImage toImage() const override;-
66-
67 QRectF normalizedTextureSubRect() const override;-
68-
69 int samples() const { return
never executed: return m_samples;
m_samples;
never executed: return m_samples;
}
0
70 void setSamples(int samples) override { m_samples = samples; }
executed 183 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
183
71-
72public :-
73 void markDirtyTexture() override;-
74 void invalidated() override;-
75-
76private:-
77 void grab();-
78-
79 QSGNode *m_item;-
80 QRectF m_rect;-
81 QSize m_size;-
82 qreal m_device_pixel_ratio;-
83 GLenum m_format;-
84-
85 QSGRenderer *m_renderer;-
86 QOpenGLFramebufferObject *m_fbo;-
87 QOpenGLFramebufferObject *m_secondaryFbo;-
88 QSharedPointer<QSGDepthStencilBuffer> m_depthStencilBuffer;-
89-
90 GLuint m_transparentTexture;-
91-
92-
93 QSGSimpleRectNode *m_debugOverlay;-
94-
95-
96 QSGDefaultRenderContext *m_context;-
97 int m_samples;-
98-
99 uint m_mipmap : 1;-
100 uint m_live : 1;-
101 uint m_recursive : 1;-
102 uint m_dirtyTexture : 1;-
103 uint m_multisamplingChecked : 1;-
104 uint m_multisampling : 1;-
105 uint m_grab : 1;-
106 uint m_mirrorHorizontal : 1;-
107 uint m_mirrorVertical : 1;-
108};-
109-
110-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0