OpenCoverage

moc_qsgadaptationlayer_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qsgadaptationlayer_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QSGLayer_t {-
9 QByteArrayData data[6];-
10 char stringdata0[80];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QSGLayer_t qt_meta_stringdata_QSGLayer = {-
18 {-
19{ { { -1 } }, 8, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QSGLayer_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 15, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QSGLayer_t-
29, -
30stringdata0-
31) -
32+ 9 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QSGLayer_t-
36, -
37stringdata0-
38) -
39+ 25 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 24, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QSGLayer_t-
43, -
44stringdata0-
45) -
46+ 26 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 16, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QSGLayer_t-
50, -
51stringdata0-
52) -
53+ 51 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 11, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QSGLayer_t-
57, -
58stringdata0-
59) -
60+ 68 - 5 * sizeof(QByteArrayData)) }-
61-
62 },-
63 "QSGLayer\0updateRequested\0\0"-
64 "scheduledUpdateCompleted\0markDirtyTexture\0"-
65 "invalidated"-
66};-
67-
68-
69static const uint qt_meta_data_QSGLayer[] = {-
70-
71-
72 7,-
73 0,-
74 0, 0,-
75 4, 14,-
76 0, 0,-
77 0, 0,-
78 0, 0,-
79 0,-
80 2,-
81-
82-
83 1, 0, 34, 2, 0x06 ,-
84 3, 0, 35, 2, 0x06 ,-
85-
86-
87 4, 0, 36, 2, 0x0a ,-
88 5, 0, 37, 2, 0x0a ,-
89-
90-
91 QMetaType::Void,-
92 QMetaType::Void,-
93-
94-
95 QMetaType::Void,-
96 QMetaType::Void,-
97-
98 0-
99};-
100-
101void QSGLayer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
102{-
103 if (_c == QMetaObject::InvokeMetaMethod) {-
104 QSGLayer *_t = static_cast<QSGLayer *>(_o);-
105 (void)_t;-
106 switch (_id) {-
107 case 0: _t->updateRequested(); break;-
108 case 1: _t->scheduledUpdateCompleted(); break;-
109 case 2: _t->markDirtyTexture(); break;-
110 case 3: _t->invalidated(); break;-
111 default: ;-
112 }-
113 } else if (_c == QMetaObject::IndexOfMethod) {-
114 int *result = reinterpret_cast<int *>(_a[0]);-
115 {-
116 using _t = void (QSGLayer::*)();-
117 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSGLayer::updateRequested)) {-
118 *result = 0;-
119 return;-
120 }-
121 }-
122 {-
123 using _t = void (QSGLayer::*)();-
124 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSGLayer::scheduledUpdateCompleted)) {-
125 *result = 1;-
126 return;-
127 }-
128 }-
129 }-
130 (void)_a;;-
131}-
132-
133 const QMetaObject QSGLayer::staticMetaObject = {-
134 { &QSGDynamicTexture::staticMetaObject, qt_meta_stringdata_QSGLayer.data,-
135 qt_meta_data_QSGLayer, qt_static_metacall, nullptr, nullptr}-
136};-
137-
138-
139const QMetaObject *QSGLayer::metaObject() const-
140{-
141 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
142}-
143-
144void *QSGLayer::qt_metacast(const char *_clname)-
145{-
146 if (!_clname) return nullptr;-
147 if (!strcmp(_clname, qt_meta_stringdata_QSGLayer.stringdata0))-
148 return static_cast<void*>(this);-
149 return QSGDynamicTexture::qt_metacast(_clname);-
150}-
151-
152int QSGLayer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
153{-
154 _id = QSGDynamicTexture::qt_metacall(_c, _id, _a);-
155 if (_id < 0)-
156 return _id;-
157 if (_c == QMetaObject::InvokeMetaMethod) {-
158 if (_id < 4)-
159 qt_static_metacall(this, _c, _id, _a);-
160 _id -= 4;-
161 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
162 if (_id < 4)-
163 *reinterpret_cast<int*>(_a[0]) = -1;-
164 _id -= 4;-
165 }-
166 return _id;-
167}-
168-
169-
170void QSGLayer::updateRequested()-
171{-
172 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
173}
executed 608 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
608
174-
175-
176void QSGLayer::scheduledUpdateCompleted()-
177{-
178 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
179}
executed 85 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicktext
85
180struct qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t {-
181 QByteArrayData data[11];-
182 char stringdata0[139];-
183};-
184-
185-
186-
187-
188-
189static const qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t qt_meta_stringdata_QSGGuiThreadShaderEffectManager = {-
190 {-
191{ { { -1 } }, 31, 0, 0, qptrdiff(-
192__builtin_offsetof (-
193qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
194, -
195stringdata0-
196) -
197+ 0 - 0 * sizeof(QByteArrayData)) },-
198{ { { -1 } }, 18, 0, 0, qptrdiff(-
199__builtin_offsetof (-
200qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
201, -
202stringdata0-
203) -
204+ 32 - 1 * sizeof(QByteArrayData)) },-
205{ { { -1 } }, 0, 0, 0, qptrdiff(-
206__builtin_offsetof (-
207qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
208, -
209stringdata0-
210) -
211+ 51 - 2 * sizeof(QByteArrayData)) },-
212{ { { -1 } }, 2, 0, 0, qptrdiff(-
213__builtin_offsetof (-
214qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
215, -
216stringdata0-
217) -
218+ 52 - 3 * sizeof(QByteArrayData)) },-
219{ { { -1 } }, 16, 0, 0, qptrdiff(-
220__builtin_offsetof (-
221qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
222, -
223stringdata0-
224) -
225+ 55 - 4 * sizeof(QByteArrayData)) },-
226{ { { -1 } }, 8, 0, 0, qptrdiff(-
227__builtin_offsetof (-
228qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
229, -
230stringdata0-
231) -
232+ 72 - 5 * sizeof(QByteArrayData)) },-
233{ { { -1 } }, 3, 0, 0, qptrdiff(-
234__builtin_offsetof (-
235qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
236, -
237stringdata0-
238) -
239+ 81 - 6 * sizeof(QByteArrayData)) },-
240{ { { -1 } }, 11, 0, 0, qptrdiff(-
241__builtin_offsetof (-
242qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
243, -
244stringdata0-
245) -
246+ 85 - 7 * sizeof(QByteArrayData)) },-
247{ { { -1 } }, 6, 0, 0, qptrdiff(-
248__builtin_offsetof (-
249qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
250, -
251stringdata0-
252) -
253+ 97 - 8 * sizeof(QByteArrayData)) },-
254{ { { -1 } }, 14, 0, 0, qptrdiff(-
255__builtin_offsetof (-
256qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
257, -
258stringdata0-
259) -
260+ 104 - 9 * sizeof(QByteArrayData)) },-
261{ { { -1 } }, 19, 0, 0, qptrdiff(-
262__builtin_offsetof (-
263qt_meta_stringdata_QSGGuiThreadShaderEffectManager_t-
264, -
265stringdata0-
266) -
267+ 119 - 10 * sizeof(QByteArrayData)) }-
268-
269 },-
270 "QSGGuiThreadShaderEffectManager\0"-
271 "shaderCodePrepared\0\0ok\0ShaderInfo::Type\0"-
272 "typeHint\0src\0ShaderInfo*\0result\0"-
273 "textureChanged\0logAndStatusChanged"-
274};-
275-
276-
277static const uint qt_meta_data_QSGGuiThreadShaderEffectManager[] = {-
278-
279-
280 7,-
281 0,-
282 0, 0,-
283 3, 14,-
284 0, 0,-
285 0, 0,-
286 0, 0,-
287 0,-
288 3,-
289-
290-
291 1, 4, 29, 2, 0x06 ,-
292 9, 0, 38, 2, 0x06 ,-
293 10, 0, 39, 2, 0x06 ,-
294-
295-
296 QMetaType::Void, QMetaType::Bool, 0x80000000 | 4, QMetaType::QByteArray, 0x80000000 | 7, 3, 5, 6, 8,-
297 QMetaType::Void,-
298 QMetaType::Void,-
299-
300 0-
301};-
302-
303void QSGGuiThreadShaderEffectManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
304{-
305 if (_c == QMetaObject::InvokeMetaMethod) {-
306 QSGGuiThreadShaderEffectManager *_t = static_cast<QSGGuiThreadShaderEffectManager *>(_o);-
307 (void)_t;-
308 switch (_id) {-
309 case 0: _t->shaderCodePrepared((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< ShaderInfo::Type(*)>(_a[2])),(*reinterpret_cast< const QByteArray(*)>(_a[3])),(*reinterpret_cast< ShaderInfo*(*)>(_a[4]))); break;-
310 case 1: _t->textureChanged(); break;-
311 case 2: _t->logAndStatusChanged(); break;-
312 default: ;-
313 }-
314 } else if (_c == QMetaObject::IndexOfMethod) {-
315 int *result = reinterpret_cast<int *>(_a[0]);-
316 {-
317 using _t = void (QSGGuiThreadShaderEffectManager::*)(bool , ShaderInfo::Type , const QByteArray & , ShaderInfo * );-
318 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSGGuiThreadShaderEffectManager::shaderCodePrepared)) {-
319 *result = 0;-
320 return;-
321 }-
322 }-
323 {-
324 using _t = void (QSGGuiThreadShaderEffectManager::*)();-
325 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSGGuiThreadShaderEffectManager::textureChanged)) {-
326 *result = 1;-
327 return;-
328 }-
329 }-
330 {-
331 using _t = void (QSGGuiThreadShaderEffectManager::*)();-
332 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSGGuiThreadShaderEffectManager::logAndStatusChanged)) {-
333 *result = 2;-
334 return;-
335 }-
336 }-
337 }-
338}-
339-
340 const QMetaObject QSGGuiThreadShaderEffectManager::staticMetaObject = {-
341 { &QObject::staticMetaObject, qt_meta_stringdata_QSGGuiThreadShaderEffectManager.data,-
342 qt_meta_data_QSGGuiThreadShaderEffectManager, qt_static_metacall, nullptr, nullptr}-
343};-
344-
345-
346const QMetaObject *QSGGuiThreadShaderEffectManager::metaObject() const-
347{-
348 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
349}-
350-
351void *QSGGuiThreadShaderEffectManager::qt_metacast(const char *_clname)-
352{-
353 if (!_clname) return nullptr;-
354 if (!strcmp(_clname, qt_meta_stringdata_QSGGuiThreadShaderEffectManager.stringdata0))-
355 return static_cast<void*>(this);-
356 return QObject::qt_metacast(_clname);-
357}-
358-
359int QSGGuiThreadShaderEffectManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
360{-
361 _id = QObject::qt_metacall(_c, _id, _a);-
362 if (_id < 0)-
363 return _id;-
364 if (_c == QMetaObject::InvokeMetaMethod) {-
365 if (_id < 3)-
366 qt_static_metacall(this, _c, _id, _a);-
367 _id -= 3;-
368 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
369 if (_id < 3)-
370 *reinterpret_cast<int*>(_a[0]) = -1;-
371 _id -= 3;-
372 }-
373 return _id;-
374}-
375-
376-
377void QSGGuiThreadShaderEffectManager::shaderCodePrepared(bool _t1, ShaderInfo::Type _t2, const QByteArray & _t3, ShaderInfo * _t4)-
378{-
379 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };-
380 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
381}
never executed: end of block
0
382-
383-
384void QSGGuiThreadShaderEffectManager::textureChanged()-
385{-
386 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
387}
never executed: end of block
0
388-
389-
390void QSGGuiThreadShaderEffectManager::logAndStatusChanged()-
391{-
392 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
393}
never executed: end of block
0
394-
395#pragma GCC diagnostic pop-
396-
397-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0