Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/WebRenderMessages.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/layers/WebRenderMessageUtils.h"
8
#include "mozilla/layers/PTextureParent.h"
9
#include "mozilla/layers/PTextureChild.h"
10
#include "mozilla/layers/WebRenderMessages.h"
11
12
13
//-----------------------------------------------------------------------------
14
// Method definitions for the IPDL type |struct RefCountedShmem|
15
//
16
namespace mozilla {
17
namespace layers {
18
auto RefCountedShmem::operator==(const RefCountedShmem& _o) const -> bool
19
0
{
20
0
    if ((!((buffer()) == ((_o).buffer())))) {
21
0
        return false;
22
0
    }
23
0
    return true;
24
0
}
25
26
auto RefCountedShmem::operator!=(const RefCountedShmem& _o) const -> bool
27
0
{
28
0
    return (!(operator==(_o)));
29
0
}
30
31
} // namespace layers
32
} // namespace mozilla
33
34
namespace mozilla {
35
namespace ipc {
36
auto IPDLParamTraits<mozilla::layers::RefCountedShmem>::Write(
37
        IPC::Message* aMsg,
38
        mozilla::ipc::IProtocol* aActor,
39
        const paramType& aVar) -> void
40
0
{
41
0
    WriteIPDLParam(aMsg, aActor, (aVar).buffer());
42
0
    // Sentinel = 'buffer'
43
0
    (aMsg)->WriteSentinel(4093250504);
44
0
}
45
46
auto IPDLParamTraits<mozilla::layers::RefCountedShmem>::Read(
47
        const IPC::Message* aMsg,
48
        PickleIterator* aIter,
49
        mozilla::ipc::IProtocol* aActor,
50
        paramType* aVar) -> bool
51
0
{
52
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->buffer())))))) {
53
0
        (aActor)->FatalError("Error deserializing 'buffer' (Shmem) member of 'RefCountedShmem'");
54
0
        return false;
55
0
    }
56
0
    // Sentinel = 'buffer'
57
0
    if ((!((aMsg)->ReadSentinel(aIter, 4093250504)))) {
58
0
        mozilla::ipc::SentinelReadError("Error deserializing 'buffer' (Shmem) member of 'RefCountedShmem'");
59
0
        return false;
60
0
    }
61
0
    return true;
62
0
}
63
64
} // namespace ipc
65
} // namespace mozilla
66
67
//-----------------------------------------------------------------------------
68
// Method definitions for the IPDL type |union OptionalTransform|
69
//
70
namespace mozilla {
71
namespace layers {
72
auto OptionalTransform::MaybeDestroy(Type aNewType) -> bool
73
0
{
74
0
    if ((mType) == (T__None)) {
75
0
        return true;
76
0
    }
77
0
    if ((mType) == (aNewType)) {
78
0
        return false;
79
0
    }
80
0
    switch (mType) {
81
0
    case TMatrix4x4:
82
0
        {
83
0
            (ptr_Matrix4x4())->~Matrix4x4__tdef();
84
0
            break;
85
0
        }
86
0
    case Tvoid_t:
87
0
        {
88
0
            (ptr_void_t())->~void_t__tdef();
89
0
            break;
90
0
        }
91
0
    default:
92
0
        {
93
0
            mozilla::ipc::LogicError("not reached");
94
0
            break;
95
0
        }
96
0
    }
97
0
    return true;
98
0
}
99
100
MOZ_IMPLICIT OptionalTransform::OptionalTransform(const Matrix4x4& aOther)
101
0
{
102
0
    new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4(aOther);
103
0
    mType = TMatrix4x4;
104
0
}
105
106
MOZ_IMPLICIT OptionalTransform::OptionalTransform(Matrix4x4&& aOther)
107
0
{
108
0
    new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4(std::move(aOther));
109
0
    mType = TMatrix4x4;
110
0
}
111
112
MOZ_IMPLICIT OptionalTransform::OptionalTransform(const void_t& aOther)
113
0
{
114
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
115
0
    mType = Tvoid_t;
116
0
}
117
118
MOZ_IMPLICIT OptionalTransform::OptionalTransform(void_t&& aOther)
119
0
{
120
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
121
0
    mType = Tvoid_t;
122
0
}
123
124
MOZ_IMPLICIT OptionalTransform::OptionalTransform(const OptionalTransform& aOther)
125
0
{
126
0
    (aOther).AssertSanity();
127
0
    switch ((aOther).type()) {
128
0
    case TMatrix4x4:
129
0
        {
130
0
            new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4((aOther).get_Matrix4x4());
131
0
            break;
132
0
        }
133
0
    case Tvoid_t:
134
0
        {
135
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
136
0
            break;
137
0
        }
138
0
    case T__None:
139
0
        {
140
0
            break;
141
0
        }
142
0
    default:
143
0
        {
144
0
            mozilla::ipc::LogicError("unreached");
145
0
            return;
146
0
        }
147
0
    }
148
0
    mType = (aOther).type();
149
0
}
150
151
MOZ_IMPLICIT OptionalTransform::OptionalTransform(OptionalTransform&& aOther)
152
0
{
153
0
    (aOther).AssertSanity();
154
0
    Type t = (aOther).type();
155
0
    switch (t) {
156
0
    case TMatrix4x4:
157
0
        {
158
0
            new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4(std::move((aOther).get_Matrix4x4()));
159
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
160
0
            break;
161
0
        }
162
0
    case Tvoid_t:
163
0
        {
164
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
165
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
166
0
            break;
167
0
        }
168
0
    case T__None:
169
0
        {
170
0
            break;
171
0
        }
172
0
    default:
173
0
        {
174
0
            mozilla::ipc::LogicError("unreached");
175
0
            return;
176
0
        }
177
0
    }
178
0
    (aOther).mType = T__None;
179
0
    mType = t;
180
0
}
181
182
OptionalTransform::~OptionalTransform()
183
0
{
184
0
    static_cast<void>(MaybeDestroy(T__None));
185
0
}
186
187
auto OptionalTransform::operator=(const Matrix4x4& aRhs) -> OptionalTransform&
188
0
{
189
0
    if (MaybeDestroy(TMatrix4x4)) {
190
0
        new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4;
191
0
    }
192
0
    (*(ptr_Matrix4x4())) = aRhs;
193
0
    mType = TMatrix4x4;
194
0
    return (*(this));
195
0
}
196
197
auto OptionalTransform::operator=(Matrix4x4&& aRhs) -> OptionalTransform&
198
0
{
199
0
    if (MaybeDestroy(TMatrix4x4)) {
200
0
        new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4;
201
0
    }
202
0
    (*(ptr_Matrix4x4())) = std::move(aRhs);
203
0
    mType = TMatrix4x4;
204
0
    return (*(this));
205
0
}
206
207
auto OptionalTransform::operator=(const void_t& aRhs) -> OptionalTransform&
208
0
{
209
0
    if (MaybeDestroy(Tvoid_t)) {
210
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
211
0
    }
212
0
    (*(ptr_void_t())) = aRhs;
213
0
    mType = Tvoid_t;
214
0
    return (*(this));
215
0
}
216
217
auto OptionalTransform::operator=(void_t&& aRhs) -> OptionalTransform&
218
0
{
219
0
    if (MaybeDestroy(Tvoid_t)) {
220
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
221
0
    }
222
0
    (*(ptr_void_t())) = std::move(aRhs);
223
0
    mType = Tvoid_t;
224
0
    return (*(this));
225
0
}
226
227
auto OptionalTransform::operator=(const OptionalTransform& aRhs) -> OptionalTransform&
228
0
{
229
0
    (aRhs).AssertSanity();
230
0
    Type t = (aRhs).type();
231
0
    switch (t) {
232
0
    case TMatrix4x4:
233
0
        {
234
0
            if (MaybeDestroy(t)) {
235
0
                new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4;
236
0
            }
237
0
            (*(ptr_Matrix4x4())) = (aRhs).get_Matrix4x4();
238
0
            break;
239
0
        }
240
0
    case Tvoid_t:
241
0
        {
242
0
            if (MaybeDestroy(t)) {
243
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
244
0
            }
245
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
246
0
            break;
247
0
        }
248
0
    case T__None:
249
0
        {
250
0
            static_cast<void>(MaybeDestroy(t));
251
0
            break;
252
0
        }
253
0
    default:
254
0
        {
255
0
            mozilla::ipc::LogicError("unreached");
256
0
            break;
257
0
        }
258
0
    }
259
0
    mType = t;
260
0
    return (*(this));
261
0
}
262
263
auto OptionalTransform::operator=(OptionalTransform&& aRhs) -> OptionalTransform&
264
0
{
265
0
    (aRhs).AssertSanity();
266
0
    Type t = (aRhs).type();
267
0
    switch (t) {
268
0
    case TMatrix4x4:
269
0
        {
270
0
            if (MaybeDestroy(t)) {
271
0
                new (mozilla::KnownNotNull, ptr_Matrix4x4()) Matrix4x4;
272
0
            }
273
0
            (*(ptr_Matrix4x4())) = std::move((aRhs).get_Matrix4x4());
274
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
275
0
            break;
276
0
        }
277
0
    case Tvoid_t:
278
0
        {
279
0
            if (MaybeDestroy(t)) {
280
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
281
0
            }
282
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
283
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
284
0
            break;
285
0
        }
286
0
    case T__None:
287
0
        {
288
0
            static_cast<void>(MaybeDestroy(t));
289
0
            break;
290
0
        }
291
0
    default:
292
0
        {
293
0
            mozilla::ipc::LogicError("unreached");
294
0
            break;
295
0
        }
296
0
    }
297
0
    (aRhs).mType = T__None;
298
0
    mType = t;
299
0
    return (*(this));
300
0
}
301
302
auto OptionalTransform::operator==(const Matrix4x4& aRhs) const -> bool
303
0
{
304
0
    return (get_Matrix4x4()) == (aRhs);
305
0
}
306
307
auto OptionalTransform::operator==(const void_t& aRhs) const -> bool
308
0
{
309
0
    return (get_void_t()) == (aRhs);
310
0
}
311
312
auto OptionalTransform::operator==(const OptionalTransform& aRhs) const -> bool
313
0
{
314
0
    if ((type()) != ((aRhs).type())) {
315
0
        return false;
316
0
    }
317
0
318
0
    switch (type()) {
319
0
    case TMatrix4x4:
320
0
        {
321
0
            return (get_Matrix4x4()) == ((aRhs).get_Matrix4x4());
322
0
        }
323
0
    case Tvoid_t:
324
0
        {
325
0
            return (get_void_t()) == ((aRhs).get_void_t());
326
0
        }
327
0
    default:
328
0
        {
329
0
            mozilla::ipc::LogicError("unreached");
330
0
            return false;
331
0
        }
332
0
    }
333
0
}
334
335
auto OptionalTransform::get(Matrix4x4* aOutValue) const -> void
336
0
{
337
0
    (*(aOutValue)) = get_Matrix4x4();
338
0
}
339
340
auto OptionalTransform::get(void_t* aOutValue) const -> void
341
0
{
342
0
    (*(aOutValue)) = get_void_t();
343
0
}
344
345
} // namespace layers
346
} // namespace mozilla
347
348
namespace mozilla {
349
namespace ipc {
350
auto IPDLParamTraits<mozilla::layers::OptionalTransform>::Write(
351
        IPC::Message* aMsg,
352
        mozilla::ipc::IProtocol* aActor,
353
        const paramType& aVar) -> void
354
{
355
    typedef mozilla::layers::OptionalTransform union__;
356
    int type;
357
    type = (aVar).type();
358
    WriteIPDLParam(aMsg, aActor, type);
359
    // Sentinel = 'OptionalTransform'
360
    (aMsg)->WriteSentinel(703005225);
361
362
    switch (type) {
363
    case union__::TMatrix4x4:
364
        {
365
            WriteIPDLParam(aMsg, aActor, (aVar).get_Matrix4x4());
366
            // Sentinel = 'TMatrix4x4'
367
            (aMsg)->WriteSentinel(1886581935);
368
            return;
369
        }
370
    case union__::Tvoid_t:
371
        {
372
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
373
            // Sentinel = 'Tvoid_t'
374
            (aMsg)->WriteSentinel(3041273328);
375
            return;
376
        }
377
    default:
378
        {
379
            (aActor)->FatalError("unknown union type");
380
            return;
381
        }
382
    }
383
}
384
385
auto IPDLParamTraits<mozilla::layers::OptionalTransform>::Read(
386
        const IPC::Message* aMsg,
387
        PickleIterator* aIter,
388
        mozilla::ipc::IProtocol* aActor,
389
        paramType* aVar) -> bool
390
0
{
391
0
    typedef mozilla::layers::OptionalTransform union__;
392
0
    int type;
393
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
394
0
        (aActor)->FatalError("Error deserializing type of union OptionalTransform");
395
0
        return false;
396
0
    }
397
0
    // Sentinel = 'OptionalTransform'
398
0
    if ((!((aMsg)->ReadSentinel(aIter, 703005225)))) {
399
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OptionalTransform");
400
0
        return false;
401
0
    }
402
0
403
0
    switch (type) {
404
0
    case union__::TMatrix4x4:
405
0
        {
406
0
            mozilla::gfx::Matrix4x4 tmp = mozilla::gfx::Matrix4x4();
407
0
            (*(aVar)) = tmp;
408
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_Matrix4x4())))))) {
409
0
                (aActor)->FatalError("Error deserializing variant TMatrix4x4 of union OptionalTransform");
410
0
                return false;
411
0
            }
412
0
            // Sentinel = 'TMatrix4x4'
413
0
            if ((!((aMsg)->ReadSentinel(aIter, 1886581935)))) {
414
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TMatrix4x4 of union OptionalTransform");
415
0
                return false;
416
0
            }
417
0
            return true;
418
0
        }
419
0
    case union__::Tvoid_t:
420
0
        {
421
0
            mozilla::void_t tmp = mozilla::void_t();
422
0
            (*(aVar)) = tmp;
423
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
424
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union OptionalTransform");
425
0
                return false;
426
0
            }
427
0
            // Sentinel = 'Tvoid_t'
428
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
429
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union OptionalTransform");
430
0
                return false;
431
0
            }
432
0
            return true;
433
0
        }
434
0
    default:
435
0
        {
436
0
            (aActor)->FatalError("unknown union type");
437
0
            return false;
438
0
        }
439
0
    }
440
0
}
441
442
} // namespace ipc
443
} // namespace mozilla
444
445
//-----------------------------------------------------------------------------
446
// Method definitions for the IPDL type |union OptionalOpacity|
447
//
448
namespace mozilla {
449
namespace layers {
450
auto OptionalOpacity::MaybeDestroy(Type aNewType) -> bool
451
0
{
452
0
    if ((mType) == (T__None)) {
453
0
        return true;
454
0
    }
455
0
    if ((mType) == (aNewType)) {
456
0
        return false;
457
0
    }
458
0
    switch (mType) {
459
0
    case Tfloat:
460
0
        {
461
0
            (ptr_float())->~float__tdef();
462
0
            break;
463
0
        }
464
0
    case Tvoid_t:
465
0
        {
466
0
            (ptr_void_t())->~void_t__tdef();
467
0
            break;
468
0
        }
469
0
    default:
470
0
        {
471
0
            mozilla::ipc::LogicError("not reached");
472
0
            break;
473
0
        }
474
0
    }
475
0
    return true;
476
0
}
477
478
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(const float& aOther)
479
0
{
480
0
    new (mozilla::KnownNotNull, ptr_float()) float(aOther);
481
0
    mType = Tfloat;
482
0
}
483
484
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(float&& aOther)
485
0
{
486
0
    new (mozilla::KnownNotNull, ptr_float()) float(std::move(aOther));
487
0
    mType = Tfloat;
488
0
}
489
490
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(const void_t& aOther)
491
0
{
492
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
493
0
    mType = Tvoid_t;
494
0
}
495
496
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(void_t&& aOther)
497
0
{
498
0
    new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move(aOther));
499
0
    mType = Tvoid_t;
500
0
}
501
502
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(const OptionalOpacity& aOther)
503
0
{
504
0
    (aOther).AssertSanity();
505
0
    switch ((aOther).type()) {
506
0
    case Tfloat:
507
0
        {
508
0
            new (mozilla::KnownNotNull, ptr_float()) float((aOther).get_float());
509
0
            break;
510
0
        }
511
0
    case Tvoid_t:
512
0
        {
513
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
514
0
            break;
515
0
        }
516
0
    case T__None:
517
0
        {
518
0
            break;
519
0
        }
520
0
    default:
521
0
        {
522
0
            mozilla::ipc::LogicError("unreached");
523
0
            return;
524
0
        }
525
0
    }
526
0
    mType = (aOther).type();
527
0
}
528
529
MOZ_IMPLICIT OptionalOpacity::OptionalOpacity(OptionalOpacity&& aOther)
530
0
{
531
0
    (aOther).AssertSanity();
532
0
    Type t = (aOther).type();
533
0
    switch (t) {
534
0
    case Tfloat:
535
0
        {
536
0
            new (mozilla::KnownNotNull, ptr_float()) float(std::move((aOther).get_float()));
537
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
538
0
            break;
539
0
        }
540
0
    case Tvoid_t:
541
0
        {
542
0
            new (mozilla::KnownNotNull, ptr_void_t()) void_t(std::move((aOther).get_void_t()));
543
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
544
0
            break;
545
0
        }
546
0
    case T__None:
547
0
        {
548
0
            break;
549
0
        }
550
0
    default:
551
0
        {
552
0
            mozilla::ipc::LogicError("unreached");
553
0
            return;
554
0
        }
555
0
    }
556
0
    (aOther).mType = T__None;
557
0
    mType = t;
558
0
}
559
560
OptionalOpacity::~OptionalOpacity()
561
0
{
562
0
    static_cast<void>(MaybeDestroy(T__None));
563
0
}
564
565
auto OptionalOpacity::operator=(const float& aRhs) -> OptionalOpacity&
566
0
{
567
0
    if (MaybeDestroy(Tfloat)) {
568
0
        new (mozilla::KnownNotNull, ptr_float()) float;
569
0
    }
570
0
    (*(ptr_float())) = aRhs;
571
0
    mType = Tfloat;
572
0
    return (*(this));
573
0
}
574
575
auto OptionalOpacity::operator=(float&& aRhs) -> OptionalOpacity&
576
0
{
577
0
    if (MaybeDestroy(Tfloat)) {
578
0
        new (mozilla::KnownNotNull, ptr_float()) float;
579
0
    }
580
0
    (*(ptr_float())) = std::move(aRhs);
581
0
    mType = Tfloat;
582
0
    return (*(this));
583
0
}
584
585
auto OptionalOpacity::operator=(const void_t& aRhs) -> OptionalOpacity&
586
0
{
587
0
    if (MaybeDestroy(Tvoid_t)) {
588
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
589
0
    }
590
0
    (*(ptr_void_t())) = aRhs;
591
0
    mType = Tvoid_t;
592
0
    return (*(this));
593
0
}
594
595
auto OptionalOpacity::operator=(void_t&& aRhs) -> OptionalOpacity&
596
0
{
597
0
    if (MaybeDestroy(Tvoid_t)) {
598
0
        new (mozilla::KnownNotNull, ptr_void_t()) void_t;
599
0
    }
600
0
    (*(ptr_void_t())) = std::move(aRhs);
601
0
    mType = Tvoid_t;
602
0
    return (*(this));
603
0
}
604
605
auto OptionalOpacity::operator=(const OptionalOpacity& aRhs) -> OptionalOpacity&
606
0
{
607
0
    (aRhs).AssertSanity();
608
0
    Type t = (aRhs).type();
609
0
    switch (t) {
610
0
    case Tfloat:
611
0
        {
612
0
            if (MaybeDestroy(t)) {
613
0
                new (mozilla::KnownNotNull, ptr_float()) float;
614
0
            }
615
0
            (*(ptr_float())) = (aRhs).get_float();
616
0
            break;
617
0
        }
618
0
    case Tvoid_t:
619
0
        {
620
0
            if (MaybeDestroy(t)) {
621
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
622
0
            }
623
0
            (*(ptr_void_t())) = (aRhs).get_void_t();
624
0
            break;
625
0
        }
626
0
    case T__None:
627
0
        {
628
0
            static_cast<void>(MaybeDestroy(t));
629
0
            break;
630
0
        }
631
0
    default:
632
0
        {
633
0
            mozilla::ipc::LogicError("unreached");
634
0
            break;
635
0
        }
636
0
    }
637
0
    mType = t;
638
0
    return (*(this));
639
0
}
640
641
auto OptionalOpacity::operator=(OptionalOpacity&& aRhs) -> OptionalOpacity&
642
0
{
643
0
    (aRhs).AssertSanity();
644
0
    Type t = (aRhs).type();
645
0
    switch (t) {
646
0
    case Tfloat:
647
0
        {
648
0
            if (MaybeDestroy(t)) {
649
0
                new (mozilla::KnownNotNull, ptr_float()) float;
650
0
            }
651
0
            (*(ptr_float())) = std::move((aRhs).get_float());
652
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
653
0
            break;
654
0
        }
655
0
    case Tvoid_t:
656
0
        {
657
0
            if (MaybeDestroy(t)) {
658
0
                new (mozilla::KnownNotNull, ptr_void_t()) void_t;
659
0
            }
660
0
            (*(ptr_void_t())) = std::move((aRhs).get_void_t());
661
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
662
0
            break;
663
0
        }
664
0
    case T__None:
665
0
        {
666
0
            static_cast<void>(MaybeDestroy(t));
667
0
            break;
668
0
        }
669
0
    default:
670
0
        {
671
0
            mozilla::ipc::LogicError("unreached");
672
0
            break;
673
0
        }
674
0
    }
675
0
    (aRhs).mType = T__None;
676
0
    mType = t;
677
0
    return (*(this));
678
0
}
679
680
auto OptionalOpacity::operator==(const float& aRhs) const -> bool
681
0
{
682
0
    return (get_float()) == (aRhs);
683
0
}
684
685
auto OptionalOpacity::operator==(const void_t& aRhs) const -> bool
686
0
{
687
0
    return (get_void_t()) == (aRhs);
688
0
}
689
690
auto OptionalOpacity::operator==(const OptionalOpacity& aRhs) const -> bool
691
0
{
692
0
    if ((type()) != ((aRhs).type())) {
693
0
        return false;
694
0
    }
695
0
696
0
    switch (type()) {
697
0
    case Tfloat:
698
0
        {
699
0
            return (get_float()) == ((aRhs).get_float());
700
0
        }
701
0
    case Tvoid_t:
702
0
        {
703
0
            return (get_void_t()) == ((aRhs).get_void_t());
704
0
        }
705
0
    default:
706
0
        {
707
0
            mozilla::ipc::LogicError("unreached");
708
0
            return false;
709
0
        }
710
0
    }
711
0
}
712
713
auto OptionalOpacity::get(float* aOutValue) const -> void
714
0
{
715
0
    (*(aOutValue)) = get_float();
716
0
}
717
718
auto OptionalOpacity::get(void_t* aOutValue) const -> void
719
0
{
720
0
    (*(aOutValue)) = get_void_t();
721
0
}
722
723
} // namespace layers
724
} // namespace mozilla
725
726
namespace mozilla {
727
namespace ipc {
728
auto IPDLParamTraits<mozilla::layers::OptionalOpacity>::Write(
729
        IPC::Message* aMsg,
730
        mozilla::ipc::IProtocol* aActor,
731
        const paramType& aVar) -> void
732
{
733
    typedef mozilla::layers::OptionalOpacity union__;
734
    int type;
735
    type = (aVar).type();
736
    WriteIPDLParam(aMsg, aActor, type);
737
    // Sentinel = 'OptionalOpacity'
738
    (aMsg)->WriteSentinel(2560878060);
739
740
    switch (type) {
741
    case union__::Tfloat:
742
        {
743
            WriteIPDLParam(aMsg, aActor, (aVar).get_float());
744
            // Sentinel = 'Tfloat'
745
            (aMsg)->WriteSentinel(2693237468);
746
            return;
747
        }
748
    case union__::Tvoid_t:
749
        {
750
            WriteIPDLParam(aMsg, aActor, (aVar).get_void_t());
751
            // Sentinel = 'Tvoid_t'
752
            (aMsg)->WriteSentinel(3041273328);
753
            return;
754
        }
755
    default:
756
        {
757
            (aActor)->FatalError("unknown union type");
758
            return;
759
        }
760
    }
761
}
762
763
auto IPDLParamTraits<mozilla::layers::OptionalOpacity>::Read(
764
        const IPC::Message* aMsg,
765
        PickleIterator* aIter,
766
        mozilla::ipc::IProtocol* aActor,
767
        paramType* aVar) -> bool
768
0
{
769
0
    typedef mozilla::layers::OptionalOpacity union__;
770
0
    int type;
771
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
772
0
        (aActor)->FatalError("Error deserializing type of union OptionalOpacity");
773
0
        return false;
774
0
    }
775
0
    // Sentinel = 'OptionalOpacity'
776
0
    if ((!((aMsg)->ReadSentinel(aIter, 2560878060)))) {
777
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OptionalOpacity");
778
0
        return false;
779
0
    }
780
0
781
0
    switch (type) {
782
0
    case union__::Tfloat:
783
0
        {
784
0
            float tmp = float();
785
0
            (*(aVar)) = tmp;
786
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_float())))))) {
787
0
                (aActor)->FatalError("Error deserializing variant Tfloat of union OptionalOpacity");
788
0
                return false;
789
0
            }
790
0
            // Sentinel = 'Tfloat'
791
0
            if ((!((aMsg)->ReadSentinel(aIter, 2693237468)))) {
792
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tfloat of union OptionalOpacity");
793
0
                return false;
794
0
            }
795
0
            return true;
796
0
        }
797
0
    case union__::Tvoid_t:
798
0
        {
799
0
            mozilla::void_t tmp = mozilla::void_t();
800
0
            (*(aVar)) = tmp;
801
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_void_t())))))) {
802
0
                (aActor)->FatalError("Error deserializing variant Tvoid_t of union OptionalOpacity");
803
0
                return false;
804
0
            }
805
0
            // Sentinel = 'Tvoid_t'
806
0
            if ((!((aMsg)->ReadSentinel(aIter, 3041273328)))) {
807
0
                mozilla::ipc::SentinelReadError("Error deserializing variant Tvoid_t of union OptionalOpacity");
808
0
                return false;
809
0
            }
810
0
            return true;
811
0
        }
812
0
    default:
813
0
        {
814
0
            (aActor)->FatalError("unknown union type");
815
0
            return false;
816
0
        }
817
0
    }
818
0
}
819
820
} // namespace ipc
821
} // namespace mozilla
822
823
//-----------------------------------------------------------------------------
824
// Method definitions for the IPDL type |struct OpAddExternalImage|
825
//
826
namespace mozilla {
827
namespace layers {
828
auto OpAddExternalImage::operator==(const OpAddExternalImage& _o) const -> bool
829
0
{
830
0
    if ((!((externalImageId()) == ((_o).externalImageId())))) {
831
0
        return false;
832
0
    }
833
0
    if ((!((key()) == ((_o).key())))) {
834
0
        return false;
835
0
    }
836
0
    return true;
837
0
}
838
839
auto OpAddExternalImage::operator!=(const OpAddExternalImage& _o) const -> bool
840
0
{
841
0
    return (!(operator==(_o)));
842
0
}
843
844
} // namespace layers
845
} // namespace mozilla
846
847
namespace mozilla {
848
namespace ipc {
849
auto IPDLParamTraits<mozilla::layers::OpAddExternalImage>::Write(
850
        IPC::Message* aMsg,
851
        mozilla::ipc::IProtocol* aActor,
852
        const paramType& aVar) -> void
853
0
{
854
0
    WriteIPDLParam(aMsg, aActor, (aVar).externalImageId());
855
0
    // Sentinel = 'externalImageId'
856
0
    (aMsg)->WriteSentinel(2839682692);
857
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
858
0
    // Sentinel = 'key'
859
0
    (aMsg)->WriteSentinel(35142870);
860
0
}
861
862
auto IPDLParamTraits<mozilla::layers::OpAddExternalImage>::Read(
863
        const IPC::Message* aMsg,
864
        PickleIterator* aIter,
865
        mozilla::ipc::IProtocol* aActor,
866
        paramType* aVar) -> bool
867
0
{
868
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->externalImageId())))))) {
869
0
        (aActor)->FatalError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpAddExternalImage'");
870
0
        return false;
871
0
    }
872
0
    // Sentinel = 'externalImageId'
873
0
    if ((!((aMsg)->ReadSentinel(aIter, 2839682692)))) {
874
0
        mozilla::ipc::SentinelReadError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpAddExternalImage'");
875
0
        return false;
876
0
    }
877
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
878
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpAddExternalImage'");
879
0
        return false;
880
0
    }
881
0
    // Sentinel = 'key'
882
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
883
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpAddExternalImage'");
884
0
        return false;
885
0
    }
886
0
    return true;
887
0
}
888
889
} // namespace ipc
890
} // namespace mozilla
891
892
//-----------------------------------------------------------------------------
893
// Method definitions for the IPDL type |struct OpPushExternalImageForTexture|
894
//
895
namespace mozilla {
896
namespace layers {
897
auto OpPushExternalImageForTexture::operator==(const OpPushExternalImageForTexture& _o) const -> bool
898
0
{
899
0
    if ((!((externalImageId()) == ((_o).externalImageId())))) {
900
0
        return false;
901
0
    }
902
0
    if ((!((key()) == ((_o).key())))) {
903
0
        return false;
904
0
    }
905
0
    if ((!((textureParent()) == ((_o).textureParent())))) {
906
0
        return false;
907
0
    }
908
0
    if ((!((textureChild()) == ((_o).textureChild())))) {
909
0
        return false;
910
0
    }
911
0
    if ((!((isUpdate()) == ((_o).isUpdate())))) {
912
0
        return false;
913
0
    }
914
0
    return true;
915
0
}
916
917
auto OpPushExternalImageForTexture::operator!=(const OpPushExternalImageForTexture& _o) const -> bool
918
0
{
919
0
    return (!(operator==(_o)));
920
0
}
921
922
} // namespace layers
923
} // namespace mozilla
924
925
namespace mozilla {
926
namespace ipc {
927
auto IPDLParamTraits<mozilla::layers::OpPushExternalImageForTexture>::Write(
928
        IPC::Message* aMsg,
929
        mozilla::ipc::IProtocol* aActor,
930
        const paramType& aVar) -> void
931
0
{
932
0
    WriteIPDLParam(aMsg, aActor, (aVar).externalImageId());
933
0
    // Sentinel = 'externalImageId'
934
0
    (aMsg)->WriteSentinel(2839682692);
935
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
936
0
    // Sentinel = 'key'
937
0
    (aMsg)->WriteSentinel(35142870);
938
0
    if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
939
0
        MOZ_RELEASE_ASSERT((aVar).textureParent(), "NULL actor value passed to non-nullable param");
940
0
        WriteIPDLParam(aMsg, aActor, (aVar).textureParent());
941
0
        // Sentinel = 'texture'
942
0
        (aMsg)->WriteSentinel(3654462510);
943
0
    }
944
0
    if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
945
0
        MOZ_RELEASE_ASSERT((aVar).textureChild(), "NULL actor value passed to non-nullable param");
946
0
        WriteIPDLParam(aMsg, aActor, (aVar).textureChild());
947
0
        // Sentinel = 'texture'
948
0
        (aMsg)->WriteSentinel(3654462510);
949
0
    }
950
0
    WriteIPDLParam(aMsg, aActor, (aVar).isUpdate());
951
0
    // Sentinel = 'isUpdate'
952
0
    (aMsg)->WriteSentinel(3349116411);
953
0
}
954
955
auto IPDLParamTraits<mozilla::layers::OpPushExternalImageForTexture>::Read(
956
        const IPC::Message* aMsg,
957
        PickleIterator* aIter,
958
        mozilla::ipc::IProtocol* aActor,
959
        paramType* aVar) -> bool
960
0
{
961
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->externalImageId())))))) {
962
0
        (aActor)->FatalError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpPushExternalImageForTexture'");
963
0
        return false;
964
0
    }
965
0
    // Sentinel = 'externalImageId'
966
0
    if ((!((aMsg)->ReadSentinel(aIter, 2839682692)))) {
967
0
        mozilla::ipc::SentinelReadError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpPushExternalImageForTexture'");
968
0
        return false;
969
0
    }
970
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
971
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpPushExternalImageForTexture'");
972
0
        return false;
973
0
    }
974
0
    // Sentinel = 'key'
975
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
976
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpPushExternalImageForTexture'");
977
0
        return false;
978
0
    }
979
0
    if ((mozilla::ipc::ParentSide) == ((aActor)->GetSide())) {
980
0
        if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->textureParent())))))) {
981
0
            (aActor)->FatalError("Error deserializing 'textureParent' (PTexture) member of 'OpPushExternalImageForTexture'");
982
0
            return false;
983
0
        }
984
0
        if ((!((*((&((aVar)->textureParent()))))))) {
985
0
            (aActor)->FatalError("Error deserializing 'textureParent' (PTexture) member of 'OpPushExternalImageForTexture'");
986
0
            return false;
987
0
        }
988
0
        // Sentinel = 'texture'
989
0
        if ((!((aMsg)->ReadSentinel(aIter, 3654462510)))) {
990
0
            mozilla::ipc::SentinelReadError("Error deserializing 'textureParent' (PTexture) member of 'OpPushExternalImageForTexture'");
991
0
            return false;
992
0
        }
993
0
    }
994
0
    if ((mozilla::ipc::ChildSide) == ((aActor)->GetSide())) {
995
0
        if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->textureChild())))))) {
996
0
            (aActor)->FatalError("Error deserializing 'textureChild' (PTexture) member of 'OpPushExternalImageForTexture'");
997
0
            return false;
998
0
        }
999
0
        if ((!((*((&((aVar)->textureChild()))))))) {
1000
0
            (aActor)->FatalError("Error deserializing 'textureChild' (PTexture) member of 'OpPushExternalImageForTexture'");
1001
0
            return false;
1002
0
        }
1003
0
        // Sentinel = 'texture'
1004
0
        if ((!((aMsg)->ReadSentinel(aIter, 3654462510)))) {
1005
0
            mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'OpPushExternalImageForTexture'");
1006
0
            return false;
1007
0
        }
1008
0
    }
1009
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isUpdate())))))) {
1010
0
        (aActor)->FatalError("Error deserializing 'isUpdate' (bool) member of 'OpPushExternalImageForTexture'");
1011
0
        return false;
1012
0
    }
1013
0
    // Sentinel = 'isUpdate'
1014
0
    if ((!((aMsg)->ReadSentinel(aIter, 3349116411)))) {
1015
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isUpdate' (bool) member of 'OpPushExternalImageForTexture'");
1016
0
        return false;
1017
0
    }
1018
0
    return true;
1019
0
}
1020
1021
} // namespace ipc
1022
} // namespace mozilla
1023
1024
//-----------------------------------------------------------------------------
1025
// Method definitions for the IPDL type |struct OpAddCompositorAnimations|
1026
//
1027
namespace mozilla {
1028
namespace layers {
1029
auto OpAddCompositorAnimations::operator==(const OpAddCompositorAnimations& _o) const -> bool
1030
0
{
1031
0
    if ((!((data()) == ((_o).data())))) {
1032
0
        return false;
1033
0
    }
1034
0
    return true;
1035
0
}
1036
1037
auto OpAddCompositorAnimations::operator!=(const OpAddCompositorAnimations& _o) const -> bool
1038
0
{
1039
0
    return (!(operator==(_o)));
1040
0
}
1041
1042
} // namespace layers
1043
} // namespace mozilla
1044
1045
namespace mozilla {
1046
namespace ipc {
1047
auto IPDLParamTraits<mozilla::layers::OpAddCompositorAnimations>::Write(
1048
        IPC::Message* aMsg,
1049
        mozilla::ipc::IProtocol* aActor,
1050
        const paramType& aVar) -> void
1051
0
{
1052
0
    WriteIPDLParam(aMsg, aActor, (aVar).data());
1053
0
    // Sentinel = 'data'
1054
0
    (aMsg)->WriteSentinel(843352540);
1055
0
}
1056
1057
auto IPDLParamTraits<mozilla::layers::OpAddCompositorAnimations>::Read(
1058
        const IPC::Message* aMsg,
1059
        PickleIterator* aIter,
1060
        mozilla::ipc::IProtocol* aActor,
1061
        paramType* aVar) -> bool
1062
0
{
1063
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->data())))))) {
1064
0
        (aActor)->FatalError("Error deserializing 'data' (CompositorAnimations) member of 'OpAddCompositorAnimations'");
1065
0
        return false;
1066
0
    }
1067
0
    // Sentinel = 'data'
1068
0
    if ((!((aMsg)->ReadSentinel(aIter, 843352540)))) {
1069
0
        mozilla::ipc::SentinelReadError("Error deserializing 'data' (CompositorAnimations) member of 'OpAddCompositorAnimations'");
1070
0
        return false;
1071
0
    }
1072
0
    return true;
1073
0
}
1074
1075
} // namespace ipc
1076
} // namespace mozilla
1077
1078
//-----------------------------------------------------------------------------
1079
// Method definitions for the IPDL type |struct OpAddPipelineIdForCompositable|
1080
//
1081
namespace mozilla {
1082
namespace layers {
1083
auto OpAddPipelineIdForCompositable::operator==(const OpAddPipelineIdForCompositable& _o) const -> bool
1084
0
{
1085
0
    if ((!((pipelineId()) == ((_o).pipelineId())))) {
1086
0
        return false;
1087
0
    }
1088
0
    if ((!((handle()) == ((_o).handle())))) {
1089
0
        return false;
1090
0
    }
1091
0
    if ((!((isAsync()) == ((_o).isAsync())))) {
1092
0
        return false;
1093
0
    }
1094
0
    return true;
1095
0
}
1096
1097
auto OpAddPipelineIdForCompositable::operator!=(const OpAddPipelineIdForCompositable& _o) const -> bool
1098
0
{
1099
0
    return (!(operator==(_o)));
1100
0
}
1101
1102
} // namespace layers
1103
} // namespace mozilla
1104
1105
namespace mozilla {
1106
namespace ipc {
1107
auto IPDLParamTraits<mozilla::layers::OpAddPipelineIdForCompositable>::Write(
1108
        IPC::Message* aMsg,
1109
        mozilla::ipc::IProtocol* aActor,
1110
        const paramType& aVar) -> void
1111
0
{
1112
0
    WriteIPDLParam(aMsg, aActor, (aVar).pipelineId());
1113
0
    // Sentinel = 'pipelineId'
1114
0
    (aMsg)->WriteSentinel(4067092043);
1115
0
    WriteIPDLParam(aMsg, aActor, (aVar).handle());
1116
0
    // Sentinel = 'handle'
1117
0
    (aMsg)->WriteSentinel(453975108);
1118
0
    WriteIPDLParam(aMsg, aActor, (aVar).isAsync());
1119
0
    // Sentinel = 'isAsync'
1120
0
    (aMsg)->WriteSentinel(643016499);
1121
0
}
1122
1123
auto IPDLParamTraits<mozilla::layers::OpAddPipelineIdForCompositable>::Read(
1124
        const IPC::Message* aMsg,
1125
        PickleIterator* aIter,
1126
        mozilla::ipc::IProtocol* aActor,
1127
        paramType* aVar) -> bool
1128
0
{
1129
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pipelineId())))))) {
1130
0
        (aActor)->FatalError("Error deserializing 'pipelineId' (PipelineId) member of 'OpAddPipelineIdForCompositable'");
1131
0
        return false;
1132
0
    }
1133
0
    // Sentinel = 'pipelineId'
1134
0
    if ((!((aMsg)->ReadSentinel(aIter, 4067092043)))) {
1135
0
        mozilla::ipc::SentinelReadError("Error deserializing 'pipelineId' (PipelineId) member of 'OpAddPipelineIdForCompositable'");
1136
0
        return false;
1137
0
    }
1138
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->handle())))))) {
1139
0
        (aActor)->FatalError("Error deserializing 'handle' (CompositableHandle) member of 'OpAddPipelineIdForCompositable'");
1140
0
        return false;
1141
0
    }
1142
0
    // Sentinel = 'handle'
1143
0
    if ((!((aMsg)->ReadSentinel(aIter, 453975108)))) {
1144
0
        mozilla::ipc::SentinelReadError("Error deserializing 'handle' (CompositableHandle) member of 'OpAddPipelineIdForCompositable'");
1145
0
        return false;
1146
0
    }
1147
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isAsync())))))) {
1148
0
        (aActor)->FatalError("Error deserializing 'isAsync' (bool) member of 'OpAddPipelineIdForCompositable'");
1149
0
        return false;
1150
0
    }
1151
0
    // Sentinel = 'isAsync'
1152
0
    if ((!((aMsg)->ReadSentinel(aIter, 643016499)))) {
1153
0
        mozilla::ipc::SentinelReadError("Error deserializing 'isAsync' (bool) member of 'OpAddPipelineIdForCompositable'");
1154
0
        return false;
1155
0
    }
1156
0
    return true;
1157
0
}
1158
1159
} // namespace ipc
1160
} // namespace mozilla
1161
1162
//-----------------------------------------------------------------------------
1163
// Method definitions for the IPDL type |struct OpRemovePipelineIdForCompositable|
1164
//
1165
namespace mozilla {
1166
namespace layers {
1167
auto OpRemovePipelineIdForCompositable::operator==(const OpRemovePipelineIdForCompositable& _o) const -> bool
1168
0
{
1169
0
    if ((!((pipelineId()) == ((_o).pipelineId())))) {
1170
0
        return false;
1171
0
    }
1172
0
    return true;
1173
0
}
1174
1175
auto OpRemovePipelineIdForCompositable::operator!=(const OpRemovePipelineIdForCompositable& _o) const -> bool
1176
0
{
1177
0
    return (!(operator==(_o)));
1178
0
}
1179
1180
} // namespace layers
1181
} // namespace mozilla
1182
1183
namespace mozilla {
1184
namespace ipc {
1185
auto IPDLParamTraits<mozilla::layers::OpRemovePipelineIdForCompositable>::Write(
1186
        IPC::Message* aMsg,
1187
        mozilla::ipc::IProtocol* aActor,
1188
        const paramType& aVar) -> void
1189
0
{
1190
0
    WriteIPDLParam(aMsg, aActor, (aVar).pipelineId());
1191
0
    // Sentinel = 'pipelineId'
1192
0
    (aMsg)->WriteSentinel(4067092043);
1193
0
}
1194
1195
auto IPDLParamTraits<mozilla::layers::OpRemovePipelineIdForCompositable>::Read(
1196
        const IPC::Message* aMsg,
1197
        PickleIterator* aIter,
1198
        mozilla::ipc::IProtocol* aActor,
1199
        paramType* aVar) -> bool
1200
0
{
1201
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pipelineId())))))) {
1202
0
        (aActor)->FatalError("Error deserializing 'pipelineId' (PipelineId) member of 'OpRemovePipelineIdForCompositable'");
1203
0
        return false;
1204
0
    }
1205
0
    // Sentinel = 'pipelineId'
1206
0
    if ((!((aMsg)->ReadSentinel(aIter, 4067092043)))) {
1207
0
        mozilla::ipc::SentinelReadError("Error deserializing 'pipelineId' (PipelineId) member of 'OpRemovePipelineIdForCompositable'");
1208
0
        return false;
1209
0
    }
1210
0
    return true;
1211
0
}
1212
1213
} // namespace ipc
1214
} // namespace mozilla
1215
1216
//-----------------------------------------------------------------------------
1217
// Method definitions for the IPDL type |struct OpRemoveExternalImageId|
1218
//
1219
namespace mozilla {
1220
namespace layers {
1221
auto OpRemoveExternalImageId::operator==(const OpRemoveExternalImageId& _o) const -> bool
1222
0
{
1223
0
    if ((!((externalImageId()) == ((_o).externalImageId())))) {
1224
0
        return false;
1225
0
    }
1226
0
    return true;
1227
0
}
1228
1229
auto OpRemoveExternalImageId::operator!=(const OpRemoveExternalImageId& _o) const -> bool
1230
0
{
1231
0
    return (!(operator==(_o)));
1232
0
}
1233
1234
} // namespace layers
1235
} // namespace mozilla
1236
1237
namespace mozilla {
1238
namespace ipc {
1239
auto IPDLParamTraits<mozilla::layers::OpRemoveExternalImageId>::Write(
1240
        IPC::Message* aMsg,
1241
        mozilla::ipc::IProtocol* aActor,
1242
        const paramType& aVar) -> void
1243
0
{
1244
0
    WriteIPDLParam(aMsg, aActor, (aVar).externalImageId());
1245
0
    // Sentinel = 'externalImageId'
1246
0
    (aMsg)->WriteSentinel(2839682692);
1247
0
}
1248
1249
auto IPDLParamTraits<mozilla::layers::OpRemoveExternalImageId>::Read(
1250
        const IPC::Message* aMsg,
1251
        PickleIterator* aIter,
1252
        mozilla::ipc::IProtocol* aActor,
1253
        paramType* aVar) -> bool
1254
0
{
1255
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->externalImageId())))))) {
1256
0
        (aActor)->FatalError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpRemoveExternalImageId'");
1257
0
        return false;
1258
0
    }
1259
0
    // Sentinel = 'externalImageId'
1260
0
    if ((!((aMsg)->ReadSentinel(aIter, 2839682692)))) {
1261
0
        mozilla::ipc::SentinelReadError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpRemoveExternalImageId'");
1262
0
        return false;
1263
0
    }
1264
0
    return true;
1265
0
}
1266
1267
} // namespace ipc
1268
} // namespace mozilla
1269
1270
//-----------------------------------------------------------------------------
1271
// Method definitions for the IPDL type |struct OpReleaseTextureOfImage|
1272
//
1273
namespace mozilla {
1274
namespace layers {
1275
auto OpReleaseTextureOfImage::operator==(const OpReleaseTextureOfImage& _o) const -> bool
1276
0
{
1277
0
    if ((!((key()) == ((_o).key())))) {
1278
0
        return false;
1279
0
    }
1280
0
    return true;
1281
0
}
1282
1283
auto OpReleaseTextureOfImage::operator!=(const OpReleaseTextureOfImage& _o) const -> bool
1284
0
{
1285
0
    return (!(operator==(_o)));
1286
0
}
1287
1288
} // namespace layers
1289
} // namespace mozilla
1290
1291
namespace mozilla {
1292
namespace ipc {
1293
auto IPDLParamTraits<mozilla::layers::OpReleaseTextureOfImage>::Write(
1294
        IPC::Message* aMsg,
1295
        mozilla::ipc::IProtocol* aActor,
1296
        const paramType& aVar) -> void
1297
0
{
1298
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
1299
0
    // Sentinel = 'key'
1300
0
    (aMsg)->WriteSentinel(35142870);
1301
0
}
1302
1303
auto IPDLParamTraits<mozilla::layers::OpReleaseTextureOfImage>::Read(
1304
        const IPC::Message* aMsg,
1305
        PickleIterator* aIter,
1306
        mozilla::ipc::IProtocol* aActor,
1307
        paramType* aVar) -> bool
1308
0
{
1309
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
1310
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpReleaseTextureOfImage'");
1311
0
        return false;
1312
0
    }
1313
0
    // Sentinel = 'key'
1314
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
1315
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpReleaseTextureOfImage'");
1316
0
        return false;
1317
0
    }
1318
0
    return true;
1319
0
}
1320
1321
} // namespace ipc
1322
} // namespace mozilla
1323
1324
//-----------------------------------------------------------------------------
1325
// Method definitions for the IPDL type |struct OpUpdateAsyncImagePipeline|
1326
//
1327
namespace mozilla {
1328
namespace layers {
1329
auto OpUpdateAsyncImagePipeline::operator==(const OpUpdateAsyncImagePipeline& _o) const -> bool
1330
0
{
1331
0
    if ((!((pipelineId()) == ((_o).pipelineId())))) {
1332
0
        return false;
1333
0
    }
1334
0
    if ((!((scBounds()) == ((_o).scBounds())))) {
1335
0
        return false;
1336
0
    }
1337
0
    if ((!((scTransform()) == ((_o).scTransform())))) {
1338
0
        return false;
1339
0
    }
1340
0
    if ((!((scaleToSize()) == ((_o).scaleToSize())))) {
1341
0
        return false;
1342
0
    }
1343
0
    if ((!((filter()) == ((_o).filter())))) {
1344
0
        return false;
1345
0
    }
1346
0
    if ((!((mixBlendMode()) == ((_o).mixBlendMode())))) {
1347
0
        return false;
1348
0
    }
1349
0
    return true;
1350
0
}
1351
1352
auto OpUpdateAsyncImagePipeline::operator!=(const OpUpdateAsyncImagePipeline& _o) const -> bool
1353
0
{
1354
0
    return (!(operator==(_o)));
1355
0
}
1356
1357
} // namespace layers
1358
} // namespace mozilla
1359
1360
namespace mozilla {
1361
namespace ipc {
1362
auto IPDLParamTraits<mozilla::layers::OpUpdateAsyncImagePipeline>::Write(
1363
        IPC::Message* aMsg,
1364
        mozilla::ipc::IProtocol* aActor,
1365
        const paramType& aVar) -> void
1366
0
{
1367
0
    WriteIPDLParam(aMsg, aActor, (aVar).pipelineId());
1368
0
    // Sentinel = 'pipelineId'
1369
0
    (aMsg)->WriteSentinel(4067092043);
1370
0
    WriteIPDLParam(aMsg, aActor, (aVar).scBounds());
1371
0
    // Sentinel = 'scBounds'
1372
0
    (aMsg)->WriteSentinel(448805933);
1373
0
    WriteIPDLParam(aMsg, aActor, (aVar).scTransform());
1374
0
    // Sentinel = 'scTransform'
1375
0
    (aMsg)->WriteSentinel(1345782441);
1376
0
    WriteIPDLParam(aMsg, aActor, (aVar).scaleToSize());
1377
0
    // Sentinel = 'scaleToSize'
1378
0
    (aMsg)->WriteSentinel(1078440273);
1379
0
    WriteIPDLParam(aMsg, aActor, (aVar).filter());
1380
0
    // Sentinel = 'filter'
1381
0
    (aMsg)->WriteSentinel(2236769008);
1382
0
    WriteIPDLParam(aMsg, aActor, (aVar).mixBlendMode());
1383
0
    // Sentinel = 'mixBlendMode'
1384
0
    (aMsg)->WriteSentinel(1158101226);
1385
0
}
1386
1387
auto IPDLParamTraits<mozilla::layers::OpUpdateAsyncImagePipeline>::Read(
1388
        const IPC::Message* aMsg,
1389
        PickleIterator* aIter,
1390
        mozilla::ipc::IProtocol* aActor,
1391
        paramType* aVar) -> bool
1392
0
{
1393
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pipelineId())))))) {
1394
0
        (aActor)->FatalError("Error deserializing 'pipelineId' (PipelineId) member of 'OpUpdateAsyncImagePipeline'");
1395
0
        return false;
1396
0
    }
1397
0
    // Sentinel = 'pipelineId'
1398
0
    if ((!((aMsg)->ReadSentinel(aIter, 4067092043)))) {
1399
0
        mozilla::ipc::SentinelReadError("Error deserializing 'pipelineId' (PipelineId) member of 'OpUpdateAsyncImagePipeline'");
1400
0
        return false;
1401
0
    }
1402
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->scBounds())))))) {
1403
0
        (aActor)->FatalError("Error deserializing 'scBounds' (LayoutDeviceRect) member of 'OpUpdateAsyncImagePipeline'");
1404
0
        return false;
1405
0
    }
1406
0
    // Sentinel = 'scBounds'
1407
0
    if ((!((aMsg)->ReadSentinel(aIter, 448805933)))) {
1408
0
        mozilla::ipc::SentinelReadError("Error deserializing 'scBounds' (LayoutDeviceRect) member of 'OpUpdateAsyncImagePipeline'");
1409
0
        return false;
1410
0
    }
1411
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->scTransform())))))) {
1412
0
        (aActor)->FatalError("Error deserializing 'scTransform' (Matrix4x4) member of 'OpUpdateAsyncImagePipeline'");
1413
0
        return false;
1414
0
    }
1415
0
    // Sentinel = 'scTransform'
1416
0
    if ((!((aMsg)->ReadSentinel(aIter, 1345782441)))) {
1417
0
        mozilla::ipc::SentinelReadError("Error deserializing 'scTransform' (Matrix4x4) member of 'OpUpdateAsyncImagePipeline'");
1418
0
        return false;
1419
0
    }
1420
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->scaleToSize())))))) {
1421
0
        (aActor)->FatalError("Error deserializing 'scaleToSize' (MaybeIntSize) member of 'OpUpdateAsyncImagePipeline'");
1422
0
        return false;
1423
0
    }
1424
0
    // Sentinel = 'scaleToSize'
1425
0
    if ((!((aMsg)->ReadSentinel(aIter, 1078440273)))) {
1426
0
        mozilla::ipc::SentinelReadError("Error deserializing 'scaleToSize' (MaybeIntSize) member of 'OpUpdateAsyncImagePipeline'");
1427
0
        return false;
1428
0
    }
1429
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->filter())))))) {
1430
0
        (aActor)->FatalError("Error deserializing 'filter' (ImageRendering) member of 'OpUpdateAsyncImagePipeline'");
1431
0
        return false;
1432
0
    }
1433
0
    // Sentinel = 'filter'
1434
0
    if ((!((aMsg)->ReadSentinel(aIter, 2236769008)))) {
1435
0
        mozilla::ipc::SentinelReadError("Error deserializing 'filter' (ImageRendering) member of 'OpUpdateAsyncImagePipeline'");
1436
0
        return false;
1437
0
    }
1438
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mixBlendMode())))))) {
1439
0
        (aActor)->FatalError("Error deserializing 'mixBlendMode' (MixBlendMode) member of 'OpUpdateAsyncImagePipeline'");
1440
0
        return false;
1441
0
    }
1442
0
    // Sentinel = 'mixBlendMode'
1443
0
    if ((!((aMsg)->ReadSentinel(aIter, 1158101226)))) {
1444
0
        mozilla::ipc::SentinelReadError("Error deserializing 'mixBlendMode' (MixBlendMode) member of 'OpUpdateAsyncImagePipeline'");
1445
0
        return false;
1446
0
    }
1447
0
    return true;
1448
0
}
1449
1450
} // namespace ipc
1451
} // namespace mozilla
1452
1453
//-----------------------------------------------------------------------------
1454
// Method definitions for the IPDL type |struct OpUpdatedAsyncImagePipeline|
1455
//
1456
namespace mozilla {
1457
namespace layers {
1458
auto OpUpdatedAsyncImagePipeline::operator==(const OpUpdatedAsyncImagePipeline& _o) const -> bool
1459
0
{
1460
0
    if ((!((pipelineId()) == ((_o).pipelineId())))) {
1461
0
        return false;
1462
0
    }
1463
0
    return true;
1464
0
}
1465
1466
auto OpUpdatedAsyncImagePipeline::operator!=(const OpUpdatedAsyncImagePipeline& _o) const -> bool
1467
0
{
1468
0
    return (!(operator==(_o)));
1469
0
}
1470
1471
} // namespace layers
1472
} // namespace mozilla
1473
1474
namespace mozilla {
1475
namespace ipc {
1476
auto IPDLParamTraits<mozilla::layers::OpUpdatedAsyncImagePipeline>::Write(
1477
        IPC::Message* aMsg,
1478
        mozilla::ipc::IProtocol* aActor,
1479
        const paramType& aVar) -> void
1480
0
{
1481
0
    WriteIPDLParam(aMsg, aActor, (aVar).pipelineId());
1482
0
    // Sentinel = 'pipelineId'
1483
0
    (aMsg)->WriteSentinel(4067092043);
1484
0
}
1485
1486
auto IPDLParamTraits<mozilla::layers::OpUpdatedAsyncImagePipeline>::Read(
1487
        const IPC::Message* aMsg,
1488
        PickleIterator* aIter,
1489
        mozilla::ipc::IProtocol* aActor,
1490
        paramType* aVar) -> bool
1491
0
{
1492
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pipelineId())))))) {
1493
0
        (aActor)->FatalError("Error deserializing 'pipelineId' (PipelineId) member of 'OpUpdatedAsyncImagePipeline'");
1494
0
        return false;
1495
0
    }
1496
0
    // Sentinel = 'pipelineId'
1497
0
    if ((!((aMsg)->ReadSentinel(aIter, 4067092043)))) {
1498
0
        mozilla::ipc::SentinelReadError("Error deserializing 'pipelineId' (PipelineId) member of 'OpUpdatedAsyncImagePipeline'");
1499
0
        return false;
1500
0
    }
1501
0
    return true;
1502
0
}
1503
1504
} // namespace ipc
1505
} // namespace mozilla
1506
1507
//-----------------------------------------------------------------------------
1508
// Method definitions for the IPDL type |union WebRenderParentCommand|
1509
//
1510
namespace mozilla {
1511
namespace layers {
1512
auto WebRenderParentCommand::MaybeDestroy(Type aNewType) -> bool
1513
0
{
1514
0
    if ((mType) == (T__None)) {
1515
0
        return true;
1516
0
    }
1517
0
    if ((mType) == (aNewType)) {
1518
0
        return false;
1519
0
    }
1520
0
    switch (mType) {
1521
0
    case TOpAddPipelineIdForCompositable:
1522
0
        {
1523
0
            (ptr_OpAddPipelineIdForCompositable())->~OpAddPipelineIdForCompositable__tdef();
1524
0
            break;
1525
0
        }
1526
0
    case TOpRemovePipelineIdForCompositable:
1527
0
        {
1528
0
            (ptr_OpRemovePipelineIdForCompositable())->~OpRemovePipelineIdForCompositable__tdef();
1529
0
            break;
1530
0
        }
1531
0
    case TOpRemoveExternalImageId:
1532
0
        {
1533
0
            (ptr_OpRemoveExternalImageId())->~OpRemoveExternalImageId__tdef();
1534
0
            break;
1535
0
        }
1536
0
    case TOpReleaseTextureOfImage:
1537
0
        {
1538
0
            (ptr_OpReleaseTextureOfImage())->~OpReleaseTextureOfImage__tdef();
1539
0
            break;
1540
0
        }
1541
0
    case TOpUpdateAsyncImagePipeline:
1542
0
        {
1543
0
            (ptr_OpUpdateAsyncImagePipeline())->~OpUpdateAsyncImagePipeline__tdef();
1544
0
            break;
1545
0
        }
1546
0
    case TOpUpdatedAsyncImagePipeline:
1547
0
        {
1548
0
            (ptr_OpUpdatedAsyncImagePipeline())->~OpUpdatedAsyncImagePipeline__tdef();
1549
0
            break;
1550
0
        }
1551
0
    case TCompositableOperation:
1552
0
        {
1553
0
            (ptr_CompositableOperation())->~CompositableOperation__tdef();
1554
0
            break;
1555
0
        }
1556
0
    case TOpAddCompositorAnimations:
1557
0
        {
1558
0
            (ptr_OpAddCompositorAnimations())->~OpAddCompositorAnimations__tdef();
1559
0
            break;
1560
0
        }
1561
0
    default:
1562
0
        {
1563
0
            mozilla::ipc::LogicError("not reached");
1564
0
            break;
1565
0
        }
1566
0
    }
1567
0
    return true;
1568
0
}
1569
1570
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpAddPipelineIdForCompositable& aOther)
1571
0
{
1572
0
    new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable(aOther);
1573
0
    mType = TOpAddPipelineIdForCompositable;
1574
0
}
1575
1576
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpAddPipelineIdForCompositable&& aOther)
1577
0
{
1578
0
    new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable(std::move(aOther));
1579
0
    mType = TOpAddPipelineIdForCompositable;
1580
0
}
1581
1582
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpRemovePipelineIdForCompositable& aOther)
1583
0
{
1584
0
    new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable(aOther);
1585
0
    mType = TOpRemovePipelineIdForCompositable;
1586
0
}
1587
1588
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpRemovePipelineIdForCompositable&& aOther)
1589
0
{
1590
0
    new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable(std::move(aOther));
1591
0
    mType = TOpRemovePipelineIdForCompositable;
1592
0
}
1593
1594
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpRemoveExternalImageId& aOther)
1595
0
{
1596
0
    new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId(aOther);
1597
0
    mType = TOpRemoveExternalImageId;
1598
0
}
1599
1600
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpRemoveExternalImageId&& aOther)
1601
0
{
1602
0
    new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId(std::move(aOther));
1603
0
    mType = TOpRemoveExternalImageId;
1604
0
}
1605
1606
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpReleaseTextureOfImage& aOther)
1607
0
{
1608
0
    new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage(aOther);
1609
0
    mType = TOpReleaseTextureOfImage;
1610
0
}
1611
1612
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpReleaseTextureOfImage&& aOther)
1613
0
{
1614
0
    new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage(std::move(aOther));
1615
0
    mType = TOpReleaseTextureOfImage;
1616
0
}
1617
1618
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpUpdateAsyncImagePipeline& aOther)
1619
0
{
1620
0
    new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline(aOther);
1621
0
    mType = TOpUpdateAsyncImagePipeline;
1622
0
}
1623
1624
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpUpdateAsyncImagePipeline&& aOther)
1625
0
{
1626
0
    new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline(std::move(aOther));
1627
0
    mType = TOpUpdateAsyncImagePipeline;
1628
0
}
1629
1630
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpUpdatedAsyncImagePipeline& aOther)
1631
0
{
1632
0
    new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline(aOther);
1633
0
    mType = TOpUpdatedAsyncImagePipeline;
1634
0
}
1635
1636
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpUpdatedAsyncImagePipeline&& aOther)
1637
0
{
1638
0
    new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline(std::move(aOther));
1639
0
    mType = TOpUpdatedAsyncImagePipeline;
1640
0
}
1641
1642
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const CompositableOperation& aOther)
1643
0
{
1644
0
    new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation(aOther);
1645
0
    mType = TCompositableOperation;
1646
0
}
1647
1648
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(CompositableOperation&& aOther)
1649
0
{
1650
0
    new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation(std::move(aOther));
1651
0
    mType = TCompositableOperation;
1652
0
}
1653
1654
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const OpAddCompositorAnimations& aOther)
1655
0
{
1656
0
    new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations(aOther);
1657
0
    mType = TOpAddCompositorAnimations;
1658
0
}
1659
1660
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(OpAddCompositorAnimations&& aOther)
1661
0
{
1662
0
    new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations(std::move(aOther));
1663
0
    mType = TOpAddCompositorAnimations;
1664
0
}
1665
1666
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(const WebRenderParentCommand& aOther)
1667
0
{
1668
0
    (aOther).AssertSanity();
1669
0
    switch ((aOther).type()) {
1670
0
    case TOpAddPipelineIdForCompositable:
1671
0
        {
1672
0
            new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable((aOther).get_OpAddPipelineIdForCompositable());
1673
0
            break;
1674
0
        }
1675
0
    case TOpRemovePipelineIdForCompositable:
1676
0
        {
1677
0
            new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable((aOther).get_OpRemovePipelineIdForCompositable());
1678
0
            break;
1679
0
        }
1680
0
    case TOpRemoveExternalImageId:
1681
0
        {
1682
0
            new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId((aOther).get_OpRemoveExternalImageId());
1683
0
            break;
1684
0
        }
1685
0
    case TOpReleaseTextureOfImage:
1686
0
        {
1687
0
            new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage((aOther).get_OpReleaseTextureOfImage());
1688
0
            break;
1689
0
        }
1690
0
    case TOpUpdateAsyncImagePipeline:
1691
0
        {
1692
0
            new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline((aOther).get_OpUpdateAsyncImagePipeline());
1693
0
            break;
1694
0
        }
1695
0
    case TOpUpdatedAsyncImagePipeline:
1696
0
        {
1697
0
            new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline((aOther).get_OpUpdatedAsyncImagePipeline());
1698
0
            break;
1699
0
        }
1700
0
    case TCompositableOperation:
1701
0
        {
1702
0
            new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation((aOther).get_CompositableOperation());
1703
0
            break;
1704
0
        }
1705
0
    case TOpAddCompositorAnimations:
1706
0
        {
1707
0
            new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations((aOther).get_OpAddCompositorAnimations());
1708
0
            break;
1709
0
        }
1710
0
    case T__None:
1711
0
        {
1712
0
            break;
1713
0
        }
1714
0
    default:
1715
0
        {
1716
0
            mozilla::ipc::LogicError("unreached");
1717
0
            return;
1718
0
        }
1719
0
    }
1720
0
    mType = (aOther).type();
1721
0
}
1722
1723
MOZ_IMPLICIT WebRenderParentCommand::WebRenderParentCommand(WebRenderParentCommand&& aOther)
1724
0
{
1725
0
    (aOther).AssertSanity();
1726
0
    Type t = (aOther).type();
1727
0
    switch (t) {
1728
0
    case TOpAddPipelineIdForCompositable:
1729
0
        {
1730
0
            new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable(std::move((aOther).get_OpAddPipelineIdForCompositable()));
1731
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1732
0
            break;
1733
0
        }
1734
0
    case TOpRemovePipelineIdForCompositable:
1735
0
        {
1736
0
            new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable(std::move((aOther).get_OpRemovePipelineIdForCompositable()));
1737
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1738
0
            break;
1739
0
        }
1740
0
    case TOpRemoveExternalImageId:
1741
0
        {
1742
0
            new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId(std::move((aOther).get_OpRemoveExternalImageId()));
1743
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1744
0
            break;
1745
0
        }
1746
0
    case TOpReleaseTextureOfImage:
1747
0
        {
1748
0
            new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage(std::move((aOther).get_OpReleaseTextureOfImage()));
1749
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1750
0
            break;
1751
0
        }
1752
0
    case TOpUpdateAsyncImagePipeline:
1753
0
        {
1754
0
            new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline(std::move((aOther).get_OpUpdateAsyncImagePipeline()));
1755
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1756
0
            break;
1757
0
        }
1758
0
    case TOpUpdatedAsyncImagePipeline:
1759
0
        {
1760
0
            new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline(std::move((aOther).get_OpUpdatedAsyncImagePipeline()));
1761
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1762
0
            break;
1763
0
        }
1764
0
    case TCompositableOperation:
1765
0
        {
1766
0
            new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation(std::move((aOther).get_CompositableOperation()));
1767
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1768
0
            break;
1769
0
        }
1770
0
    case TOpAddCompositorAnimations:
1771
0
        {
1772
0
            new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations(std::move((aOther).get_OpAddCompositorAnimations()));
1773
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
1774
0
            break;
1775
0
        }
1776
0
    case T__None:
1777
0
        {
1778
0
            break;
1779
0
        }
1780
0
    default:
1781
0
        {
1782
0
            mozilla::ipc::LogicError("unreached");
1783
0
            return;
1784
0
        }
1785
0
    }
1786
0
    (aOther).mType = T__None;
1787
0
    mType = t;
1788
0
}
1789
1790
WebRenderParentCommand::~WebRenderParentCommand()
1791
0
{
1792
0
    static_cast<void>(MaybeDestroy(T__None));
1793
0
}
1794
1795
auto WebRenderParentCommand::operator=(const OpAddPipelineIdForCompositable& aRhs) -> WebRenderParentCommand&
1796
0
{
1797
0
    if (MaybeDestroy(TOpAddPipelineIdForCompositable)) {
1798
0
        new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable;
1799
0
    }
1800
0
    (*(ptr_OpAddPipelineIdForCompositable())) = aRhs;
1801
0
    mType = TOpAddPipelineIdForCompositable;
1802
0
    return (*(this));
1803
0
}
1804
1805
auto WebRenderParentCommand::operator=(OpAddPipelineIdForCompositable&& aRhs) -> WebRenderParentCommand&
1806
0
{
1807
0
    if (MaybeDestroy(TOpAddPipelineIdForCompositable)) {
1808
0
        new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable;
1809
0
    }
1810
0
    (*(ptr_OpAddPipelineIdForCompositable())) = std::move(aRhs);
1811
0
    mType = TOpAddPipelineIdForCompositable;
1812
0
    return (*(this));
1813
0
}
1814
1815
auto WebRenderParentCommand::operator=(const OpRemovePipelineIdForCompositable& aRhs) -> WebRenderParentCommand&
1816
0
{
1817
0
    if (MaybeDestroy(TOpRemovePipelineIdForCompositable)) {
1818
0
        new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable;
1819
0
    }
1820
0
    (*(ptr_OpRemovePipelineIdForCompositable())) = aRhs;
1821
0
    mType = TOpRemovePipelineIdForCompositable;
1822
0
    return (*(this));
1823
0
}
1824
1825
auto WebRenderParentCommand::operator=(OpRemovePipelineIdForCompositable&& aRhs) -> WebRenderParentCommand&
1826
0
{
1827
0
    if (MaybeDestroy(TOpRemovePipelineIdForCompositable)) {
1828
0
        new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable;
1829
0
    }
1830
0
    (*(ptr_OpRemovePipelineIdForCompositable())) = std::move(aRhs);
1831
0
    mType = TOpRemovePipelineIdForCompositable;
1832
0
    return (*(this));
1833
0
}
1834
1835
auto WebRenderParentCommand::operator=(const OpRemoveExternalImageId& aRhs) -> WebRenderParentCommand&
1836
0
{
1837
0
    if (MaybeDestroy(TOpRemoveExternalImageId)) {
1838
0
        new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId;
1839
0
    }
1840
0
    (*(ptr_OpRemoveExternalImageId())) = aRhs;
1841
0
    mType = TOpRemoveExternalImageId;
1842
0
    return (*(this));
1843
0
}
1844
1845
auto WebRenderParentCommand::operator=(OpRemoveExternalImageId&& aRhs) -> WebRenderParentCommand&
1846
0
{
1847
0
    if (MaybeDestroy(TOpRemoveExternalImageId)) {
1848
0
        new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId;
1849
0
    }
1850
0
    (*(ptr_OpRemoveExternalImageId())) = std::move(aRhs);
1851
0
    mType = TOpRemoveExternalImageId;
1852
0
    return (*(this));
1853
0
}
1854
1855
auto WebRenderParentCommand::operator=(const OpReleaseTextureOfImage& aRhs) -> WebRenderParentCommand&
1856
0
{
1857
0
    if (MaybeDestroy(TOpReleaseTextureOfImage)) {
1858
0
        new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage;
1859
0
    }
1860
0
    (*(ptr_OpReleaseTextureOfImage())) = aRhs;
1861
0
    mType = TOpReleaseTextureOfImage;
1862
0
    return (*(this));
1863
0
}
1864
1865
auto WebRenderParentCommand::operator=(OpReleaseTextureOfImage&& aRhs) -> WebRenderParentCommand&
1866
0
{
1867
0
    if (MaybeDestroy(TOpReleaseTextureOfImage)) {
1868
0
        new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage;
1869
0
    }
1870
0
    (*(ptr_OpReleaseTextureOfImage())) = std::move(aRhs);
1871
0
    mType = TOpReleaseTextureOfImage;
1872
0
    return (*(this));
1873
0
}
1874
1875
auto WebRenderParentCommand::operator=(const OpUpdateAsyncImagePipeline& aRhs) -> WebRenderParentCommand&
1876
0
{
1877
0
    if (MaybeDestroy(TOpUpdateAsyncImagePipeline)) {
1878
0
        new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline;
1879
0
    }
1880
0
    (*(ptr_OpUpdateAsyncImagePipeline())) = aRhs;
1881
0
    mType = TOpUpdateAsyncImagePipeline;
1882
0
    return (*(this));
1883
0
}
1884
1885
auto WebRenderParentCommand::operator=(OpUpdateAsyncImagePipeline&& aRhs) -> WebRenderParentCommand&
1886
0
{
1887
0
    if (MaybeDestroy(TOpUpdateAsyncImagePipeline)) {
1888
0
        new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline;
1889
0
    }
1890
0
    (*(ptr_OpUpdateAsyncImagePipeline())) = std::move(aRhs);
1891
0
    mType = TOpUpdateAsyncImagePipeline;
1892
0
    return (*(this));
1893
0
}
1894
1895
auto WebRenderParentCommand::operator=(const OpUpdatedAsyncImagePipeline& aRhs) -> WebRenderParentCommand&
1896
0
{
1897
0
    if (MaybeDestroy(TOpUpdatedAsyncImagePipeline)) {
1898
0
        new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline;
1899
0
    }
1900
0
    (*(ptr_OpUpdatedAsyncImagePipeline())) = aRhs;
1901
0
    mType = TOpUpdatedAsyncImagePipeline;
1902
0
    return (*(this));
1903
0
}
1904
1905
auto WebRenderParentCommand::operator=(OpUpdatedAsyncImagePipeline&& aRhs) -> WebRenderParentCommand&
1906
0
{
1907
0
    if (MaybeDestroy(TOpUpdatedAsyncImagePipeline)) {
1908
0
        new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline;
1909
0
    }
1910
0
    (*(ptr_OpUpdatedAsyncImagePipeline())) = std::move(aRhs);
1911
0
    mType = TOpUpdatedAsyncImagePipeline;
1912
0
    return (*(this));
1913
0
}
1914
1915
auto WebRenderParentCommand::operator=(const CompositableOperation& aRhs) -> WebRenderParentCommand&
1916
0
{
1917
0
    if (MaybeDestroy(TCompositableOperation)) {
1918
0
        new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation;
1919
0
    }
1920
0
    (*(ptr_CompositableOperation())) = aRhs;
1921
0
    mType = TCompositableOperation;
1922
0
    return (*(this));
1923
0
}
1924
1925
auto WebRenderParentCommand::operator=(CompositableOperation&& aRhs) -> WebRenderParentCommand&
1926
0
{
1927
0
    if (MaybeDestroy(TCompositableOperation)) {
1928
0
        new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation;
1929
0
    }
1930
0
    (*(ptr_CompositableOperation())) = std::move(aRhs);
1931
0
    mType = TCompositableOperation;
1932
0
    return (*(this));
1933
0
}
1934
1935
auto WebRenderParentCommand::operator=(const OpAddCompositorAnimations& aRhs) -> WebRenderParentCommand&
1936
0
{
1937
0
    if (MaybeDestroy(TOpAddCompositorAnimations)) {
1938
0
        new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations;
1939
0
    }
1940
0
    (*(ptr_OpAddCompositorAnimations())) = aRhs;
1941
0
    mType = TOpAddCompositorAnimations;
1942
0
    return (*(this));
1943
0
}
1944
1945
auto WebRenderParentCommand::operator=(OpAddCompositorAnimations&& aRhs) -> WebRenderParentCommand&
1946
0
{
1947
0
    if (MaybeDestroy(TOpAddCompositorAnimations)) {
1948
0
        new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations;
1949
0
    }
1950
0
    (*(ptr_OpAddCompositorAnimations())) = std::move(aRhs);
1951
0
    mType = TOpAddCompositorAnimations;
1952
0
    return (*(this));
1953
0
}
1954
1955
auto WebRenderParentCommand::operator=(const WebRenderParentCommand& aRhs) -> WebRenderParentCommand&
1956
0
{
1957
0
    (aRhs).AssertSanity();
1958
0
    Type t = (aRhs).type();
1959
0
    switch (t) {
1960
0
    case TOpAddPipelineIdForCompositable:
1961
0
        {
1962
0
            if (MaybeDestroy(t)) {
1963
0
                new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable;
1964
0
            }
1965
0
            (*(ptr_OpAddPipelineIdForCompositable())) = (aRhs).get_OpAddPipelineIdForCompositable();
1966
0
            break;
1967
0
        }
1968
0
    case TOpRemovePipelineIdForCompositable:
1969
0
        {
1970
0
            if (MaybeDestroy(t)) {
1971
0
                new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable;
1972
0
            }
1973
0
            (*(ptr_OpRemovePipelineIdForCompositable())) = (aRhs).get_OpRemovePipelineIdForCompositable();
1974
0
            break;
1975
0
        }
1976
0
    case TOpRemoveExternalImageId:
1977
0
        {
1978
0
            if (MaybeDestroy(t)) {
1979
0
                new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId;
1980
0
            }
1981
0
            (*(ptr_OpRemoveExternalImageId())) = (aRhs).get_OpRemoveExternalImageId();
1982
0
            break;
1983
0
        }
1984
0
    case TOpReleaseTextureOfImage:
1985
0
        {
1986
0
            if (MaybeDestroy(t)) {
1987
0
                new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage;
1988
0
            }
1989
0
            (*(ptr_OpReleaseTextureOfImage())) = (aRhs).get_OpReleaseTextureOfImage();
1990
0
            break;
1991
0
        }
1992
0
    case TOpUpdateAsyncImagePipeline:
1993
0
        {
1994
0
            if (MaybeDestroy(t)) {
1995
0
                new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline;
1996
0
            }
1997
0
            (*(ptr_OpUpdateAsyncImagePipeline())) = (aRhs).get_OpUpdateAsyncImagePipeline();
1998
0
            break;
1999
0
        }
2000
0
    case TOpUpdatedAsyncImagePipeline:
2001
0
        {
2002
0
            if (MaybeDestroy(t)) {
2003
0
                new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline;
2004
0
            }
2005
0
            (*(ptr_OpUpdatedAsyncImagePipeline())) = (aRhs).get_OpUpdatedAsyncImagePipeline();
2006
0
            break;
2007
0
        }
2008
0
    case TCompositableOperation:
2009
0
        {
2010
0
            if (MaybeDestroy(t)) {
2011
0
                new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation;
2012
0
            }
2013
0
            (*(ptr_CompositableOperation())) = (aRhs).get_CompositableOperation();
2014
0
            break;
2015
0
        }
2016
0
    case TOpAddCompositorAnimations:
2017
0
        {
2018
0
            if (MaybeDestroy(t)) {
2019
0
                new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations;
2020
0
            }
2021
0
            (*(ptr_OpAddCompositorAnimations())) = (aRhs).get_OpAddCompositorAnimations();
2022
0
            break;
2023
0
        }
2024
0
    case T__None:
2025
0
        {
2026
0
            static_cast<void>(MaybeDestroy(t));
2027
0
            break;
2028
0
        }
2029
0
    default:
2030
0
        {
2031
0
            mozilla::ipc::LogicError("unreached");
2032
0
            break;
2033
0
        }
2034
0
    }
2035
0
    mType = t;
2036
0
    return (*(this));
2037
0
}
2038
2039
auto WebRenderParentCommand::operator=(WebRenderParentCommand&& aRhs) -> WebRenderParentCommand&
2040
0
{
2041
0
    (aRhs).AssertSanity();
2042
0
    Type t = (aRhs).type();
2043
0
    switch (t) {
2044
0
    case TOpAddPipelineIdForCompositable:
2045
0
        {
2046
0
            if (MaybeDestroy(t)) {
2047
0
                new (mozilla::KnownNotNull, ptr_OpAddPipelineIdForCompositable()) OpAddPipelineIdForCompositable;
2048
0
            }
2049
0
            (*(ptr_OpAddPipelineIdForCompositable())) = std::move((aRhs).get_OpAddPipelineIdForCompositable());
2050
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2051
0
            break;
2052
0
        }
2053
0
    case TOpRemovePipelineIdForCompositable:
2054
0
        {
2055
0
            if (MaybeDestroy(t)) {
2056
0
                new (mozilla::KnownNotNull, ptr_OpRemovePipelineIdForCompositable()) OpRemovePipelineIdForCompositable;
2057
0
            }
2058
0
            (*(ptr_OpRemovePipelineIdForCompositable())) = std::move((aRhs).get_OpRemovePipelineIdForCompositable());
2059
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2060
0
            break;
2061
0
        }
2062
0
    case TOpRemoveExternalImageId:
2063
0
        {
2064
0
            if (MaybeDestroy(t)) {
2065
0
                new (mozilla::KnownNotNull, ptr_OpRemoveExternalImageId()) OpRemoveExternalImageId;
2066
0
            }
2067
0
            (*(ptr_OpRemoveExternalImageId())) = std::move((aRhs).get_OpRemoveExternalImageId());
2068
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2069
0
            break;
2070
0
        }
2071
0
    case TOpReleaseTextureOfImage:
2072
0
        {
2073
0
            if (MaybeDestroy(t)) {
2074
0
                new (mozilla::KnownNotNull, ptr_OpReleaseTextureOfImage()) OpReleaseTextureOfImage;
2075
0
            }
2076
0
            (*(ptr_OpReleaseTextureOfImage())) = std::move((aRhs).get_OpReleaseTextureOfImage());
2077
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2078
0
            break;
2079
0
        }
2080
0
    case TOpUpdateAsyncImagePipeline:
2081
0
        {
2082
0
            if (MaybeDestroy(t)) {
2083
0
                new (mozilla::KnownNotNull, ptr_OpUpdateAsyncImagePipeline()) OpUpdateAsyncImagePipeline;
2084
0
            }
2085
0
            (*(ptr_OpUpdateAsyncImagePipeline())) = std::move((aRhs).get_OpUpdateAsyncImagePipeline());
2086
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2087
0
            break;
2088
0
        }
2089
0
    case TOpUpdatedAsyncImagePipeline:
2090
0
        {
2091
0
            if (MaybeDestroy(t)) {
2092
0
                new (mozilla::KnownNotNull, ptr_OpUpdatedAsyncImagePipeline()) OpUpdatedAsyncImagePipeline;
2093
0
            }
2094
0
            (*(ptr_OpUpdatedAsyncImagePipeline())) = std::move((aRhs).get_OpUpdatedAsyncImagePipeline());
2095
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2096
0
            break;
2097
0
        }
2098
0
    case TCompositableOperation:
2099
0
        {
2100
0
            if (MaybeDestroy(t)) {
2101
0
                new (mozilla::KnownNotNull, ptr_CompositableOperation()) CompositableOperation;
2102
0
            }
2103
0
            (*(ptr_CompositableOperation())) = std::move((aRhs).get_CompositableOperation());
2104
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2105
0
            break;
2106
0
        }
2107
0
    case TOpAddCompositorAnimations:
2108
0
        {
2109
0
            if (MaybeDestroy(t)) {
2110
0
                new (mozilla::KnownNotNull, ptr_OpAddCompositorAnimations()) OpAddCompositorAnimations;
2111
0
            }
2112
0
            (*(ptr_OpAddCompositorAnimations())) = std::move((aRhs).get_OpAddCompositorAnimations());
2113
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
2114
0
            break;
2115
0
        }
2116
0
    case T__None:
2117
0
        {
2118
0
            static_cast<void>(MaybeDestroy(t));
2119
0
            break;
2120
0
        }
2121
0
    default:
2122
0
        {
2123
0
            mozilla::ipc::LogicError("unreached");
2124
0
            break;
2125
0
        }
2126
0
    }
2127
0
    (aRhs).mType = T__None;
2128
0
    mType = t;
2129
0
    return (*(this));
2130
0
}
2131
2132
auto WebRenderParentCommand::operator==(const OpAddPipelineIdForCompositable& aRhs) const -> bool
2133
0
{
2134
0
    return (get_OpAddPipelineIdForCompositable()) == (aRhs);
2135
0
}
2136
2137
auto WebRenderParentCommand::operator==(const OpRemovePipelineIdForCompositable& aRhs) const -> bool
2138
0
{
2139
0
    return (get_OpRemovePipelineIdForCompositable()) == (aRhs);
2140
0
}
2141
2142
auto WebRenderParentCommand::operator==(const OpRemoveExternalImageId& aRhs) const -> bool
2143
0
{
2144
0
    return (get_OpRemoveExternalImageId()) == (aRhs);
2145
0
}
2146
2147
auto WebRenderParentCommand::operator==(const OpReleaseTextureOfImage& aRhs) const -> bool
2148
0
{
2149
0
    return (get_OpReleaseTextureOfImage()) == (aRhs);
2150
0
}
2151
2152
auto WebRenderParentCommand::operator==(const OpUpdateAsyncImagePipeline& aRhs) const -> bool
2153
0
{
2154
0
    return (get_OpUpdateAsyncImagePipeline()) == (aRhs);
2155
0
}
2156
2157
auto WebRenderParentCommand::operator==(const OpUpdatedAsyncImagePipeline& aRhs) const -> bool
2158
0
{
2159
0
    return (get_OpUpdatedAsyncImagePipeline()) == (aRhs);
2160
0
}
2161
2162
auto WebRenderParentCommand::operator==(const CompositableOperation& aRhs) const -> bool
2163
0
{
2164
0
    return (get_CompositableOperation()) == (aRhs);
2165
0
}
2166
2167
auto WebRenderParentCommand::operator==(const OpAddCompositorAnimations& aRhs) const -> bool
2168
0
{
2169
0
    return (get_OpAddCompositorAnimations()) == (aRhs);
2170
0
}
2171
2172
auto WebRenderParentCommand::operator==(const WebRenderParentCommand& aRhs) const -> bool
2173
0
{
2174
0
    if ((type()) != ((aRhs).type())) {
2175
0
        return false;
2176
0
    }
2177
0
2178
0
    switch (type()) {
2179
0
    case TOpAddPipelineIdForCompositable:
2180
0
        {
2181
0
            return (get_OpAddPipelineIdForCompositable()) == ((aRhs).get_OpAddPipelineIdForCompositable());
2182
0
        }
2183
0
    case TOpRemovePipelineIdForCompositable:
2184
0
        {
2185
0
            return (get_OpRemovePipelineIdForCompositable()) == ((aRhs).get_OpRemovePipelineIdForCompositable());
2186
0
        }
2187
0
    case TOpRemoveExternalImageId:
2188
0
        {
2189
0
            return (get_OpRemoveExternalImageId()) == ((aRhs).get_OpRemoveExternalImageId());
2190
0
        }
2191
0
    case TOpReleaseTextureOfImage:
2192
0
        {
2193
0
            return (get_OpReleaseTextureOfImage()) == ((aRhs).get_OpReleaseTextureOfImage());
2194
0
        }
2195
0
    case TOpUpdateAsyncImagePipeline:
2196
0
        {
2197
0
            return (get_OpUpdateAsyncImagePipeline()) == ((aRhs).get_OpUpdateAsyncImagePipeline());
2198
0
        }
2199
0
    case TOpUpdatedAsyncImagePipeline:
2200
0
        {
2201
0
            return (get_OpUpdatedAsyncImagePipeline()) == ((aRhs).get_OpUpdatedAsyncImagePipeline());
2202
0
        }
2203
0
    case TCompositableOperation:
2204
0
        {
2205
0
            return (get_CompositableOperation()) == ((aRhs).get_CompositableOperation());
2206
0
        }
2207
0
    case TOpAddCompositorAnimations:
2208
0
        {
2209
0
            return (get_OpAddCompositorAnimations()) == ((aRhs).get_OpAddCompositorAnimations());
2210
0
        }
2211
0
    default:
2212
0
        {
2213
0
            mozilla::ipc::LogicError("unreached");
2214
0
            return false;
2215
0
        }
2216
0
    }
2217
0
}
2218
2219
auto WebRenderParentCommand::get(OpAddPipelineIdForCompositable* aOutValue) const -> void
2220
0
{
2221
0
    (*(aOutValue)) = get_OpAddPipelineIdForCompositable();
2222
0
}
2223
2224
auto WebRenderParentCommand::get(OpRemovePipelineIdForCompositable* aOutValue) const -> void
2225
0
{
2226
0
    (*(aOutValue)) = get_OpRemovePipelineIdForCompositable();
2227
0
}
2228
2229
auto WebRenderParentCommand::get(OpRemoveExternalImageId* aOutValue) const -> void
2230
0
{
2231
0
    (*(aOutValue)) = get_OpRemoveExternalImageId();
2232
0
}
2233
2234
auto WebRenderParentCommand::get(OpReleaseTextureOfImage* aOutValue) const -> void
2235
0
{
2236
0
    (*(aOutValue)) = get_OpReleaseTextureOfImage();
2237
0
}
2238
2239
auto WebRenderParentCommand::get(OpUpdateAsyncImagePipeline* aOutValue) const -> void
2240
0
{
2241
0
    (*(aOutValue)) = get_OpUpdateAsyncImagePipeline();
2242
0
}
2243
2244
auto WebRenderParentCommand::get(OpUpdatedAsyncImagePipeline* aOutValue) const -> void
2245
0
{
2246
0
    (*(aOutValue)) = get_OpUpdatedAsyncImagePipeline();
2247
0
}
2248
2249
auto WebRenderParentCommand::get(CompositableOperation* aOutValue) const -> void
2250
0
{
2251
0
    (*(aOutValue)) = get_CompositableOperation();
2252
0
}
2253
2254
auto WebRenderParentCommand::get(OpAddCompositorAnimations* aOutValue) const -> void
2255
0
{
2256
0
    (*(aOutValue)) = get_OpAddCompositorAnimations();
2257
0
}
2258
2259
} // namespace layers
2260
} // namespace mozilla
2261
2262
namespace mozilla {
2263
namespace ipc {
2264
auto IPDLParamTraits<mozilla::layers::WebRenderParentCommand>::Write(
2265
        IPC::Message* aMsg,
2266
        mozilla::ipc::IProtocol* aActor,
2267
        const paramType& aVar) -> void
2268
{
2269
    typedef mozilla::layers::WebRenderParentCommand union__;
2270
    int type;
2271
    type = (aVar).type();
2272
    WriteIPDLParam(aMsg, aActor, type);
2273
    // Sentinel = 'WebRenderParentCommand'
2274
    (aMsg)->WriteSentinel(2119870727);
2275
2276
    switch (type) {
2277
    case union__::TOpAddPipelineIdForCompositable:
2278
        {
2279
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddPipelineIdForCompositable());
2280
            // Sentinel = 'TOpAddPipelineIdForCompositable'
2281
            (aMsg)->WriteSentinel(3833046203);
2282
            return;
2283
        }
2284
    case union__::TOpRemovePipelineIdForCompositable:
2285
        {
2286
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpRemovePipelineIdForCompositable());
2287
            // Sentinel = 'TOpRemovePipelineIdForCompositable'
2288
            (aMsg)->WriteSentinel(1161823003);
2289
            return;
2290
        }
2291
    case union__::TOpRemoveExternalImageId:
2292
        {
2293
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpRemoveExternalImageId());
2294
            // Sentinel = 'TOpRemoveExternalImageId'
2295
            (aMsg)->WriteSentinel(3998496540);
2296
            return;
2297
        }
2298
    case union__::TOpReleaseTextureOfImage:
2299
        {
2300
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpReleaseTextureOfImage());
2301
            // Sentinel = 'TOpReleaseTextureOfImage'
2302
            (aMsg)->WriteSentinel(1527510721);
2303
            return;
2304
        }
2305
    case union__::TOpUpdateAsyncImagePipeline:
2306
        {
2307
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpUpdateAsyncImagePipeline());
2308
            // Sentinel = 'TOpUpdateAsyncImagePipeline'
2309
            (aMsg)->WriteSentinel(2512870980);
2310
            return;
2311
        }
2312
    case union__::TOpUpdatedAsyncImagePipeline:
2313
        {
2314
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpUpdatedAsyncImagePipeline());
2315
            // Sentinel = 'TOpUpdatedAsyncImagePipeline'
2316
            (aMsg)->WriteSentinel(456827427);
2317
            return;
2318
        }
2319
    case union__::TCompositableOperation:
2320
        {
2321
            WriteIPDLParam(aMsg, aActor, (aVar).get_CompositableOperation());
2322
            // Sentinel = 'TCompositableOperation'
2323
            (aMsg)->WriteSentinel(1903999853);
2324
            return;
2325
        }
2326
    case union__::TOpAddCompositorAnimations:
2327
        {
2328
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddCompositorAnimations());
2329
            // Sentinel = 'TOpAddCompositorAnimations'
2330
            (aMsg)->WriteSentinel(3387367374);
2331
            return;
2332
        }
2333
    default:
2334
        {
2335
            (aActor)->FatalError("unknown union type");
2336
            return;
2337
        }
2338
    }
2339
}
2340
2341
auto IPDLParamTraits<mozilla::layers::WebRenderParentCommand>::Read(
2342
        const IPC::Message* aMsg,
2343
        PickleIterator* aIter,
2344
        mozilla::ipc::IProtocol* aActor,
2345
        paramType* aVar) -> bool
2346
0
{
2347
0
    typedef mozilla::layers::WebRenderParentCommand union__;
2348
0
    int type;
2349
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
2350
0
        (aActor)->FatalError("Error deserializing type of union WebRenderParentCommand");
2351
0
        return false;
2352
0
    }
2353
0
    // Sentinel = 'WebRenderParentCommand'
2354
0
    if ((!((aMsg)->ReadSentinel(aIter, 2119870727)))) {
2355
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union WebRenderParentCommand");
2356
0
        return false;
2357
0
    }
2358
0
2359
0
    switch (type) {
2360
0
    case union__::TOpAddPipelineIdForCompositable:
2361
0
        {
2362
0
            mozilla::layers::OpAddPipelineIdForCompositable tmp = mozilla::layers::OpAddPipelineIdForCompositable();
2363
0
            (*(aVar)) = tmp;
2364
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddPipelineIdForCompositable())))))) {
2365
0
                (aActor)->FatalError("Error deserializing variant TOpAddPipelineIdForCompositable of union WebRenderParentCommand");
2366
0
                return false;
2367
0
            }
2368
0
            // Sentinel = 'TOpAddPipelineIdForCompositable'
2369
0
            if ((!((aMsg)->ReadSentinel(aIter, 3833046203)))) {
2370
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddPipelineIdForCompositable of union WebRenderParentCommand");
2371
0
                return false;
2372
0
            }
2373
0
            return true;
2374
0
        }
2375
0
    case union__::TOpRemovePipelineIdForCompositable:
2376
0
        {
2377
0
            mozilla::layers::OpRemovePipelineIdForCompositable tmp = mozilla::layers::OpRemovePipelineIdForCompositable();
2378
0
            (*(aVar)) = tmp;
2379
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpRemovePipelineIdForCompositable())))))) {
2380
0
                (aActor)->FatalError("Error deserializing variant TOpRemovePipelineIdForCompositable of union WebRenderParentCommand");
2381
0
                return false;
2382
0
            }
2383
0
            // Sentinel = 'TOpRemovePipelineIdForCompositable'
2384
0
            if ((!((aMsg)->ReadSentinel(aIter, 1161823003)))) {
2385
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpRemovePipelineIdForCompositable of union WebRenderParentCommand");
2386
0
                return false;
2387
0
            }
2388
0
            return true;
2389
0
        }
2390
0
    case union__::TOpRemoveExternalImageId:
2391
0
        {
2392
0
            mozilla::layers::OpRemoveExternalImageId tmp = mozilla::layers::OpRemoveExternalImageId();
2393
0
            (*(aVar)) = tmp;
2394
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpRemoveExternalImageId())))))) {
2395
0
                (aActor)->FatalError("Error deserializing variant TOpRemoveExternalImageId of union WebRenderParentCommand");
2396
0
                return false;
2397
0
            }
2398
0
            // Sentinel = 'TOpRemoveExternalImageId'
2399
0
            if ((!((aMsg)->ReadSentinel(aIter, 3998496540)))) {
2400
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpRemoveExternalImageId of union WebRenderParentCommand");
2401
0
                return false;
2402
0
            }
2403
0
            return true;
2404
0
        }
2405
0
    case union__::TOpReleaseTextureOfImage:
2406
0
        {
2407
0
            mozilla::layers::OpReleaseTextureOfImage tmp = mozilla::layers::OpReleaseTextureOfImage();
2408
0
            (*(aVar)) = tmp;
2409
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpReleaseTextureOfImage())))))) {
2410
0
                (aActor)->FatalError("Error deserializing variant TOpReleaseTextureOfImage of union WebRenderParentCommand");
2411
0
                return false;
2412
0
            }
2413
0
            // Sentinel = 'TOpReleaseTextureOfImage'
2414
0
            if ((!((aMsg)->ReadSentinel(aIter, 1527510721)))) {
2415
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpReleaseTextureOfImage of union WebRenderParentCommand");
2416
0
                return false;
2417
0
            }
2418
0
            return true;
2419
0
        }
2420
0
    case union__::TOpUpdateAsyncImagePipeline:
2421
0
        {
2422
0
            mozilla::layers::OpUpdateAsyncImagePipeline tmp = mozilla::layers::OpUpdateAsyncImagePipeline();
2423
0
            (*(aVar)) = tmp;
2424
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpUpdateAsyncImagePipeline())))))) {
2425
0
                (aActor)->FatalError("Error deserializing variant TOpUpdateAsyncImagePipeline of union WebRenderParentCommand");
2426
0
                return false;
2427
0
            }
2428
0
            // Sentinel = 'TOpUpdateAsyncImagePipeline'
2429
0
            if ((!((aMsg)->ReadSentinel(aIter, 2512870980)))) {
2430
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpUpdateAsyncImagePipeline of union WebRenderParentCommand");
2431
0
                return false;
2432
0
            }
2433
0
            return true;
2434
0
        }
2435
0
    case union__::TOpUpdatedAsyncImagePipeline:
2436
0
        {
2437
0
            mozilla::layers::OpUpdatedAsyncImagePipeline tmp = mozilla::layers::OpUpdatedAsyncImagePipeline();
2438
0
            (*(aVar)) = tmp;
2439
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpUpdatedAsyncImagePipeline())))))) {
2440
0
                (aActor)->FatalError("Error deserializing variant TOpUpdatedAsyncImagePipeline of union WebRenderParentCommand");
2441
0
                return false;
2442
0
            }
2443
0
            // Sentinel = 'TOpUpdatedAsyncImagePipeline'
2444
0
            if ((!((aMsg)->ReadSentinel(aIter, 456827427)))) {
2445
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpUpdatedAsyncImagePipeline of union WebRenderParentCommand");
2446
0
                return false;
2447
0
            }
2448
0
            return true;
2449
0
        }
2450
0
    case union__::TCompositableOperation:
2451
0
        {
2452
0
            mozilla::layers::CompositableOperation tmp = mozilla::layers::CompositableOperation();
2453
0
            (*(aVar)) = tmp;
2454
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_CompositableOperation())))))) {
2455
0
                (aActor)->FatalError("Error deserializing variant TCompositableOperation of union WebRenderParentCommand");
2456
0
                return false;
2457
0
            }
2458
0
            // Sentinel = 'TCompositableOperation'
2459
0
            if ((!((aMsg)->ReadSentinel(aIter, 1903999853)))) {
2460
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TCompositableOperation of union WebRenderParentCommand");
2461
0
                return false;
2462
0
            }
2463
0
            return true;
2464
0
        }
2465
0
    case union__::TOpAddCompositorAnimations:
2466
0
        {
2467
0
            mozilla::layers::OpAddCompositorAnimations tmp = mozilla::layers::OpAddCompositorAnimations();
2468
0
            (*(aVar)) = tmp;
2469
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddCompositorAnimations())))))) {
2470
0
                (aActor)->FatalError("Error deserializing variant TOpAddCompositorAnimations of union WebRenderParentCommand");
2471
0
                return false;
2472
0
            }
2473
0
            // Sentinel = 'TOpAddCompositorAnimations'
2474
0
            if ((!((aMsg)->ReadSentinel(aIter, 3387367374)))) {
2475
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddCompositorAnimations of union WebRenderParentCommand");
2476
0
                return false;
2477
0
            }
2478
0
            return true;
2479
0
        }
2480
0
    default:
2481
0
        {
2482
0
            (aActor)->FatalError("unknown union type");
2483
0
            return false;
2484
0
        }
2485
0
    }
2486
0
}
2487
2488
} // namespace ipc
2489
} // namespace mozilla
2490
2491
//-----------------------------------------------------------------------------
2492
// Method definitions for the IPDL type |struct OffsetRange|
2493
//
2494
namespace mozilla {
2495
namespace layers {
2496
auto OffsetRange::operator==(const OffsetRange& _o) const -> bool
2497
0
{
2498
0
    if ((!((source()) == ((_o).source())))) {
2499
0
        return false;
2500
0
    }
2501
0
    if ((!((start()) == ((_o).start())))) {
2502
0
        return false;
2503
0
    }
2504
0
    if ((!((length()) == ((_o).length())))) {
2505
0
        return false;
2506
0
    }
2507
0
    return true;
2508
0
}
2509
2510
auto OffsetRange::operator!=(const OffsetRange& _o) const -> bool
2511
0
{
2512
0
    return (!(operator==(_o)));
2513
0
}
2514
2515
} // namespace layers
2516
} // namespace mozilla
2517
2518
namespace mozilla {
2519
namespace ipc {
2520
auto IPDLParamTraits<mozilla::layers::OffsetRange>::Write(
2521
        IPC::Message* aMsg,
2522
        mozilla::ipc::IProtocol* aActor,
2523
        const paramType& aVar) -> void
2524
0
{
2525
0
    WriteIPDLParam(aMsg, aActor, (aVar).source());
2526
0
    // Sentinel = 'source'
2527
0
    (aMsg)->WriteSentinel(774264369);
2528
0
    WriteIPDLParam(aMsg, aActor, (aVar).start());
2529
0
    // Sentinel = 'start'
2530
0
    (aMsg)->WriteSentinel(2088644401);
2531
0
    WriteIPDLParam(aMsg, aActor, (aVar).length());
2532
0
    // Sentinel = 'length'
2533
0
    (aMsg)->WriteSentinel(1726618354);
2534
0
}
2535
2536
auto IPDLParamTraits<mozilla::layers::OffsetRange>::Read(
2537
        const IPC::Message* aMsg,
2538
        PickleIterator* aIter,
2539
        mozilla::ipc::IProtocol* aActor,
2540
        paramType* aVar) -> bool
2541
0
{
2542
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->source())))))) {
2543
0
        (aActor)->FatalError("Error deserializing 'source' (uint32_t) member of 'OffsetRange'");
2544
0
        return false;
2545
0
    }
2546
0
    // Sentinel = 'source'
2547
0
    if ((!((aMsg)->ReadSentinel(aIter, 774264369)))) {
2548
0
        mozilla::ipc::SentinelReadError("Error deserializing 'source' (uint32_t) member of 'OffsetRange'");
2549
0
        return false;
2550
0
    }
2551
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->start())))))) {
2552
0
        (aActor)->FatalError("Error deserializing 'start' (uint32_t) member of 'OffsetRange'");
2553
0
        return false;
2554
0
    }
2555
0
    // Sentinel = 'start'
2556
0
    if ((!((aMsg)->ReadSentinel(aIter, 2088644401)))) {
2557
0
        mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint32_t) member of 'OffsetRange'");
2558
0
        return false;
2559
0
    }
2560
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->length())))))) {
2561
0
        (aActor)->FatalError("Error deserializing 'length' (uint32_t) member of 'OffsetRange'");
2562
0
        return false;
2563
0
    }
2564
0
    // Sentinel = 'length'
2565
0
    if ((!((aMsg)->ReadSentinel(aIter, 1726618354)))) {
2566
0
        mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint32_t) member of 'OffsetRange'");
2567
0
        return false;
2568
0
    }
2569
0
    return true;
2570
0
}
2571
2572
} // namespace ipc
2573
} // namespace mozilla
2574
2575
//-----------------------------------------------------------------------------
2576
// Method definitions for the IPDL type |struct OpAddImage|
2577
//
2578
namespace mozilla {
2579
namespace layers {
2580
auto OpAddImage::operator==(const OpAddImage& _o) const -> bool
2581
0
{
2582
0
    if ((!((descriptor()) == ((_o).descriptor())))) {
2583
0
        return false;
2584
0
    }
2585
0
    if ((!((bytes()) == ((_o).bytes())))) {
2586
0
        return false;
2587
0
    }
2588
0
    if ((!((tiling()) == ((_o).tiling())))) {
2589
0
        return false;
2590
0
    }
2591
0
    if ((!((key()) == ((_o).key())))) {
2592
0
        return false;
2593
0
    }
2594
0
    return true;
2595
0
}
2596
2597
auto OpAddImage::operator!=(const OpAddImage& _o) const -> bool
2598
0
{
2599
0
    return (!(operator==(_o)));
2600
0
}
2601
2602
} // namespace layers
2603
} // namespace mozilla
2604
2605
namespace mozilla {
2606
namespace ipc {
2607
auto IPDLParamTraits<mozilla::layers::OpAddImage>::Write(
2608
        IPC::Message* aMsg,
2609
        mozilla::ipc::IProtocol* aActor,
2610
        const paramType& aVar) -> void
2611
0
{
2612
0
    WriteIPDLParam(aMsg, aActor, (aVar).descriptor());
2613
0
    // Sentinel = 'descriptor'
2614
0
    (aMsg)->WriteSentinel(2435877233);
2615
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
2616
0
    // Sentinel = 'bytes'
2617
0
    (aMsg)->WriteSentinel(836113516);
2618
0
    WriteIPDLParam(aMsg, aActor, (aVar).tiling());
2619
0
    // Sentinel = 'tiling'
2620
0
    (aMsg)->WriteSentinel(2471974811);
2621
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
2622
0
    // Sentinel = 'key'
2623
0
    (aMsg)->WriteSentinel(35142870);
2624
0
}
2625
2626
auto IPDLParamTraits<mozilla::layers::OpAddImage>::Read(
2627
        const IPC::Message* aMsg,
2628
        PickleIterator* aIter,
2629
        mozilla::ipc::IProtocol* aActor,
2630
        paramType* aVar) -> bool
2631
0
{
2632
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->descriptor())))))) {
2633
0
        (aActor)->FatalError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpAddImage'");
2634
0
        return false;
2635
0
    }
2636
0
    // Sentinel = 'descriptor'
2637
0
    if ((!((aMsg)->ReadSentinel(aIter, 2435877233)))) {
2638
0
        mozilla::ipc::SentinelReadError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpAddImage'");
2639
0
        return false;
2640
0
    }
2641
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
2642
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddImage'");
2643
0
        return false;
2644
0
    }
2645
0
    // Sentinel = 'bytes'
2646
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
2647
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddImage'");
2648
0
        return false;
2649
0
    }
2650
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tiling())))))) {
2651
0
        (aActor)->FatalError("Error deserializing 'tiling' (uint16_t) member of 'OpAddImage'");
2652
0
        return false;
2653
0
    }
2654
0
    // Sentinel = 'tiling'
2655
0
    if ((!((aMsg)->ReadSentinel(aIter, 2471974811)))) {
2656
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tiling' (uint16_t) member of 'OpAddImage'");
2657
0
        return false;
2658
0
    }
2659
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
2660
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpAddImage'");
2661
0
        return false;
2662
0
    }
2663
0
    // Sentinel = 'key'
2664
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
2665
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpAddImage'");
2666
0
        return false;
2667
0
    }
2668
0
    return true;
2669
0
}
2670
2671
} // namespace ipc
2672
} // namespace mozilla
2673
2674
//-----------------------------------------------------------------------------
2675
// Method definitions for the IPDL type |struct OpAddBlobImage|
2676
//
2677
namespace mozilla {
2678
namespace layers {
2679
auto OpAddBlobImage::operator==(const OpAddBlobImage& _o) const -> bool
2680
0
{
2681
0
    if ((!((descriptor()) == ((_o).descriptor())))) {
2682
0
        return false;
2683
0
    }
2684
0
    if ((!((bytes()) == ((_o).bytes())))) {
2685
0
        return false;
2686
0
    }
2687
0
    if ((!((tiling()) == ((_o).tiling())))) {
2688
0
        return false;
2689
0
    }
2690
0
    if ((!((key()) == ((_o).key())))) {
2691
0
        return false;
2692
0
    }
2693
0
    return true;
2694
0
}
2695
2696
auto OpAddBlobImage::operator!=(const OpAddBlobImage& _o) const -> bool
2697
0
{
2698
0
    return (!(operator==(_o)));
2699
0
}
2700
2701
} // namespace layers
2702
} // namespace mozilla
2703
2704
namespace mozilla {
2705
namespace ipc {
2706
auto IPDLParamTraits<mozilla::layers::OpAddBlobImage>::Write(
2707
        IPC::Message* aMsg,
2708
        mozilla::ipc::IProtocol* aActor,
2709
        const paramType& aVar) -> void
2710
0
{
2711
0
    WriteIPDLParam(aMsg, aActor, (aVar).descriptor());
2712
0
    // Sentinel = 'descriptor'
2713
0
    (aMsg)->WriteSentinel(2435877233);
2714
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
2715
0
    // Sentinel = 'bytes'
2716
0
    (aMsg)->WriteSentinel(836113516);
2717
0
    WriteIPDLParam(aMsg, aActor, (aVar).tiling());
2718
0
    // Sentinel = 'tiling'
2719
0
    (aMsg)->WriteSentinel(2471974811);
2720
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
2721
0
    // Sentinel = 'key'
2722
0
    (aMsg)->WriteSentinel(35142870);
2723
0
}
2724
2725
auto IPDLParamTraits<mozilla::layers::OpAddBlobImage>::Read(
2726
        const IPC::Message* aMsg,
2727
        PickleIterator* aIter,
2728
        mozilla::ipc::IProtocol* aActor,
2729
        paramType* aVar) -> bool
2730
0
{
2731
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->descriptor())))))) {
2732
0
        (aActor)->FatalError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpAddBlobImage'");
2733
0
        return false;
2734
0
    }
2735
0
    // Sentinel = 'descriptor'
2736
0
    if ((!((aMsg)->ReadSentinel(aIter, 2435877233)))) {
2737
0
        mozilla::ipc::SentinelReadError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpAddBlobImage'");
2738
0
        return false;
2739
0
    }
2740
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
2741
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddBlobImage'");
2742
0
        return false;
2743
0
    }
2744
0
    // Sentinel = 'bytes'
2745
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
2746
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddBlobImage'");
2747
0
        return false;
2748
0
    }
2749
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->tiling())))))) {
2750
0
        (aActor)->FatalError("Error deserializing 'tiling' (uint16_t) member of 'OpAddBlobImage'");
2751
0
        return false;
2752
0
    }
2753
0
    // Sentinel = 'tiling'
2754
0
    if ((!((aMsg)->ReadSentinel(aIter, 2471974811)))) {
2755
0
        mozilla::ipc::SentinelReadError("Error deserializing 'tiling' (uint16_t) member of 'OpAddBlobImage'");
2756
0
        return false;
2757
0
    }
2758
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
2759
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpAddBlobImage'");
2760
0
        return false;
2761
0
    }
2762
0
    // Sentinel = 'key'
2763
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
2764
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpAddBlobImage'");
2765
0
        return false;
2766
0
    }
2767
0
    return true;
2768
0
}
2769
2770
} // namespace ipc
2771
} // namespace mozilla
2772
2773
//-----------------------------------------------------------------------------
2774
// Method definitions for the IPDL type |struct OpUpdateImage|
2775
//
2776
namespace mozilla {
2777
namespace layers {
2778
auto OpUpdateImage::operator==(const OpUpdateImage& _o) const -> bool
2779
0
{
2780
0
    if ((!((descriptor()) == ((_o).descriptor())))) {
2781
0
        return false;
2782
0
    }
2783
0
    if ((!((bytes()) == ((_o).bytes())))) {
2784
0
        return false;
2785
0
    }
2786
0
    if ((!((key()) == ((_o).key())))) {
2787
0
        return false;
2788
0
    }
2789
0
    return true;
2790
0
}
2791
2792
auto OpUpdateImage::operator!=(const OpUpdateImage& _o) const -> bool
2793
0
{
2794
0
    return (!(operator==(_o)));
2795
0
}
2796
2797
} // namespace layers
2798
} // namespace mozilla
2799
2800
namespace mozilla {
2801
namespace ipc {
2802
auto IPDLParamTraits<mozilla::layers::OpUpdateImage>::Write(
2803
        IPC::Message* aMsg,
2804
        mozilla::ipc::IProtocol* aActor,
2805
        const paramType& aVar) -> void
2806
0
{
2807
0
    WriteIPDLParam(aMsg, aActor, (aVar).descriptor());
2808
0
    // Sentinel = 'descriptor'
2809
0
    (aMsg)->WriteSentinel(2435877233);
2810
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
2811
0
    // Sentinel = 'bytes'
2812
0
    (aMsg)->WriteSentinel(836113516);
2813
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
2814
0
    // Sentinel = 'key'
2815
0
    (aMsg)->WriteSentinel(35142870);
2816
0
}
2817
2818
auto IPDLParamTraits<mozilla::layers::OpUpdateImage>::Read(
2819
        const IPC::Message* aMsg,
2820
        PickleIterator* aIter,
2821
        mozilla::ipc::IProtocol* aActor,
2822
        paramType* aVar) -> bool
2823
0
{
2824
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->descriptor())))))) {
2825
0
        (aActor)->FatalError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpUpdateImage'");
2826
0
        return false;
2827
0
    }
2828
0
    // Sentinel = 'descriptor'
2829
0
    if ((!((aMsg)->ReadSentinel(aIter, 2435877233)))) {
2830
0
        mozilla::ipc::SentinelReadError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpUpdateImage'");
2831
0
        return false;
2832
0
    }
2833
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
2834
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpUpdateImage'");
2835
0
        return false;
2836
0
    }
2837
0
    // Sentinel = 'bytes'
2838
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
2839
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpUpdateImage'");
2840
0
        return false;
2841
0
    }
2842
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
2843
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpUpdateImage'");
2844
0
        return false;
2845
0
    }
2846
0
    // Sentinel = 'key'
2847
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
2848
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpUpdateImage'");
2849
0
        return false;
2850
0
    }
2851
0
    return true;
2852
0
}
2853
2854
} // namespace ipc
2855
} // namespace mozilla
2856
2857
//-----------------------------------------------------------------------------
2858
// Method definitions for the IPDL type |struct OpUpdateBlobImage|
2859
//
2860
namespace mozilla {
2861
namespace layers {
2862
auto OpUpdateBlobImage::operator==(const OpUpdateBlobImage& _o) const -> bool
2863
0
{
2864
0
    if ((!((descriptor()) == ((_o).descriptor())))) {
2865
0
        return false;
2866
0
    }
2867
0
    if ((!((bytes()) == ((_o).bytes())))) {
2868
0
        return false;
2869
0
    }
2870
0
    if ((!((key()) == ((_o).key())))) {
2871
0
        return false;
2872
0
    }
2873
0
    if ((!((dirtyRect()) == ((_o).dirtyRect())))) {
2874
0
        return false;
2875
0
    }
2876
0
    return true;
2877
0
}
2878
2879
auto OpUpdateBlobImage::operator!=(const OpUpdateBlobImage& _o) const -> bool
2880
0
{
2881
0
    return (!(operator==(_o)));
2882
0
}
2883
2884
} // namespace layers
2885
} // namespace mozilla
2886
2887
namespace mozilla {
2888
namespace ipc {
2889
auto IPDLParamTraits<mozilla::layers::OpUpdateBlobImage>::Write(
2890
        IPC::Message* aMsg,
2891
        mozilla::ipc::IProtocol* aActor,
2892
        const paramType& aVar) -> void
2893
0
{
2894
0
    WriteIPDLParam(aMsg, aActor, (aVar).descriptor());
2895
0
    // Sentinel = 'descriptor'
2896
0
    (aMsg)->WriteSentinel(2435877233);
2897
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
2898
0
    // Sentinel = 'bytes'
2899
0
    (aMsg)->WriteSentinel(836113516);
2900
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
2901
0
    // Sentinel = 'key'
2902
0
    (aMsg)->WriteSentinel(35142870);
2903
0
    WriteIPDLParam(aMsg, aActor, (aVar).dirtyRect());
2904
0
    // Sentinel = 'dirtyRect'
2905
0
    (aMsg)->WriteSentinel(1726016483);
2906
0
}
2907
2908
auto IPDLParamTraits<mozilla::layers::OpUpdateBlobImage>::Read(
2909
        const IPC::Message* aMsg,
2910
        PickleIterator* aIter,
2911
        mozilla::ipc::IProtocol* aActor,
2912
        paramType* aVar) -> bool
2913
0
{
2914
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->descriptor())))))) {
2915
0
        (aActor)->FatalError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpUpdateBlobImage'");
2916
0
        return false;
2917
0
    }
2918
0
    // Sentinel = 'descriptor'
2919
0
    if ((!((aMsg)->ReadSentinel(aIter, 2435877233)))) {
2920
0
        mozilla::ipc::SentinelReadError("Error deserializing 'descriptor' (ImageDescriptor) member of 'OpUpdateBlobImage'");
2921
0
        return false;
2922
0
    }
2923
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
2924
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpUpdateBlobImage'");
2925
0
        return false;
2926
0
    }
2927
0
    // Sentinel = 'bytes'
2928
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
2929
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpUpdateBlobImage'");
2930
0
        return false;
2931
0
    }
2932
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
2933
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpUpdateBlobImage'");
2934
0
        return false;
2935
0
    }
2936
0
    // Sentinel = 'key'
2937
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
2938
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpUpdateBlobImage'");
2939
0
        return false;
2940
0
    }
2941
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->dirtyRect())))))) {
2942
0
        (aActor)->FatalError("Error deserializing 'dirtyRect' (ImageIntRect) member of 'OpUpdateBlobImage'");
2943
0
        return false;
2944
0
    }
2945
0
    // Sentinel = 'dirtyRect'
2946
0
    if ((!((aMsg)->ReadSentinel(aIter, 1726016483)))) {
2947
0
        mozilla::ipc::SentinelReadError("Error deserializing 'dirtyRect' (ImageIntRect) member of 'OpUpdateBlobImage'");
2948
0
        return false;
2949
0
    }
2950
0
    return true;
2951
0
}
2952
2953
} // namespace ipc
2954
} // namespace mozilla
2955
2956
//-----------------------------------------------------------------------------
2957
// Method definitions for the IPDL type |struct OpSetImageVisibleArea|
2958
//
2959
namespace mozilla {
2960
namespace layers {
2961
auto OpSetImageVisibleArea::operator==(const OpSetImageVisibleArea& _o) const -> bool
2962
0
{
2963
0
    if ((!((area()) == ((_o).area())))) {
2964
0
        return false;
2965
0
    }
2966
0
    if ((!((key()) == ((_o).key())))) {
2967
0
        return false;
2968
0
    }
2969
0
    return true;
2970
0
}
2971
2972
auto OpSetImageVisibleArea::operator!=(const OpSetImageVisibleArea& _o) const -> bool
2973
0
{
2974
0
    return (!(operator==(_o)));
2975
0
}
2976
2977
} // namespace layers
2978
} // namespace mozilla
2979
2980
namespace mozilla {
2981
namespace ipc {
2982
auto IPDLParamTraits<mozilla::layers::OpSetImageVisibleArea>::Write(
2983
        IPC::Message* aMsg,
2984
        mozilla::ipc::IProtocol* aActor,
2985
        const paramType& aVar) -> void
2986
0
{
2987
0
    WriteIPDLParam(aMsg, aActor, (aVar).area());
2988
0
    // Sentinel = 'area'
2989
0
    (aMsg)->WriteSentinel(2825760551);
2990
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
2991
0
    // Sentinel = 'key'
2992
0
    (aMsg)->WriteSentinel(35142870);
2993
0
}
2994
2995
auto IPDLParamTraits<mozilla::layers::OpSetImageVisibleArea>::Read(
2996
        const IPC::Message* aMsg,
2997
        PickleIterator* aIter,
2998
        mozilla::ipc::IProtocol* aActor,
2999
        paramType* aVar) -> bool
3000
0
{
3001
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->area())))))) {
3002
0
        (aActor)->FatalError("Error deserializing 'area' (Rect) member of 'OpSetImageVisibleArea'");
3003
0
        return false;
3004
0
    }
3005
0
    // Sentinel = 'area'
3006
0
    if ((!((aMsg)->ReadSentinel(aIter, 2825760551)))) {
3007
0
        mozilla::ipc::SentinelReadError("Error deserializing 'area' (Rect) member of 'OpSetImageVisibleArea'");
3008
0
        return false;
3009
0
    }
3010
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3011
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpSetImageVisibleArea'");
3012
0
        return false;
3013
0
    }
3014
0
    // Sentinel = 'key'
3015
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3016
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpSetImageVisibleArea'");
3017
0
        return false;
3018
0
    }
3019
0
    return true;
3020
0
}
3021
3022
} // namespace ipc
3023
} // namespace mozilla
3024
3025
//-----------------------------------------------------------------------------
3026
// Method definitions for the IPDL type |struct OpUpdateExternalImage|
3027
//
3028
namespace mozilla {
3029
namespace layers {
3030
auto OpUpdateExternalImage::operator==(const OpUpdateExternalImage& _o) const -> bool
3031
0
{
3032
0
    if ((!((externalImageId()) == ((_o).externalImageId())))) {
3033
0
        return false;
3034
0
    }
3035
0
    if ((!((key()) == ((_o).key())))) {
3036
0
        return false;
3037
0
    }
3038
0
    if ((!((dirtyRect()) == ((_o).dirtyRect())))) {
3039
0
        return false;
3040
0
    }
3041
0
    return true;
3042
0
}
3043
3044
auto OpUpdateExternalImage::operator!=(const OpUpdateExternalImage& _o) const -> bool
3045
0
{
3046
0
    return (!(operator==(_o)));
3047
0
}
3048
3049
} // namespace layers
3050
} // namespace mozilla
3051
3052
namespace mozilla {
3053
namespace ipc {
3054
auto IPDLParamTraits<mozilla::layers::OpUpdateExternalImage>::Write(
3055
        IPC::Message* aMsg,
3056
        mozilla::ipc::IProtocol* aActor,
3057
        const paramType& aVar) -> void
3058
0
{
3059
0
    WriteIPDLParam(aMsg, aActor, (aVar).externalImageId());
3060
0
    // Sentinel = 'externalImageId'
3061
0
    (aMsg)->WriteSentinel(2839682692);
3062
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3063
0
    // Sentinel = 'key'
3064
0
    (aMsg)->WriteSentinel(35142870);
3065
0
    WriteIPDLParam(aMsg, aActor, (aVar).dirtyRect());
3066
0
    // Sentinel = 'dirtyRect'
3067
0
    (aMsg)->WriteSentinel(1726016483);
3068
0
}
3069
3070
auto IPDLParamTraits<mozilla::layers::OpUpdateExternalImage>::Read(
3071
        const IPC::Message* aMsg,
3072
        PickleIterator* aIter,
3073
        mozilla::ipc::IProtocol* aActor,
3074
        paramType* aVar) -> bool
3075
0
{
3076
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->externalImageId())))))) {
3077
0
        (aActor)->FatalError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpUpdateExternalImage'");
3078
0
        return false;
3079
0
    }
3080
0
    // Sentinel = 'externalImageId'
3081
0
    if ((!((aMsg)->ReadSentinel(aIter, 2839682692)))) {
3082
0
        mozilla::ipc::SentinelReadError("Error deserializing 'externalImageId' (ExternalImageId) member of 'OpUpdateExternalImage'");
3083
0
        return false;
3084
0
    }
3085
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3086
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpUpdateExternalImage'");
3087
0
        return false;
3088
0
    }
3089
0
    // Sentinel = 'key'
3090
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3091
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpUpdateExternalImage'");
3092
0
        return false;
3093
0
    }
3094
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->dirtyRect())))))) {
3095
0
        (aActor)->FatalError("Error deserializing 'dirtyRect' (ImageIntRect) member of 'OpUpdateExternalImage'");
3096
0
        return false;
3097
0
    }
3098
0
    // Sentinel = 'dirtyRect'
3099
0
    if ((!((aMsg)->ReadSentinel(aIter, 1726016483)))) {
3100
0
        mozilla::ipc::SentinelReadError("Error deserializing 'dirtyRect' (ImageIntRect) member of 'OpUpdateExternalImage'");
3101
0
        return false;
3102
0
    }
3103
0
    return true;
3104
0
}
3105
3106
} // namespace ipc
3107
} // namespace mozilla
3108
3109
//-----------------------------------------------------------------------------
3110
// Method definitions for the IPDL type |struct OpDeleteImage|
3111
//
3112
namespace mozilla {
3113
namespace layers {
3114
auto OpDeleteImage::operator==(const OpDeleteImage& _o) const -> bool
3115
0
{
3116
0
    if ((!((key()) == ((_o).key())))) {
3117
0
        return false;
3118
0
    }
3119
0
    return true;
3120
0
}
3121
3122
auto OpDeleteImage::operator!=(const OpDeleteImage& _o) const -> bool
3123
0
{
3124
0
    return (!(operator==(_o)));
3125
0
}
3126
3127
} // namespace layers
3128
} // namespace mozilla
3129
3130
namespace mozilla {
3131
namespace ipc {
3132
auto IPDLParamTraits<mozilla::layers::OpDeleteImage>::Write(
3133
        IPC::Message* aMsg,
3134
        mozilla::ipc::IProtocol* aActor,
3135
        const paramType& aVar) -> void
3136
0
{
3137
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3138
0
    // Sentinel = 'key'
3139
0
    (aMsg)->WriteSentinel(35142870);
3140
0
}
3141
3142
auto IPDLParamTraits<mozilla::layers::OpDeleteImage>::Read(
3143
        const IPC::Message* aMsg,
3144
        PickleIterator* aIter,
3145
        mozilla::ipc::IProtocol* aActor,
3146
        paramType* aVar) -> bool
3147
0
{
3148
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3149
0
        (aActor)->FatalError("Error deserializing 'key' (ImageKey) member of 'OpDeleteImage'");
3150
0
        return false;
3151
0
    }
3152
0
    // Sentinel = 'key'
3153
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3154
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (ImageKey) member of 'OpDeleteImage'");
3155
0
        return false;
3156
0
    }
3157
0
    return true;
3158
0
}
3159
3160
} // namespace ipc
3161
} // namespace mozilla
3162
3163
//-----------------------------------------------------------------------------
3164
// Method definitions for the IPDL type |struct OpAddRawFont|
3165
//
3166
namespace mozilla {
3167
namespace layers {
3168
auto OpAddRawFont::operator==(const OpAddRawFont& _o) const -> bool
3169
0
{
3170
0
    if ((!((bytes()) == ((_o).bytes())))) {
3171
0
        return false;
3172
0
    }
3173
0
    if ((!((fontIndex()) == ((_o).fontIndex())))) {
3174
0
        return false;
3175
0
    }
3176
0
    if ((!((key()) == ((_o).key())))) {
3177
0
        return false;
3178
0
    }
3179
0
    return true;
3180
0
}
3181
3182
auto OpAddRawFont::operator!=(const OpAddRawFont& _o) const -> bool
3183
0
{
3184
0
    return (!(operator==(_o)));
3185
0
}
3186
3187
} // namespace layers
3188
} // namespace mozilla
3189
3190
namespace mozilla {
3191
namespace ipc {
3192
auto IPDLParamTraits<mozilla::layers::OpAddRawFont>::Write(
3193
        IPC::Message* aMsg,
3194
        mozilla::ipc::IProtocol* aActor,
3195
        const paramType& aVar) -> void
3196
0
{
3197
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
3198
0
    // Sentinel = 'bytes'
3199
0
    (aMsg)->WriteSentinel(836113516);
3200
0
    WriteIPDLParam(aMsg, aActor, (aVar).fontIndex());
3201
0
    // Sentinel = 'fontIndex'
3202
0
    (aMsg)->WriteSentinel(403185800);
3203
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3204
0
    // Sentinel = 'key'
3205
0
    (aMsg)->WriteSentinel(35142870);
3206
0
}
3207
3208
auto IPDLParamTraits<mozilla::layers::OpAddRawFont>::Read(
3209
        const IPC::Message* aMsg,
3210
        PickleIterator* aIter,
3211
        mozilla::ipc::IProtocol* aActor,
3212
        paramType* aVar) -> bool
3213
0
{
3214
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
3215
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddRawFont'");
3216
0
        return false;
3217
0
    }
3218
0
    // Sentinel = 'bytes'
3219
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
3220
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddRawFont'");
3221
0
        return false;
3222
0
    }
3223
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fontIndex())))))) {
3224
0
        (aActor)->FatalError("Error deserializing 'fontIndex' (uint32_t) member of 'OpAddRawFont'");
3225
0
        return false;
3226
0
    }
3227
0
    // Sentinel = 'fontIndex'
3228
0
    if ((!((aMsg)->ReadSentinel(aIter, 403185800)))) {
3229
0
        mozilla::ipc::SentinelReadError("Error deserializing 'fontIndex' (uint32_t) member of 'OpAddRawFont'");
3230
0
        return false;
3231
0
    }
3232
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3233
0
        (aActor)->FatalError("Error deserializing 'key' (FontKey) member of 'OpAddRawFont'");
3234
0
        return false;
3235
0
    }
3236
0
    // Sentinel = 'key'
3237
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3238
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (FontKey) member of 'OpAddRawFont'");
3239
0
        return false;
3240
0
    }
3241
0
    return true;
3242
0
}
3243
3244
} // namespace ipc
3245
} // namespace mozilla
3246
3247
//-----------------------------------------------------------------------------
3248
// Method definitions for the IPDL type |struct OpAddFontDescriptor|
3249
//
3250
namespace mozilla {
3251
namespace layers {
3252
auto OpAddFontDescriptor::operator==(const OpAddFontDescriptor& _o) const -> bool
3253
0
{
3254
0
    if ((!((bytes()) == ((_o).bytes())))) {
3255
0
        return false;
3256
0
    }
3257
0
    if ((!((fontIndex()) == ((_o).fontIndex())))) {
3258
0
        return false;
3259
0
    }
3260
0
    if ((!((key()) == ((_o).key())))) {
3261
0
        return false;
3262
0
    }
3263
0
    return true;
3264
0
}
3265
3266
auto OpAddFontDescriptor::operator!=(const OpAddFontDescriptor& _o) const -> bool
3267
0
{
3268
0
    return (!(operator==(_o)));
3269
0
}
3270
3271
} // namespace layers
3272
} // namespace mozilla
3273
3274
namespace mozilla {
3275
namespace ipc {
3276
auto IPDLParamTraits<mozilla::layers::OpAddFontDescriptor>::Write(
3277
        IPC::Message* aMsg,
3278
        mozilla::ipc::IProtocol* aActor,
3279
        const paramType& aVar) -> void
3280
0
{
3281
0
    WriteIPDLParam(aMsg, aActor, (aVar).bytes());
3282
0
    // Sentinel = 'bytes'
3283
0
    (aMsg)->WriteSentinel(836113516);
3284
0
    WriteIPDLParam(aMsg, aActor, (aVar).fontIndex());
3285
0
    // Sentinel = 'fontIndex'
3286
0
    (aMsg)->WriteSentinel(403185800);
3287
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3288
0
    // Sentinel = 'key'
3289
0
    (aMsg)->WriteSentinel(35142870);
3290
0
}
3291
3292
auto IPDLParamTraits<mozilla::layers::OpAddFontDescriptor>::Read(
3293
        const IPC::Message* aMsg,
3294
        PickleIterator* aIter,
3295
        mozilla::ipc::IProtocol* aActor,
3296
        paramType* aVar) -> bool
3297
0
{
3298
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bytes())))))) {
3299
0
        (aActor)->FatalError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddFontDescriptor'");
3300
0
        return false;
3301
0
    }
3302
0
    // Sentinel = 'bytes'
3303
0
    if ((!((aMsg)->ReadSentinel(aIter, 836113516)))) {
3304
0
        mozilla::ipc::SentinelReadError("Error deserializing 'bytes' (OffsetRange) member of 'OpAddFontDescriptor'");
3305
0
        return false;
3306
0
    }
3307
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fontIndex())))))) {
3308
0
        (aActor)->FatalError("Error deserializing 'fontIndex' (uint32_t) member of 'OpAddFontDescriptor'");
3309
0
        return false;
3310
0
    }
3311
0
    // Sentinel = 'fontIndex'
3312
0
    if ((!((aMsg)->ReadSentinel(aIter, 403185800)))) {
3313
0
        mozilla::ipc::SentinelReadError("Error deserializing 'fontIndex' (uint32_t) member of 'OpAddFontDescriptor'");
3314
0
        return false;
3315
0
    }
3316
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3317
0
        (aActor)->FatalError("Error deserializing 'key' (FontKey) member of 'OpAddFontDescriptor'");
3318
0
        return false;
3319
0
    }
3320
0
    // Sentinel = 'key'
3321
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3322
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (FontKey) member of 'OpAddFontDescriptor'");
3323
0
        return false;
3324
0
    }
3325
0
    return true;
3326
0
}
3327
3328
} // namespace ipc
3329
} // namespace mozilla
3330
3331
//-----------------------------------------------------------------------------
3332
// Method definitions for the IPDL type |struct OpDeleteFont|
3333
//
3334
namespace mozilla {
3335
namespace layers {
3336
auto OpDeleteFont::operator==(const OpDeleteFont& _o) const -> bool
3337
0
{
3338
0
    if ((!((key()) == ((_o).key())))) {
3339
0
        return false;
3340
0
    }
3341
0
    return true;
3342
0
}
3343
3344
auto OpDeleteFont::operator!=(const OpDeleteFont& _o) const -> bool
3345
0
{
3346
0
    return (!(operator==(_o)));
3347
0
}
3348
3349
} // namespace layers
3350
} // namespace mozilla
3351
3352
namespace mozilla {
3353
namespace ipc {
3354
auto IPDLParamTraits<mozilla::layers::OpDeleteFont>::Write(
3355
        IPC::Message* aMsg,
3356
        mozilla::ipc::IProtocol* aActor,
3357
        const paramType& aVar) -> void
3358
0
{
3359
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3360
0
    // Sentinel = 'key'
3361
0
    (aMsg)->WriteSentinel(35142870);
3362
0
}
3363
3364
auto IPDLParamTraits<mozilla::layers::OpDeleteFont>::Read(
3365
        const IPC::Message* aMsg,
3366
        PickleIterator* aIter,
3367
        mozilla::ipc::IProtocol* aActor,
3368
        paramType* aVar) -> bool
3369
0
{
3370
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3371
0
        (aActor)->FatalError("Error deserializing 'key' (FontKey) member of 'OpDeleteFont'");
3372
0
        return false;
3373
0
    }
3374
0
    // Sentinel = 'key'
3375
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3376
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (FontKey) member of 'OpDeleteFont'");
3377
0
        return false;
3378
0
    }
3379
0
    return true;
3380
0
}
3381
3382
} // namespace ipc
3383
} // namespace mozilla
3384
3385
//-----------------------------------------------------------------------------
3386
// Method definitions for the IPDL type |struct OpAddFontInstance|
3387
//
3388
namespace mozilla {
3389
namespace layers {
3390
auto OpAddFontInstance::operator==(const OpAddFontInstance& _o) const -> bool
3391
0
{
3392
0
    if ((!((options()) == ((_o).options())))) {
3393
0
        return false;
3394
0
    }
3395
0
    if ((!((platformOptions()) == ((_o).platformOptions())))) {
3396
0
        return false;
3397
0
    }
3398
0
    if ((!((variations()) == ((_o).variations())))) {
3399
0
        return false;
3400
0
    }
3401
0
    if ((!((instanceKey()) == ((_o).instanceKey())))) {
3402
0
        return false;
3403
0
    }
3404
0
    if ((!((fontKey()) == ((_o).fontKey())))) {
3405
0
        return false;
3406
0
    }
3407
0
    if ((!((glyphSize()) == ((_o).glyphSize())))) {
3408
0
        return false;
3409
0
    }
3410
0
    return true;
3411
0
}
3412
3413
auto OpAddFontInstance::operator!=(const OpAddFontInstance& _o) const -> bool
3414
0
{
3415
0
    return (!(operator==(_o)));
3416
0
}
3417
3418
} // namespace layers
3419
} // namespace mozilla
3420
3421
namespace mozilla {
3422
namespace ipc {
3423
auto IPDLParamTraits<mozilla::layers::OpAddFontInstance>::Write(
3424
        IPC::Message* aMsg,
3425
        mozilla::ipc::IProtocol* aActor,
3426
        const paramType& aVar) -> void
3427
0
{
3428
0
    WriteIPDLParam(aMsg, aActor, (aVar).options());
3429
0
    // Sentinel = 'options'
3430
0
    (aMsg)->WriteSentinel(33222909);
3431
0
    WriteIPDLParam(aMsg, aActor, (aVar).platformOptions());
3432
0
    // Sentinel = 'platformOptions'
3433
0
    (aMsg)->WriteSentinel(2782091946);
3434
0
    WriteIPDLParam(aMsg, aActor, (aVar).variations());
3435
0
    // Sentinel = 'variations'
3436
0
    (aMsg)->WriteSentinel(246079340);
3437
0
    WriteIPDLParam(aMsg, aActor, (aVar).instanceKey());
3438
0
    // Sentinel = 'instanceKey'
3439
0
    (aMsg)->WriteSentinel(430968381);
3440
0
    WriteIPDLParam(aMsg, aActor, (aVar).fontKey());
3441
0
    // Sentinel = 'fontKey'
3442
0
    (aMsg)->WriteSentinel(727843339);
3443
0
    WriteIPDLParam(aMsg, aActor, (aVar).glyphSize());
3444
0
    // Sentinel = 'glyphSize'
3445
0
    (aMsg)->WriteSentinel(2169533804);
3446
0
}
3447
3448
auto IPDLParamTraits<mozilla::layers::OpAddFontInstance>::Read(
3449
        const IPC::Message* aMsg,
3450
        PickleIterator* aIter,
3451
        mozilla::ipc::IProtocol* aActor,
3452
        paramType* aVar) -> bool
3453
0
{
3454
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->options())))))) {
3455
0
        (aActor)->FatalError("Error deserializing 'options' (MaybeFontInstanceOptions) member of 'OpAddFontInstance'");
3456
0
        return false;
3457
0
    }
3458
0
    // Sentinel = 'options'
3459
0
    if ((!((aMsg)->ReadSentinel(aIter, 33222909)))) {
3460
0
        mozilla::ipc::SentinelReadError("Error deserializing 'options' (MaybeFontInstanceOptions) member of 'OpAddFontInstance'");
3461
0
        return false;
3462
0
    }
3463
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->platformOptions())))))) {
3464
0
        (aActor)->FatalError("Error deserializing 'platformOptions' (MaybeFontInstancePlatformOptions) member of 'OpAddFontInstance'");
3465
0
        return false;
3466
0
    }
3467
0
    // Sentinel = 'platformOptions'
3468
0
    if ((!((aMsg)->ReadSentinel(aIter, 2782091946)))) {
3469
0
        mozilla::ipc::SentinelReadError("Error deserializing 'platformOptions' (MaybeFontInstancePlatformOptions) member of 'OpAddFontInstance'");
3470
0
        return false;
3471
0
    }
3472
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->variations())))))) {
3473
0
        (aActor)->FatalError("Error deserializing 'variations' (OffsetRange) member of 'OpAddFontInstance'");
3474
0
        return false;
3475
0
    }
3476
0
    // Sentinel = 'variations'
3477
0
    if ((!((aMsg)->ReadSentinel(aIter, 246079340)))) {
3478
0
        mozilla::ipc::SentinelReadError("Error deserializing 'variations' (OffsetRange) member of 'OpAddFontInstance'");
3479
0
        return false;
3480
0
    }
3481
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->instanceKey())))))) {
3482
0
        (aActor)->FatalError("Error deserializing 'instanceKey' (FontInstanceKey) member of 'OpAddFontInstance'");
3483
0
        return false;
3484
0
    }
3485
0
    // Sentinel = 'instanceKey'
3486
0
    if ((!((aMsg)->ReadSentinel(aIter, 430968381)))) {
3487
0
        mozilla::ipc::SentinelReadError("Error deserializing 'instanceKey' (FontInstanceKey) member of 'OpAddFontInstance'");
3488
0
        return false;
3489
0
    }
3490
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->fontKey())))))) {
3491
0
        (aActor)->FatalError("Error deserializing 'fontKey' (FontKey) member of 'OpAddFontInstance'");
3492
0
        return false;
3493
0
    }
3494
0
    // Sentinel = 'fontKey'
3495
0
    if ((!((aMsg)->ReadSentinel(aIter, 727843339)))) {
3496
0
        mozilla::ipc::SentinelReadError("Error deserializing 'fontKey' (FontKey) member of 'OpAddFontInstance'");
3497
0
        return false;
3498
0
    }
3499
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->glyphSize())))))) {
3500
0
        (aActor)->FatalError("Error deserializing 'glyphSize' (float) member of 'OpAddFontInstance'");
3501
0
        return false;
3502
0
    }
3503
0
    // Sentinel = 'glyphSize'
3504
0
    if ((!((aMsg)->ReadSentinel(aIter, 2169533804)))) {
3505
0
        mozilla::ipc::SentinelReadError("Error deserializing 'glyphSize' (float) member of 'OpAddFontInstance'");
3506
0
        return false;
3507
0
    }
3508
0
    return true;
3509
0
}
3510
3511
} // namespace ipc
3512
} // namespace mozilla
3513
3514
//-----------------------------------------------------------------------------
3515
// Method definitions for the IPDL type |struct OpDeleteFontInstance|
3516
//
3517
namespace mozilla {
3518
namespace layers {
3519
auto OpDeleteFontInstance::operator==(const OpDeleteFontInstance& _o) const -> bool
3520
0
{
3521
0
    if ((!((key()) == ((_o).key())))) {
3522
0
        return false;
3523
0
    }
3524
0
    return true;
3525
0
}
3526
3527
auto OpDeleteFontInstance::operator!=(const OpDeleteFontInstance& _o) const -> bool
3528
0
{
3529
0
    return (!(operator==(_o)));
3530
0
}
3531
3532
} // namespace layers
3533
} // namespace mozilla
3534
3535
namespace mozilla {
3536
namespace ipc {
3537
auto IPDLParamTraits<mozilla::layers::OpDeleteFontInstance>::Write(
3538
        IPC::Message* aMsg,
3539
        mozilla::ipc::IProtocol* aActor,
3540
        const paramType& aVar) -> void
3541
0
{
3542
0
    WriteIPDLParam(aMsg, aActor, (aVar).key());
3543
0
    // Sentinel = 'key'
3544
0
    (aMsg)->WriteSentinel(35142870);
3545
0
}
3546
3547
auto IPDLParamTraits<mozilla::layers::OpDeleteFontInstance>::Read(
3548
        const IPC::Message* aMsg,
3549
        PickleIterator* aIter,
3550
        mozilla::ipc::IProtocol* aActor,
3551
        paramType* aVar) -> bool
3552
0
{
3553
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->key())))))) {
3554
0
        (aActor)->FatalError("Error deserializing 'key' (FontInstanceKey) member of 'OpDeleteFontInstance'");
3555
0
        return false;
3556
0
    }
3557
0
    // Sentinel = 'key'
3558
0
    if ((!((aMsg)->ReadSentinel(aIter, 35142870)))) {
3559
0
        mozilla::ipc::SentinelReadError("Error deserializing 'key' (FontInstanceKey) member of 'OpDeleteFontInstance'");
3560
0
        return false;
3561
0
    }
3562
0
    return true;
3563
0
}
3564
3565
} // namespace ipc
3566
} // namespace mozilla
3567
3568
//-----------------------------------------------------------------------------
3569
// Method definitions for the IPDL type |union OpUpdateResource|
3570
//
3571
namespace mozilla {
3572
namespace layers {
3573
auto OpUpdateResource::MaybeDestroy(Type aNewType) -> bool
3574
0
{
3575
0
    if ((mType) == (T__None)) {
3576
0
        return true;
3577
0
    }
3578
0
    if ((mType) == (aNewType)) {
3579
0
        return false;
3580
0
    }
3581
0
    switch (mType) {
3582
0
    case TOpAddImage:
3583
0
        {
3584
0
            (ptr_OpAddImage())->~OpAddImage__tdef();
3585
0
            break;
3586
0
        }
3587
0
    case TOpAddBlobImage:
3588
0
        {
3589
0
            (ptr_OpAddBlobImage())->~OpAddBlobImage__tdef();
3590
0
            break;
3591
0
        }
3592
0
    case TOpUpdateImage:
3593
0
        {
3594
0
            (ptr_OpUpdateImage())->~OpUpdateImage__tdef();
3595
0
            break;
3596
0
        }
3597
0
    case TOpUpdateBlobImage:
3598
0
        {
3599
0
            (ptr_OpUpdateBlobImage())->~OpUpdateBlobImage__tdef();
3600
0
            break;
3601
0
        }
3602
0
    case TOpSetImageVisibleArea:
3603
0
        {
3604
0
            (ptr_OpSetImageVisibleArea())->~OpSetImageVisibleArea__tdef();
3605
0
            break;
3606
0
        }
3607
0
    case TOpDeleteImage:
3608
0
        {
3609
0
            (ptr_OpDeleteImage())->~OpDeleteImage__tdef();
3610
0
            break;
3611
0
        }
3612
0
    case TOpAddRawFont:
3613
0
        {
3614
0
            (ptr_OpAddRawFont())->~OpAddRawFont__tdef();
3615
0
            break;
3616
0
        }
3617
0
    case TOpAddFontDescriptor:
3618
0
        {
3619
0
            (ptr_OpAddFontDescriptor())->~OpAddFontDescriptor__tdef();
3620
0
            break;
3621
0
        }
3622
0
    case TOpDeleteFont:
3623
0
        {
3624
0
            (ptr_OpDeleteFont())->~OpDeleteFont__tdef();
3625
0
            break;
3626
0
        }
3627
0
    case TOpAddFontInstance:
3628
0
        {
3629
0
            (ptr_OpAddFontInstance())->~OpAddFontInstance__tdef();
3630
0
            break;
3631
0
        }
3632
0
    case TOpDeleteFontInstance:
3633
0
        {
3634
0
            (ptr_OpDeleteFontInstance())->~OpDeleteFontInstance__tdef();
3635
0
            break;
3636
0
        }
3637
0
    case TOpAddExternalImage:
3638
0
        {
3639
0
            (ptr_OpAddExternalImage())->~OpAddExternalImage__tdef();
3640
0
            break;
3641
0
        }
3642
0
    case TOpPushExternalImageForTexture:
3643
0
        {
3644
0
            (ptr_OpPushExternalImageForTexture())->~OpPushExternalImageForTexture__tdef();
3645
0
            break;
3646
0
        }
3647
0
    case TOpUpdateExternalImage:
3648
0
        {
3649
0
            (ptr_OpUpdateExternalImage())->~OpUpdateExternalImage__tdef();
3650
0
            break;
3651
0
        }
3652
0
    default:
3653
0
        {
3654
0
            mozilla::ipc::LogicError("not reached");
3655
0
            break;
3656
0
        }
3657
0
    }
3658
0
    return true;
3659
0
}
3660
3661
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddImage& aOther)
3662
0
{
3663
0
    new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage(aOther);
3664
0
    mType = TOpAddImage;
3665
0
}
3666
3667
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddImage&& aOther)
3668
0
{
3669
0
    new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage(std::move(aOther));
3670
0
    mType = TOpAddImage;
3671
0
}
3672
3673
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddBlobImage& aOther)
3674
0
{
3675
0
    new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage(aOther);
3676
0
    mType = TOpAddBlobImage;
3677
0
}
3678
3679
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddBlobImage&& aOther)
3680
0
{
3681
0
    new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage(std::move(aOther));
3682
0
    mType = TOpAddBlobImage;
3683
0
}
3684
3685
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpUpdateImage& aOther)
3686
0
{
3687
0
    new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage(aOther);
3688
0
    mType = TOpUpdateImage;
3689
0
}
3690
3691
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpUpdateImage&& aOther)
3692
0
{
3693
0
    new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage(std::move(aOther));
3694
0
    mType = TOpUpdateImage;
3695
0
}
3696
3697
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpUpdateBlobImage& aOther)
3698
0
{
3699
0
    new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage(aOther);
3700
0
    mType = TOpUpdateBlobImage;
3701
0
}
3702
3703
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpUpdateBlobImage&& aOther)
3704
0
{
3705
0
    new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage(std::move(aOther));
3706
0
    mType = TOpUpdateBlobImage;
3707
0
}
3708
3709
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpSetImageVisibleArea& aOther)
3710
0
{
3711
0
    new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea(aOther);
3712
0
    mType = TOpSetImageVisibleArea;
3713
0
}
3714
3715
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpSetImageVisibleArea&& aOther)
3716
0
{
3717
0
    new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea(std::move(aOther));
3718
0
    mType = TOpSetImageVisibleArea;
3719
0
}
3720
3721
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpDeleteImage& aOther)
3722
0
{
3723
0
    new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage(aOther);
3724
0
    mType = TOpDeleteImage;
3725
0
}
3726
3727
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpDeleteImage&& aOther)
3728
0
{
3729
0
    new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage(std::move(aOther));
3730
0
    mType = TOpDeleteImage;
3731
0
}
3732
3733
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddRawFont& aOther)
3734
0
{
3735
0
    new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont(aOther);
3736
0
    mType = TOpAddRawFont;
3737
0
}
3738
3739
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddRawFont&& aOther)
3740
0
{
3741
0
    new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont(std::move(aOther));
3742
0
    mType = TOpAddRawFont;
3743
0
}
3744
3745
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddFontDescriptor& aOther)
3746
0
{
3747
0
    new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor(aOther);
3748
0
    mType = TOpAddFontDescriptor;
3749
0
}
3750
3751
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddFontDescriptor&& aOther)
3752
0
{
3753
0
    new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor(std::move(aOther));
3754
0
    mType = TOpAddFontDescriptor;
3755
0
}
3756
3757
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpDeleteFont& aOther)
3758
0
{
3759
0
    new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont(aOther);
3760
0
    mType = TOpDeleteFont;
3761
0
}
3762
3763
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpDeleteFont&& aOther)
3764
0
{
3765
0
    new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont(std::move(aOther));
3766
0
    mType = TOpDeleteFont;
3767
0
}
3768
3769
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddFontInstance& aOther)
3770
0
{
3771
0
    new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance(aOther);
3772
0
    mType = TOpAddFontInstance;
3773
0
}
3774
3775
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddFontInstance&& aOther)
3776
0
{
3777
0
    new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance(std::move(aOther));
3778
0
    mType = TOpAddFontInstance;
3779
0
}
3780
3781
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpDeleteFontInstance& aOther)
3782
0
{
3783
0
    new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance(aOther);
3784
0
    mType = TOpDeleteFontInstance;
3785
0
}
3786
3787
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpDeleteFontInstance&& aOther)
3788
0
{
3789
0
    new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance(std::move(aOther));
3790
0
    mType = TOpDeleteFontInstance;
3791
0
}
3792
3793
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpAddExternalImage& aOther)
3794
0
{
3795
0
    new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage(aOther);
3796
0
    mType = TOpAddExternalImage;
3797
0
}
3798
3799
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpAddExternalImage&& aOther)
3800
0
{
3801
0
    new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage(std::move(aOther));
3802
0
    mType = TOpAddExternalImage;
3803
0
}
3804
3805
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpPushExternalImageForTexture& aOther)
3806
0
{
3807
0
    new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture(aOther);
3808
0
    mType = TOpPushExternalImageForTexture;
3809
0
}
3810
3811
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpPushExternalImageForTexture&& aOther)
3812
0
{
3813
0
    new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture(std::move(aOther));
3814
0
    mType = TOpPushExternalImageForTexture;
3815
0
}
3816
3817
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpUpdateExternalImage& aOther)
3818
0
{
3819
0
    new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage(aOther);
3820
0
    mType = TOpUpdateExternalImage;
3821
0
}
3822
3823
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpUpdateExternalImage&& aOther)
3824
0
{
3825
0
    new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage(std::move(aOther));
3826
0
    mType = TOpUpdateExternalImage;
3827
0
}
3828
3829
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(const OpUpdateResource& aOther)
3830
0
{
3831
0
    (aOther).AssertSanity();
3832
0
    switch ((aOther).type()) {
3833
0
    case TOpAddImage:
3834
0
        {
3835
0
            new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage((aOther).get_OpAddImage());
3836
0
            break;
3837
0
        }
3838
0
    case TOpAddBlobImage:
3839
0
        {
3840
0
            new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage((aOther).get_OpAddBlobImage());
3841
0
            break;
3842
0
        }
3843
0
    case TOpUpdateImage:
3844
0
        {
3845
0
            new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage((aOther).get_OpUpdateImage());
3846
0
            break;
3847
0
        }
3848
0
    case TOpUpdateBlobImage:
3849
0
        {
3850
0
            new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage((aOther).get_OpUpdateBlobImage());
3851
0
            break;
3852
0
        }
3853
0
    case TOpSetImageVisibleArea:
3854
0
        {
3855
0
            new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea((aOther).get_OpSetImageVisibleArea());
3856
0
            break;
3857
0
        }
3858
0
    case TOpDeleteImage:
3859
0
        {
3860
0
            new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage((aOther).get_OpDeleteImage());
3861
0
            break;
3862
0
        }
3863
0
    case TOpAddRawFont:
3864
0
        {
3865
0
            new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont((aOther).get_OpAddRawFont());
3866
0
            break;
3867
0
        }
3868
0
    case TOpAddFontDescriptor:
3869
0
        {
3870
0
            new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor((aOther).get_OpAddFontDescriptor());
3871
0
            break;
3872
0
        }
3873
0
    case TOpDeleteFont:
3874
0
        {
3875
0
            new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont((aOther).get_OpDeleteFont());
3876
0
            break;
3877
0
        }
3878
0
    case TOpAddFontInstance:
3879
0
        {
3880
0
            new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance((aOther).get_OpAddFontInstance());
3881
0
            break;
3882
0
        }
3883
0
    case TOpDeleteFontInstance:
3884
0
        {
3885
0
            new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance((aOther).get_OpDeleteFontInstance());
3886
0
            break;
3887
0
        }
3888
0
    case TOpAddExternalImage:
3889
0
        {
3890
0
            new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage((aOther).get_OpAddExternalImage());
3891
0
            break;
3892
0
        }
3893
0
    case TOpPushExternalImageForTexture:
3894
0
        {
3895
0
            new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture((aOther).get_OpPushExternalImageForTexture());
3896
0
            break;
3897
0
        }
3898
0
    case TOpUpdateExternalImage:
3899
0
        {
3900
0
            new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage((aOther).get_OpUpdateExternalImage());
3901
0
            break;
3902
0
        }
3903
0
    case T__None:
3904
0
        {
3905
0
            break;
3906
0
        }
3907
0
    default:
3908
0
        {
3909
0
            mozilla::ipc::LogicError("unreached");
3910
0
            return;
3911
0
        }
3912
0
    }
3913
0
    mType = (aOther).type();
3914
0
}
3915
3916
MOZ_IMPLICIT OpUpdateResource::OpUpdateResource(OpUpdateResource&& aOther)
3917
0
{
3918
0
    (aOther).AssertSanity();
3919
0
    Type t = (aOther).type();
3920
0
    switch (t) {
3921
0
    case TOpAddImage:
3922
0
        {
3923
0
            new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage(std::move((aOther).get_OpAddImage()));
3924
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3925
0
            break;
3926
0
        }
3927
0
    case TOpAddBlobImage:
3928
0
        {
3929
0
            new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage(std::move((aOther).get_OpAddBlobImage()));
3930
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3931
0
            break;
3932
0
        }
3933
0
    case TOpUpdateImage:
3934
0
        {
3935
0
            new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage(std::move((aOther).get_OpUpdateImage()));
3936
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3937
0
            break;
3938
0
        }
3939
0
    case TOpUpdateBlobImage:
3940
0
        {
3941
0
            new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage(std::move((aOther).get_OpUpdateBlobImage()));
3942
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3943
0
            break;
3944
0
        }
3945
0
    case TOpSetImageVisibleArea:
3946
0
        {
3947
0
            new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea(std::move((aOther).get_OpSetImageVisibleArea()));
3948
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3949
0
            break;
3950
0
        }
3951
0
    case TOpDeleteImage:
3952
0
        {
3953
0
            new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage(std::move((aOther).get_OpDeleteImage()));
3954
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3955
0
            break;
3956
0
        }
3957
0
    case TOpAddRawFont:
3958
0
        {
3959
0
            new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont(std::move((aOther).get_OpAddRawFont()));
3960
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3961
0
            break;
3962
0
        }
3963
0
    case TOpAddFontDescriptor:
3964
0
        {
3965
0
            new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor(std::move((aOther).get_OpAddFontDescriptor()));
3966
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3967
0
            break;
3968
0
        }
3969
0
    case TOpDeleteFont:
3970
0
        {
3971
0
            new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont(std::move((aOther).get_OpDeleteFont()));
3972
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3973
0
            break;
3974
0
        }
3975
0
    case TOpAddFontInstance:
3976
0
        {
3977
0
            new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance(std::move((aOther).get_OpAddFontInstance()));
3978
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3979
0
            break;
3980
0
        }
3981
0
    case TOpDeleteFontInstance:
3982
0
        {
3983
0
            new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance(std::move((aOther).get_OpDeleteFontInstance()));
3984
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3985
0
            break;
3986
0
        }
3987
0
    case TOpAddExternalImage:
3988
0
        {
3989
0
            new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage(std::move((aOther).get_OpAddExternalImage()));
3990
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3991
0
            break;
3992
0
        }
3993
0
    case TOpPushExternalImageForTexture:
3994
0
        {
3995
0
            new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture(std::move((aOther).get_OpPushExternalImageForTexture()));
3996
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
3997
0
            break;
3998
0
        }
3999
0
    case TOpUpdateExternalImage:
4000
0
        {
4001
0
            new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage(std::move((aOther).get_OpUpdateExternalImage()));
4002
0
            static_cast<void>((aOther).MaybeDestroy(T__None));
4003
0
            break;
4004
0
        }
4005
0
    case T__None:
4006
0
        {
4007
0
            break;
4008
0
        }
4009
0
    default:
4010
0
        {
4011
0
            mozilla::ipc::LogicError("unreached");
4012
0
            return;
4013
0
        }
4014
0
    }
4015
0
    (aOther).mType = T__None;
4016
0
    mType = t;
4017
0
}
4018
4019
OpUpdateResource::~OpUpdateResource()
4020
0
{
4021
0
    static_cast<void>(MaybeDestroy(T__None));
4022
0
}
4023
4024
auto OpUpdateResource::operator=(const OpAddImage& aRhs) -> OpUpdateResource&
4025
0
{
4026
0
    if (MaybeDestroy(TOpAddImage)) {
4027
0
        new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage;
4028
0
    }
4029
0
    (*(ptr_OpAddImage())) = aRhs;
4030
0
    mType = TOpAddImage;
4031
0
    return (*(this));
4032
0
}
4033
4034
auto OpUpdateResource::operator=(OpAddImage&& aRhs) -> OpUpdateResource&
4035
0
{
4036
0
    if (MaybeDestroy(TOpAddImage)) {
4037
0
        new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage;
4038
0
    }
4039
0
    (*(ptr_OpAddImage())) = std::move(aRhs);
4040
0
    mType = TOpAddImage;
4041
0
    return (*(this));
4042
0
}
4043
4044
auto OpUpdateResource::operator=(const OpAddBlobImage& aRhs) -> OpUpdateResource&
4045
0
{
4046
0
    if (MaybeDestroy(TOpAddBlobImage)) {
4047
0
        new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage;
4048
0
    }
4049
0
    (*(ptr_OpAddBlobImage())) = aRhs;
4050
0
    mType = TOpAddBlobImage;
4051
0
    return (*(this));
4052
0
}
4053
4054
auto OpUpdateResource::operator=(OpAddBlobImage&& aRhs) -> OpUpdateResource&
4055
0
{
4056
0
    if (MaybeDestroy(TOpAddBlobImage)) {
4057
0
        new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage;
4058
0
    }
4059
0
    (*(ptr_OpAddBlobImage())) = std::move(aRhs);
4060
0
    mType = TOpAddBlobImage;
4061
0
    return (*(this));
4062
0
}
4063
4064
auto OpUpdateResource::operator=(const OpUpdateImage& aRhs) -> OpUpdateResource&
4065
0
{
4066
0
    if (MaybeDestroy(TOpUpdateImage)) {
4067
0
        new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage;
4068
0
    }
4069
0
    (*(ptr_OpUpdateImage())) = aRhs;
4070
0
    mType = TOpUpdateImage;
4071
0
    return (*(this));
4072
0
}
4073
4074
auto OpUpdateResource::operator=(OpUpdateImage&& aRhs) -> OpUpdateResource&
4075
0
{
4076
0
    if (MaybeDestroy(TOpUpdateImage)) {
4077
0
        new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage;
4078
0
    }
4079
0
    (*(ptr_OpUpdateImage())) = std::move(aRhs);
4080
0
    mType = TOpUpdateImage;
4081
0
    return (*(this));
4082
0
}
4083
4084
auto OpUpdateResource::operator=(const OpUpdateBlobImage& aRhs) -> OpUpdateResource&
4085
0
{
4086
0
    if (MaybeDestroy(TOpUpdateBlobImage)) {
4087
0
        new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage;
4088
0
    }
4089
0
    (*(ptr_OpUpdateBlobImage())) = aRhs;
4090
0
    mType = TOpUpdateBlobImage;
4091
0
    return (*(this));
4092
0
}
4093
4094
auto OpUpdateResource::operator=(OpUpdateBlobImage&& aRhs) -> OpUpdateResource&
4095
0
{
4096
0
    if (MaybeDestroy(TOpUpdateBlobImage)) {
4097
0
        new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage;
4098
0
    }
4099
0
    (*(ptr_OpUpdateBlobImage())) = std::move(aRhs);
4100
0
    mType = TOpUpdateBlobImage;
4101
0
    return (*(this));
4102
0
}
4103
4104
auto OpUpdateResource::operator=(const OpSetImageVisibleArea& aRhs) -> OpUpdateResource&
4105
0
{
4106
0
    if (MaybeDestroy(TOpSetImageVisibleArea)) {
4107
0
        new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea;
4108
0
    }
4109
0
    (*(ptr_OpSetImageVisibleArea())) = aRhs;
4110
0
    mType = TOpSetImageVisibleArea;
4111
0
    return (*(this));
4112
0
}
4113
4114
auto OpUpdateResource::operator=(OpSetImageVisibleArea&& aRhs) -> OpUpdateResource&
4115
0
{
4116
0
    if (MaybeDestroy(TOpSetImageVisibleArea)) {
4117
0
        new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea;
4118
0
    }
4119
0
    (*(ptr_OpSetImageVisibleArea())) = std::move(aRhs);
4120
0
    mType = TOpSetImageVisibleArea;
4121
0
    return (*(this));
4122
0
}
4123
4124
auto OpUpdateResource::operator=(const OpDeleteImage& aRhs) -> OpUpdateResource&
4125
0
{
4126
0
    if (MaybeDestroy(TOpDeleteImage)) {
4127
0
        new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage;
4128
0
    }
4129
0
    (*(ptr_OpDeleteImage())) = aRhs;
4130
0
    mType = TOpDeleteImage;
4131
0
    return (*(this));
4132
0
}
4133
4134
auto OpUpdateResource::operator=(OpDeleteImage&& aRhs) -> OpUpdateResource&
4135
0
{
4136
0
    if (MaybeDestroy(TOpDeleteImage)) {
4137
0
        new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage;
4138
0
    }
4139
0
    (*(ptr_OpDeleteImage())) = std::move(aRhs);
4140
0
    mType = TOpDeleteImage;
4141
0
    return (*(this));
4142
0
}
4143
4144
auto OpUpdateResource::operator=(const OpAddRawFont& aRhs) -> OpUpdateResource&
4145
0
{
4146
0
    if (MaybeDestroy(TOpAddRawFont)) {
4147
0
        new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont;
4148
0
    }
4149
0
    (*(ptr_OpAddRawFont())) = aRhs;
4150
0
    mType = TOpAddRawFont;
4151
0
    return (*(this));
4152
0
}
4153
4154
auto OpUpdateResource::operator=(OpAddRawFont&& aRhs) -> OpUpdateResource&
4155
0
{
4156
0
    if (MaybeDestroy(TOpAddRawFont)) {
4157
0
        new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont;
4158
0
    }
4159
0
    (*(ptr_OpAddRawFont())) = std::move(aRhs);
4160
0
    mType = TOpAddRawFont;
4161
0
    return (*(this));
4162
0
}
4163
4164
auto OpUpdateResource::operator=(const OpAddFontDescriptor& aRhs) -> OpUpdateResource&
4165
0
{
4166
0
    if (MaybeDestroy(TOpAddFontDescriptor)) {
4167
0
        new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor;
4168
0
    }
4169
0
    (*(ptr_OpAddFontDescriptor())) = aRhs;
4170
0
    mType = TOpAddFontDescriptor;
4171
0
    return (*(this));
4172
0
}
4173
4174
auto OpUpdateResource::operator=(OpAddFontDescriptor&& aRhs) -> OpUpdateResource&
4175
0
{
4176
0
    if (MaybeDestroy(TOpAddFontDescriptor)) {
4177
0
        new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor;
4178
0
    }
4179
0
    (*(ptr_OpAddFontDescriptor())) = std::move(aRhs);
4180
0
    mType = TOpAddFontDescriptor;
4181
0
    return (*(this));
4182
0
}
4183
4184
auto OpUpdateResource::operator=(const OpDeleteFont& aRhs) -> OpUpdateResource&
4185
0
{
4186
0
    if (MaybeDestroy(TOpDeleteFont)) {
4187
0
        new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont;
4188
0
    }
4189
0
    (*(ptr_OpDeleteFont())) = aRhs;
4190
0
    mType = TOpDeleteFont;
4191
0
    return (*(this));
4192
0
}
4193
4194
auto OpUpdateResource::operator=(OpDeleteFont&& aRhs) -> OpUpdateResource&
4195
0
{
4196
0
    if (MaybeDestroy(TOpDeleteFont)) {
4197
0
        new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont;
4198
0
    }
4199
0
    (*(ptr_OpDeleteFont())) = std::move(aRhs);
4200
0
    mType = TOpDeleteFont;
4201
0
    return (*(this));
4202
0
}
4203
4204
auto OpUpdateResource::operator=(const OpAddFontInstance& aRhs) -> OpUpdateResource&
4205
0
{
4206
0
    if (MaybeDestroy(TOpAddFontInstance)) {
4207
0
        new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance;
4208
0
    }
4209
0
    (*(ptr_OpAddFontInstance())) = aRhs;
4210
0
    mType = TOpAddFontInstance;
4211
0
    return (*(this));
4212
0
}
4213
4214
auto OpUpdateResource::operator=(OpAddFontInstance&& aRhs) -> OpUpdateResource&
4215
0
{
4216
0
    if (MaybeDestroy(TOpAddFontInstance)) {
4217
0
        new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance;
4218
0
    }
4219
0
    (*(ptr_OpAddFontInstance())) = std::move(aRhs);
4220
0
    mType = TOpAddFontInstance;
4221
0
    return (*(this));
4222
0
}
4223
4224
auto OpUpdateResource::operator=(const OpDeleteFontInstance& aRhs) -> OpUpdateResource&
4225
0
{
4226
0
    if (MaybeDestroy(TOpDeleteFontInstance)) {
4227
0
        new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance;
4228
0
    }
4229
0
    (*(ptr_OpDeleteFontInstance())) = aRhs;
4230
0
    mType = TOpDeleteFontInstance;
4231
0
    return (*(this));
4232
0
}
4233
4234
auto OpUpdateResource::operator=(OpDeleteFontInstance&& aRhs) -> OpUpdateResource&
4235
0
{
4236
0
    if (MaybeDestroy(TOpDeleteFontInstance)) {
4237
0
        new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance;
4238
0
    }
4239
0
    (*(ptr_OpDeleteFontInstance())) = std::move(aRhs);
4240
0
    mType = TOpDeleteFontInstance;
4241
0
    return (*(this));
4242
0
}
4243
4244
auto OpUpdateResource::operator=(const OpAddExternalImage& aRhs) -> OpUpdateResource&
4245
0
{
4246
0
    if (MaybeDestroy(TOpAddExternalImage)) {
4247
0
        new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage;
4248
0
    }
4249
0
    (*(ptr_OpAddExternalImage())) = aRhs;
4250
0
    mType = TOpAddExternalImage;
4251
0
    return (*(this));
4252
0
}
4253
4254
auto OpUpdateResource::operator=(OpAddExternalImage&& aRhs) -> OpUpdateResource&
4255
0
{
4256
0
    if (MaybeDestroy(TOpAddExternalImage)) {
4257
0
        new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage;
4258
0
    }
4259
0
    (*(ptr_OpAddExternalImage())) = std::move(aRhs);
4260
0
    mType = TOpAddExternalImage;
4261
0
    return (*(this));
4262
0
}
4263
4264
auto OpUpdateResource::operator=(const OpPushExternalImageForTexture& aRhs) -> OpUpdateResource&
4265
0
{
4266
0
    if (MaybeDestroy(TOpPushExternalImageForTexture)) {
4267
0
        new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture;
4268
0
    }
4269
0
    (*(ptr_OpPushExternalImageForTexture())) = aRhs;
4270
0
    mType = TOpPushExternalImageForTexture;
4271
0
    return (*(this));
4272
0
}
4273
4274
auto OpUpdateResource::operator=(OpPushExternalImageForTexture&& aRhs) -> OpUpdateResource&
4275
0
{
4276
0
    if (MaybeDestroy(TOpPushExternalImageForTexture)) {
4277
0
        new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture;
4278
0
    }
4279
0
    (*(ptr_OpPushExternalImageForTexture())) = std::move(aRhs);
4280
0
    mType = TOpPushExternalImageForTexture;
4281
0
    return (*(this));
4282
0
}
4283
4284
auto OpUpdateResource::operator=(const OpUpdateExternalImage& aRhs) -> OpUpdateResource&
4285
0
{
4286
0
    if (MaybeDestroy(TOpUpdateExternalImage)) {
4287
0
        new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage;
4288
0
    }
4289
0
    (*(ptr_OpUpdateExternalImage())) = aRhs;
4290
0
    mType = TOpUpdateExternalImage;
4291
0
    return (*(this));
4292
0
}
4293
4294
auto OpUpdateResource::operator=(OpUpdateExternalImage&& aRhs) -> OpUpdateResource&
4295
0
{
4296
0
    if (MaybeDestroy(TOpUpdateExternalImage)) {
4297
0
        new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage;
4298
0
    }
4299
0
    (*(ptr_OpUpdateExternalImage())) = std::move(aRhs);
4300
0
    mType = TOpUpdateExternalImage;
4301
0
    return (*(this));
4302
0
}
4303
4304
auto OpUpdateResource::operator=(const OpUpdateResource& aRhs) -> OpUpdateResource&
4305
0
{
4306
0
    (aRhs).AssertSanity();
4307
0
    Type t = (aRhs).type();
4308
0
    switch (t) {
4309
0
    case TOpAddImage:
4310
0
        {
4311
0
            if (MaybeDestroy(t)) {
4312
0
                new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage;
4313
0
            }
4314
0
            (*(ptr_OpAddImage())) = (aRhs).get_OpAddImage();
4315
0
            break;
4316
0
        }
4317
0
    case TOpAddBlobImage:
4318
0
        {
4319
0
            if (MaybeDestroy(t)) {
4320
0
                new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage;
4321
0
            }
4322
0
            (*(ptr_OpAddBlobImage())) = (aRhs).get_OpAddBlobImage();
4323
0
            break;
4324
0
        }
4325
0
    case TOpUpdateImage:
4326
0
        {
4327
0
            if (MaybeDestroy(t)) {
4328
0
                new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage;
4329
0
            }
4330
0
            (*(ptr_OpUpdateImage())) = (aRhs).get_OpUpdateImage();
4331
0
            break;
4332
0
        }
4333
0
    case TOpUpdateBlobImage:
4334
0
        {
4335
0
            if (MaybeDestroy(t)) {
4336
0
                new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage;
4337
0
            }
4338
0
            (*(ptr_OpUpdateBlobImage())) = (aRhs).get_OpUpdateBlobImage();
4339
0
            break;
4340
0
        }
4341
0
    case TOpSetImageVisibleArea:
4342
0
        {
4343
0
            if (MaybeDestroy(t)) {
4344
0
                new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea;
4345
0
            }
4346
0
            (*(ptr_OpSetImageVisibleArea())) = (aRhs).get_OpSetImageVisibleArea();
4347
0
            break;
4348
0
        }
4349
0
    case TOpDeleteImage:
4350
0
        {
4351
0
            if (MaybeDestroy(t)) {
4352
0
                new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage;
4353
0
            }
4354
0
            (*(ptr_OpDeleteImage())) = (aRhs).get_OpDeleteImage();
4355
0
            break;
4356
0
        }
4357
0
    case TOpAddRawFont:
4358
0
        {
4359
0
            if (MaybeDestroy(t)) {
4360
0
                new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont;
4361
0
            }
4362
0
            (*(ptr_OpAddRawFont())) = (aRhs).get_OpAddRawFont();
4363
0
            break;
4364
0
        }
4365
0
    case TOpAddFontDescriptor:
4366
0
        {
4367
0
            if (MaybeDestroy(t)) {
4368
0
                new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor;
4369
0
            }
4370
0
            (*(ptr_OpAddFontDescriptor())) = (aRhs).get_OpAddFontDescriptor();
4371
0
            break;
4372
0
        }
4373
0
    case TOpDeleteFont:
4374
0
        {
4375
0
            if (MaybeDestroy(t)) {
4376
0
                new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont;
4377
0
            }
4378
0
            (*(ptr_OpDeleteFont())) = (aRhs).get_OpDeleteFont();
4379
0
            break;
4380
0
        }
4381
0
    case TOpAddFontInstance:
4382
0
        {
4383
0
            if (MaybeDestroy(t)) {
4384
0
                new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance;
4385
0
            }
4386
0
            (*(ptr_OpAddFontInstance())) = (aRhs).get_OpAddFontInstance();
4387
0
            break;
4388
0
        }
4389
0
    case TOpDeleteFontInstance:
4390
0
        {
4391
0
            if (MaybeDestroy(t)) {
4392
0
                new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance;
4393
0
            }
4394
0
            (*(ptr_OpDeleteFontInstance())) = (aRhs).get_OpDeleteFontInstance();
4395
0
            break;
4396
0
        }
4397
0
    case TOpAddExternalImage:
4398
0
        {
4399
0
            if (MaybeDestroy(t)) {
4400
0
                new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage;
4401
0
            }
4402
0
            (*(ptr_OpAddExternalImage())) = (aRhs).get_OpAddExternalImage();
4403
0
            break;
4404
0
        }
4405
0
    case TOpPushExternalImageForTexture:
4406
0
        {
4407
0
            if (MaybeDestroy(t)) {
4408
0
                new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture;
4409
0
            }
4410
0
            (*(ptr_OpPushExternalImageForTexture())) = (aRhs).get_OpPushExternalImageForTexture();
4411
0
            break;
4412
0
        }
4413
0
    case TOpUpdateExternalImage:
4414
0
        {
4415
0
            if (MaybeDestroy(t)) {
4416
0
                new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage;
4417
0
            }
4418
0
            (*(ptr_OpUpdateExternalImage())) = (aRhs).get_OpUpdateExternalImage();
4419
0
            break;
4420
0
        }
4421
0
    case T__None:
4422
0
        {
4423
0
            static_cast<void>(MaybeDestroy(t));
4424
0
            break;
4425
0
        }
4426
0
    default:
4427
0
        {
4428
0
            mozilla::ipc::LogicError("unreached");
4429
0
            break;
4430
0
        }
4431
0
    }
4432
0
    mType = t;
4433
0
    return (*(this));
4434
0
}
4435
4436
auto OpUpdateResource::operator=(OpUpdateResource&& aRhs) -> OpUpdateResource&
4437
0
{
4438
0
    (aRhs).AssertSanity();
4439
0
    Type t = (aRhs).type();
4440
0
    switch (t) {
4441
0
    case TOpAddImage:
4442
0
        {
4443
0
            if (MaybeDestroy(t)) {
4444
0
                new (mozilla::KnownNotNull, ptr_OpAddImage()) OpAddImage;
4445
0
            }
4446
0
            (*(ptr_OpAddImage())) = std::move((aRhs).get_OpAddImage());
4447
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4448
0
            break;
4449
0
        }
4450
0
    case TOpAddBlobImage:
4451
0
        {
4452
0
            if (MaybeDestroy(t)) {
4453
0
                new (mozilla::KnownNotNull, ptr_OpAddBlobImage()) OpAddBlobImage;
4454
0
            }
4455
0
            (*(ptr_OpAddBlobImage())) = std::move((aRhs).get_OpAddBlobImage());
4456
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4457
0
            break;
4458
0
        }
4459
0
    case TOpUpdateImage:
4460
0
        {
4461
0
            if (MaybeDestroy(t)) {
4462
0
                new (mozilla::KnownNotNull, ptr_OpUpdateImage()) OpUpdateImage;
4463
0
            }
4464
0
            (*(ptr_OpUpdateImage())) = std::move((aRhs).get_OpUpdateImage());
4465
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4466
0
            break;
4467
0
        }
4468
0
    case TOpUpdateBlobImage:
4469
0
        {
4470
0
            if (MaybeDestroy(t)) {
4471
0
                new (mozilla::KnownNotNull, ptr_OpUpdateBlobImage()) OpUpdateBlobImage;
4472
0
            }
4473
0
            (*(ptr_OpUpdateBlobImage())) = std::move((aRhs).get_OpUpdateBlobImage());
4474
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4475
0
            break;
4476
0
        }
4477
0
    case TOpSetImageVisibleArea:
4478
0
        {
4479
0
            if (MaybeDestroy(t)) {
4480
0
                new (mozilla::KnownNotNull, ptr_OpSetImageVisibleArea()) OpSetImageVisibleArea;
4481
0
            }
4482
0
            (*(ptr_OpSetImageVisibleArea())) = std::move((aRhs).get_OpSetImageVisibleArea());
4483
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4484
0
            break;
4485
0
        }
4486
0
    case TOpDeleteImage:
4487
0
        {
4488
0
            if (MaybeDestroy(t)) {
4489
0
                new (mozilla::KnownNotNull, ptr_OpDeleteImage()) OpDeleteImage;
4490
0
            }
4491
0
            (*(ptr_OpDeleteImage())) = std::move((aRhs).get_OpDeleteImage());
4492
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4493
0
            break;
4494
0
        }
4495
0
    case TOpAddRawFont:
4496
0
        {
4497
0
            if (MaybeDestroy(t)) {
4498
0
                new (mozilla::KnownNotNull, ptr_OpAddRawFont()) OpAddRawFont;
4499
0
            }
4500
0
            (*(ptr_OpAddRawFont())) = std::move((aRhs).get_OpAddRawFont());
4501
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4502
0
            break;
4503
0
        }
4504
0
    case TOpAddFontDescriptor:
4505
0
        {
4506
0
            if (MaybeDestroy(t)) {
4507
0
                new (mozilla::KnownNotNull, ptr_OpAddFontDescriptor()) OpAddFontDescriptor;
4508
0
            }
4509
0
            (*(ptr_OpAddFontDescriptor())) = std::move((aRhs).get_OpAddFontDescriptor());
4510
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4511
0
            break;
4512
0
        }
4513
0
    case TOpDeleteFont:
4514
0
        {
4515
0
            if (MaybeDestroy(t)) {
4516
0
                new (mozilla::KnownNotNull, ptr_OpDeleteFont()) OpDeleteFont;
4517
0
            }
4518
0
            (*(ptr_OpDeleteFont())) = std::move((aRhs).get_OpDeleteFont());
4519
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4520
0
            break;
4521
0
        }
4522
0
    case TOpAddFontInstance:
4523
0
        {
4524
0
            if (MaybeDestroy(t)) {
4525
0
                new (mozilla::KnownNotNull, ptr_OpAddFontInstance()) OpAddFontInstance;
4526
0
            }
4527
0
            (*(ptr_OpAddFontInstance())) = std::move((aRhs).get_OpAddFontInstance());
4528
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4529
0
            break;
4530
0
        }
4531
0
    case TOpDeleteFontInstance:
4532
0
        {
4533
0
            if (MaybeDestroy(t)) {
4534
0
                new (mozilla::KnownNotNull, ptr_OpDeleteFontInstance()) OpDeleteFontInstance;
4535
0
            }
4536
0
            (*(ptr_OpDeleteFontInstance())) = std::move((aRhs).get_OpDeleteFontInstance());
4537
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4538
0
            break;
4539
0
        }
4540
0
    case TOpAddExternalImage:
4541
0
        {
4542
0
            if (MaybeDestroy(t)) {
4543
0
                new (mozilla::KnownNotNull, ptr_OpAddExternalImage()) OpAddExternalImage;
4544
0
            }
4545
0
            (*(ptr_OpAddExternalImage())) = std::move((aRhs).get_OpAddExternalImage());
4546
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4547
0
            break;
4548
0
        }
4549
0
    case TOpPushExternalImageForTexture:
4550
0
        {
4551
0
            if (MaybeDestroy(t)) {
4552
0
                new (mozilla::KnownNotNull, ptr_OpPushExternalImageForTexture()) OpPushExternalImageForTexture;
4553
0
            }
4554
0
            (*(ptr_OpPushExternalImageForTexture())) = std::move((aRhs).get_OpPushExternalImageForTexture());
4555
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4556
0
            break;
4557
0
        }
4558
0
    case TOpUpdateExternalImage:
4559
0
        {
4560
0
            if (MaybeDestroy(t)) {
4561
0
                new (mozilla::KnownNotNull, ptr_OpUpdateExternalImage()) OpUpdateExternalImage;
4562
0
            }
4563
0
            (*(ptr_OpUpdateExternalImage())) = std::move((aRhs).get_OpUpdateExternalImage());
4564
0
            static_cast<void>((aRhs).MaybeDestroy(T__None));
4565
0
            break;
4566
0
        }
4567
0
    case T__None:
4568
0
        {
4569
0
            static_cast<void>(MaybeDestroy(t));
4570
0
            break;
4571
0
        }
4572
0
    default:
4573
0
        {
4574
0
            mozilla::ipc::LogicError("unreached");
4575
0
            break;
4576
0
        }
4577
0
    }
4578
0
    (aRhs).mType = T__None;
4579
0
    mType = t;
4580
0
    return (*(this));
4581
0
}
4582
4583
auto OpUpdateResource::operator==(const OpAddImage& aRhs) const -> bool
4584
0
{
4585
0
    return (get_OpAddImage()) == (aRhs);
4586
0
}
4587
4588
auto OpUpdateResource::operator==(const OpAddBlobImage& aRhs) const -> bool
4589
0
{
4590
0
    return (get_OpAddBlobImage()) == (aRhs);
4591
0
}
4592
4593
auto OpUpdateResource::operator==(const OpUpdateImage& aRhs) const -> bool
4594
0
{
4595
0
    return (get_OpUpdateImage()) == (aRhs);
4596
0
}
4597
4598
auto OpUpdateResource::operator==(const OpUpdateBlobImage& aRhs) const -> bool
4599
0
{
4600
0
    return (get_OpUpdateBlobImage()) == (aRhs);
4601
0
}
4602
4603
auto OpUpdateResource::operator==(const OpSetImageVisibleArea& aRhs) const -> bool
4604
0
{
4605
0
    return (get_OpSetImageVisibleArea()) == (aRhs);
4606
0
}
4607
4608
auto OpUpdateResource::operator==(const OpDeleteImage& aRhs) const -> bool
4609
0
{
4610
0
    return (get_OpDeleteImage()) == (aRhs);
4611
0
}
4612
4613
auto OpUpdateResource::operator==(const OpAddRawFont& aRhs) const -> bool
4614
0
{
4615
0
    return (get_OpAddRawFont()) == (aRhs);
4616
0
}
4617
4618
auto OpUpdateResource::operator==(const OpAddFontDescriptor& aRhs) const -> bool
4619
0
{
4620
0
    return (get_OpAddFontDescriptor()) == (aRhs);
4621
0
}
4622
4623
auto OpUpdateResource::operator==(const OpDeleteFont& aRhs) const -> bool
4624
0
{
4625
0
    return (get_OpDeleteFont()) == (aRhs);
4626
0
}
4627
4628
auto OpUpdateResource::operator==(const OpAddFontInstance& aRhs) const -> bool
4629
0
{
4630
0
    return (get_OpAddFontInstance()) == (aRhs);
4631
0
}
4632
4633
auto OpUpdateResource::operator==(const OpDeleteFontInstance& aRhs) const -> bool
4634
0
{
4635
0
    return (get_OpDeleteFontInstance()) == (aRhs);
4636
0
}
4637
4638
auto OpUpdateResource::operator==(const OpAddExternalImage& aRhs) const -> bool
4639
0
{
4640
0
    return (get_OpAddExternalImage()) == (aRhs);
4641
0
}
4642
4643
auto OpUpdateResource::operator==(const OpPushExternalImageForTexture& aRhs) const -> bool
4644
0
{
4645
0
    return (get_OpPushExternalImageForTexture()) == (aRhs);
4646
0
}
4647
4648
auto OpUpdateResource::operator==(const OpUpdateExternalImage& aRhs) const -> bool
4649
0
{
4650
0
    return (get_OpUpdateExternalImage()) == (aRhs);
4651
0
}
4652
4653
auto OpUpdateResource::operator==(const OpUpdateResource& aRhs) const -> bool
4654
0
{
4655
0
    if ((type()) != ((aRhs).type())) {
4656
0
        return false;
4657
0
    }
4658
0
4659
0
    switch (type()) {
4660
0
    case TOpAddImage:
4661
0
        {
4662
0
            return (get_OpAddImage()) == ((aRhs).get_OpAddImage());
4663
0
        }
4664
0
    case TOpAddBlobImage:
4665
0
        {
4666
0
            return (get_OpAddBlobImage()) == ((aRhs).get_OpAddBlobImage());
4667
0
        }
4668
0
    case TOpUpdateImage:
4669
0
        {
4670
0
            return (get_OpUpdateImage()) == ((aRhs).get_OpUpdateImage());
4671
0
        }
4672
0
    case TOpUpdateBlobImage:
4673
0
        {
4674
0
            return (get_OpUpdateBlobImage()) == ((aRhs).get_OpUpdateBlobImage());
4675
0
        }
4676
0
    case TOpSetImageVisibleArea:
4677
0
        {
4678
0
            return (get_OpSetImageVisibleArea()) == ((aRhs).get_OpSetImageVisibleArea());
4679
0
        }
4680
0
    case TOpDeleteImage:
4681
0
        {
4682
0
            return (get_OpDeleteImage()) == ((aRhs).get_OpDeleteImage());
4683
0
        }
4684
0
    case TOpAddRawFont:
4685
0
        {
4686
0
            return (get_OpAddRawFont()) == ((aRhs).get_OpAddRawFont());
4687
0
        }
4688
0
    case TOpAddFontDescriptor:
4689
0
        {
4690
0
            return (get_OpAddFontDescriptor()) == ((aRhs).get_OpAddFontDescriptor());
4691
0
        }
4692
0
    case TOpDeleteFont:
4693
0
        {
4694
0
            return (get_OpDeleteFont()) == ((aRhs).get_OpDeleteFont());
4695
0
        }
4696
0
    case TOpAddFontInstance:
4697
0
        {
4698
0
            return (get_OpAddFontInstance()) == ((aRhs).get_OpAddFontInstance());
4699
0
        }
4700
0
    case TOpDeleteFontInstance:
4701
0
        {
4702
0
            return (get_OpDeleteFontInstance()) == ((aRhs).get_OpDeleteFontInstance());
4703
0
        }
4704
0
    case TOpAddExternalImage:
4705
0
        {
4706
0
            return (get_OpAddExternalImage()) == ((aRhs).get_OpAddExternalImage());
4707
0
        }
4708
0
    case TOpPushExternalImageForTexture:
4709
0
        {
4710
0
            return (get_OpPushExternalImageForTexture()) == ((aRhs).get_OpPushExternalImageForTexture());
4711
0
        }
4712
0
    case TOpUpdateExternalImage:
4713
0
        {
4714
0
            return (get_OpUpdateExternalImage()) == ((aRhs).get_OpUpdateExternalImage());
4715
0
        }
4716
0
    default:
4717
0
        {
4718
0
            mozilla::ipc::LogicError("unreached");
4719
0
            return false;
4720
0
        }
4721
0
    }
4722
0
}
4723
4724
auto OpUpdateResource::get(OpAddImage* aOutValue) const -> void
4725
0
{
4726
0
    (*(aOutValue)) = get_OpAddImage();
4727
0
}
4728
4729
auto OpUpdateResource::get(OpAddBlobImage* aOutValue) const -> void
4730
0
{
4731
0
    (*(aOutValue)) = get_OpAddBlobImage();
4732
0
}
4733
4734
auto OpUpdateResource::get(OpUpdateImage* aOutValue) const -> void
4735
0
{
4736
0
    (*(aOutValue)) = get_OpUpdateImage();
4737
0
}
4738
4739
auto OpUpdateResource::get(OpUpdateBlobImage* aOutValue) const -> void
4740
0
{
4741
0
    (*(aOutValue)) = get_OpUpdateBlobImage();
4742
0
}
4743
4744
auto OpUpdateResource::get(OpSetImageVisibleArea* aOutValue) const -> void
4745
0
{
4746
0
    (*(aOutValue)) = get_OpSetImageVisibleArea();
4747
0
}
4748
4749
auto OpUpdateResource::get(OpDeleteImage* aOutValue) const -> void
4750
0
{
4751
0
    (*(aOutValue)) = get_OpDeleteImage();
4752
0
}
4753
4754
auto OpUpdateResource::get(OpAddRawFont* aOutValue) const -> void
4755
0
{
4756
0
    (*(aOutValue)) = get_OpAddRawFont();
4757
0
}
4758
4759
auto OpUpdateResource::get(OpAddFontDescriptor* aOutValue) const -> void
4760
0
{
4761
0
    (*(aOutValue)) = get_OpAddFontDescriptor();
4762
0
}
4763
4764
auto OpUpdateResource::get(OpDeleteFont* aOutValue) const -> void
4765
0
{
4766
0
    (*(aOutValue)) = get_OpDeleteFont();
4767
0
}
4768
4769
auto OpUpdateResource::get(OpAddFontInstance* aOutValue) const -> void
4770
0
{
4771
0
    (*(aOutValue)) = get_OpAddFontInstance();
4772
0
}
4773
4774
auto OpUpdateResource::get(OpDeleteFontInstance* aOutValue) const -> void
4775
0
{
4776
0
    (*(aOutValue)) = get_OpDeleteFontInstance();
4777
0
}
4778
4779
auto OpUpdateResource::get(OpAddExternalImage* aOutValue) const -> void
4780
0
{
4781
0
    (*(aOutValue)) = get_OpAddExternalImage();
4782
0
}
4783
4784
auto OpUpdateResource::get(OpPushExternalImageForTexture* aOutValue) const -> void
4785
0
{
4786
0
    (*(aOutValue)) = get_OpPushExternalImageForTexture();
4787
0
}
4788
4789
auto OpUpdateResource::get(OpUpdateExternalImage* aOutValue) const -> void
4790
0
{
4791
0
    (*(aOutValue)) = get_OpUpdateExternalImage();
4792
0
}
4793
4794
} // namespace layers
4795
} // namespace mozilla
4796
4797
namespace mozilla {
4798
namespace ipc {
4799
auto IPDLParamTraits<mozilla::layers::OpUpdateResource>::Write(
4800
        IPC::Message* aMsg,
4801
        mozilla::ipc::IProtocol* aActor,
4802
        const paramType& aVar) -> void
4803
{
4804
    typedef mozilla::layers::OpUpdateResource union__;
4805
    int type;
4806
    type = (aVar).type();
4807
    WriteIPDLParam(aMsg, aActor, type);
4808
    // Sentinel = 'OpUpdateResource'
4809
    (aMsg)->WriteSentinel(3153625706);
4810
4811
    switch (type) {
4812
    case union__::TOpAddImage:
4813
        {
4814
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddImage());
4815
            // Sentinel = 'TOpAddImage'
4816
            (aMsg)->WriteSentinel(4189650618);
4817
            return;
4818
        }
4819
    case union__::TOpAddBlobImage:
4820
        {
4821
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddBlobImage());
4822
            // Sentinel = 'TOpAddBlobImage'
4823
            (aMsg)->WriteSentinel(2102557857);
4824
            return;
4825
        }
4826
    case union__::TOpUpdateImage:
4827
        {
4828
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpUpdateImage());
4829
            // Sentinel = 'TOpUpdateImage'
4830
            (aMsg)->WriteSentinel(2114077531);
4831
            return;
4832
        }
4833
    case union__::TOpUpdateBlobImage:
4834
        {
4835
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpUpdateBlobImage());
4836
            // Sentinel = 'TOpUpdateBlobImage'
4837
            (aMsg)->WriteSentinel(3774598784);
4838
            return;
4839
        }
4840
    case union__::TOpSetImageVisibleArea:
4841
        {
4842
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpSetImageVisibleArea());
4843
            // Sentinel = 'TOpSetImageVisibleArea'
4844
            (aMsg)->WriteSentinel(1646970581);
4845
            return;
4846
        }
4847
    case union__::TOpDeleteImage:
4848
        {
4849
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpDeleteImage());
4850
            // Sentinel = 'TOpDeleteImage'
4851
            (aMsg)->WriteSentinel(3308386441);
4852
            return;
4853
        }
4854
    case union__::TOpAddRawFont:
4855
        {
4856
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddRawFont());
4857
            // Sentinel = 'TOpAddRawFont'
4858
            (aMsg)->WriteSentinel(4253717546);
4859
            return;
4860
        }
4861
    case union__::TOpAddFontDescriptor:
4862
        {
4863
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddFontDescriptor());
4864
            // Sentinel = 'TOpAddFontDescriptor'
4865
            (aMsg)->WriteSentinel(385707742);
4866
            return;
4867
        }
4868
    case union__::TOpDeleteFont:
4869
        {
4870
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpDeleteFont());
4871
            // Sentinel = 'TOpDeleteFont'
4872
            (aMsg)->WriteSentinel(2290630538);
4873
            return;
4874
        }
4875
    case union__::TOpAddFontInstance:
4876
        {
4877
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddFontInstance());
4878
            // Sentinel = 'TOpAddFontInstance'
4879
            (aMsg)->WriteSentinel(3199640182);
4880
            return;
4881
        }
4882
    case union__::TOpDeleteFontInstance:
4883
        {
4884
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpDeleteFontInstance());
4885
            // Sentinel = 'TOpDeleteFontInstance'
4886
            (aMsg)->WriteSentinel(3483695347);
4887
            return;
4888
        }
4889
    case union__::TOpAddExternalImage:
4890
        {
4891
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpAddExternalImage());
4892
            // Sentinel = 'TOpAddExternalImage'
4893
            (aMsg)->WriteSentinel(3145571349);
4894
            return;
4895
        }
4896
    case union__::TOpPushExternalImageForTexture:
4897
        {
4898
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpPushExternalImageForTexture());
4899
            // Sentinel = 'TOpPushExternalImageForTexture'
4900
            (aMsg)->WriteSentinel(583224315);
4901
            return;
4902
        }
4903
    case union__::TOpUpdateExternalImage:
4904
        {
4905
            WriteIPDLParam(aMsg, aActor, (aVar).get_OpUpdateExternalImage());
4906
            // Sentinel = 'TOpUpdateExternalImage'
4907
            (aMsg)->WriteSentinel(2764999780);
4908
            return;
4909
        }
4910
    default:
4911
        {
4912
            (aActor)->FatalError("unknown union type");
4913
            return;
4914
        }
4915
    }
4916
}
4917
4918
auto IPDLParamTraits<mozilla::layers::OpUpdateResource>::Read(
4919
        const IPC::Message* aMsg,
4920
        PickleIterator* aIter,
4921
        mozilla::ipc::IProtocol* aActor,
4922
        paramType* aVar) -> bool
4923
0
{
4924
0
    typedef mozilla::layers::OpUpdateResource union__;
4925
0
    int type;
4926
0
    if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) {
4927
0
        (aActor)->FatalError("Error deserializing type of union OpUpdateResource");
4928
0
        return false;
4929
0
    }
4930
0
    // Sentinel = 'OpUpdateResource'
4931
0
    if ((!((aMsg)->ReadSentinel(aIter, 3153625706)))) {
4932
0
        mozilla::ipc::SentinelReadError("Error deserializing type of union OpUpdateResource");
4933
0
        return false;
4934
0
    }
4935
0
4936
0
    switch (type) {
4937
0
    case union__::TOpAddImage:
4938
0
        {
4939
0
            mozilla::layers::OpAddImage tmp = mozilla::layers::OpAddImage();
4940
0
            (*(aVar)) = tmp;
4941
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddImage())))))) {
4942
0
                (aActor)->FatalError("Error deserializing variant TOpAddImage of union OpUpdateResource");
4943
0
                return false;
4944
0
            }
4945
0
            // Sentinel = 'TOpAddImage'
4946
0
            if ((!((aMsg)->ReadSentinel(aIter, 4189650618)))) {
4947
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddImage of union OpUpdateResource");
4948
0
                return false;
4949
0
            }
4950
0
            return true;
4951
0
        }
4952
0
    case union__::TOpAddBlobImage:
4953
0
        {
4954
0
            mozilla::layers::OpAddBlobImage tmp = mozilla::layers::OpAddBlobImage();
4955
0
            (*(aVar)) = tmp;
4956
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddBlobImage())))))) {
4957
0
                (aActor)->FatalError("Error deserializing variant TOpAddBlobImage of union OpUpdateResource");
4958
0
                return false;
4959
0
            }
4960
0
            // Sentinel = 'TOpAddBlobImage'
4961
0
            if ((!((aMsg)->ReadSentinel(aIter, 2102557857)))) {
4962
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddBlobImage of union OpUpdateResource");
4963
0
                return false;
4964
0
            }
4965
0
            return true;
4966
0
        }
4967
0
    case union__::TOpUpdateImage:
4968
0
        {
4969
0
            mozilla::layers::OpUpdateImage tmp = mozilla::layers::OpUpdateImage();
4970
0
            (*(aVar)) = tmp;
4971
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpUpdateImage())))))) {
4972
0
                (aActor)->FatalError("Error deserializing variant TOpUpdateImage of union OpUpdateResource");
4973
0
                return false;
4974
0
            }
4975
0
            // Sentinel = 'TOpUpdateImage'
4976
0
            if ((!((aMsg)->ReadSentinel(aIter, 2114077531)))) {
4977
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpUpdateImage of union OpUpdateResource");
4978
0
                return false;
4979
0
            }
4980
0
            return true;
4981
0
        }
4982
0
    case union__::TOpUpdateBlobImage:
4983
0
        {
4984
0
            mozilla::layers::OpUpdateBlobImage tmp = mozilla::layers::OpUpdateBlobImage();
4985
0
            (*(aVar)) = tmp;
4986
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpUpdateBlobImage())))))) {
4987
0
                (aActor)->FatalError("Error deserializing variant TOpUpdateBlobImage of union OpUpdateResource");
4988
0
                return false;
4989
0
            }
4990
0
            // Sentinel = 'TOpUpdateBlobImage'
4991
0
            if ((!((aMsg)->ReadSentinel(aIter, 3774598784)))) {
4992
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpUpdateBlobImage of union OpUpdateResource");
4993
0
                return false;
4994
0
            }
4995
0
            return true;
4996
0
        }
4997
0
    case union__::TOpSetImageVisibleArea:
4998
0
        {
4999
0
            mozilla::layers::OpSetImageVisibleArea tmp = mozilla::layers::OpSetImageVisibleArea();
5000
0
            (*(aVar)) = tmp;
5001
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpSetImageVisibleArea())))))) {
5002
0
                (aActor)->FatalError("Error deserializing variant TOpSetImageVisibleArea of union OpUpdateResource");
5003
0
                return false;
5004
0
            }
5005
0
            // Sentinel = 'TOpSetImageVisibleArea'
5006
0
            if ((!((aMsg)->ReadSentinel(aIter, 1646970581)))) {
5007
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpSetImageVisibleArea of union OpUpdateResource");
5008
0
                return false;
5009
0
            }
5010
0
            return true;
5011
0
        }
5012
0
    case union__::TOpDeleteImage:
5013
0
        {
5014
0
            mozilla::layers::OpDeleteImage tmp = mozilla::layers::OpDeleteImage();
5015
0
            (*(aVar)) = tmp;
5016
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpDeleteImage())))))) {
5017
0
                (aActor)->FatalError("Error deserializing variant TOpDeleteImage of union OpUpdateResource");
5018
0
                return false;
5019
0
            }
5020
0
            // Sentinel = 'TOpDeleteImage'
5021
0
            if ((!((aMsg)->ReadSentinel(aIter, 3308386441)))) {
5022
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpDeleteImage of union OpUpdateResource");
5023
0
                return false;
5024
0
            }
5025
0
            return true;
5026
0
        }
5027
0
    case union__::TOpAddRawFont:
5028
0
        {
5029
0
            mozilla::layers::OpAddRawFont tmp = mozilla::layers::OpAddRawFont();
5030
0
            (*(aVar)) = tmp;
5031
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddRawFont())))))) {
5032
0
                (aActor)->FatalError("Error deserializing variant TOpAddRawFont of union OpUpdateResource");
5033
0
                return false;
5034
0
            }
5035
0
            // Sentinel = 'TOpAddRawFont'
5036
0
            if ((!((aMsg)->ReadSentinel(aIter, 4253717546)))) {
5037
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddRawFont of union OpUpdateResource");
5038
0
                return false;
5039
0
            }
5040
0
            return true;
5041
0
        }
5042
0
    case union__::TOpAddFontDescriptor:
5043
0
        {
5044
0
            mozilla::layers::OpAddFontDescriptor tmp = mozilla::layers::OpAddFontDescriptor();
5045
0
            (*(aVar)) = tmp;
5046
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddFontDescriptor())))))) {
5047
0
                (aActor)->FatalError("Error deserializing variant TOpAddFontDescriptor of union OpUpdateResource");
5048
0
                return false;
5049
0
            }
5050
0
            // Sentinel = 'TOpAddFontDescriptor'
5051
0
            if ((!((aMsg)->ReadSentinel(aIter, 385707742)))) {
5052
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddFontDescriptor of union OpUpdateResource");
5053
0
                return false;
5054
0
            }
5055
0
            return true;
5056
0
        }
5057
0
    case union__::TOpDeleteFont:
5058
0
        {
5059
0
            mozilla::layers::OpDeleteFont tmp = mozilla::layers::OpDeleteFont();
5060
0
            (*(aVar)) = tmp;
5061
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpDeleteFont())))))) {
5062
0
                (aActor)->FatalError("Error deserializing variant TOpDeleteFont of union OpUpdateResource");
5063
0
                return false;
5064
0
            }
5065
0
            // Sentinel = 'TOpDeleteFont'
5066
0
            if ((!((aMsg)->ReadSentinel(aIter, 2290630538)))) {
5067
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpDeleteFont of union OpUpdateResource");
5068
0
                return false;
5069
0
            }
5070
0
            return true;
5071
0
        }
5072
0
    case union__::TOpAddFontInstance:
5073
0
        {
5074
0
            mozilla::layers::OpAddFontInstance tmp = mozilla::layers::OpAddFontInstance();
5075
0
            (*(aVar)) = tmp;
5076
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddFontInstance())))))) {
5077
0
                (aActor)->FatalError("Error deserializing variant TOpAddFontInstance of union OpUpdateResource");
5078
0
                return false;
5079
0
            }
5080
0
            // Sentinel = 'TOpAddFontInstance'
5081
0
            if ((!((aMsg)->ReadSentinel(aIter, 3199640182)))) {
5082
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddFontInstance of union OpUpdateResource");
5083
0
                return false;
5084
0
            }
5085
0
            return true;
5086
0
        }
5087
0
    case union__::TOpDeleteFontInstance:
5088
0
        {
5089
0
            mozilla::layers::OpDeleteFontInstance tmp = mozilla::layers::OpDeleteFontInstance();
5090
0
            (*(aVar)) = tmp;
5091
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpDeleteFontInstance())))))) {
5092
0
                (aActor)->FatalError("Error deserializing variant TOpDeleteFontInstance of union OpUpdateResource");
5093
0
                return false;
5094
0
            }
5095
0
            // Sentinel = 'TOpDeleteFontInstance'
5096
0
            if ((!((aMsg)->ReadSentinel(aIter, 3483695347)))) {
5097
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpDeleteFontInstance of union OpUpdateResource");
5098
0
                return false;
5099
0
            }
5100
0
            return true;
5101
0
        }
5102
0
    case union__::TOpAddExternalImage:
5103
0
        {
5104
0
            mozilla::layers::OpAddExternalImage tmp = mozilla::layers::OpAddExternalImage();
5105
0
            (*(aVar)) = tmp;
5106
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpAddExternalImage())))))) {
5107
0
                (aActor)->FatalError("Error deserializing variant TOpAddExternalImage of union OpUpdateResource");
5108
0
                return false;
5109
0
            }
5110
0
            // Sentinel = 'TOpAddExternalImage'
5111
0
            if ((!((aMsg)->ReadSentinel(aIter, 3145571349)))) {
5112
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpAddExternalImage of union OpUpdateResource");
5113
0
                return false;
5114
0
            }
5115
0
            return true;
5116
0
        }
5117
0
    case union__::TOpPushExternalImageForTexture:
5118
0
        {
5119
0
            mozilla::layers::OpPushExternalImageForTexture tmp = mozilla::layers::OpPushExternalImageForTexture();
5120
0
            (*(aVar)) = tmp;
5121
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpPushExternalImageForTexture())))))) {
5122
0
                (aActor)->FatalError("Error deserializing variant TOpPushExternalImageForTexture of union OpUpdateResource");
5123
0
                return false;
5124
0
            }
5125
0
            // Sentinel = 'TOpPushExternalImageForTexture'
5126
0
            if ((!((aMsg)->ReadSentinel(aIter, 583224315)))) {
5127
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpPushExternalImageForTexture of union OpUpdateResource");
5128
0
                return false;
5129
0
            }
5130
0
            return true;
5131
0
        }
5132
0
    case union__::TOpUpdateExternalImage:
5133
0
        {
5134
0
            mozilla::layers::OpUpdateExternalImage tmp = mozilla::layers::OpUpdateExternalImage();
5135
0
            (*(aVar)) = tmp;
5136
0
            if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OpUpdateExternalImage())))))) {
5137
0
                (aActor)->FatalError("Error deserializing variant TOpUpdateExternalImage of union OpUpdateResource");
5138
0
                return false;
5139
0
            }
5140
0
            // Sentinel = 'TOpUpdateExternalImage'
5141
0
            if ((!((aMsg)->ReadSentinel(aIter, 2764999780)))) {
5142
0
                mozilla::ipc::SentinelReadError("Error deserializing variant TOpUpdateExternalImage of union OpUpdateResource");
5143
0
                return false;
5144
0
            }
5145
0
            return true;
5146
0
        }
5147
0
    default:
5148
0
        {
5149
0
            (aActor)->FatalError("unknown union type");
5150
0
            return false;
5151
0
        }
5152
0
    }
5153
0
}
5154
5155
} // namespace ipc
5156
} // namespace mozilla