/work/obj-fuzz/ipc/ipdl/GraphicsMessages.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/gfx/GraphicsMessages.h" |
8 | | |
9 | | |
10 | | //----------------------------------------------------------------------------- |
11 | | // Method definitions for the IPDL type |union GfxPrefValue| |
12 | | // |
13 | | namespace mozilla { |
14 | | namespace gfx { |
15 | | auto GfxPrefValue::MaybeDestroy(Type aNewType) -> bool |
16 | 0 | { |
17 | 0 | if ((mType) == (T__None)) { |
18 | 0 | return true; |
19 | 0 | } |
20 | 0 | if ((mType) == (aNewType)) { |
21 | 0 | return false; |
22 | 0 | } |
23 | 0 | switch (mType) { |
24 | 0 | case Tbool: |
25 | 0 | { |
26 | 0 | (ptr_bool())->~bool__tdef(); |
27 | 0 | break; |
28 | 0 | } |
29 | 0 | case Tint32_t: |
30 | 0 | { |
31 | 0 | (ptr_int32_t())->~int32_t__tdef(); |
32 | 0 | break; |
33 | 0 | } |
34 | 0 | case Tuint32_t: |
35 | 0 | { |
36 | 0 | (ptr_uint32_t())->~uint32_t__tdef(); |
37 | 0 | break; |
38 | 0 | } |
39 | 0 | case Tfloat: |
40 | 0 | { |
41 | 0 | (ptr_float())->~float__tdef(); |
42 | 0 | break; |
43 | 0 | } |
44 | 0 | case TnsCString: |
45 | 0 | { |
46 | 0 | (ptr_nsCString())->~nsCString__tdef(); |
47 | 0 | break; |
48 | 0 | } |
49 | 0 | default: |
50 | 0 | { |
51 | 0 | mozilla::ipc::LogicError("not reached"); |
52 | 0 | break; |
53 | 0 | } |
54 | 0 | } |
55 | 0 | return true; |
56 | 0 | } |
57 | | |
58 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const bool& aOther) |
59 | 0 | { |
60 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(aOther); |
61 | 0 | mType = Tbool; |
62 | 0 | } |
63 | | |
64 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(bool&& aOther) |
65 | 0 | { |
66 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(std::move(aOther)); |
67 | 0 | mType = Tbool; |
68 | 0 | } |
69 | | |
70 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const int32_t& aOther) |
71 | 0 | { |
72 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(aOther); |
73 | 0 | mType = Tint32_t; |
74 | 0 | } |
75 | | |
76 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(int32_t&& aOther) |
77 | 0 | { |
78 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(std::move(aOther)); |
79 | 0 | mType = Tint32_t; |
80 | 0 | } |
81 | | |
82 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const uint32_t& aOther) |
83 | 0 | { |
84 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t(aOther); |
85 | 0 | mType = Tuint32_t; |
86 | 0 | } |
87 | | |
88 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(uint32_t&& aOther) |
89 | 0 | { |
90 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t(std::move(aOther)); |
91 | 0 | mType = Tuint32_t; |
92 | 0 | } |
93 | | |
94 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const float& aOther) |
95 | 0 | { |
96 | 0 | new (mozilla::KnownNotNull, ptr_float()) float(aOther); |
97 | 0 | mType = Tfloat; |
98 | 0 | } |
99 | | |
100 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(float&& aOther) |
101 | 0 | { |
102 | 0 | new (mozilla::KnownNotNull, ptr_float()) float(std::move(aOther)); |
103 | 0 | mType = Tfloat; |
104 | 0 | } |
105 | | |
106 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const nsCString& aOther) |
107 | 0 | { |
108 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(aOther); |
109 | 0 | mType = TnsCString; |
110 | 0 | } |
111 | | |
112 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(nsCString&& aOther) |
113 | 0 | { |
114 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(std::move(aOther)); |
115 | 0 | mType = TnsCString; |
116 | 0 | } |
117 | | |
118 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(const GfxPrefValue& aOther) |
119 | 0 | { |
120 | 0 | (aOther).AssertSanity(); |
121 | 0 | switch ((aOther).type()) { |
122 | 0 | case Tbool: |
123 | 0 | { |
124 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool((aOther).get_bool()); |
125 | 0 | break; |
126 | 0 | } |
127 | 0 | case Tint32_t: |
128 | 0 | { |
129 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t((aOther).get_int32_t()); |
130 | 0 | break; |
131 | 0 | } |
132 | 0 | case Tuint32_t: |
133 | 0 | { |
134 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t((aOther).get_uint32_t()); |
135 | 0 | break; |
136 | 0 | } |
137 | 0 | case Tfloat: |
138 | 0 | { |
139 | 0 | new (mozilla::KnownNotNull, ptr_float()) float((aOther).get_float()); |
140 | 0 | break; |
141 | 0 | } |
142 | 0 | case TnsCString: |
143 | 0 | { |
144 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString((aOther).get_nsCString()); |
145 | 0 | break; |
146 | 0 | } |
147 | 0 | case T__None: |
148 | 0 | { |
149 | 0 | break; |
150 | 0 | } |
151 | 0 | default: |
152 | 0 | { |
153 | 0 | mozilla::ipc::LogicError("unreached"); |
154 | 0 | return; |
155 | 0 | } |
156 | 0 | } |
157 | 0 | mType = (aOther).type(); |
158 | 0 | } |
159 | | |
160 | | MOZ_IMPLICIT GfxPrefValue::GfxPrefValue(GfxPrefValue&& aOther) |
161 | 0 | { |
162 | 0 | (aOther).AssertSanity(); |
163 | 0 | Type t = (aOther).type(); |
164 | 0 | switch (t) { |
165 | 0 | case Tbool: |
166 | 0 | { |
167 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(std::move((aOther).get_bool())); |
168 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
169 | 0 | break; |
170 | 0 | } |
171 | 0 | case Tint32_t: |
172 | 0 | { |
173 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(std::move((aOther).get_int32_t())); |
174 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
175 | 0 | break; |
176 | 0 | } |
177 | 0 | case Tuint32_t: |
178 | 0 | { |
179 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t(std::move((aOther).get_uint32_t())); |
180 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
181 | 0 | break; |
182 | 0 | } |
183 | 0 | case Tfloat: |
184 | 0 | { |
185 | 0 | new (mozilla::KnownNotNull, ptr_float()) float(std::move((aOther).get_float())); |
186 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
187 | 0 | break; |
188 | 0 | } |
189 | 0 | case TnsCString: |
190 | 0 | { |
191 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(std::move((aOther).get_nsCString())); |
192 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
193 | 0 | break; |
194 | 0 | } |
195 | 0 | case T__None: |
196 | 0 | { |
197 | 0 | break; |
198 | 0 | } |
199 | 0 | default: |
200 | 0 | { |
201 | 0 | mozilla::ipc::LogicError("unreached"); |
202 | 0 | return; |
203 | 0 | } |
204 | 0 | } |
205 | 0 | (aOther).mType = T__None; |
206 | 0 | mType = t; |
207 | 0 | } |
208 | | |
209 | | GfxPrefValue::~GfxPrefValue() |
210 | 0 | { |
211 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
212 | 0 | } |
213 | | |
214 | | auto GfxPrefValue::operator=(const bool& aRhs) -> GfxPrefValue& |
215 | 0 | { |
216 | 0 | if (MaybeDestroy(Tbool)) { |
217 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
218 | 0 | } |
219 | 0 | (*(ptr_bool())) = aRhs; |
220 | 0 | mType = Tbool; |
221 | 0 | return (*(this)); |
222 | 0 | } |
223 | | |
224 | | auto GfxPrefValue::operator=(bool&& aRhs) -> GfxPrefValue& |
225 | 0 | { |
226 | 0 | if (MaybeDestroy(Tbool)) { |
227 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
228 | 0 | } |
229 | 0 | (*(ptr_bool())) = std::move(aRhs); |
230 | 0 | mType = Tbool; |
231 | 0 | return (*(this)); |
232 | 0 | } |
233 | | |
234 | | auto GfxPrefValue::operator=(const int32_t& aRhs) -> GfxPrefValue& |
235 | 0 | { |
236 | 0 | if (MaybeDestroy(Tint32_t)) { |
237 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
238 | 0 | } |
239 | 0 | (*(ptr_int32_t())) = aRhs; |
240 | 0 | mType = Tint32_t; |
241 | 0 | return (*(this)); |
242 | 0 | } |
243 | | |
244 | | auto GfxPrefValue::operator=(int32_t&& aRhs) -> GfxPrefValue& |
245 | 0 | { |
246 | 0 | if (MaybeDestroy(Tint32_t)) { |
247 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
248 | 0 | } |
249 | 0 | (*(ptr_int32_t())) = std::move(aRhs); |
250 | 0 | mType = Tint32_t; |
251 | 0 | return (*(this)); |
252 | 0 | } |
253 | | |
254 | | auto GfxPrefValue::operator=(const uint32_t& aRhs) -> GfxPrefValue& |
255 | 0 | { |
256 | 0 | if (MaybeDestroy(Tuint32_t)) { |
257 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t; |
258 | 0 | } |
259 | 0 | (*(ptr_uint32_t())) = aRhs; |
260 | 0 | mType = Tuint32_t; |
261 | 0 | return (*(this)); |
262 | 0 | } |
263 | | |
264 | | auto GfxPrefValue::operator=(uint32_t&& aRhs) -> GfxPrefValue& |
265 | 0 | { |
266 | 0 | if (MaybeDestroy(Tuint32_t)) { |
267 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t; |
268 | 0 | } |
269 | 0 | (*(ptr_uint32_t())) = std::move(aRhs); |
270 | 0 | mType = Tuint32_t; |
271 | 0 | return (*(this)); |
272 | 0 | } |
273 | | |
274 | | auto GfxPrefValue::operator=(const float& aRhs) -> GfxPrefValue& |
275 | 0 | { |
276 | 0 | if (MaybeDestroy(Tfloat)) { |
277 | 0 | new (mozilla::KnownNotNull, ptr_float()) float; |
278 | 0 | } |
279 | 0 | (*(ptr_float())) = aRhs; |
280 | 0 | mType = Tfloat; |
281 | 0 | return (*(this)); |
282 | 0 | } |
283 | | |
284 | | auto GfxPrefValue::operator=(float&& aRhs) -> GfxPrefValue& |
285 | 0 | { |
286 | 0 | if (MaybeDestroy(Tfloat)) { |
287 | 0 | new (mozilla::KnownNotNull, ptr_float()) float; |
288 | 0 | } |
289 | 0 | (*(ptr_float())) = std::move(aRhs); |
290 | 0 | mType = Tfloat; |
291 | 0 | return (*(this)); |
292 | 0 | } |
293 | | |
294 | | auto GfxPrefValue::operator=(const nsCString& aRhs) -> GfxPrefValue& |
295 | 0 | { |
296 | 0 | if (MaybeDestroy(TnsCString)) { |
297 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
298 | 0 | } |
299 | 0 | (*(ptr_nsCString())) = aRhs; |
300 | 0 | mType = TnsCString; |
301 | 0 | return (*(this)); |
302 | 0 | } |
303 | | |
304 | | auto GfxPrefValue::operator=(nsCString&& aRhs) -> GfxPrefValue& |
305 | 0 | { |
306 | 0 | if (MaybeDestroy(TnsCString)) { |
307 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
308 | 0 | } |
309 | 0 | (*(ptr_nsCString())) = std::move(aRhs); |
310 | 0 | mType = TnsCString; |
311 | 0 | return (*(this)); |
312 | 0 | } |
313 | | |
314 | | auto GfxPrefValue::operator=(const GfxPrefValue& aRhs) -> GfxPrefValue& |
315 | 0 | { |
316 | 0 | (aRhs).AssertSanity(); |
317 | 0 | Type t = (aRhs).type(); |
318 | 0 | switch (t) { |
319 | 0 | case Tbool: |
320 | 0 | { |
321 | 0 | if (MaybeDestroy(t)) { |
322 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
323 | 0 | } |
324 | 0 | (*(ptr_bool())) = (aRhs).get_bool(); |
325 | 0 | break; |
326 | 0 | } |
327 | 0 | case Tint32_t: |
328 | 0 | { |
329 | 0 | if (MaybeDestroy(t)) { |
330 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
331 | 0 | } |
332 | 0 | (*(ptr_int32_t())) = (aRhs).get_int32_t(); |
333 | 0 | break; |
334 | 0 | } |
335 | 0 | case Tuint32_t: |
336 | 0 | { |
337 | 0 | if (MaybeDestroy(t)) { |
338 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t; |
339 | 0 | } |
340 | 0 | (*(ptr_uint32_t())) = (aRhs).get_uint32_t(); |
341 | 0 | break; |
342 | 0 | } |
343 | 0 | case Tfloat: |
344 | 0 | { |
345 | 0 | if (MaybeDestroy(t)) { |
346 | 0 | new (mozilla::KnownNotNull, ptr_float()) float; |
347 | 0 | } |
348 | 0 | (*(ptr_float())) = (aRhs).get_float(); |
349 | 0 | break; |
350 | 0 | } |
351 | 0 | case TnsCString: |
352 | 0 | { |
353 | 0 | if (MaybeDestroy(t)) { |
354 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
355 | 0 | } |
356 | 0 | (*(ptr_nsCString())) = (aRhs).get_nsCString(); |
357 | 0 | break; |
358 | 0 | } |
359 | 0 | case T__None: |
360 | 0 | { |
361 | 0 | static_cast<void>(MaybeDestroy(t)); |
362 | 0 | break; |
363 | 0 | } |
364 | 0 | default: |
365 | 0 | { |
366 | 0 | mozilla::ipc::LogicError("unreached"); |
367 | 0 | break; |
368 | 0 | } |
369 | 0 | } |
370 | 0 | mType = t; |
371 | 0 | return (*(this)); |
372 | 0 | } |
373 | | |
374 | | auto GfxPrefValue::operator=(GfxPrefValue&& aRhs) -> GfxPrefValue& |
375 | 0 | { |
376 | 0 | (aRhs).AssertSanity(); |
377 | 0 | Type t = (aRhs).type(); |
378 | 0 | switch (t) { |
379 | 0 | case Tbool: |
380 | 0 | { |
381 | 0 | if (MaybeDestroy(t)) { |
382 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
383 | 0 | } |
384 | 0 | (*(ptr_bool())) = std::move((aRhs).get_bool()); |
385 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
386 | 0 | break; |
387 | 0 | } |
388 | 0 | case Tint32_t: |
389 | 0 | { |
390 | 0 | if (MaybeDestroy(t)) { |
391 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
392 | 0 | } |
393 | 0 | (*(ptr_int32_t())) = std::move((aRhs).get_int32_t()); |
394 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
395 | 0 | break; |
396 | 0 | } |
397 | 0 | case Tuint32_t: |
398 | 0 | { |
399 | 0 | if (MaybeDestroy(t)) { |
400 | 0 | new (mozilla::KnownNotNull, ptr_uint32_t()) uint32_t; |
401 | 0 | } |
402 | 0 | (*(ptr_uint32_t())) = std::move((aRhs).get_uint32_t()); |
403 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
404 | 0 | break; |
405 | 0 | } |
406 | 0 | case Tfloat: |
407 | 0 | { |
408 | 0 | if (MaybeDestroy(t)) { |
409 | 0 | new (mozilla::KnownNotNull, ptr_float()) float; |
410 | 0 | } |
411 | 0 | (*(ptr_float())) = std::move((aRhs).get_float()); |
412 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
413 | 0 | break; |
414 | 0 | } |
415 | 0 | case TnsCString: |
416 | 0 | { |
417 | 0 | if (MaybeDestroy(t)) { |
418 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
419 | 0 | } |
420 | 0 | (*(ptr_nsCString())) = std::move((aRhs).get_nsCString()); |
421 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
422 | 0 | break; |
423 | 0 | } |
424 | 0 | case T__None: |
425 | 0 | { |
426 | 0 | static_cast<void>(MaybeDestroy(t)); |
427 | 0 | break; |
428 | 0 | } |
429 | 0 | default: |
430 | 0 | { |
431 | 0 | mozilla::ipc::LogicError("unreached"); |
432 | 0 | break; |
433 | 0 | } |
434 | 0 | } |
435 | 0 | (aRhs).mType = T__None; |
436 | 0 | mType = t; |
437 | 0 | return (*(this)); |
438 | 0 | } |
439 | | |
440 | | auto GfxPrefValue::operator==(const bool& aRhs) const -> bool |
441 | 0 | { |
442 | 0 | return (get_bool()) == (aRhs); |
443 | 0 | } |
444 | | |
445 | | auto GfxPrefValue::operator==(const int32_t& aRhs) const -> bool |
446 | 0 | { |
447 | 0 | return (get_int32_t()) == (aRhs); |
448 | 0 | } |
449 | | |
450 | | auto GfxPrefValue::operator==(const uint32_t& aRhs) const -> bool |
451 | 0 | { |
452 | 0 | return (get_uint32_t()) == (aRhs); |
453 | 0 | } |
454 | | |
455 | | auto GfxPrefValue::operator==(const float& aRhs) const -> bool |
456 | 0 | { |
457 | 0 | return (get_float()) == (aRhs); |
458 | 0 | } |
459 | | |
460 | | auto GfxPrefValue::operator==(const nsCString& aRhs) const -> bool |
461 | 0 | { |
462 | 0 | return (get_nsCString()) == (aRhs); |
463 | 0 | } |
464 | | |
465 | | auto GfxPrefValue::operator==(const GfxPrefValue& aRhs) const -> bool |
466 | 0 | { |
467 | 0 | if ((type()) != ((aRhs).type())) { |
468 | 0 | return false; |
469 | 0 | } |
470 | 0 | |
471 | 0 | switch (type()) { |
472 | 0 | case Tbool: |
473 | 0 | { |
474 | 0 | return (get_bool()) == ((aRhs).get_bool()); |
475 | 0 | } |
476 | 0 | case Tint32_t: |
477 | 0 | { |
478 | 0 | return (get_int32_t()) == ((aRhs).get_int32_t()); |
479 | 0 | } |
480 | 0 | case Tuint32_t: |
481 | 0 | { |
482 | 0 | return (get_uint32_t()) == ((aRhs).get_uint32_t()); |
483 | 0 | } |
484 | 0 | case Tfloat: |
485 | 0 | { |
486 | 0 | return (get_float()) == ((aRhs).get_float()); |
487 | 0 | } |
488 | 0 | case TnsCString: |
489 | 0 | { |
490 | 0 | return (get_nsCString()) == ((aRhs).get_nsCString()); |
491 | 0 | } |
492 | 0 | default: |
493 | 0 | { |
494 | 0 | mozilla::ipc::LogicError("unreached"); |
495 | 0 | return false; |
496 | 0 | } |
497 | 0 | } |
498 | 0 | } |
499 | | |
500 | | auto GfxPrefValue::get(bool* aOutValue) const -> void |
501 | 0 | { |
502 | 0 | (*(aOutValue)) = get_bool(); |
503 | 0 | } |
504 | | |
505 | | auto GfxPrefValue::get(int32_t* aOutValue) const -> void |
506 | 0 | { |
507 | 0 | (*(aOutValue)) = get_int32_t(); |
508 | 0 | } |
509 | | |
510 | | auto GfxPrefValue::get(uint32_t* aOutValue) const -> void |
511 | 0 | { |
512 | 0 | (*(aOutValue)) = get_uint32_t(); |
513 | 0 | } |
514 | | |
515 | | auto GfxPrefValue::get(float* aOutValue) const -> void |
516 | 0 | { |
517 | 0 | (*(aOutValue)) = get_float(); |
518 | 0 | } |
519 | | |
520 | | auto GfxPrefValue::get(nsCString* aOutValue) const -> void |
521 | 0 | { |
522 | 0 | (*(aOutValue)) = get_nsCString(); |
523 | 0 | } |
524 | | |
525 | | } // namespace gfx |
526 | | } // namespace mozilla |
527 | | |
528 | | namespace mozilla { |
529 | | namespace ipc { |
530 | | auto IPDLParamTraits<mozilla::gfx::GfxPrefValue>::Write( |
531 | | IPC::Message* aMsg, |
532 | | mozilla::ipc::IProtocol* aActor, |
533 | | const paramType& aVar) -> void |
534 | | { |
535 | | typedef mozilla::gfx::GfxPrefValue union__; |
536 | | int type; |
537 | | type = (aVar).type(); |
538 | | WriteIPDLParam(aMsg, aActor, type); |
539 | | // Sentinel = 'GfxPrefValue' |
540 | | (aMsg)->WriteSentinel(930246921); |
541 | | |
542 | | switch (type) { |
543 | | case union__::Tbool: |
544 | | { |
545 | | WriteIPDLParam(aMsg, aActor, (aVar).get_bool()); |
546 | | // Sentinel = 'Tbool' |
547 | | (aMsg)->WriteSentinel(1958350201); |
548 | | return; |
549 | | } |
550 | | case union__::Tint32_t: |
551 | | { |
552 | | WriteIPDLParam(aMsg, aActor, (aVar).get_int32_t()); |
553 | | // Sentinel = 'Tint32_t' |
554 | | (aMsg)->WriteSentinel(4219052577); |
555 | | return; |
556 | | } |
557 | | case union__::Tuint32_t: |
558 | | { |
559 | | WriteIPDLParam(aMsg, aActor, (aVar).get_uint32_t()); |
560 | | // Sentinel = 'Tuint32_t' |
561 | | (aMsg)->WriteSentinel(2137600675); |
562 | | return; |
563 | | } |
564 | | case union__::Tfloat: |
565 | | { |
566 | | WriteIPDLParam(aMsg, aActor, (aVar).get_float()); |
567 | | // Sentinel = 'Tfloat' |
568 | | (aMsg)->WriteSentinel(2693237468); |
569 | | return; |
570 | | } |
571 | | case union__::TnsCString: |
572 | | { |
573 | | WriteIPDLParam(aMsg, aActor, (aVar).get_nsCString()); |
574 | | // Sentinel = 'TnsCString' |
575 | | (aMsg)->WriteSentinel(2427411293); |
576 | | return; |
577 | | } |
578 | | default: |
579 | | { |
580 | | (aActor)->FatalError("unknown union type"); |
581 | | return; |
582 | | } |
583 | | } |
584 | | } |
585 | | |
586 | | auto IPDLParamTraits<mozilla::gfx::GfxPrefValue>::Read( |
587 | | const IPC::Message* aMsg, |
588 | | PickleIterator* aIter, |
589 | | mozilla::ipc::IProtocol* aActor, |
590 | | paramType* aVar) -> bool |
591 | 0 | { |
592 | 0 | typedef mozilla::gfx::GfxPrefValue union__; |
593 | 0 | int type; |
594 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
595 | 0 | (aActor)->FatalError("Error deserializing type of union GfxPrefValue"); |
596 | 0 | return false; |
597 | 0 | } |
598 | 0 | // Sentinel = 'GfxPrefValue' |
599 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 930246921)))) { |
600 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union GfxPrefValue"); |
601 | 0 | return false; |
602 | 0 | } |
603 | 0 | |
604 | 0 | switch (type) { |
605 | 0 | case union__::Tbool: |
606 | 0 | { |
607 | 0 | bool tmp = bool(); |
608 | 0 | (*(aVar)) = tmp; |
609 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_bool())))))) { |
610 | 0 | (aActor)->FatalError("Error deserializing variant Tbool of union GfxPrefValue"); |
611 | 0 | return false; |
612 | 0 | } |
613 | 0 | // Sentinel = 'Tbool' |
614 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1958350201)))) { |
615 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tbool of union GfxPrefValue"); |
616 | 0 | return false; |
617 | 0 | } |
618 | 0 | return true; |
619 | 0 | } |
620 | 0 | case union__::Tint32_t: |
621 | 0 | { |
622 | 0 | int32_t tmp = int32_t(); |
623 | 0 | (*(aVar)) = tmp; |
624 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_int32_t())))))) { |
625 | 0 | (aActor)->FatalError("Error deserializing variant Tint32_t of union GfxPrefValue"); |
626 | 0 | return false; |
627 | 0 | } |
628 | 0 | // Sentinel = 'Tint32_t' |
629 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4219052577)))) { |
630 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tint32_t of union GfxPrefValue"); |
631 | 0 | return false; |
632 | 0 | } |
633 | 0 | return true; |
634 | 0 | } |
635 | 0 | case union__::Tuint32_t: |
636 | 0 | { |
637 | 0 | uint32_t tmp = uint32_t(); |
638 | 0 | (*(aVar)) = tmp; |
639 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_uint32_t())))))) { |
640 | 0 | (aActor)->FatalError("Error deserializing variant Tuint32_t of union GfxPrefValue"); |
641 | 0 | return false; |
642 | 0 | } |
643 | 0 | // Sentinel = 'Tuint32_t' |
644 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2137600675)))) { |
645 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tuint32_t of union GfxPrefValue"); |
646 | 0 | return false; |
647 | 0 | } |
648 | 0 | return true; |
649 | 0 | } |
650 | 0 | case union__::Tfloat: |
651 | 0 | { |
652 | 0 | float tmp = float(); |
653 | 0 | (*(aVar)) = tmp; |
654 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_float())))))) { |
655 | 0 | (aActor)->FatalError("Error deserializing variant Tfloat of union GfxPrefValue"); |
656 | 0 | return false; |
657 | 0 | } |
658 | 0 | // Sentinel = 'Tfloat' |
659 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2693237468)))) { |
660 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tfloat of union GfxPrefValue"); |
661 | 0 | return false; |
662 | 0 | } |
663 | 0 | return true; |
664 | 0 | } |
665 | 0 | case union__::TnsCString: |
666 | 0 | { |
667 | 0 | nsCString tmp = nsCString(); |
668 | 0 | (*(aVar)) = tmp; |
669 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsCString())))))) { |
670 | 0 | (aActor)->FatalError("Error deserializing variant TnsCString of union GfxPrefValue"); |
671 | 0 | return false; |
672 | 0 | } |
673 | 0 | // Sentinel = 'TnsCString' |
674 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2427411293)))) { |
675 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TnsCString of union GfxPrefValue"); |
676 | 0 | return false; |
677 | 0 | } |
678 | 0 | return true; |
679 | 0 | } |
680 | 0 | default: |
681 | 0 | { |
682 | 0 | (aActor)->FatalError("unknown union type"); |
683 | 0 | return false; |
684 | 0 | } |
685 | 0 | } |
686 | 0 | } |
687 | | |
688 | | } // namespace ipc |
689 | | } // namespace mozilla |
690 | | |
691 | | //----------------------------------------------------------------------------- |
692 | | // Method definitions for the IPDL type |struct GfxPrefSetting| |
693 | | // |
694 | | namespace mozilla { |
695 | | namespace gfx { |
696 | | auto GfxPrefSetting::operator==(const GfxPrefSetting& _o) const -> bool |
697 | 0 | { |
698 | 0 | if ((!((index()) == ((_o).index())))) { |
699 | 0 | return false; |
700 | 0 | } |
701 | 0 | if ((!((value()) == ((_o).value())))) { |
702 | 0 | return false; |
703 | 0 | } |
704 | 0 | return true; |
705 | 0 | } |
706 | | |
707 | | auto GfxPrefSetting::operator!=(const GfxPrefSetting& _o) const -> bool |
708 | 0 | { |
709 | 0 | return (!(operator==(_o))); |
710 | 0 | } |
711 | | |
712 | | } // namespace gfx |
713 | | } // namespace mozilla |
714 | | |
715 | | namespace mozilla { |
716 | | namespace ipc { |
717 | | auto IPDLParamTraits<mozilla::gfx::GfxPrefSetting>::Write( |
718 | | IPC::Message* aMsg, |
719 | | mozilla::ipc::IProtocol* aActor, |
720 | | const paramType& aVar) -> void |
721 | 0 | { |
722 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).index()); |
723 | 0 | // Sentinel = 'index' |
724 | 0 | (aMsg)->WriteSentinel(2111871137); |
725 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).value()); |
726 | 0 | // Sentinel = 'value' |
727 | 0 | (aMsg)->WriteSentinel(3456818542); |
728 | 0 | } |
729 | | |
730 | | auto IPDLParamTraits<mozilla::gfx::GfxPrefSetting>::Read( |
731 | | const IPC::Message* aMsg, |
732 | | PickleIterator* aIter, |
733 | | mozilla::ipc::IProtocol* aActor, |
734 | | paramType* aVar) -> bool |
735 | 0 | { |
736 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->index())))))) { |
737 | 0 | (aActor)->FatalError("Error deserializing 'index' (int32_t) member of 'GfxPrefSetting'"); |
738 | 0 | return false; |
739 | 0 | } |
740 | 0 | // Sentinel = 'index' |
741 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2111871137)))) { |
742 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'index' (int32_t) member of 'GfxPrefSetting'"); |
743 | 0 | return false; |
744 | 0 | } |
745 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->value())))))) { |
746 | 0 | (aActor)->FatalError("Error deserializing 'value' (GfxPrefValue) member of 'GfxPrefSetting'"); |
747 | 0 | return false; |
748 | 0 | } |
749 | 0 | // Sentinel = 'value' |
750 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3456818542)))) { |
751 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'value' (GfxPrefValue) member of 'GfxPrefSetting'"); |
752 | 0 | return false; |
753 | 0 | } |
754 | 0 | return true; |
755 | 0 | } |
756 | | |
757 | | } // namespace ipc |
758 | | } // namespace mozilla |
759 | | |
760 | | //----------------------------------------------------------------------------- |
761 | | // Method definitions for the IPDL type |struct D3D11DeviceStatus| |
762 | | // |
763 | | namespace mozilla { |
764 | | namespace gfx { |
765 | | auto D3D11DeviceStatus::operator==(const D3D11DeviceStatus& _o) const -> bool |
766 | 0 | { |
767 | 0 | if ((!((isWARP()) == ((_o).isWARP())))) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 0 | if ((!((textureSharingWorks()) == ((_o).textureSharingWorks())))) { |
771 | 0 | return false; |
772 | 0 | } |
773 | 0 | if ((!((featureLevel()) == ((_o).featureLevel())))) { |
774 | 0 | return false; |
775 | 0 | } |
776 | 0 | if ((!((adapter()) == ((_o).adapter())))) { |
777 | 0 | return false; |
778 | 0 | } |
779 | 0 | if ((!((sequenceNumber()) == ((_o).sequenceNumber())))) { |
780 | 0 | return false; |
781 | 0 | } |
782 | 0 | if ((!((useNV12()) == ((_o).useNV12())))) { |
783 | 0 | return false; |
784 | 0 | } |
785 | 0 | return true; |
786 | 0 | } |
787 | | |
788 | | auto D3D11DeviceStatus::operator!=(const D3D11DeviceStatus& _o) const -> bool |
789 | 0 | { |
790 | 0 | return (!(operator==(_o))); |
791 | 0 | } |
792 | | |
793 | | } // namespace gfx |
794 | | } // namespace mozilla |
795 | | |
796 | | namespace mozilla { |
797 | | namespace ipc { |
798 | | auto IPDLParamTraits<mozilla::gfx::D3D11DeviceStatus>::Write( |
799 | | IPC::Message* aMsg, |
800 | | mozilla::ipc::IProtocol* aActor, |
801 | | const paramType& aVar) -> void |
802 | 0 | { |
803 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).isWARP()); |
804 | 0 | // Sentinel = 'isWARP' |
805 | 0 | (aMsg)->WriteSentinel(1265874836); |
806 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).textureSharingWorks()); |
807 | 0 | // Sentinel = 'textureSharingWorks' |
808 | 0 | (aMsg)->WriteSentinel(2619561312); |
809 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).featureLevel()); |
810 | 0 | // Sentinel = 'featureLevel' |
811 | 0 | (aMsg)->WriteSentinel(3350666840); |
812 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).adapter()); |
813 | 0 | // Sentinel = 'adapter' |
814 | 0 | (aMsg)->WriteSentinel(3228599530); |
815 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).sequenceNumber()); |
816 | 0 | // Sentinel = 'sequenceNumber' |
817 | 0 | (aMsg)->WriteSentinel(1508065030); |
818 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).useNV12()); |
819 | 0 | // Sentinel = 'useNV12' |
820 | 0 | (aMsg)->WriteSentinel(2126518451); |
821 | 0 | } |
822 | | |
823 | | auto IPDLParamTraits<mozilla::gfx::D3D11DeviceStatus>::Read( |
824 | | const IPC::Message* aMsg, |
825 | | PickleIterator* aIter, |
826 | | mozilla::ipc::IProtocol* aActor, |
827 | | paramType* aVar) -> bool |
828 | 0 | { |
829 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isWARP())))))) { |
830 | 0 | (aActor)->FatalError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'"); |
831 | 0 | return false; |
832 | 0 | } |
833 | 0 | // Sentinel = 'isWARP' |
834 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1265874836)))) { |
835 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'isWARP' (bool) member of 'D3D11DeviceStatus'"); |
836 | 0 | return false; |
837 | 0 | } |
838 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->textureSharingWorks())))))) { |
839 | 0 | (aActor)->FatalError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'"); |
840 | 0 | return false; |
841 | 0 | } |
842 | 0 | // Sentinel = 'textureSharingWorks' |
843 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2619561312)))) { |
844 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'textureSharingWorks' (bool) member of 'D3D11DeviceStatus'"); |
845 | 0 | return false; |
846 | 0 | } |
847 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->featureLevel())))))) { |
848 | 0 | (aActor)->FatalError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'"); |
849 | 0 | return false; |
850 | 0 | } |
851 | 0 | // Sentinel = 'featureLevel' |
852 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3350666840)))) { |
853 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'featureLevel' (uint32_t) member of 'D3D11DeviceStatus'"); |
854 | 0 | return false; |
855 | 0 | } |
856 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->adapter())))))) { |
857 | 0 | (aActor)->FatalError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'"); |
858 | 0 | return false; |
859 | 0 | } |
860 | 0 | // Sentinel = 'adapter' |
861 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3228599530)))) { |
862 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'adapter' (DxgiAdapterDesc) member of 'D3D11DeviceStatus'"); |
863 | 0 | return false; |
864 | 0 | } |
865 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->sequenceNumber())))))) { |
866 | 0 | (aActor)->FatalError("Error deserializing 'sequenceNumber' (int32_t) member of 'D3D11DeviceStatus'"); |
867 | 0 | return false; |
868 | 0 | } |
869 | 0 | // Sentinel = 'sequenceNumber' |
870 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1508065030)))) { |
871 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'sequenceNumber' (int32_t) member of 'D3D11DeviceStatus'"); |
872 | 0 | return false; |
873 | 0 | } |
874 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->useNV12())))))) { |
875 | 0 | (aActor)->FatalError("Error deserializing 'useNV12' (bool) member of 'D3D11DeviceStatus'"); |
876 | 0 | return false; |
877 | 0 | } |
878 | 0 | // Sentinel = 'useNV12' |
879 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2126518451)))) { |
880 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'useNV12' (bool) member of 'D3D11DeviceStatus'"); |
881 | 0 | return false; |
882 | 0 | } |
883 | 0 | return true; |
884 | 0 | } |
885 | | |
886 | | } // namespace ipc |
887 | | } // namespace mozilla |
888 | | |
889 | | //----------------------------------------------------------------------------- |
890 | | // Method definitions for the IPDL type |struct DevicePrefs| |
891 | | // |
892 | | namespace mozilla { |
893 | | namespace gfx { |
894 | | auto DevicePrefs::operator==(const DevicePrefs& _o) const -> bool |
895 | 0 | { |
896 | 0 | if ((!((hwCompositing()) == ((_o).hwCompositing())))) { |
897 | 0 | return false; |
898 | 0 | } |
899 | 0 | if ((!((d3d11Compositing()) == ((_o).d3d11Compositing())))) { |
900 | 0 | return false; |
901 | 0 | } |
902 | 0 | if ((!((oglCompositing()) == ((_o).oglCompositing())))) { |
903 | 0 | return false; |
904 | 0 | } |
905 | 0 | if ((!((advancedLayers()) == ((_o).advancedLayers())))) { |
906 | 0 | return false; |
907 | 0 | } |
908 | 0 | if ((!((useD2D1()) == ((_o).useD2D1())))) { |
909 | 0 | return false; |
910 | 0 | } |
911 | 0 | return true; |
912 | 0 | } |
913 | | |
914 | | auto DevicePrefs::operator!=(const DevicePrefs& _o) const -> bool |
915 | 0 | { |
916 | 0 | return (!(operator==(_o))); |
917 | 0 | } |
918 | | |
919 | | } // namespace gfx |
920 | | } // namespace mozilla |
921 | | |
922 | | namespace mozilla { |
923 | | namespace ipc { |
924 | | auto IPDLParamTraits<mozilla::gfx::DevicePrefs>::Write( |
925 | | IPC::Message* aMsg, |
926 | | mozilla::ipc::IProtocol* aActor, |
927 | | const paramType& aVar) -> void |
928 | 0 | { |
929 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).hwCompositing()); |
930 | 0 | // Sentinel = 'hwCompositing' |
931 | 0 | (aMsg)->WriteSentinel(3916929800); |
932 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).d3d11Compositing()); |
933 | 0 | // Sentinel = 'd3d11Compositing' |
934 | 0 | (aMsg)->WriteSentinel(2460470117); |
935 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).oglCompositing()); |
936 | 0 | // Sentinel = 'oglCompositing' |
937 | 0 | (aMsg)->WriteSentinel(2769823004); |
938 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).advancedLayers()); |
939 | 0 | // Sentinel = 'advancedLayers' |
940 | 0 | (aMsg)->WriteSentinel(2376436002); |
941 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).useD2D1()); |
942 | 0 | // Sentinel = 'useD2D1' |
943 | 0 | (aMsg)->WriteSentinel(3693357445); |
944 | 0 | } |
945 | | |
946 | | auto IPDLParamTraits<mozilla::gfx::DevicePrefs>::Read( |
947 | | const IPC::Message* aMsg, |
948 | | PickleIterator* aIter, |
949 | | mozilla::ipc::IProtocol* aActor, |
950 | | paramType* aVar) -> bool |
951 | 0 | { |
952 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->hwCompositing())))))) { |
953 | 0 | (aActor)->FatalError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'"); |
954 | 0 | return false; |
955 | 0 | } |
956 | 0 | // Sentinel = 'hwCompositing' |
957 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3916929800)))) { |
958 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'hwCompositing' (FeatureStatus) member of 'DevicePrefs'"); |
959 | 0 | return false; |
960 | 0 | } |
961 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->d3d11Compositing())))))) { |
962 | 0 | (aActor)->FatalError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'"); |
963 | 0 | return false; |
964 | 0 | } |
965 | 0 | // Sentinel = 'd3d11Compositing' |
966 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2460470117)))) { |
967 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'd3d11Compositing' (FeatureStatus) member of 'DevicePrefs'"); |
968 | 0 | return false; |
969 | 0 | } |
970 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->oglCompositing())))))) { |
971 | 0 | (aActor)->FatalError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'"); |
972 | 0 | return false; |
973 | 0 | } |
974 | 0 | // Sentinel = 'oglCompositing' |
975 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2769823004)))) { |
976 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'oglCompositing' (FeatureStatus) member of 'DevicePrefs'"); |
977 | 0 | return false; |
978 | 0 | } |
979 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->advancedLayers())))))) { |
980 | 0 | (aActor)->FatalError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'"); |
981 | 0 | return false; |
982 | 0 | } |
983 | 0 | // Sentinel = 'advancedLayers' |
984 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2376436002)))) { |
985 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'advancedLayers' (FeatureStatus) member of 'DevicePrefs'"); |
986 | 0 | return false; |
987 | 0 | } |
988 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->useD2D1())))))) { |
989 | 0 | (aActor)->FatalError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'"); |
990 | 0 | return false; |
991 | 0 | } |
992 | 0 | // Sentinel = 'useD2D1' |
993 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3693357445)))) { |
994 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'useD2D1' (FeatureStatus) member of 'DevicePrefs'"); |
995 | 0 | return false; |
996 | 0 | } |
997 | 0 | return true; |
998 | 0 | } |
999 | | |
1000 | | } // namespace ipc |
1001 | | } // namespace mozilla |
1002 | | |
1003 | | //----------------------------------------------------------------------------- |
1004 | | // Method definitions for the IPDL type |struct ContentDeviceData| |
1005 | | // |
1006 | | namespace mozilla { |
1007 | | namespace gfx { |
1008 | | auto ContentDeviceData::operator==(const ContentDeviceData& _o) const -> bool |
1009 | 0 | { |
1010 | 0 | if ((!((prefs()) == ((_o).prefs())))) { |
1011 | 0 | return false; |
1012 | 0 | } |
1013 | 0 | if ((!((d3d11()) == ((_o).d3d11())))) { |
1014 | 0 | return false; |
1015 | 0 | } |
1016 | 0 | return true; |
1017 | 0 | } |
1018 | | |
1019 | | auto ContentDeviceData::operator!=(const ContentDeviceData& _o) const -> bool |
1020 | 0 | { |
1021 | 0 | return (!(operator==(_o))); |
1022 | 0 | } |
1023 | | |
1024 | | } // namespace gfx |
1025 | | } // namespace mozilla |
1026 | | |
1027 | | namespace mozilla { |
1028 | | namespace ipc { |
1029 | | auto IPDLParamTraits<mozilla::gfx::ContentDeviceData>::Write( |
1030 | | IPC::Message* aMsg, |
1031 | | mozilla::ipc::IProtocol* aActor, |
1032 | | const paramType& aVar) -> void |
1033 | 0 | { |
1034 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).prefs()); |
1035 | 0 | // Sentinel = 'prefs' |
1036 | 0 | (aMsg)->WriteSentinel(3194398011); |
1037 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).d3d11()); |
1038 | 0 | // Sentinel = 'd3d11' |
1039 | 0 | (aMsg)->WriteSentinel(2473824634); |
1040 | 0 | } |
1041 | | |
1042 | | auto IPDLParamTraits<mozilla::gfx::ContentDeviceData>::Read( |
1043 | | const IPC::Message* aMsg, |
1044 | | PickleIterator* aIter, |
1045 | | mozilla::ipc::IProtocol* aActor, |
1046 | | paramType* aVar) -> bool |
1047 | 0 | { |
1048 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->prefs())))))) { |
1049 | 0 | (aActor)->FatalError("Error deserializing 'prefs' (DevicePrefs) member of 'ContentDeviceData'"); |
1050 | 0 | return false; |
1051 | 0 | } |
1052 | 0 | // Sentinel = 'prefs' |
1053 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3194398011)))) { |
1054 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'prefs' (DevicePrefs) member of 'ContentDeviceData'"); |
1055 | 0 | return false; |
1056 | 0 | } |
1057 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->d3d11())))))) { |
1058 | 0 | (aActor)->FatalError("Error deserializing 'd3d11' (D3D11DeviceStatus) member of 'ContentDeviceData'"); |
1059 | 0 | return false; |
1060 | 0 | } |
1061 | 0 | // Sentinel = 'd3d11' |
1062 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2473824634)))) { |
1063 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'd3d11' (D3D11DeviceStatus) member of 'ContentDeviceData'"); |
1064 | 0 | return false; |
1065 | 0 | } |
1066 | 0 | return true; |
1067 | 0 | } |
1068 | | |
1069 | | } // namespace ipc |
1070 | | } // namespace mozilla |
1071 | | |
1072 | | //----------------------------------------------------------------------------- |
1073 | | // Method definitions for the IPDL type |struct FeatureFailure| |
1074 | | // |
1075 | | namespace mozilla { |
1076 | | namespace gfx { |
1077 | | auto FeatureFailure::operator==(const FeatureFailure& _o) const -> bool |
1078 | 0 | { |
1079 | 0 | if ((!((status()) == ((_o).status())))) { |
1080 | 0 | return false; |
1081 | 0 | } |
1082 | 0 | if ((!((message()) == ((_o).message())))) { |
1083 | 0 | return false; |
1084 | 0 | } |
1085 | 0 | if ((!((failureId()) == ((_o).failureId())))) { |
1086 | 0 | return false; |
1087 | 0 | } |
1088 | 0 | return true; |
1089 | 0 | } |
1090 | | |
1091 | | auto FeatureFailure::operator!=(const FeatureFailure& _o) const -> bool |
1092 | 0 | { |
1093 | 0 | return (!(operator==(_o))); |
1094 | 0 | } |
1095 | | |
1096 | | } // namespace gfx |
1097 | | } // namespace mozilla |
1098 | | |
1099 | | namespace mozilla { |
1100 | | namespace ipc { |
1101 | | auto IPDLParamTraits<mozilla::gfx::FeatureFailure>::Write( |
1102 | | IPC::Message* aMsg, |
1103 | | mozilla::ipc::IProtocol* aActor, |
1104 | | const paramType& aVar) -> void |
1105 | 0 | { |
1106 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).status()); |
1107 | 0 | // Sentinel = 'status' |
1108 | 0 | (aMsg)->WriteSentinel(3714608576); |
1109 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).message()); |
1110 | 0 | // Sentinel = 'message' |
1111 | 0 | (aMsg)->WriteSentinel(1366108954); |
1112 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).failureId()); |
1113 | 0 | // Sentinel = 'failureId' |
1114 | 0 | (aMsg)->WriteSentinel(2726219852); |
1115 | 0 | } |
1116 | | |
1117 | | auto IPDLParamTraits<mozilla::gfx::FeatureFailure>::Read( |
1118 | | const IPC::Message* aMsg, |
1119 | | PickleIterator* aIter, |
1120 | | mozilla::ipc::IProtocol* aActor, |
1121 | | paramType* aVar) -> bool |
1122 | 0 | { |
1123 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->status())))))) { |
1124 | 0 | (aActor)->FatalError("Error deserializing 'status' (FeatureStatus) member of 'FeatureFailure'"); |
1125 | 0 | return false; |
1126 | 0 | } |
1127 | 0 | // Sentinel = 'status' |
1128 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3714608576)))) { |
1129 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'status' (FeatureStatus) member of 'FeatureFailure'"); |
1130 | 0 | return false; |
1131 | 0 | } |
1132 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->message())))))) { |
1133 | 0 | (aActor)->FatalError("Error deserializing 'message' (nsCString) member of 'FeatureFailure'"); |
1134 | 0 | return false; |
1135 | 0 | } |
1136 | 0 | // Sentinel = 'message' |
1137 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1366108954)))) { |
1138 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'message' (nsCString) member of 'FeatureFailure'"); |
1139 | 0 | return false; |
1140 | 0 | } |
1141 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->failureId())))))) { |
1142 | 0 | (aActor)->FatalError("Error deserializing 'failureId' (nsCString) member of 'FeatureFailure'"); |
1143 | 0 | return false; |
1144 | 0 | } |
1145 | 0 | // Sentinel = 'failureId' |
1146 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2726219852)))) { |
1147 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'failureId' (nsCString) member of 'FeatureFailure'"); |
1148 | 0 | return false; |
1149 | 0 | } |
1150 | 0 | return true; |
1151 | 0 | } |
1152 | | |
1153 | | } // namespace ipc |
1154 | | } // namespace mozilla |
1155 | | |
1156 | | //----------------------------------------------------------------------------- |
1157 | | // Method definitions for the IPDL type |union FeatureChange| |
1158 | | // |
1159 | | namespace mozilla { |
1160 | | namespace gfx { |
1161 | | auto FeatureChange::MaybeDestroy(Type aNewType) -> bool |
1162 | 0 | { |
1163 | 0 | if ((mType) == (T__None)) { |
1164 | 0 | return true; |
1165 | 0 | } |
1166 | 0 | if ((mType) == (aNewType)) { |
1167 | 0 | return false; |
1168 | 0 | } |
1169 | 0 | switch (mType) { |
1170 | 0 | case Tnull_t: |
1171 | 0 | { |
1172 | 0 | (ptr_null_t())->~null_t__tdef(); |
1173 | 0 | break; |
1174 | 0 | } |
1175 | 0 | case TFeatureFailure: |
1176 | 0 | { |
1177 | 0 | (ptr_FeatureFailure())->~FeatureFailure__tdef(); |
1178 | 0 | break; |
1179 | 0 | } |
1180 | 0 | default: |
1181 | 0 | { |
1182 | 0 | mozilla::ipc::LogicError("not reached"); |
1183 | 0 | break; |
1184 | 0 | } |
1185 | 0 | } |
1186 | 0 | return true; |
1187 | 0 | } |
1188 | | |
1189 | | MOZ_IMPLICIT FeatureChange::FeatureChange(const null_t& aOther) |
1190 | 0 | { |
1191 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther); |
1192 | 0 | mType = Tnull_t; |
1193 | 0 | } |
1194 | | |
1195 | | MOZ_IMPLICIT FeatureChange::FeatureChange(null_t&& aOther) |
1196 | 0 | { |
1197 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move(aOther)); |
1198 | 0 | mType = Tnull_t; |
1199 | 0 | } |
1200 | | |
1201 | | MOZ_IMPLICIT FeatureChange::FeatureChange(const FeatureFailure& aOther) |
1202 | 0 | { |
1203 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure(aOther); |
1204 | 0 | mType = TFeatureFailure; |
1205 | 0 | } |
1206 | | |
1207 | | MOZ_IMPLICIT FeatureChange::FeatureChange(FeatureFailure&& aOther) |
1208 | 0 | { |
1209 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure(std::move(aOther)); |
1210 | 0 | mType = TFeatureFailure; |
1211 | 0 | } |
1212 | | |
1213 | | MOZ_IMPLICIT FeatureChange::FeatureChange(const FeatureChange& aOther) |
1214 | 0 | { |
1215 | 0 | (aOther).AssertSanity(); |
1216 | 0 | switch ((aOther).type()) { |
1217 | 0 | case Tnull_t: |
1218 | 0 | { |
1219 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t()); |
1220 | 0 | break; |
1221 | 0 | } |
1222 | 0 | case TFeatureFailure: |
1223 | 0 | { |
1224 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure((aOther).get_FeatureFailure()); |
1225 | 0 | break; |
1226 | 0 | } |
1227 | 0 | case T__None: |
1228 | 0 | { |
1229 | 0 | break; |
1230 | 0 | } |
1231 | 0 | default: |
1232 | 0 | { |
1233 | 0 | mozilla::ipc::LogicError("unreached"); |
1234 | 0 | return; |
1235 | 0 | } |
1236 | 0 | } |
1237 | 0 | mType = (aOther).type(); |
1238 | 0 | } |
1239 | | |
1240 | | MOZ_IMPLICIT FeatureChange::FeatureChange(FeatureChange&& aOther) |
1241 | 0 | { |
1242 | 0 | (aOther).AssertSanity(); |
1243 | 0 | Type t = (aOther).type(); |
1244 | 0 | switch (t) { |
1245 | 0 | case Tnull_t: |
1246 | 0 | { |
1247 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move((aOther).get_null_t())); |
1248 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1249 | 0 | break; |
1250 | 0 | } |
1251 | 0 | case TFeatureFailure: |
1252 | 0 | { |
1253 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure(std::move((aOther).get_FeatureFailure())); |
1254 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1255 | 0 | break; |
1256 | 0 | } |
1257 | 0 | case T__None: |
1258 | 0 | { |
1259 | 0 | break; |
1260 | 0 | } |
1261 | 0 | default: |
1262 | 0 | { |
1263 | 0 | mozilla::ipc::LogicError("unreached"); |
1264 | 0 | return; |
1265 | 0 | } |
1266 | 0 | } |
1267 | 0 | (aOther).mType = T__None; |
1268 | 0 | mType = t; |
1269 | 0 | } |
1270 | | |
1271 | | FeatureChange::~FeatureChange() |
1272 | 0 | { |
1273 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
1274 | 0 | } |
1275 | | |
1276 | | auto FeatureChange::operator=(const null_t& aRhs) -> FeatureChange& |
1277 | 0 | { |
1278 | 0 | if (MaybeDestroy(Tnull_t)) { |
1279 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1280 | 0 | } |
1281 | 0 | (*(ptr_null_t())) = aRhs; |
1282 | 0 | mType = Tnull_t; |
1283 | 0 | return (*(this)); |
1284 | 0 | } |
1285 | | |
1286 | | auto FeatureChange::operator=(null_t&& aRhs) -> FeatureChange& |
1287 | 0 | { |
1288 | 0 | if (MaybeDestroy(Tnull_t)) { |
1289 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1290 | 0 | } |
1291 | 0 | (*(ptr_null_t())) = std::move(aRhs); |
1292 | 0 | mType = Tnull_t; |
1293 | 0 | return (*(this)); |
1294 | 0 | } |
1295 | | |
1296 | | auto FeatureChange::operator=(const FeatureFailure& aRhs) -> FeatureChange& |
1297 | 0 | { |
1298 | 0 | if (MaybeDestroy(TFeatureFailure)) { |
1299 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure; |
1300 | 0 | } |
1301 | 0 | (*(ptr_FeatureFailure())) = aRhs; |
1302 | 0 | mType = TFeatureFailure; |
1303 | 0 | return (*(this)); |
1304 | 0 | } |
1305 | | |
1306 | | auto FeatureChange::operator=(FeatureFailure&& aRhs) -> FeatureChange& |
1307 | 0 | { |
1308 | 0 | if (MaybeDestroy(TFeatureFailure)) { |
1309 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure; |
1310 | 0 | } |
1311 | 0 | (*(ptr_FeatureFailure())) = std::move(aRhs); |
1312 | 0 | mType = TFeatureFailure; |
1313 | 0 | return (*(this)); |
1314 | 0 | } |
1315 | | |
1316 | | auto FeatureChange::operator=(const FeatureChange& aRhs) -> FeatureChange& |
1317 | 0 | { |
1318 | 0 | (aRhs).AssertSanity(); |
1319 | 0 | Type t = (aRhs).type(); |
1320 | 0 | switch (t) { |
1321 | 0 | case Tnull_t: |
1322 | 0 | { |
1323 | 0 | if (MaybeDestroy(t)) { |
1324 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1325 | 0 | } |
1326 | 0 | (*(ptr_null_t())) = (aRhs).get_null_t(); |
1327 | 0 | break; |
1328 | 0 | } |
1329 | 0 | case TFeatureFailure: |
1330 | 0 | { |
1331 | 0 | if (MaybeDestroy(t)) { |
1332 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure; |
1333 | 0 | } |
1334 | 0 | (*(ptr_FeatureFailure())) = (aRhs).get_FeatureFailure(); |
1335 | 0 | break; |
1336 | 0 | } |
1337 | 0 | case T__None: |
1338 | 0 | { |
1339 | 0 | static_cast<void>(MaybeDestroy(t)); |
1340 | 0 | break; |
1341 | 0 | } |
1342 | 0 | default: |
1343 | 0 | { |
1344 | 0 | mozilla::ipc::LogicError("unreached"); |
1345 | 0 | break; |
1346 | 0 | } |
1347 | 0 | } |
1348 | 0 | mType = t; |
1349 | 0 | return (*(this)); |
1350 | 0 | } |
1351 | | |
1352 | | auto FeatureChange::operator=(FeatureChange&& aRhs) -> FeatureChange& |
1353 | 0 | { |
1354 | 0 | (aRhs).AssertSanity(); |
1355 | 0 | Type t = (aRhs).type(); |
1356 | 0 | switch (t) { |
1357 | 0 | case Tnull_t: |
1358 | 0 | { |
1359 | 0 | if (MaybeDestroy(t)) { |
1360 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1361 | 0 | } |
1362 | 0 | (*(ptr_null_t())) = std::move((aRhs).get_null_t()); |
1363 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1364 | 0 | break; |
1365 | 0 | } |
1366 | 0 | case TFeatureFailure: |
1367 | 0 | { |
1368 | 0 | if (MaybeDestroy(t)) { |
1369 | 0 | new (mozilla::KnownNotNull, ptr_FeatureFailure()) FeatureFailure; |
1370 | 0 | } |
1371 | 0 | (*(ptr_FeatureFailure())) = std::move((aRhs).get_FeatureFailure()); |
1372 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1373 | 0 | break; |
1374 | 0 | } |
1375 | 0 | case T__None: |
1376 | 0 | { |
1377 | 0 | static_cast<void>(MaybeDestroy(t)); |
1378 | 0 | break; |
1379 | 0 | } |
1380 | 0 | default: |
1381 | 0 | { |
1382 | 0 | mozilla::ipc::LogicError("unreached"); |
1383 | 0 | break; |
1384 | 0 | } |
1385 | 0 | } |
1386 | 0 | (aRhs).mType = T__None; |
1387 | 0 | mType = t; |
1388 | 0 | return (*(this)); |
1389 | 0 | } |
1390 | | |
1391 | | auto FeatureChange::operator==(const null_t& aRhs) const -> bool |
1392 | 0 | { |
1393 | 0 | return (get_null_t()) == (aRhs); |
1394 | 0 | } |
1395 | | |
1396 | | auto FeatureChange::operator==(const FeatureFailure& aRhs) const -> bool |
1397 | 0 | { |
1398 | 0 | return (get_FeatureFailure()) == (aRhs); |
1399 | 0 | } |
1400 | | |
1401 | | auto FeatureChange::operator==(const FeatureChange& aRhs) const -> bool |
1402 | 0 | { |
1403 | 0 | if ((type()) != ((aRhs).type())) { |
1404 | 0 | return false; |
1405 | 0 | } |
1406 | 0 | |
1407 | 0 | switch (type()) { |
1408 | 0 | case Tnull_t: |
1409 | 0 | { |
1410 | 0 | return (get_null_t()) == ((aRhs).get_null_t()); |
1411 | 0 | } |
1412 | 0 | case TFeatureFailure: |
1413 | 0 | { |
1414 | 0 | return (get_FeatureFailure()) == ((aRhs).get_FeatureFailure()); |
1415 | 0 | } |
1416 | 0 | default: |
1417 | 0 | { |
1418 | 0 | mozilla::ipc::LogicError("unreached"); |
1419 | 0 | return false; |
1420 | 0 | } |
1421 | 0 | } |
1422 | 0 | } |
1423 | | |
1424 | | auto FeatureChange::get(null_t* aOutValue) const -> void |
1425 | 0 | { |
1426 | 0 | (*(aOutValue)) = get_null_t(); |
1427 | 0 | } |
1428 | | |
1429 | | auto FeatureChange::get(FeatureFailure* aOutValue) const -> void |
1430 | 0 | { |
1431 | 0 | (*(aOutValue)) = get_FeatureFailure(); |
1432 | 0 | } |
1433 | | |
1434 | | } // namespace gfx |
1435 | | } // namespace mozilla |
1436 | | |
1437 | | namespace mozilla { |
1438 | | namespace ipc { |
1439 | | auto IPDLParamTraits<mozilla::gfx::FeatureChange>::Write( |
1440 | | IPC::Message* aMsg, |
1441 | | mozilla::ipc::IProtocol* aActor, |
1442 | | const paramType& aVar) -> void |
1443 | | { |
1444 | | typedef mozilla::gfx::FeatureChange union__; |
1445 | | int type; |
1446 | | type = (aVar).type(); |
1447 | | WriteIPDLParam(aMsg, aActor, type); |
1448 | | // Sentinel = 'FeatureChange' |
1449 | | (aMsg)->WriteSentinel(2355169907); |
1450 | | |
1451 | | switch (type) { |
1452 | | case union__::Tnull_t: |
1453 | | { |
1454 | | WriteIPDLParam(aMsg, aActor, (aVar).get_null_t()); |
1455 | | // Sentinel = 'Tnull_t' |
1456 | | (aMsg)->WriteSentinel(3731137201); |
1457 | | return; |
1458 | | } |
1459 | | case union__::TFeatureFailure: |
1460 | | { |
1461 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FeatureFailure()); |
1462 | | // Sentinel = 'TFeatureFailure' |
1463 | | (aMsg)->WriteSentinel(2192376647); |
1464 | | return; |
1465 | | } |
1466 | | default: |
1467 | | { |
1468 | | (aActor)->FatalError("unknown union type"); |
1469 | | return; |
1470 | | } |
1471 | | } |
1472 | | } |
1473 | | |
1474 | | auto IPDLParamTraits<mozilla::gfx::FeatureChange>::Read( |
1475 | | const IPC::Message* aMsg, |
1476 | | PickleIterator* aIter, |
1477 | | mozilla::ipc::IProtocol* aActor, |
1478 | | paramType* aVar) -> bool |
1479 | 0 | { |
1480 | 0 | typedef mozilla::gfx::FeatureChange union__; |
1481 | 0 | int type; |
1482 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
1483 | 0 | (aActor)->FatalError("Error deserializing type of union FeatureChange"); |
1484 | 0 | return false; |
1485 | 0 | } |
1486 | 0 | // Sentinel = 'FeatureChange' |
1487 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2355169907)))) { |
1488 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union FeatureChange"); |
1489 | 0 | return false; |
1490 | 0 | } |
1491 | 0 | |
1492 | 0 | switch (type) { |
1493 | 0 | case union__::Tnull_t: |
1494 | 0 | { |
1495 | 0 | mozilla::null_t tmp = mozilla::null_t(); |
1496 | 0 | (*(aVar)) = tmp; |
1497 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_null_t())))))) { |
1498 | 0 | (aActor)->FatalError("Error deserializing variant Tnull_t of union FeatureChange"); |
1499 | 0 | return false; |
1500 | 0 | } |
1501 | 0 | // Sentinel = 'Tnull_t' |
1502 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3731137201)))) { |
1503 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tnull_t of union FeatureChange"); |
1504 | 0 | return false; |
1505 | 0 | } |
1506 | 0 | return true; |
1507 | 0 | } |
1508 | 0 | case union__::TFeatureFailure: |
1509 | 0 | { |
1510 | 0 | mozilla::gfx::FeatureFailure tmp = mozilla::gfx::FeatureFailure(); |
1511 | 0 | (*(aVar)) = tmp; |
1512 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FeatureFailure())))))) { |
1513 | 0 | (aActor)->FatalError("Error deserializing variant TFeatureFailure of union FeatureChange"); |
1514 | 0 | return false; |
1515 | 0 | } |
1516 | 0 | // Sentinel = 'TFeatureFailure' |
1517 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2192376647)))) { |
1518 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFeatureFailure of union FeatureChange"); |
1519 | 0 | return false; |
1520 | 0 | } |
1521 | 0 | return true; |
1522 | 0 | } |
1523 | 0 | default: |
1524 | 0 | { |
1525 | 0 | (aActor)->FatalError("unknown union type"); |
1526 | 0 | return false; |
1527 | 0 | } |
1528 | 0 | } |
1529 | 0 | } |
1530 | | |
1531 | | } // namespace ipc |
1532 | | } // namespace mozilla |
1533 | | |
1534 | | //----------------------------------------------------------------------------- |
1535 | | // Method definitions for the IPDL type |union GPUDeviceStatus| |
1536 | | // |
1537 | | namespace mozilla { |
1538 | | namespace gfx { |
1539 | | auto GPUDeviceStatus::MaybeDestroy(Type aNewType) -> bool |
1540 | 0 | { |
1541 | 0 | if ((mType) == (T__None)) { |
1542 | 0 | return true; |
1543 | 0 | } |
1544 | 0 | if ((mType) == (aNewType)) { |
1545 | 0 | return false; |
1546 | 0 | } |
1547 | 0 | switch (mType) { |
1548 | 0 | case Tnull_t: |
1549 | 0 | { |
1550 | 0 | (ptr_null_t())->~null_t__tdef(); |
1551 | 0 | break; |
1552 | 0 | } |
1553 | 0 | case TD3D11DeviceStatus: |
1554 | 0 | { |
1555 | 0 | (ptr_D3D11DeviceStatus())->~D3D11DeviceStatus__tdef(); |
1556 | 0 | break; |
1557 | 0 | } |
1558 | 0 | default: |
1559 | 0 | { |
1560 | 0 | mozilla::ipc::LogicError("not reached"); |
1561 | 0 | break; |
1562 | 0 | } |
1563 | 0 | } |
1564 | 0 | return true; |
1565 | 0 | } |
1566 | | |
1567 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(const null_t& aOther) |
1568 | 0 | { |
1569 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther); |
1570 | 0 | mType = Tnull_t; |
1571 | 0 | } |
1572 | | |
1573 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(null_t&& aOther) |
1574 | 0 | { |
1575 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move(aOther)); |
1576 | 0 | mType = Tnull_t; |
1577 | 0 | } |
1578 | | |
1579 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(const D3D11DeviceStatus& aOther) |
1580 | 0 | { |
1581 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus(aOther); |
1582 | 0 | mType = TD3D11DeviceStatus; |
1583 | 0 | } |
1584 | | |
1585 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(D3D11DeviceStatus&& aOther) |
1586 | 0 | { |
1587 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus(std::move(aOther)); |
1588 | 0 | mType = TD3D11DeviceStatus; |
1589 | 0 | } |
1590 | | |
1591 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(const GPUDeviceStatus& aOther) |
1592 | 0 | { |
1593 | 0 | (aOther).AssertSanity(); |
1594 | 0 | switch ((aOther).type()) { |
1595 | 0 | case Tnull_t: |
1596 | 0 | { |
1597 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t()); |
1598 | 0 | break; |
1599 | 0 | } |
1600 | 0 | case TD3D11DeviceStatus: |
1601 | 0 | { |
1602 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus((aOther).get_D3D11DeviceStatus()); |
1603 | 0 | break; |
1604 | 0 | } |
1605 | 0 | case T__None: |
1606 | 0 | { |
1607 | 0 | break; |
1608 | 0 | } |
1609 | 0 | default: |
1610 | 0 | { |
1611 | 0 | mozilla::ipc::LogicError("unreached"); |
1612 | 0 | return; |
1613 | 0 | } |
1614 | 0 | } |
1615 | 0 | mType = (aOther).type(); |
1616 | 0 | } |
1617 | | |
1618 | | MOZ_IMPLICIT GPUDeviceStatus::GPUDeviceStatus(GPUDeviceStatus&& aOther) |
1619 | 0 | { |
1620 | 0 | (aOther).AssertSanity(); |
1621 | 0 | Type t = (aOther).type(); |
1622 | 0 | switch (t) { |
1623 | 0 | case Tnull_t: |
1624 | 0 | { |
1625 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t(std::move((aOther).get_null_t())); |
1626 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1627 | 0 | break; |
1628 | 0 | } |
1629 | 0 | case TD3D11DeviceStatus: |
1630 | 0 | { |
1631 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus(std::move((aOther).get_D3D11DeviceStatus())); |
1632 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1633 | 0 | break; |
1634 | 0 | } |
1635 | 0 | case T__None: |
1636 | 0 | { |
1637 | 0 | break; |
1638 | 0 | } |
1639 | 0 | default: |
1640 | 0 | { |
1641 | 0 | mozilla::ipc::LogicError("unreached"); |
1642 | 0 | return; |
1643 | 0 | } |
1644 | 0 | } |
1645 | 0 | (aOther).mType = T__None; |
1646 | 0 | mType = t; |
1647 | 0 | } |
1648 | | |
1649 | | GPUDeviceStatus::~GPUDeviceStatus() |
1650 | 0 | { |
1651 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
1652 | 0 | } |
1653 | | |
1654 | | auto GPUDeviceStatus::operator=(const null_t& aRhs) -> GPUDeviceStatus& |
1655 | 0 | { |
1656 | 0 | if (MaybeDestroy(Tnull_t)) { |
1657 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1658 | 0 | } |
1659 | 0 | (*(ptr_null_t())) = aRhs; |
1660 | 0 | mType = Tnull_t; |
1661 | 0 | return (*(this)); |
1662 | 0 | } |
1663 | | |
1664 | | auto GPUDeviceStatus::operator=(null_t&& aRhs) -> GPUDeviceStatus& |
1665 | 0 | { |
1666 | 0 | if (MaybeDestroy(Tnull_t)) { |
1667 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1668 | 0 | } |
1669 | 0 | (*(ptr_null_t())) = std::move(aRhs); |
1670 | 0 | mType = Tnull_t; |
1671 | 0 | return (*(this)); |
1672 | 0 | } |
1673 | | |
1674 | | auto GPUDeviceStatus::operator=(const D3D11DeviceStatus& aRhs) -> GPUDeviceStatus& |
1675 | 0 | { |
1676 | 0 | if (MaybeDestroy(TD3D11DeviceStatus)) { |
1677 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus; |
1678 | 0 | } |
1679 | 0 | (*(ptr_D3D11DeviceStatus())) = aRhs; |
1680 | 0 | mType = TD3D11DeviceStatus; |
1681 | 0 | return (*(this)); |
1682 | 0 | } |
1683 | | |
1684 | | auto GPUDeviceStatus::operator=(D3D11DeviceStatus&& aRhs) -> GPUDeviceStatus& |
1685 | 0 | { |
1686 | 0 | if (MaybeDestroy(TD3D11DeviceStatus)) { |
1687 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus; |
1688 | 0 | } |
1689 | 0 | (*(ptr_D3D11DeviceStatus())) = std::move(aRhs); |
1690 | 0 | mType = TD3D11DeviceStatus; |
1691 | 0 | return (*(this)); |
1692 | 0 | } |
1693 | | |
1694 | | auto GPUDeviceStatus::operator=(const GPUDeviceStatus& aRhs) -> GPUDeviceStatus& |
1695 | 0 | { |
1696 | 0 | (aRhs).AssertSanity(); |
1697 | 0 | Type t = (aRhs).type(); |
1698 | 0 | switch (t) { |
1699 | 0 | case Tnull_t: |
1700 | 0 | { |
1701 | 0 | if (MaybeDestroy(t)) { |
1702 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1703 | 0 | } |
1704 | 0 | (*(ptr_null_t())) = (aRhs).get_null_t(); |
1705 | 0 | break; |
1706 | 0 | } |
1707 | 0 | case TD3D11DeviceStatus: |
1708 | 0 | { |
1709 | 0 | if (MaybeDestroy(t)) { |
1710 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus; |
1711 | 0 | } |
1712 | 0 | (*(ptr_D3D11DeviceStatus())) = (aRhs).get_D3D11DeviceStatus(); |
1713 | 0 | break; |
1714 | 0 | } |
1715 | 0 | case T__None: |
1716 | 0 | { |
1717 | 0 | static_cast<void>(MaybeDestroy(t)); |
1718 | 0 | break; |
1719 | 0 | } |
1720 | 0 | default: |
1721 | 0 | { |
1722 | 0 | mozilla::ipc::LogicError("unreached"); |
1723 | 0 | break; |
1724 | 0 | } |
1725 | 0 | } |
1726 | 0 | mType = t; |
1727 | 0 | return (*(this)); |
1728 | 0 | } |
1729 | | |
1730 | | auto GPUDeviceStatus::operator=(GPUDeviceStatus&& aRhs) -> GPUDeviceStatus& |
1731 | 0 | { |
1732 | 0 | (aRhs).AssertSanity(); |
1733 | 0 | Type t = (aRhs).type(); |
1734 | 0 | switch (t) { |
1735 | 0 | case Tnull_t: |
1736 | 0 | { |
1737 | 0 | if (MaybeDestroy(t)) { |
1738 | 0 | new (mozilla::KnownNotNull, ptr_null_t()) null_t; |
1739 | 0 | } |
1740 | 0 | (*(ptr_null_t())) = std::move((aRhs).get_null_t()); |
1741 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1742 | 0 | break; |
1743 | 0 | } |
1744 | 0 | case TD3D11DeviceStatus: |
1745 | 0 | { |
1746 | 0 | if (MaybeDestroy(t)) { |
1747 | 0 | new (mozilla::KnownNotNull, ptr_D3D11DeviceStatus()) D3D11DeviceStatus; |
1748 | 0 | } |
1749 | 0 | (*(ptr_D3D11DeviceStatus())) = std::move((aRhs).get_D3D11DeviceStatus()); |
1750 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1751 | 0 | break; |
1752 | 0 | } |
1753 | 0 | case T__None: |
1754 | 0 | { |
1755 | 0 | static_cast<void>(MaybeDestroy(t)); |
1756 | 0 | break; |
1757 | 0 | } |
1758 | 0 | default: |
1759 | 0 | { |
1760 | 0 | mozilla::ipc::LogicError("unreached"); |
1761 | 0 | break; |
1762 | 0 | } |
1763 | 0 | } |
1764 | 0 | (aRhs).mType = T__None; |
1765 | 0 | mType = t; |
1766 | 0 | return (*(this)); |
1767 | 0 | } |
1768 | | |
1769 | | auto GPUDeviceStatus::operator==(const null_t& aRhs) const -> bool |
1770 | 0 | { |
1771 | 0 | return (get_null_t()) == (aRhs); |
1772 | 0 | } |
1773 | | |
1774 | | auto GPUDeviceStatus::operator==(const D3D11DeviceStatus& aRhs) const -> bool |
1775 | 0 | { |
1776 | 0 | return (get_D3D11DeviceStatus()) == (aRhs); |
1777 | 0 | } |
1778 | | |
1779 | | auto GPUDeviceStatus::operator==(const GPUDeviceStatus& aRhs) const -> bool |
1780 | 0 | { |
1781 | 0 | if ((type()) != ((aRhs).type())) { |
1782 | 0 | return false; |
1783 | 0 | } |
1784 | 0 | |
1785 | 0 | switch (type()) { |
1786 | 0 | case Tnull_t: |
1787 | 0 | { |
1788 | 0 | return (get_null_t()) == ((aRhs).get_null_t()); |
1789 | 0 | } |
1790 | 0 | case TD3D11DeviceStatus: |
1791 | 0 | { |
1792 | 0 | return (get_D3D11DeviceStatus()) == ((aRhs).get_D3D11DeviceStatus()); |
1793 | 0 | } |
1794 | 0 | default: |
1795 | 0 | { |
1796 | 0 | mozilla::ipc::LogicError("unreached"); |
1797 | 0 | return false; |
1798 | 0 | } |
1799 | 0 | } |
1800 | 0 | } |
1801 | | |
1802 | | auto GPUDeviceStatus::get(null_t* aOutValue) const -> void |
1803 | 0 | { |
1804 | 0 | (*(aOutValue)) = get_null_t(); |
1805 | 0 | } |
1806 | | |
1807 | | auto GPUDeviceStatus::get(D3D11DeviceStatus* aOutValue) const -> void |
1808 | 0 | { |
1809 | 0 | (*(aOutValue)) = get_D3D11DeviceStatus(); |
1810 | 0 | } |
1811 | | |
1812 | | } // namespace gfx |
1813 | | } // namespace mozilla |
1814 | | |
1815 | | namespace mozilla { |
1816 | | namespace ipc { |
1817 | | auto IPDLParamTraits<mozilla::gfx::GPUDeviceStatus>::Write( |
1818 | | IPC::Message* aMsg, |
1819 | | mozilla::ipc::IProtocol* aActor, |
1820 | | const paramType& aVar) -> void |
1821 | | { |
1822 | | typedef mozilla::gfx::GPUDeviceStatus union__; |
1823 | | int type; |
1824 | | type = (aVar).type(); |
1825 | | WriteIPDLParam(aMsg, aActor, type); |
1826 | | // Sentinel = 'GPUDeviceStatus' |
1827 | | (aMsg)->WriteSentinel(3259585801); |
1828 | | |
1829 | | switch (type) { |
1830 | | case union__::Tnull_t: |
1831 | | { |
1832 | | WriteIPDLParam(aMsg, aActor, (aVar).get_null_t()); |
1833 | | // Sentinel = 'Tnull_t' |
1834 | | (aMsg)->WriteSentinel(3731137201); |
1835 | | return; |
1836 | | } |
1837 | | case union__::TD3D11DeviceStatus: |
1838 | | { |
1839 | | WriteIPDLParam(aMsg, aActor, (aVar).get_D3D11DeviceStatus()); |
1840 | | // Sentinel = 'TD3D11DeviceStatus' |
1841 | | (aMsg)->WriteSentinel(4014285905); |
1842 | | return; |
1843 | | } |
1844 | | default: |
1845 | | { |
1846 | | (aActor)->FatalError("unknown union type"); |
1847 | | return; |
1848 | | } |
1849 | | } |
1850 | | } |
1851 | | |
1852 | | auto IPDLParamTraits<mozilla::gfx::GPUDeviceStatus>::Read( |
1853 | | const IPC::Message* aMsg, |
1854 | | PickleIterator* aIter, |
1855 | | mozilla::ipc::IProtocol* aActor, |
1856 | | paramType* aVar) -> bool |
1857 | 0 | { |
1858 | 0 | typedef mozilla::gfx::GPUDeviceStatus union__; |
1859 | 0 | int type; |
1860 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
1861 | 0 | (aActor)->FatalError("Error deserializing type of union GPUDeviceStatus"); |
1862 | 0 | return false; |
1863 | 0 | } |
1864 | 0 | // Sentinel = 'GPUDeviceStatus' |
1865 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3259585801)))) { |
1866 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union GPUDeviceStatus"); |
1867 | 0 | return false; |
1868 | 0 | } |
1869 | 0 | |
1870 | 0 | switch (type) { |
1871 | 0 | case union__::Tnull_t: |
1872 | 0 | { |
1873 | 0 | mozilla::null_t tmp = mozilla::null_t(); |
1874 | 0 | (*(aVar)) = tmp; |
1875 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_null_t())))))) { |
1876 | 0 | (aActor)->FatalError("Error deserializing variant Tnull_t of union GPUDeviceStatus"); |
1877 | 0 | return false; |
1878 | 0 | } |
1879 | 0 | // Sentinel = 'Tnull_t' |
1880 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3731137201)))) { |
1881 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tnull_t of union GPUDeviceStatus"); |
1882 | 0 | return false; |
1883 | 0 | } |
1884 | 0 | return true; |
1885 | 0 | } |
1886 | 0 | case union__::TD3D11DeviceStatus: |
1887 | 0 | { |
1888 | 0 | mozilla::gfx::D3D11DeviceStatus tmp = mozilla::gfx::D3D11DeviceStatus(); |
1889 | 0 | (*(aVar)) = tmp; |
1890 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_D3D11DeviceStatus())))))) { |
1891 | 0 | (aActor)->FatalError("Error deserializing variant TD3D11DeviceStatus of union GPUDeviceStatus"); |
1892 | 0 | return false; |
1893 | 0 | } |
1894 | 0 | // Sentinel = 'TD3D11DeviceStatus' |
1895 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4014285905)))) { |
1896 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TD3D11DeviceStatus of union GPUDeviceStatus"); |
1897 | 0 | return false; |
1898 | 0 | } |
1899 | 0 | return true; |
1900 | 0 | } |
1901 | 0 | default: |
1902 | 0 | { |
1903 | 0 | (aActor)->FatalError("unknown union type"); |
1904 | 0 | return false; |
1905 | 0 | } |
1906 | 0 | } |
1907 | 0 | } |
1908 | | |
1909 | | } // namespace ipc |
1910 | | } // namespace mozilla |
1911 | | |
1912 | | //----------------------------------------------------------------------------- |
1913 | | // Method definitions for the IPDL type |struct GPUDeviceData| |
1914 | | // |
1915 | | namespace mozilla { |
1916 | | namespace gfx { |
1917 | | auto GPUDeviceData::operator==(const GPUDeviceData& _o) const -> bool |
1918 | 0 | { |
1919 | 0 | if ((!((d3d11Compositing()) == ((_o).d3d11Compositing())))) { |
1920 | 0 | return false; |
1921 | 0 | } |
1922 | 0 | if ((!((oglCompositing()) == ((_o).oglCompositing())))) { |
1923 | 0 | return false; |
1924 | 0 | } |
1925 | 0 | if ((!((advancedLayers()) == ((_o).advancedLayers())))) { |
1926 | 0 | return false; |
1927 | 0 | } |
1928 | 0 | if ((!((gpuDevice()) == ((_o).gpuDevice())))) { |
1929 | 0 | return false; |
1930 | 0 | } |
1931 | 0 | return true; |
1932 | 0 | } |
1933 | | |
1934 | | auto GPUDeviceData::operator!=(const GPUDeviceData& _o) const -> bool |
1935 | 0 | { |
1936 | 0 | return (!(operator==(_o))); |
1937 | 0 | } |
1938 | | |
1939 | | } // namespace gfx |
1940 | | } // namespace mozilla |
1941 | | |
1942 | | namespace mozilla { |
1943 | | namespace ipc { |
1944 | | auto IPDLParamTraits<mozilla::gfx::GPUDeviceData>::Write( |
1945 | | IPC::Message* aMsg, |
1946 | | mozilla::ipc::IProtocol* aActor, |
1947 | | const paramType& aVar) -> void |
1948 | 0 | { |
1949 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).d3d11Compositing()); |
1950 | 0 | // Sentinel = 'd3d11Compositing' |
1951 | 0 | (aMsg)->WriteSentinel(2460470117); |
1952 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).oglCompositing()); |
1953 | 0 | // Sentinel = 'oglCompositing' |
1954 | 0 | (aMsg)->WriteSentinel(2769823004); |
1955 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).advancedLayers()); |
1956 | 0 | // Sentinel = 'advancedLayers' |
1957 | 0 | (aMsg)->WriteSentinel(2376436002); |
1958 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).gpuDevice()); |
1959 | 0 | // Sentinel = 'gpuDevice' |
1960 | 0 | (aMsg)->WriteSentinel(675380553); |
1961 | 0 | } |
1962 | | |
1963 | | auto IPDLParamTraits<mozilla::gfx::GPUDeviceData>::Read( |
1964 | | const IPC::Message* aMsg, |
1965 | | PickleIterator* aIter, |
1966 | | mozilla::ipc::IProtocol* aActor, |
1967 | | paramType* aVar) -> bool |
1968 | 0 | { |
1969 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->d3d11Compositing())))))) { |
1970 | 0 | (aActor)->FatalError("Error deserializing 'd3d11Compositing' (FeatureChange) member of 'GPUDeviceData'"); |
1971 | 0 | return false; |
1972 | 0 | } |
1973 | 0 | // Sentinel = 'd3d11Compositing' |
1974 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2460470117)))) { |
1975 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'd3d11Compositing' (FeatureChange) member of 'GPUDeviceData'"); |
1976 | 0 | return false; |
1977 | 0 | } |
1978 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->oglCompositing())))))) { |
1979 | 0 | (aActor)->FatalError("Error deserializing 'oglCompositing' (FeatureChange) member of 'GPUDeviceData'"); |
1980 | 0 | return false; |
1981 | 0 | } |
1982 | 0 | // Sentinel = 'oglCompositing' |
1983 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2769823004)))) { |
1984 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'oglCompositing' (FeatureChange) member of 'GPUDeviceData'"); |
1985 | 0 | return false; |
1986 | 0 | } |
1987 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->advancedLayers())))))) { |
1988 | 0 | (aActor)->FatalError("Error deserializing 'advancedLayers' (FeatureChange) member of 'GPUDeviceData'"); |
1989 | 0 | return false; |
1990 | 0 | } |
1991 | 0 | // Sentinel = 'advancedLayers' |
1992 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2376436002)))) { |
1993 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'advancedLayers' (FeatureChange) member of 'GPUDeviceData'"); |
1994 | 0 | return false; |
1995 | 0 | } |
1996 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->gpuDevice())))))) { |
1997 | 0 | (aActor)->FatalError("Error deserializing 'gpuDevice' (GPUDeviceStatus) member of 'GPUDeviceData'"); |
1998 | 0 | return false; |
1999 | 0 | } |
2000 | 0 | // Sentinel = 'gpuDevice' |
2001 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 675380553)))) { |
2002 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'gpuDevice' (GPUDeviceStatus) member of 'GPUDeviceData'"); |
2003 | 0 | return false; |
2004 | 0 | } |
2005 | 0 | return true; |
2006 | 0 | } |
2007 | | |
2008 | | } // namespace ipc |
2009 | | } // namespace mozilla |
2010 | | |
2011 | | //----------------------------------------------------------------------------- |
2012 | | // Method definitions for the IPDL type |union GfxVarValue| |
2013 | | // |
2014 | | namespace mozilla { |
2015 | | namespace gfx { |
2016 | | auto GfxVarValue::MaybeDestroy(Type aNewType) -> bool |
2017 | 0 | { |
2018 | 0 | if ((mType) == (T__None)) { |
2019 | 0 | return true; |
2020 | 0 | } |
2021 | 0 | if ((mType) == (aNewType)) { |
2022 | 0 | return false; |
2023 | 0 | } |
2024 | 0 | switch (mType) { |
2025 | 0 | case TBackendType: |
2026 | 0 | { |
2027 | 0 | (ptr_BackendType())->~BackendType__tdef(); |
2028 | 0 | break; |
2029 | 0 | } |
2030 | 0 | case Tbool: |
2031 | 0 | { |
2032 | 0 | (ptr_bool())->~bool__tdef(); |
2033 | 0 | break; |
2034 | 0 | } |
2035 | 0 | case TgfxImageFormat: |
2036 | 0 | { |
2037 | 0 | (ptr_gfxImageFormat())->~gfxImageFormat__tdef(); |
2038 | 0 | break; |
2039 | 0 | } |
2040 | 0 | case TIntSize: |
2041 | 0 | { |
2042 | 0 | (ptr_IntSize())->~IntSize__tdef(); |
2043 | 0 | break; |
2044 | 0 | } |
2045 | 0 | case TnsCString: |
2046 | 0 | { |
2047 | 0 | (ptr_nsCString())->~nsCString__tdef(); |
2048 | 0 | break; |
2049 | 0 | } |
2050 | 0 | case TnsString: |
2051 | 0 | { |
2052 | 0 | (ptr_nsString())->~nsString__tdef(); |
2053 | 0 | break; |
2054 | 0 | } |
2055 | 0 | case Tint32_t: |
2056 | 0 | { |
2057 | 0 | (ptr_int32_t())->~int32_t__tdef(); |
2058 | 0 | break; |
2059 | 0 | } |
2060 | 0 | default: |
2061 | 0 | { |
2062 | 0 | mozilla::ipc::LogicError("not reached"); |
2063 | 0 | break; |
2064 | 0 | } |
2065 | 0 | } |
2066 | 0 | return true; |
2067 | 0 | } |
2068 | | |
2069 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const BackendType& aOther) |
2070 | 0 | { |
2071 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType(aOther); |
2072 | 0 | mType = TBackendType; |
2073 | 0 | } |
2074 | | |
2075 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(BackendType&& aOther) |
2076 | 0 | { |
2077 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType(std::move(aOther)); |
2078 | 0 | mType = TBackendType; |
2079 | 0 | } |
2080 | | |
2081 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const bool& aOther) |
2082 | 0 | { |
2083 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(aOther); |
2084 | 0 | mType = Tbool; |
2085 | 0 | } |
2086 | | |
2087 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(bool&& aOther) |
2088 | 0 | { |
2089 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(std::move(aOther)); |
2090 | 0 | mType = Tbool; |
2091 | 0 | } |
2092 | | |
2093 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const gfxImageFormat& aOther) |
2094 | 0 | { |
2095 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat(aOther); |
2096 | 0 | mType = TgfxImageFormat; |
2097 | 0 | } |
2098 | | |
2099 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(gfxImageFormat&& aOther) |
2100 | 0 | { |
2101 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat(std::move(aOther)); |
2102 | 0 | mType = TgfxImageFormat; |
2103 | 0 | } |
2104 | | |
2105 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const IntSize& aOther) |
2106 | 0 | { |
2107 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize(aOther); |
2108 | 0 | mType = TIntSize; |
2109 | 0 | } |
2110 | | |
2111 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(IntSize&& aOther) |
2112 | 0 | { |
2113 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize(std::move(aOther)); |
2114 | 0 | mType = TIntSize; |
2115 | 0 | } |
2116 | | |
2117 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const nsCString& aOther) |
2118 | 0 | { |
2119 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(aOther); |
2120 | 0 | mType = TnsCString; |
2121 | 0 | } |
2122 | | |
2123 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(nsCString&& aOther) |
2124 | 0 | { |
2125 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(std::move(aOther)); |
2126 | 0 | mType = TnsCString; |
2127 | 0 | } |
2128 | | |
2129 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const nsString& aOther) |
2130 | 0 | { |
2131 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString(aOther); |
2132 | 0 | mType = TnsString; |
2133 | 0 | } |
2134 | | |
2135 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(nsString&& aOther) |
2136 | 0 | { |
2137 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move(aOther)); |
2138 | 0 | mType = TnsString; |
2139 | 0 | } |
2140 | | |
2141 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const int32_t& aOther) |
2142 | 0 | { |
2143 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(aOther); |
2144 | 0 | mType = Tint32_t; |
2145 | 0 | } |
2146 | | |
2147 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(int32_t&& aOther) |
2148 | 0 | { |
2149 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(std::move(aOther)); |
2150 | 0 | mType = Tint32_t; |
2151 | 0 | } |
2152 | | |
2153 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(const GfxVarValue& aOther) |
2154 | 0 | { |
2155 | 0 | (aOther).AssertSanity(); |
2156 | 0 | switch ((aOther).type()) { |
2157 | 0 | case TBackendType: |
2158 | 0 | { |
2159 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType((aOther).get_BackendType()); |
2160 | 0 | break; |
2161 | 0 | } |
2162 | 0 | case Tbool: |
2163 | 0 | { |
2164 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool((aOther).get_bool()); |
2165 | 0 | break; |
2166 | 0 | } |
2167 | 0 | case TgfxImageFormat: |
2168 | 0 | { |
2169 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat((aOther).get_gfxImageFormat()); |
2170 | 0 | break; |
2171 | 0 | } |
2172 | 0 | case TIntSize: |
2173 | 0 | { |
2174 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize((aOther).get_IntSize()); |
2175 | 0 | break; |
2176 | 0 | } |
2177 | 0 | case TnsCString: |
2178 | 0 | { |
2179 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString((aOther).get_nsCString()); |
2180 | 0 | break; |
2181 | 0 | } |
2182 | 0 | case TnsString: |
2183 | 0 | { |
2184 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString((aOther).get_nsString()); |
2185 | 0 | break; |
2186 | 0 | } |
2187 | 0 | case Tint32_t: |
2188 | 0 | { |
2189 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t((aOther).get_int32_t()); |
2190 | 0 | break; |
2191 | 0 | } |
2192 | 0 | case T__None: |
2193 | 0 | { |
2194 | 0 | break; |
2195 | 0 | } |
2196 | 0 | default: |
2197 | 0 | { |
2198 | 0 | mozilla::ipc::LogicError("unreached"); |
2199 | 0 | return; |
2200 | 0 | } |
2201 | 0 | } |
2202 | 0 | mType = (aOther).type(); |
2203 | 0 | } |
2204 | | |
2205 | | MOZ_IMPLICIT GfxVarValue::GfxVarValue(GfxVarValue&& aOther) |
2206 | 0 | { |
2207 | 0 | (aOther).AssertSanity(); |
2208 | 0 | Type t = (aOther).type(); |
2209 | 0 | switch (t) { |
2210 | 0 | case TBackendType: |
2211 | 0 | { |
2212 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType(std::move((aOther).get_BackendType())); |
2213 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2214 | 0 | break; |
2215 | 0 | } |
2216 | 0 | case Tbool: |
2217 | 0 | { |
2218 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool(std::move((aOther).get_bool())); |
2219 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2220 | 0 | break; |
2221 | 0 | } |
2222 | 0 | case TgfxImageFormat: |
2223 | 0 | { |
2224 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat(std::move((aOther).get_gfxImageFormat())); |
2225 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2226 | 0 | break; |
2227 | 0 | } |
2228 | 0 | case TIntSize: |
2229 | 0 | { |
2230 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize(std::move((aOther).get_IntSize())); |
2231 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2232 | 0 | break; |
2233 | 0 | } |
2234 | 0 | case TnsCString: |
2235 | 0 | { |
2236 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(std::move((aOther).get_nsCString())); |
2237 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2238 | 0 | break; |
2239 | 0 | } |
2240 | 0 | case TnsString: |
2241 | 0 | { |
2242 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString(std::move((aOther).get_nsString())); |
2243 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2244 | 0 | break; |
2245 | 0 | } |
2246 | 0 | case Tint32_t: |
2247 | 0 | { |
2248 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t(std::move((aOther).get_int32_t())); |
2249 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
2250 | 0 | break; |
2251 | 0 | } |
2252 | 0 | case T__None: |
2253 | 0 | { |
2254 | 0 | break; |
2255 | 0 | } |
2256 | 0 | default: |
2257 | 0 | { |
2258 | 0 | mozilla::ipc::LogicError("unreached"); |
2259 | 0 | return; |
2260 | 0 | } |
2261 | 0 | } |
2262 | 0 | (aOther).mType = T__None; |
2263 | 0 | mType = t; |
2264 | 0 | } |
2265 | | |
2266 | | GfxVarValue::~GfxVarValue() |
2267 | 0 | { |
2268 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
2269 | 0 | } |
2270 | | |
2271 | | auto GfxVarValue::operator=(const BackendType& aRhs) -> GfxVarValue& |
2272 | 0 | { |
2273 | 0 | if (MaybeDestroy(TBackendType)) { |
2274 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType; |
2275 | 0 | } |
2276 | 0 | (*(ptr_BackendType())) = aRhs; |
2277 | 0 | mType = TBackendType; |
2278 | 0 | return (*(this)); |
2279 | 0 | } |
2280 | | |
2281 | | auto GfxVarValue::operator=(BackendType&& aRhs) -> GfxVarValue& |
2282 | 0 | { |
2283 | 0 | if (MaybeDestroy(TBackendType)) { |
2284 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType; |
2285 | 0 | } |
2286 | 0 | (*(ptr_BackendType())) = std::move(aRhs); |
2287 | 0 | mType = TBackendType; |
2288 | 0 | return (*(this)); |
2289 | 0 | } |
2290 | | |
2291 | | auto GfxVarValue::operator=(const bool& aRhs) -> GfxVarValue& |
2292 | 0 | { |
2293 | 0 | if (MaybeDestroy(Tbool)) { |
2294 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
2295 | 0 | } |
2296 | 0 | (*(ptr_bool())) = aRhs; |
2297 | 0 | mType = Tbool; |
2298 | 0 | return (*(this)); |
2299 | 0 | } |
2300 | | |
2301 | | auto GfxVarValue::operator=(bool&& aRhs) -> GfxVarValue& |
2302 | 0 | { |
2303 | 0 | if (MaybeDestroy(Tbool)) { |
2304 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
2305 | 0 | } |
2306 | 0 | (*(ptr_bool())) = std::move(aRhs); |
2307 | 0 | mType = Tbool; |
2308 | 0 | return (*(this)); |
2309 | 0 | } |
2310 | | |
2311 | | auto GfxVarValue::operator=(const gfxImageFormat& aRhs) -> GfxVarValue& |
2312 | 0 | { |
2313 | 0 | if (MaybeDestroy(TgfxImageFormat)) { |
2314 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat; |
2315 | 0 | } |
2316 | 0 | (*(ptr_gfxImageFormat())) = aRhs; |
2317 | 0 | mType = TgfxImageFormat; |
2318 | 0 | return (*(this)); |
2319 | 0 | } |
2320 | | |
2321 | | auto GfxVarValue::operator=(gfxImageFormat&& aRhs) -> GfxVarValue& |
2322 | 0 | { |
2323 | 0 | if (MaybeDestroy(TgfxImageFormat)) { |
2324 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat; |
2325 | 0 | } |
2326 | 0 | (*(ptr_gfxImageFormat())) = std::move(aRhs); |
2327 | 0 | mType = TgfxImageFormat; |
2328 | 0 | return (*(this)); |
2329 | 0 | } |
2330 | | |
2331 | | auto GfxVarValue::operator=(const IntSize& aRhs) -> GfxVarValue& |
2332 | 0 | { |
2333 | 0 | if (MaybeDestroy(TIntSize)) { |
2334 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize; |
2335 | 0 | } |
2336 | 0 | (*(ptr_IntSize())) = aRhs; |
2337 | 0 | mType = TIntSize; |
2338 | 0 | return (*(this)); |
2339 | 0 | } |
2340 | | |
2341 | | auto GfxVarValue::operator=(IntSize&& aRhs) -> GfxVarValue& |
2342 | 0 | { |
2343 | 0 | if (MaybeDestroy(TIntSize)) { |
2344 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize; |
2345 | 0 | } |
2346 | 0 | (*(ptr_IntSize())) = std::move(aRhs); |
2347 | 0 | mType = TIntSize; |
2348 | 0 | return (*(this)); |
2349 | 0 | } |
2350 | | |
2351 | | auto GfxVarValue::operator=(const nsCString& aRhs) -> GfxVarValue& |
2352 | 0 | { |
2353 | 0 | if (MaybeDestroy(TnsCString)) { |
2354 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
2355 | 0 | } |
2356 | 0 | (*(ptr_nsCString())) = aRhs; |
2357 | 0 | mType = TnsCString; |
2358 | 0 | return (*(this)); |
2359 | 0 | } |
2360 | | |
2361 | | auto GfxVarValue::operator=(nsCString&& aRhs) -> GfxVarValue& |
2362 | 0 | { |
2363 | 0 | if (MaybeDestroy(TnsCString)) { |
2364 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
2365 | 0 | } |
2366 | 0 | (*(ptr_nsCString())) = std::move(aRhs); |
2367 | 0 | mType = TnsCString; |
2368 | 0 | return (*(this)); |
2369 | 0 | } |
2370 | | |
2371 | | auto GfxVarValue::operator=(const nsString& aRhs) -> GfxVarValue& |
2372 | 0 | { |
2373 | 0 | if (MaybeDestroy(TnsString)) { |
2374 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString; |
2375 | 0 | } |
2376 | 0 | (*(ptr_nsString())) = aRhs; |
2377 | 0 | mType = TnsString; |
2378 | 0 | return (*(this)); |
2379 | 0 | } |
2380 | | |
2381 | | auto GfxVarValue::operator=(nsString&& aRhs) -> GfxVarValue& |
2382 | 0 | { |
2383 | 0 | if (MaybeDestroy(TnsString)) { |
2384 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString; |
2385 | 0 | } |
2386 | 0 | (*(ptr_nsString())) = std::move(aRhs); |
2387 | 0 | mType = TnsString; |
2388 | 0 | return (*(this)); |
2389 | 0 | } |
2390 | | |
2391 | | auto GfxVarValue::operator=(const int32_t& aRhs) -> GfxVarValue& |
2392 | 0 | { |
2393 | 0 | if (MaybeDestroy(Tint32_t)) { |
2394 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
2395 | 0 | } |
2396 | 0 | (*(ptr_int32_t())) = aRhs; |
2397 | 0 | mType = Tint32_t; |
2398 | 0 | return (*(this)); |
2399 | 0 | } |
2400 | | |
2401 | | auto GfxVarValue::operator=(int32_t&& aRhs) -> GfxVarValue& |
2402 | 0 | { |
2403 | 0 | if (MaybeDestroy(Tint32_t)) { |
2404 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
2405 | 0 | } |
2406 | 0 | (*(ptr_int32_t())) = std::move(aRhs); |
2407 | 0 | mType = Tint32_t; |
2408 | 0 | return (*(this)); |
2409 | 0 | } |
2410 | | |
2411 | | auto GfxVarValue::operator=(const GfxVarValue& aRhs) -> GfxVarValue& |
2412 | 0 | { |
2413 | 0 | (aRhs).AssertSanity(); |
2414 | 0 | Type t = (aRhs).type(); |
2415 | 0 | switch (t) { |
2416 | 0 | case TBackendType: |
2417 | 0 | { |
2418 | 0 | if (MaybeDestroy(t)) { |
2419 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType; |
2420 | 0 | } |
2421 | 0 | (*(ptr_BackendType())) = (aRhs).get_BackendType(); |
2422 | 0 | break; |
2423 | 0 | } |
2424 | 0 | case Tbool: |
2425 | 0 | { |
2426 | 0 | if (MaybeDestroy(t)) { |
2427 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
2428 | 0 | } |
2429 | 0 | (*(ptr_bool())) = (aRhs).get_bool(); |
2430 | 0 | break; |
2431 | 0 | } |
2432 | 0 | case TgfxImageFormat: |
2433 | 0 | { |
2434 | 0 | if (MaybeDestroy(t)) { |
2435 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat; |
2436 | 0 | } |
2437 | 0 | (*(ptr_gfxImageFormat())) = (aRhs).get_gfxImageFormat(); |
2438 | 0 | break; |
2439 | 0 | } |
2440 | 0 | case TIntSize: |
2441 | 0 | { |
2442 | 0 | if (MaybeDestroy(t)) { |
2443 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize; |
2444 | 0 | } |
2445 | 0 | (*(ptr_IntSize())) = (aRhs).get_IntSize(); |
2446 | 0 | break; |
2447 | 0 | } |
2448 | 0 | case TnsCString: |
2449 | 0 | { |
2450 | 0 | if (MaybeDestroy(t)) { |
2451 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
2452 | 0 | } |
2453 | 0 | (*(ptr_nsCString())) = (aRhs).get_nsCString(); |
2454 | 0 | break; |
2455 | 0 | } |
2456 | 0 | case TnsString: |
2457 | 0 | { |
2458 | 0 | if (MaybeDestroy(t)) { |
2459 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString; |
2460 | 0 | } |
2461 | 0 | (*(ptr_nsString())) = (aRhs).get_nsString(); |
2462 | 0 | break; |
2463 | 0 | } |
2464 | 0 | case Tint32_t: |
2465 | 0 | { |
2466 | 0 | if (MaybeDestroy(t)) { |
2467 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
2468 | 0 | } |
2469 | 0 | (*(ptr_int32_t())) = (aRhs).get_int32_t(); |
2470 | 0 | break; |
2471 | 0 | } |
2472 | 0 | case T__None: |
2473 | 0 | { |
2474 | 0 | static_cast<void>(MaybeDestroy(t)); |
2475 | 0 | break; |
2476 | 0 | } |
2477 | 0 | default: |
2478 | 0 | { |
2479 | 0 | mozilla::ipc::LogicError("unreached"); |
2480 | 0 | break; |
2481 | 0 | } |
2482 | 0 | } |
2483 | 0 | mType = t; |
2484 | 0 | return (*(this)); |
2485 | 0 | } |
2486 | | |
2487 | | auto GfxVarValue::operator=(GfxVarValue&& aRhs) -> GfxVarValue& |
2488 | 0 | { |
2489 | 0 | (aRhs).AssertSanity(); |
2490 | 0 | Type t = (aRhs).type(); |
2491 | 0 | switch (t) { |
2492 | 0 | case TBackendType: |
2493 | 0 | { |
2494 | 0 | if (MaybeDestroy(t)) { |
2495 | 0 | new (mozilla::KnownNotNull, ptr_BackendType()) BackendType; |
2496 | 0 | } |
2497 | 0 | (*(ptr_BackendType())) = std::move((aRhs).get_BackendType()); |
2498 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2499 | 0 | break; |
2500 | 0 | } |
2501 | 0 | case Tbool: |
2502 | 0 | { |
2503 | 0 | if (MaybeDestroy(t)) { |
2504 | 0 | new (mozilla::KnownNotNull, ptr_bool()) bool; |
2505 | 0 | } |
2506 | 0 | (*(ptr_bool())) = std::move((aRhs).get_bool()); |
2507 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2508 | 0 | break; |
2509 | 0 | } |
2510 | 0 | case TgfxImageFormat: |
2511 | 0 | { |
2512 | 0 | if (MaybeDestroy(t)) { |
2513 | 0 | new (mozilla::KnownNotNull, ptr_gfxImageFormat()) gfxImageFormat; |
2514 | 0 | } |
2515 | 0 | (*(ptr_gfxImageFormat())) = std::move((aRhs).get_gfxImageFormat()); |
2516 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2517 | 0 | break; |
2518 | 0 | } |
2519 | 0 | case TIntSize: |
2520 | 0 | { |
2521 | 0 | if (MaybeDestroy(t)) { |
2522 | 0 | new (mozilla::KnownNotNull, ptr_IntSize()) IntSize; |
2523 | 0 | } |
2524 | 0 | (*(ptr_IntSize())) = std::move((aRhs).get_IntSize()); |
2525 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2526 | 0 | break; |
2527 | 0 | } |
2528 | 0 | case TnsCString: |
2529 | 0 | { |
2530 | 0 | if (MaybeDestroy(t)) { |
2531 | 0 | new (mozilla::KnownNotNull, ptr_nsCString()) nsCString; |
2532 | 0 | } |
2533 | 0 | (*(ptr_nsCString())) = std::move((aRhs).get_nsCString()); |
2534 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2535 | 0 | break; |
2536 | 0 | } |
2537 | 0 | case TnsString: |
2538 | 0 | { |
2539 | 0 | if (MaybeDestroy(t)) { |
2540 | 0 | new (mozilla::KnownNotNull, ptr_nsString()) nsString; |
2541 | 0 | } |
2542 | 0 | (*(ptr_nsString())) = std::move((aRhs).get_nsString()); |
2543 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2544 | 0 | break; |
2545 | 0 | } |
2546 | 0 | case Tint32_t: |
2547 | 0 | { |
2548 | 0 | if (MaybeDestroy(t)) { |
2549 | 0 | new (mozilla::KnownNotNull, ptr_int32_t()) int32_t; |
2550 | 0 | } |
2551 | 0 | (*(ptr_int32_t())) = std::move((aRhs).get_int32_t()); |
2552 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
2553 | 0 | break; |
2554 | 0 | } |
2555 | 0 | case T__None: |
2556 | 0 | { |
2557 | 0 | static_cast<void>(MaybeDestroy(t)); |
2558 | 0 | break; |
2559 | 0 | } |
2560 | 0 | default: |
2561 | 0 | { |
2562 | 0 | mozilla::ipc::LogicError("unreached"); |
2563 | 0 | break; |
2564 | 0 | } |
2565 | 0 | } |
2566 | 0 | (aRhs).mType = T__None; |
2567 | 0 | mType = t; |
2568 | 0 | return (*(this)); |
2569 | 0 | } |
2570 | | |
2571 | | auto GfxVarValue::operator==(const BackendType& aRhs) const -> bool |
2572 | 0 | { |
2573 | 0 | return (get_BackendType()) == (aRhs); |
2574 | 0 | } |
2575 | | |
2576 | | auto GfxVarValue::operator==(const bool& aRhs) const -> bool |
2577 | 0 | { |
2578 | 0 | return (get_bool()) == (aRhs); |
2579 | 0 | } |
2580 | | |
2581 | | auto GfxVarValue::operator==(const gfxImageFormat& aRhs) const -> bool |
2582 | 0 | { |
2583 | 0 | return (get_gfxImageFormat()) == (aRhs); |
2584 | 0 | } |
2585 | | |
2586 | | auto GfxVarValue::operator==(const IntSize& aRhs) const -> bool |
2587 | 0 | { |
2588 | 0 | return (get_IntSize()) == (aRhs); |
2589 | 0 | } |
2590 | | |
2591 | | auto GfxVarValue::operator==(const nsCString& aRhs) const -> bool |
2592 | 0 | { |
2593 | 0 | return (get_nsCString()) == (aRhs); |
2594 | 0 | } |
2595 | | |
2596 | | auto GfxVarValue::operator==(const nsString& aRhs) const -> bool |
2597 | 0 | { |
2598 | 0 | return (get_nsString()) == (aRhs); |
2599 | 0 | } |
2600 | | |
2601 | | auto GfxVarValue::operator==(const int32_t& aRhs) const -> bool |
2602 | 0 | { |
2603 | 0 | return (get_int32_t()) == (aRhs); |
2604 | 0 | } |
2605 | | |
2606 | | auto GfxVarValue::operator==(const GfxVarValue& aRhs) const -> bool |
2607 | 0 | { |
2608 | 0 | if ((type()) != ((aRhs).type())) { |
2609 | 0 | return false; |
2610 | 0 | } |
2611 | 0 | |
2612 | 0 | switch (type()) { |
2613 | 0 | case TBackendType: |
2614 | 0 | { |
2615 | 0 | return (get_BackendType()) == ((aRhs).get_BackendType()); |
2616 | 0 | } |
2617 | 0 | case Tbool: |
2618 | 0 | { |
2619 | 0 | return (get_bool()) == ((aRhs).get_bool()); |
2620 | 0 | } |
2621 | 0 | case TgfxImageFormat: |
2622 | 0 | { |
2623 | 0 | return (get_gfxImageFormat()) == ((aRhs).get_gfxImageFormat()); |
2624 | 0 | } |
2625 | 0 | case TIntSize: |
2626 | 0 | { |
2627 | 0 | return (get_IntSize()) == ((aRhs).get_IntSize()); |
2628 | 0 | } |
2629 | 0 | case TnsCString: |
2630 | 0 | { |
2631 | 0 | return (get_nsCString()) == ((aRhs).get_nsCString()); |
2632 | 0 | } |
2633 | 0 | case TnsString: |
2634 | 0 | { |
2635 | 0 | return (get_nsString()) == ((aRhs).get_nsString()); |
2636 | 0 | } |
2637 | 0 | case Tint32_t: |
2638 | 0 | { |
2639 | 0 | return (get_int32_t()) == ((aRhs).get_int32_t()); |
2640 | 0 | } |
2641 | 0 | default: |
2642 | 0 | { |
2643 | 0 | mozilla::ipc::LogicError("unreached"); |
2644 | 0 | return false; |
2645 | 0 | } |
2646 | 0 | } |
2647 | 0 | } |
2648 | | |
2649 | | auto GfxVarValue::get(BackendType* aOutValue) const -> void |
2650 | 0 | { |
2651 | 0 | (*(aOutValue)) = get_BackendType(); |
2652 | 0 | } |
2653 | | |
2654 | | auto GfxVarValue::get(bool* aOutValue) const -> void |
2655 | 0 | { |
2656 | 0 | (*(aOutValue)) = get_bool(); |
2657 | 0 | } |
2658 | | |
2659 | | auto GfxVarValue::get(gfxImageFormat* aOutValue) const -> void |
2660 | 0 | { |
2661 | 0 | (*(aOutValue)) = get_gfxImageFormat(); |
2662 | 0 | } |
2663 | | |
2664 | | auto GfxVarValue::get(IntSize* aOutValue) const -> void |
2665 | 0 | { |
2666 | 0 | (*(aOutValue)) = get_IntSize(); |
2667 | 0 | } |
2668 | | |
2669 | | auto GfxVarValue::get(nsCString* aOutValue) const -> void |
2670 | 0 | { |
2671 | 0 | (*(aOutValue)) = get_nsCString(); |
2672 | 0 | } |
2673 | | |
2674 | | auto GfxVarValue::get(nsString* aOutValue) const -> void |
2675 | 0 | { |
2676 | 0 | (*(aOutValue)) = get_nsString(); |
2677 | 0 | } |
2678 | | |
2679 | | auto GfxVarValue::get(int32_t* aOutValue) const -> void |
2680 | 0 | { |
2681 | 0 | (*(aOutValue)) = get_int32_t(); |
2682 | 0 | } |
2683 | | |
2684 | | } // namespace gfx |
2685 | | } // namespace mozilla |
2686 | | |
2687 | | namespace mozilla { |
2688 | | namespace ipc { |
2689 | | auto IPDLParamTraits<mozilla::gfx::GfxVarValue>::Write( |
2690 | | IPC::Message* aMsg, |
2691 | | mozilla::ipc::IProtocol* aActor, |
2692 | | const paramType& aVar) -> void |
2693 | | { |
2694 | | typedef mozilla::gfx::GfxVarValue union__; |
2695 | | int type; |
2696 | | type = (aVar).type(); |
2697 | | WriteIPDLParam(aMsg, aActor, type); |
2698 | | // Sentinel = 'GfxVarValue' |
2699 | | (aMsg)->WriteSentinel(3909046808); |
2700 | | |
2701 | | switch (type) { |
2702 | | case union__::TBackendType: |
2703 | | { |
2704 | | WriteIPDLParam(aMsg, aActor, (aVar).get_BackendType()); |
2705 | | // Sentinel = 'TBackendType' |
2706 | | (aMsg)->WriteSentinel(1181965224); |
2707 | | return; |
2708 | | } |
2709 | | case union__::Tbool: |
2710 | | { |
2711 | | WriteIPDLParam(aMsg, aActor, (aVar).get_bool()); |
2712 | | // Sentinel = 'Tbool' |
2713 | | (aMsg)->WriteSentinel(1958350201); |
2714 | | return; |
2715 | | } |
2716 | | case union__::TgfxImageFormat: |
2717 | | { |
2718 | | WriteIPDLParam(aMsg, aActor, (aVar).get_gfxImageFormat()); |
2719 | | // Sentinel = 'TgfxImageFormat' |
2720 | | (aMsg)->WriteSentinel(1633523770); |
2721 | | return; |
2722 | | } |
2723 | | case union__::TIntSize: |
2724 | | { |
2725 | | WriteIPDLParam(aMsg, aActor, (aVar).get_IntSize()); |
2726 | | // Sentinel = 'TIntSize' |
2727 | | (aMsg)->WriteSentinel(1631526060); |
2728 | | return; |
2729 | | } |
2730 | | case union__::TnsCString: |
2731 | | { |
2732 | | WriteIPDLParam(aMsg, aActor, (aVar).get_nsCString()); |
2733 | | // Sentinel = 'TnsCString' |
2734 | | (aMsg)->WriteSentinel(2427411293); |
2735 | | return; |
2736 | | } |
2737 | | case union__::TnsString: |
2738 | | { |
2739 | | WriteIPDLParam(aMsg, aActor, (aVar).get_nsString()); |
2740 | | // Sentinel = 'TnsString' |
2741 | | (aMsg)->WriteSentinel(2161603959); |
2742 | | return; |
2743 | | } |
2744 | | case union__::Tint32_t: |
2745 | | { |
2746 | | WriteIPDLParam(aMsg, aActor, (aVar).get_int32_t()); |
2747 | | // Sentinel = 'Tint32_t' |
2748 | | (aMsg)->WriteSentinel(4219052577); |
2749 | | return; |
2750 | | } |
2751 | | default: |
2752 | | { |
2753 | | (aActor)->FatalError("unknown union type"); |
2754 | | return; |
2755 | | } |
2756 | | } |
2757 | | } |
2758 | | |
2759 | | auto IPDLParamTraits<mozilla::gfx::GfxVarValue>::Read( |
2760 | | const IPC::Message* aMsg, |
2761 | | PickleIterator* aIter, |
2762 | | mozilla::ipc::IProtocol* aActor, |
2763 | | paramType* aVar) -> bool |
2764 | 0 | { |
2765 | 0 | typedef mozilla::gfx::GfxVarValue union__; |
2766 | 0 | int type; |
2767 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
2768 | 0 | (aActor)->FatalError("Error deserializing type of union GfxVarValue"); |
2769 | 0 | return false; |
2770 | 0 | } |
2771 | 0 | // Sentinel = 'GfxVarValue' |
2772 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3909046808)))) { |
2773 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union GfxVarValue"); |
2774 | 0 | return false; |
2775 | 0 | } |
2776 | 0 | |
2777 | 0 | switch (type) { |
2778 | 0 | case union__::TBackendType: |
2779 | 0 | { |
2780 | 0 | mozilla::gfx::BackendType tmp = mozilla::gfx::BackendType(); |
2781 | 0 | (*(aVar)) = tmp; |
2782 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_BackendType())))))) { |
2783 | 0 | (aActor)->FatalError("Error deserializing variant TBackendType of union GfxVarValue"); |
2784 | 0 | return false; |
2785 | 0 | } |
2786 | 0 | // Sentinel = 'TBackendType' |
2787 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1181965224)))) { |
2788 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TBackendType of union GfxVarValue"); |
2789 | 0 | return false; |
2790 | 0 | } |
2791 | 0 | return true; |
2792 | 0 | } |
2793 | 0 | case union__::Tbool: |
2794 | 0 | { |
2795 | 0 | bool tmp = bool(); |
2796 | 0 | (*(aVar)) = tmp; |
2797 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_bool())))))) { |
2798 | 0 | (aActor)->FatalError("Error deserializing variant Tbool of union GfxVarValue"); |
2799 | 0 | return false; |
2800 | 0 | } |
2801 | 0 | // Sentinel = 'Tbool' |
2802 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1958350201)))) { |
2803 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tbool of union GfxVarValue"); |
2804 | 0 | return false; |
2805 | 0 | } |
2806 | 0 | return true; |
2807 | 0 | } |
2808 | 0 | case union__::TgfxImageFormat: |
2809 | 0 | { |
2810 | 0 | gfxImageFormat tmp = gfxImageFormat(); |
2811 | 0 | (*(aVar)) = tmp; |
2812 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_gfxImageFormat())))))) { |
2813 | 0 | (aActor)->FatalError("Error deserializing variant TgfxImageFormat of union GfxVarValue"); |
2814 | 0 | return false; |
2815 | 0 | } |
2816 | 0 | // Sentinel = 'TgfxImageFormat' |
2817 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1633523770)))) { |
2818 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TgfxImageFormat of union GfxVarValue"); |
2819 | 0 | return false; |
2820 | 0 | } |
2821 | 0 | return true; |
2822 | 0 | } |
2823 | 0 | case union__::TIntSize: |
2824 | 0 | { |
2825 | 0 | mozilla::gfx::IntSize tmp = mozilla::gfx::IntSize(); |
2826 | 0 | (*(aVar)) = tmp; |
2827 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_IntSize())))))) { |
2828 | 0 | (aActor)->FatalError("Error deserializing variant TIntSize of union GfxVarValue"); |
2829 | 0 | return false; |
2830 | 0 | } |
2831 | 0 | // Sentinel = 'TIntSize' |
2832 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1631526060)))) { |
2833 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TIntSize of union GfxVarValue"); |
2834 | 0 | return false; |
2835 | 0 | } |
2836 | 0 | return true; |
2837 | 0 | } |
2838 | 0 | case union__::TnsCString: |
2839 | 0 | { |
2840 | 0 | nsCString tmp = nsCString(); |
2841 | 0 | (*(aVar)) = tmp; |
2842 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsCString())))))) { |
2843 | 0 | (aActor)->FatalError("Error deserializing variant TnsCString of union GfxVarValue"); |
2844 | 0 | return false; |
2845 | 0 | } |
2846 | 0 | // Sentinel = 'TnsCString' |
2847 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2427411293)))) { |
2848 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TnsCString of union GfxVarValue"); |
2849 | 0 | return false; |
2850 | 0 | } |
2851 | 0 | return true; |
2852 | 0 | } |
2853 | 0 | case union__::TnsString: |
2854 | 0 | { |
2855 | 0 | nsString tmp = nsString(); |
2856 | 0 | (*(aVar)) = tmp; |
2857 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_nsString())))))) { |
2858 | 0 | (aActor)->FatalError("Error deserializing variant TnsString of union GfxVarValue"); |
2859 | 0 | return false; |
2860 | 0 | } |
2861 | 0 | // Sentinel = 'TnsString' |
2862 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2161603959)))) { |
2863 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TnsString of union GfxVarValue"); |
2864 | 0 | return false; |
2865 | 0 | } |
2866 | 0 | return true; |
2867 | 0 | } |
2868 | 0 | case union__::Tint32_t: |
2869 | 0 | { |
2870 | 0 | int32_t tmp = int32_t(); |
2871 | 0 | (*(aVar)) = tmp; |
2872 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_int32_t())))))) { |
2873 | 0 | (aActor)->FatalError("Error deserializing variant Tint32_t of union GfxVarValue"); |
2874 | 0 | return false; |
2875 | 0 | } |
2876 | 0 | // Sentinel = 'Tint32_t' |
2877 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4219052577)))) { |
2878 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant Tint32_t of union GfxVarValue"); |
2879 | 0 | return false; |
2880 | 0 | } |
2881 | 0 | return true; |
2882 | 0 | } |
2883 | 0 | default: |
2884 | 0 | { |
2885 | 0 | (aActor)->FatalError("unknown union type"); |
2886 | 0 | return false; |
2887 | 0 | } |
2888 | 0 | } |
2889 | 0 | } |
2890 | | |
2891 | | } // namespace ipc |
2892 | | } // namespace mozilla |
2893 | | |
2894 | | //----------------------------------------------------------------------------- |
2895 | | // Method definitions for the IPDL type |struct GfxVarUpdate| |
2896 | | // |
2897 | | namespace mozilla { |
2898 | | namespace gfx { |
2899 | | auto GfxVarUpdate::operator==(const GfxVarUpdate& _o) const -> bool |
2900 | 0 | { |
2901 | 0 | if ((!((index()) == ((_o).index())))) { |
2902 | 0 | return false; |
2903 | 0 | } |
2904 | 0 | if ((!((value()) == ((_o).value())))) { |
2905 | 0 | return false; |
2906 | 0 | } |
2907 | 0 | return true; |
2908 | 0 | } |
2909 | | |
2910 | | auto GfxVarUpdate::operator!=(const GfxVarUpdate& _o) const -> bool |
2911 | 0 | { |
2912 | 0 | return (!(operator==(_o))); |
2913 | 0 | } |
2914 | | |
2915 | | } // namespace gfx |
2916 | | } // namespace mozilla |
2917 | | |
2918 | | namespace mozilla { |
2919 | | namespace ipc { |
2920 | | auto IPDLParamTraits<mozilla::gfx::GfxVarUpdate>::Write( |
2921 | | IPC::Message* aMsg, |
2922 | | mozilla::ipc::IProtocol* aActor, |
2923 | | const paramType& aVar) -> void |
2924 | 0 | { |
2925 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).index()); |
2926 | 0 | // Sentinel = 'index' |
2927 | 0 | (aMsg)->WriteSentinel(2111871137); |
2928 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).value()); |
2929 | 0 | // Sentinel = 'value' |
2930 | 0 | (aMsg)->WriteSentinel(3456818542); |
2931 | 0 | } |
2932 | | |
2933 | | auto IPDLParamTraits<mozilla::gfx::GfxVarUpdate>::Read( |
2934 | | const IPC::Message* aMsg, |
2935 | | PickleIterator* aIter, |
2936 | | mozilla::ipc::IProtocol* aActor, |
2937 | | paramType* aVar) -> bool |
2938 | 0 | { |
2939 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->index())))))) { |
2940 | 0 | (aActor)->FatalError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'"); |
2941 | 0 | return false; |
2942 | 0 | } |
2943 | 0 | // Sentinel = 'index' |
2944 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2111871137)))) { |
2945 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'index' (size_t) member of 'GfxVarUpdate'"); |
2946 | 0 | return false; |
2947 | 0 | } |
2948 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->value())))))) { |
2949 | 0 | (aActor)->FatalError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'"); |
2950 | 0 | return false; |
2951 | 0 | } |
2952 | 0 | // Sentinel = 'value' |
2953 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3456818542)))) { |
2954 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'value' (GfxVarValue) member of 'GfxVarUpdate'"); |
2955 | 0 | return false; |
2956 | 0 | } |
2957 | 0 | return true; |
2958 | 0 | } |
2959 | | |
2960 | | } // namespace ipc |
2961 | | } // namespace mozilla |