Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/ipc/ipdl/PWebRenderBridgeChild.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/PWebRenderBridgeChild.h"
8
#include "FrameMetrics.h"
9
#include "mozilla/layers/CompositorTypes.h"
10
11
#include "mozilla/layers/PCompositorBridgeChild.h"
12
#include "mozilla/layers/PTextureChild.h"
13
14
#include "nsIFile.h"
15
#include "GeckoProfiler.h"
16
17
namespace mozilla {
18
namespace layers {
19
20
21
auto PWebRenderBridgeChild::Recv__delete__() -> mozilla::ipc::IPCResult
22
0
{
23
0
    return IPC_OK();
24
0
}
25
26
auto PWebRenderBridgeChild::ActorDestroy(ActorDestroyReason aWhy) -> void
27
0
{
28
0
}
29
30
MOZ_IMPLICIT PWebRenderBridgeChild::PWebRenderBridgeChild() :
31
    mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
32
    mLivenessState(mozilla::ipc::LivenessState::Dead)
33
0
{
34
0
    MOZ_COUNT_CTOR(PWebRenderBridgeChild);
35
0
}
36
37
PWebRenderBridgeChild::~PWebRenderBridgeChild()
38
0
{
39
0
    MOZ_COUNT_DTOR(PWebRenderBridgeChild);
40
0
}
41
42
auto PWebRenderBridgeChild::Manager() const -> PCompositorBridgeChild*
43
0
{
44
0
    return static_cast<PCompositorBridgeChild*>(IProtocol::Manager());
45
0
}
46
47
auto PWebRenderBridgeChild::SendNewCompositable(
48
        const CompositableHandle& handle,
49
        const TextureInfo& info) -> bool
50
0
{
51
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_NewCompositable(Id());
52
0
53
0
    WriteIPDLParam(msg__, this, handle);
54
0
    // Sentinel = 'handle'
55
0
    (msg__)->WriteSentinel(453975108);
56
0
    WriteIPDLParam(msg__, this, info);
57
0
    // Sentinel = 'info'
58
0
    (msg__)->WriteSentinel(3750868832);
59
0
60
0
61
0
62
0
63
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
64
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
65
0
    }
66
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_NewCompositable", OTHER);
67
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
68
0
        mozilla::ipc::LogicError("Transition error");
69
0
    }
70
0
71
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
72
0
    return sendok__;
73
0
}
74
75
auto PWebRenderBridgeChild::SendReleaseCompositable(const CompositableHandle& compositable) -> bool
76
0
{
77
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_ReleaseCompositable(Id());
78
0
79
0
    WriteIPDLParam(msg__, this, compositable);
80
0
    // Sentinel = 'compositable'
81
0
    (msg__)->WriteSentinel(4031958248);
82
0
83
0
84
0
85
0
86
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
87
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
88
0
    }
89
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_ReleaseCompositable", OTHER);
90
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
91
0
        mozilla::ipc::LogicError("Transition error");
92
0
    }
93
0
94
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
95
0
    return sendok__;
96
0
}
97
98
auto PWebRenderBridgeChild::SendCreate(const IntSize& aSize) -> bool
99
0
{
100
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_Create(Id());
101
0
102
0
    WriteIPDLParam(msg__, this, aSize);
103
0
    // Sentinel = 'aSize'
104
0
    (msg__)->WriteSentinel(2556665555);
105
0
106
0
107
0
108
0
    Message reply__;
109
0
110
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
111
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
112
0
    }
113
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_Create", OTHER);
114
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
115
0
        mozilla::ipc::LogicError("Transition error");
116
0
    }
117
0
118
0
    bool sendok__;
119
0
    {
120
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_Create");
121
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
122
0
    }
123
0
    if ((!(sendok__))) {
124
0
        return false;
125
0
    }
126
0
127
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
128
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
129
0
    }
130
0
131
0
    return true;
132
0
}
133
134
auto PWebRenderBridgeChild::SendDeleteCompositorAnimations(const nsTArray<uint64_t>& aIds) -> bool
135
0
{
136
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_DeleteCompositorAnimations(Id());
137
0
138
0
    WriteIPDLParam(msg__, this, aIds);
139
0
    // Sentinel = 'aIds'
140
0
    (msg__)->WriteSentinel(1964130745);
141
0
142
0
143
0
144
0
145
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
146
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
147
0
    }
148
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_DeleteCompositorAnimations", OTHER);
149
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
150
0
        mozilla::ipc::LogicError("Transition error");
151
0
    }
152
0
153
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
154
0
    return sendok__;
155
0
}
156
157
auto PWebRenderBridgeChild::SendSetDisplayList(
158
        const IntSize& aSize,
159
        const nsTArray<WebRenderParentCommand>& commands,
160
        const nsTArray<OpDestroy>& toDestroy,
161
        const uint64_t& fwdTransactionId,
162
        const TransactionId& transactionId,
163
        const LayoutSize& aContentSize,
164
        ByteBuf& aDL,
165
        const BuiltDisplayListDescriptor& aDLDesc,
166
        const WebRenderScrollData& aScrollData,
167
        const nsTArray<OpUpdateResource>& aResourceUpdates,
168
        const nsTArray<RefCountedShmem>& aSmallShmems,
169
        nsTArray<Shmem>& aLargeShmems,
170
        const IdNamespace& aIdNamespace,
171
        const bool& containsSVGGroup,
172
        const TimeStamp& refreshStartTime,
173
        const TimeStamp& txnStartTime,
174
        const TimeStamp& fwdTime) -> bool
175
0
{
176
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetDisplayList(Id());
177
0
178
0
    WriteIPDLParam(msg__, this, aSize);
179
0
    // Sentinel = 'aSize'
180
0
    (msg__)->WriteSentinel(2556665555);
181
0
    WriteIPDLParam(msg__, this, commands);
182
0
    // Sentinel = 'commands'
183
0
    (msg__)->WriteSentinel(766311650);
184
0
    WriteIPDLParam(msg__, this, toDestroy);
185
0
    // Sentinel = 'toDestroy'
186
0
    (msg__)->WriteSentinel(4183172130);
187
0
    WriteIPDLParam(msg__, this, fwdTransactionId);
188
0
    // Sentinel = 'fwdTransactionId'
189
0
    (msg__)->WriteSentinel(2023976742);
190
0
    WriteIPDLParam(msg__, this, transactionId);
191
0
    // Sentinel = 'transactionId'
192
0
    (msg__)->WriteSentinel(3330976378);
193
0
    WriteIPDLParam(msg__, this, aContentSize);
194
0
    // Sentinel = 'aContentSize'
195
0
    (msg__)->WriteSentinel(2717297443);
196
0
    WriteIPDLParam(msg__, this, aDL);
197
0
    // Sentinel = 'aDL'
198
0
    (msg__)->WriteSentinel(2732041978);
199
0
    WriteIPDLParam(msg__, this, aDLDesc);
200
0
    // Sentinel = 'aDLDesc'
201
0
    (msg__)->WriteSentinel(582673605);
202
0
    WriteIPDLParam(msg__, this, aScrollData);
203
0
    // Sentinel = 'aScrollData'
204
0
    (msg__)->WriteSentinel(3371626533);
205
0
    WriteIPDLParam(msg__, this, aResourceUpdates);
206
0
    // Sentinel = 'aResourceUpdates'
207
0
    (msg__)->WriteSentinel(166665069);
208
0
    WriteIPDLParam(msg__, this, aSmallShmems);
209
0
    // Sentinel = 'aSmallShmems'
210
0
    (msg__)->WriteSentinel(2093690101);
211
0
    WriteIPDLParam(msg__, this, aLargeShmems);
212
0
    // Sentinel = 'aLargeShmems'
213
0
    (msg__)->WriteSentinel(1347192857);
214
0
    WriteIPDLParam(msg__, this, aIdNamespace);
215
0
    // Sentinel = 'aIdNamespace'
216
0
    (msg__)->WriteSentinel(4238309971);
217
0
    WriteIPDLParam(msg__, this, containsSVGGroup);
218
0
    // Sentinel = 'containsSVGGroup'
219
0
    (msg__)->WriteSentinel(591467708);
220
0
    WriteIPDLParam(msg__, this, refreshStartTime);
221
0
    // Sentinel = 'refreshStartTime'
222
0
    (msg__)->WriteSentinel(1792425904);
223
0
    WriteIPDLParam(msg__, this, txnStartTime);
224
0
    // Sentinel = 'txnStartTime'
225
0
    (msg__)->WriteSentinel(6424537);
226
0
    WriteIPDLParam(msg__, this, fwdTime);
227
0
    // Sentinel = 'fwdTime'
228
0
    (msg__)->WriteSentinel(1610637679);
229
0
230
0
231
0
232
0
233
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
234
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
235
0
    }
236
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetDisplayList", OTHER);
237
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
238
0
        mozilla::ipc::LogicError("Transition error");
239
0
    }
240
0
241
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
242
0
    return sendok__;
243
0
}
244
245
auto PWebRenderBridgeChild::SendEmptyTransaction(
246
        const FocusTarget& focusTarget,
247
        const ScrollUpdatesMap& scrollUpdates,
248
        const uint32_t& aPaintSequenceNumber,
249
        const nsTArray<WebRenderParentCommand>& commands,
250
        const nsTArray<OpDestroy>& toDestroy,
251
        const uint64_t& fwdTransactionId,
252
        const TransactionId& transactionId,
253
        const IdNamespace& aIdNamespace,
254
        const TimeStamp& refreshStartTime,
255
        const TimeStamp& txnStartTime,
256
        const TimeStamp& fwdTime) -> bool
257
0
{
258
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_EmptyTransaction(Id());
259
0
260
0
    WriteIPDLParam(msg__, this, focusTarget);
261
0
    // Sentinel = 'focusTarget'
262
0
    (msg__)->WriteSentinel(2511236160);
263
0
    WriteIPDLParam(msg__, this, scrollUpdates);
264
0
    // Sentinel = 'scrollUpdates'
265
0
    (msg__)->WriteSentinel(2478378126);
266
0
    WriteIPDLParam(msg__, this, aPaintSequenceNumber);
267
0
    // Sentinel = 'aPaintSequenceNumber'
268
0
    (msg__)->WriteSentinel(2749736771);
269
0
    WriteIPDLParam(msg__, this, commands);
270
0
    // Sentinel = 'commands'
271
0
    (msg__)->WriteSentinel(766311650);
272
0
    WriteIPDLParam(msg__, this, toDestroy);
273
0
    // Sentinel = 'toDestroy'
274
0
    (msg__)->WriteSentinel(4183172130);
275
0
    WriteIPDLParam(msg__, this, fwdTransactionId);
276
0
    // Sentinel = 'fwdTransactionId'
277
0
    (msg__)->WriteSentinel(2023976742);
278
0
    WriteIPDLParam(msg__, this, transactionId);
279
0
    // Sentinel = 'transactionId'
280
0
    (msg__)->WriteSentinel(3330976378);
281
0
    WriteIPDLParam(msg__, this, aIdNamespace);
282
0
    // Sentinel = 'aIdNamespace'
283
0
    (msg__)->WriteSentinel(4238309971);
284
0
    WriteIPDLParam(msg__, this, refreshStartTime);
285
0
    // Sentinel = 'refreshStartTime'
286
0
    (msg__)->WriteSentinel(1792425904);
287
0
    WriteIPDLParam(msg__, this, txnStartTime);
288
0
    // Sentinel = 'txnStartTime'
289
0
    (msg__)->WriteSentinel(6424537);
290
0
    WriteIPDLParam(msg__, this, fwdTime);
291
0
    // Sentinel = 'fwdTime'
292
0
    (msg__)->WriteSentinel(1610637679);
293
0
294
0
295
0
296
0
297
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
298
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
299
0
    }
300
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_EmptyTransaction", OTHER);
301
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
302
0
        mozilla::ipc::LogicError("Transition error");
303
0
    }
304
0
305
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
306
0
    return sendok__;
307
0
}
308
309
auto PWebRenderBridgeChild::SendSetFocusTarget(const FocusTarget& focusTarget) -> bool
310
0
{
311
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetFocusTarget(Id());
312
0
313
0
    WriteIPDLParam(msg__, this, focusTarget);
314
0
    // Sentinel = 'focusTarget'
315
0
    (msg__)->WriteSentinel(2511236160);
316
0
317
0
318
0
319
0
320
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
321
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
322
0
    }
323
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetFocusTarget", OTHER);
324
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
325
0
        mozilla::ipc::LogicError("Transition error");
326
0
    }
327
0
328
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
329
0
    return sendok__;
330
0
}
331
332
auto PWebRenderBridgeChild::SendUpdateResources(
333
        const nsTArray<OpUpdateResource>& aResourceUpdates,
334
        const nsTArray<RefCountedShmem>& aSmallShmems,
335
        nsTArray<Shmem>& aLargeShmems) -> bool
336
0
{
337
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_UpdateResources(Id());
338
0
339
0
    WriteIPDLParam(msg__, this, aResourceUpdates);
340
0
    // Sentinel = 'aResourceUpdates'
341
0
    (msg__)->WriteSentinel(166665069);
342
0
    WriteIPDLParam(msg__, this, aSmallShmems);
343
0
    // Sentinel = 'aSmallShmems'
344
0
    (msg__)->WriteSentinel(2093690101);
345
0
    WriteIPDLParam(msg__, this, aLargeShmems);
346
0
    // Sentinel = 'aLargeShmems'
347
0
    (msg__)->WriteSentinel(1347192857);
348
0
349
0
350
0
351
0
352
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
353
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
354
0
    }
355
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_UpdateResources", OTHER);
356
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
357
0
        mozilla::ipc::LogicError("Transition error");
358
0
    }
359
0
360
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
361
0
    return sendok__;
362
0
}
363
364
auto PWebRenderBridgeChild::SendParentCommands(const nsTArray<WebRenderParentCommand>& commands) -> bool
365
0
{
366
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_ParentCommands(Id());
367
0
368
0
    WriteIPDLParam(msg__, this, commands);
369
0
    // Sentinel = 'commands'
370
0
    (msg__)->WriteSentinel(766311650);
371
0
372
0
373
0
374
0
375
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
376
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
377
0
    }
378
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_ParentCommands", OTHER);
379
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
380
0
        mozilla::ipc::LogicError("Transition error");
381
0
    }
382
0
383
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
384
0
    return sendok__;
385
0
}
386
387
auto PWebRenderBridgeChild::SendGetSnapshot(PTextureChild* texture) -> bool
388
0
{
389
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_GetSnapshot(Id());
390
0
391
0
    MOZ_RELEASE_ASSERT(texture, "NULL actor value passed to non-nullable param");
392
0
    WriteIPDLParam(msg__, this, texture);
393
0
    // Sentinel = 'texture'
394
0
    (msg__)->WriteSentinel(3654462510);
395
0
396
0
397
0
398
0
    Message reply__;
399
0
400
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
401
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
402
0
    }
403
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_GetSnapshot", OTHER);
404
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
405
0
        mozilla::ipc::LogicError("Transition error");
406
0
    }
407
0
408
0
    bool sendok__;
409
0
    {
410
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_GetSnapshot");
411
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
412
0
    }
413
0
    if ((!(sendok__))) {
414
0
        return false;
415
0
    }
416
0
417
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
418
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
419
0
    }
420
0
421
0
    return true;
422
0
}
423
424
auto PWebRenderBridgeChild::SendSetLayersObserverEpoch(const LayersObserverEpoch& childEpoch) -> bool
425
0
{
426
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetLayersObserverEpoch(Id());
427
0
428
0
    WriteIPDLParam(msg__, this, childEpoch);
429
0
    // Sentinel = 'childEpoch'
430
0
    (msg__)->WriteSentinel(3823372415);
431
0
432
0
433
0
434
0
435
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
436
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
437
0
    }
438
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetLayersObserverEpoch", OTHER);
439
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
440
0
        mozilla::ipc::LogicError("Transition error");
441
0
    }
442
0
443
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
444
0
    return sendok__;
445
0
}
446
447
auto PWebRenderBridgeChild::SendClearCachedResources() -> bool
448
0
{
449
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_ClearCachedResources(Id());
450
0
451
0
452
0
453
0
454
0
455
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
456
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
457
0
    }
458
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_ClearCachedResources", OTHER);
459
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
460
0
        mozilla::ipc::LogicError("Transition error");
461
0
    }
462
0
463
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
464
0
    return sendok__;
465
0
}
466
467
auto PWebRenderBridgeChild::SendScheduleComposite() -> bool
468
0
{
469
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_ScheduleComposite(Id());
470
0
471
0
472
0
473
0
474
0
475
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
476
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
477
0
    }
478
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_ScheduleComposite", OTHER);
479
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
480
0
        mozilla::ipc::LogicError("Transition error");
481
0
    }
482
0
483
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
484
0
    return sendok__;
485
0
}
486
487
auto PWebRenderBridgeChild::SendCapture() -> bool
488
0
{
489
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_Capture(Id());
490
0
491
0
492
0
493
0
494
0
495
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
496
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
497
0
    }
498
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_Capture", OTHER);
499
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
500
0
        mozilla::ipc::LogicError("Transition error");
501
0
    }
502
0
503
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
504
0
    return sendok__;
505
0
}
506
507
auto PWebRenderBridgeChild::SendSyncWithCompositor() -> bool
508
0
{
509
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SyncWithCompositor(Id());
510
0
511
0
512
0
513
0
514
0
    Message reply__;
515
0
516
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
517
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
518
0
    }
519
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SyncWithCompositor", OTHER);
520
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
521
0
        mozilla::ipc::LogicError("Transition error");
522
0
    }
523
0
524
0
    bool sendok__;
525
0
    {
526
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_SyncWithCompositor");
527
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
528
0
    }
529
0
    if ((!(sendok__))) {
530
0
        return false;
531
0
    }
532
0
533
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
534
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
535
0
    }
536
0
537
0
    return true;
538
0
}
539
540
auto PWebRenderBridgeChild::SendSetConfirmedTargetAPZC(
541
        const uint64_t& aInputBlockId,
542
        const nsTArray<ScrollableLayerGuid>& aTargets) -> bool
543
0
{
544
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetConfirmedTargetAPZC(Id());
545
0
546
0
    WriteIPDLParam(msg__, this, aInputBlockId);
547
0
    // Sentinel = 'aInputBlockId'
548
0
    (msg__)->WriteSentinel(3003300100);
549
0
    WriteIPDLParam(msg__, this, aTargets);
550
0
    // Sentinel = 'aTargets'
551
0
    (msg__)->WriteSentinel(1782943901);
552
0
553
0
554
0
555
0
556
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
557
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
558
0
    }
559
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetConfirmedTargetAPZC", OTHER);
560
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
561
0
        mozilla::ipc::LogicError("Transition error");
562
0
    }
563
0
564
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
565
0
    return sendok__;
566
0
}
567
568
auto PWebRenderBridgeChild::SendSetTestSampleTime(const TimeStamp& sampleTime) -> bool
569
0
{
570
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetTestSampleTime(Id());
571
0
572
0
    WriteIPDLParam(msg__, this, sampleTime);
573
0
    // Sentinel = 'sampleTime'
574
0
    (msg__)->WriteSentinel(2958171755);
575
0
576
0
577
0
578
0
    Message reply__;
579
0
580
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
581
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
582
0
    }
583
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetTestSampleTime", OTHER);
584
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
585
0
        mozilla::ipc::LogicError("Transition error");
586
0
    }
587
0
588
0
    bool sendok__;
589
0
    {
590
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_SetTestSampleTime");
591
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
592
0
    }
593
0
    if ((!(sendok__))) {
594
0
        return false;
595
0
    }
596
0
597
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
598
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
599
0
    }
600
0
601
0
    return true;
602
0
}
603
604
auto PWebRenderBridgeChild::SendLeaveTestMode() -> bool
605
0
{
606
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_LeaveTestMode(Id());
607
0
608
0
609
0
610
0
611
0
    Message reply__;
612
0
613
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
614
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
615
0
    }
616
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_LeaveTestMode", OTHER);
617
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
618
0
        mozilla::ipc::LogicError("Transition error");
619
0
    }
620
0
621
0
    bool sendok__;
622
0
    {
623
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_LeaveTestMode");
624
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
625
0
    }
626
0
    if ((!(sendok__))) {
627
0
        return false;
628
0
    }
629
0
630
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
631
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
632
0
    }
633
0
634
0
    return true;
635
0
}
636
637
auto PWebRenderBridgeChild::SendGetAnimationValue(
638
        const uint64_t& aCompositorAnimationsId,
639
        OMTAValue* value) -> bool
640
0
{
641
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_GetAnimationValue(Id());
642
0
643
0
    WriteIPDLParam(msg__, this, aCompositorAnimationsId);
644
0
    // Sentinel = 'aCompositorAnimationsId'
645
0
    (msg__)->WriteSentinel(3630778879);
646
0
647
0
648
0
649
0
    Message reply__;
650
0
651
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
652
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
653
0
    }
654
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_GetAnimationValue", OTHER);
655
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
656
0
        mozilla::ipc::LogicError("Transition error");
657
0
    }
658
0
659
0
    bool sendok__;
660
0
    {
661
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_GetAnimationValue");
662
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
663
0
    }
664
0
    if ((!(sendok__))) {
665
0
        return false;
666
0
    }
667
0
668
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
669
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
670
0
    }
671
0
672
0
    PickleIterator iter__(reply__);
673
0
674
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, value)))) {
675
0
        FatalError("Error deserializing 'OMTAValue'");
676
0
        return false;
677
0
    }
678
0
    // Sentinel = 'value'
679
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
680
0
        mozilla::ipc::SentinelReadError("Error deserializing 'OMTAValue'");
681
0
        return false;
682
0
    }
683
0
    (reply__).EndRead(iter__, (reply__).type());
684
0
685
0
    return true;
686
0
}
687
688
auto PWebRenderBridgeChild::SendSetAsyncScrollOffset(
689
        const ViewID& scrollId,
690
        const float& x,
691
        const float& y) -> bool
692
0
{
693
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetAsyncScrollOffset(Id());
694
0
695
0
    WriteIPDLParam(msg__, this, scrollId);
696
0
    // Sentinel = 'scrollId'
697
0
    (msg__)->WriteSentinel(1396311172);
698
0
    WriteIPDLParam(msg__, this, x);
699
0
    // Sentinel = 'x'
700
0
    (msg__)->WriteSentinel(2475144313);
701
0
    WriteIPDLParam(msg__, this, y);
702
0
    // Sentinel = 'y'
703
0
    (msg__)->WriteSentinel(2603144696);
704
0
705
0
706
0
707
0
    Message reply__;
708
0
709
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
710
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
711
0
    }
712
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetAsyncScrollOffset", OTHER);
713
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
714
0
        mozilla::ipc::LogicError("Transition error");
715
0
    }
716
0
717
0
    bool sendok__;
718
0
    {
719
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_SetAsyncScrollOffset");
720
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
721
0
    }
722
0
    if ((!(sendok__))) {
723
0
        return false;
724
0
    }
725
0
726
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
727
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
728
0
    }
729
0
730
0
    return true;
731
0
}
732
733
auto PWebRenderBridgeChild::SendSetAsyncZoom(
734
        const ViewID& scrollId,
735
        const float& zoom) -> bool
736
0
{
737
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_SetAsyncZoom(Id());
738
0
739
0
    WriteIPDLParam(msg__, this, scrollId);
740
0
    // Sentinel = 'scrollId'
741
0
    (msg__)->WriteSentinel(1396311172);
742
0
    WriteIPDLParam(msg__, this, zoom);
743
0
    // Sentinel = 'zoom'
744
0
    (msg__)->WriteSentinel(1680696941);
745
0
746
0
747
0
748
0
    Message reply__;
749
0
750
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
751
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
752
0
    }
753
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_SetAsyncZoom", OTHER);
754
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
755
0
        mozilla::ipc::LogicError("Transition error");
756
0
    }
757
0
758
0
    bool sendok__;
759
0
    {
760
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_SetAsyncZoom");
761
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
762
0
    }
763
0
    if ((!(sendok__))) {
764
0
        return false;
765
0
    }
766
0
767
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
768
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
769
0
    }
770
0
771
0
    return true;
772
0
}
773
774
auto PWebRenderBridgeChild::SendFlushApzRepaints() -> bool
775
0
{
776
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_FlushApzRepaints(Id());
777
0
778
0
779
0
780
0
781
0
782
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
783
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
784
0
    }
785
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_FlushApzRepaints", OTHER);
786
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
787
0
        mozilla::ipc::LogicError("Transition error");
788
0
    }
789
0
790
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
791
0
    return sendok__;
792
0
}
793
794
auto PWebRenderBridgeChild::SendGetAPZTestData(APZTestData* data) -> bool
795
0
{
796
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_GetAPZTestData(Id());
797
0
798
0
799
0
800
0
801
0
    Message reply__;
802
0
803
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
804
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
805
0
    }
806
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_GetAPZTestData", OTHER);
807
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
808
0
        mozilla::ipc::LogicError("Transition error");
809
0
    }
810
0
811
0
    bool sendok__;
812
0
    {
813
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_GetAPZTestData");
814
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
815
0
    }
816
0
    if ((!(sendok__))) {
817
0
        return false;
818
0
    }
819
0
820
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
821
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
822
0
    }
823
0
824
0
    PickleIterator iter__(reply__);
825
0
826
0
    if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, data)))) {
827
0
        FatalError("Error deserializing 'APZTestData'");
828
0
        return false;
829
0
    }
830
0
    // Sentinel = 'data'
831
0
    if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 843352540)))) {
832
0
        mozilla::ipc::SentinelReadError("Error deserializing 'APZTestData'");
833
0
        return false;
834
0
    }
835
0
    (reply__).EndRead(iter__, (reply__).type());
836
0
837
0
    return true;
838
0
}
839
840
auto PWebRenderBridgeChild::SendShutdown() -> bool
841
0
{
842
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_Shutdown(Id());
843
0
844
0
845
0
846
0
847
0
848
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
849
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
850
0
    }
851
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_Shutdown", OTHER);
852
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
853
0
        mozilla::ipc::LogicError("Transition error");
854
0
    }
855
0
856
0
    bool sendok__ = (GetIPCChannel())->Send(msg__);
857
0
    return sendok__;
858
0
}
859
860
auto PWebRenderBridgeChild::SendShutdownSync() -> bool
861
0
{
862
0
    IPC::Message* msg__ = PWebRenderBridge::Msg_ShutdownSync(Id());
863
0
864
0
865
0
866
0
867
0
    Message reply__;
868
0
869
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
870
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
871
0
    }
872
0
    AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_ShutdownSync", OTHER);
873
0
    if ((!(StateTransition(false, (&(mLivenessState)))))) {
874
0
        mozilla::ipc::LogicError("Transition error");
875
0
    }
876
0
877
0
    bool sendok__;
878
0
    {
879
0
        AUTO_PROFILER_TRACING("IPC", "PWebRenderBridge::Msg_ShutdownSync");
880
0
        sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
881
0
    }
882
0
    if ((!(sendok__))) {
883
0
        return false;
884
0
    }
885
0
886
0
    if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
887
0
        mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
888
0
    }
889
0
890
0
    return true;
891
0
}
892
893
auto PWebRenderBridgeChild::RemoveManagee(
894
        int32_t aProtocolId,
895
        IProtocol* aListener) -> void
896
0
{
897
0
    FatalError("unreached");
898
0
    return;
899
0
}
900
901
auto PWebRenderBridgeChild::OnMessageReceived(const Message& msg__) -> PWebRenderBridgeChild::Result
902
0
{
903
0
    switch ((msg__).type()) {
904
0
    case PWebRenderBridge::Msg_WrUpdated__ID:
905
0
        {
906
0
            if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
907
0
                mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
908
0
            }
909
0
            AUTO_PROFILER_LABEL("PWebRenderBridge::Msg_WrUpdated", OTHER);
910
0
911
0
            PickleIterator iter__(msg__);
912
0
            IdNamespace aNewIdNamespace;
913
0
            TextureFactoryIdentifier textureFactoryIdentifier;
914
0
915
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aNewIdNamespace)))))) {
916
0
                FatalError("Error deserializing 'IdNamespace'");
917
0
                return MsgValueError;
918
0
            }
919
0
            // Sentinel = 'aNewIdNamespace'
920
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4014714848)))) {
921
0
                mozilla::ipc::SentinelReadError("Error deserializing 'IdNamespace'");
922
0
                return MsgValueError;
923
0
            }
924
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(textureFactoryIdentifier)))))) {
925
0
                FatalError("Error deserializing 'TextureFactoryIdentifier'");
926
0
                return MsgValueError;
927
0
            }
928
0
            // Sentinel = 'textureFactoryIdentifier'
929
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1630882508)))) {
930
0
                mozilla::ipc::SentinelReadError("Error deserializing 'TextureFactoryIdentifier'");
931
0
                return MsgValueError;
932
0
            }
933
0
            (msg__).EndRead(iter__, (msg__).type());
934
0
            if ((!(StateTransition(false, (&(mLivenessState)))))) {
935
0
                FatalError("Transition error");
936
0
                return MsgValueError;
937
0
            }
938
0
            if ((!(RecvWrUpdated(aNewIdNamespace, textureFactoryIdentifier)))) {
939
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
940
0
                // Error handled in mozilla::ipc::IPCResult
941
0
                return MsgProcessingError;
942
0
            }
943
0
944
0
            return MsgProcessed;
945
0
        }
946
0
    case PWebRenderBridge::Msg___delete____ID:
947
0
        {
948
0
            if (mozilla::ipc::LoggingEnabledFor("PWebRenderBridgeChild")) {
949
0
                mozilla::ipc::LogMessageForProtocol("PWebRenderBridgeChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
950
0
            }
951
0
            AUTO_PROFILER_LABEL("PWebRenderBridge::Msg___delete__", OTHER);
952
0
953
0
            PickleIterator iter__(msg__);
954
0
            PWebRenderBridgeChild* actor;
955
0
956
0
            if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) {
957
0
                FatalError("Error deserializing 'PWebRenderBridgeChild'");
958
0
                return MsgValueError;
959
0
            }
960
0
            if ((!((*((&(actor))))))) {
961
0
                FatalError("Error deserializing 'PWebRenderBridgeChild'");
962
0
                return MsgValueError;
963
0
            }
964
0
            // Sentinel = 'actor'
965
0
            if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
966
0
                mozilla::ipc::SentinelReadError("Error deserializing 'PWebRenderBridgeChild'");
967
0
                return MsgValueError;
968
0
            }
969
0
            (msg__).EndRead(iter__, (msg__).type());
970
0
            if ((!(StateTransition(true, (&(mLivenessState)))))) {
971
0
                FatalError("Transition error");
972
0
                return MsgValueError;
973
0
            }
974
0
            if ((!(Recv__delete__()))) {
975
0
                mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
976
0
                // Error handled in mozilla::ipc::IPCResult
977
0
                return MsgProcessingError;
978
0
            }
979
0
980
0
981
0
            IProtocol* mgr = (actor)->Manager();
982
0
            (actor)->DestroySubtree(Deletion);
983
0
            (actor)->DeallocSubtree();
984
0
            (mgr)->RemoveManagee(PWebRenderBridgeMsgStart, actor);
985
0
986
0
            return MsgProcessed;
987
0
        }
988
0
    default:
989
0
        {
990
0
            return MsgNotKnown;
991
0
        }
992
0
    }
993
0
}
994
995
auto PWebRenderBridgeChild::OnMessageReceived(
996
        const Message& msg__,
997
        Message*& reply__) -> PWebRenderBridgeChild::Result
998
0
{
999
0
    return MsgNotKnown;
1000
0
}
1001
1002
auto PWebRenderBridgeChild::OnCallReceived(
1003
        const Message& msg__,
1004
        Message*& reply__) -> PWebRenderBridgeChild::Result
1005
0
{
1006
0
    MOZ_ASSERT_UNREACHABLE("message protocol not supported");
1007
0
    return MsgNotKnown;
1008
0
}
1009
1010
auto PWebRenderBridgeChild::GetProtocolTypeId() -> int32_t
1011
0
{
1012
0
    return PWebRenderBridgeMsgStart;
1013
0
}
1014
1015
auto PWebRenderBridgeChild::DestroySubtree(ActorDestroyReason why) -> void
1016
0
{
1017
0
    // Unregister from our manager.
1018
0
    Unregister(Id());
1019
0
1020
0
    // Reject owning pending responses.
1021
0
    (GetIPCChannel())->RejectPendingResponsesForActor(this);
1022
0
1023
0
    // Finally, destroy "us".
1024
0
    ActorDestroy(why);
1025
0
}
1026
1027
auto PWebRenderBridgeChild::DeallocSubtree() -> void
1028
0
{
1029
0
}
1030
1031
1032
1033
} // namespace layers
1034
} // namespace mozilla
1035
namespace mozilla {
1036
namespace ipc {
1037
auto IPDLParamTraits<mozilla::layers::PWebRenderBridgeChild>::Write(
1038
        IPC::Message* aMsg,
1039
        mozilla::ipc::IProtocol* aActor,
1040
        const paramType& aVar) -> void
1041
0
{
1042
0
    int32_t id;
1043
0
    if ((!(aVar))) {
1044
0
        id = 0;
1045
0
    }
1046
0
    else {
1047
0
        id = (aVar)->Id();
1048
0
        if ((1) == (id)) {
1049
0
            (aActor)->FatalError("actor has been |delete|d");
1050
0
        }
1051
0
    }
1052
0
    WriteIPDLParam(aMsg, aActor, id);
1053
0
}
1054
1055
auto IPDLParamTraits<mozilla::layers::PWebRenderBridgeChild>::Read(
1056
        const IPC::Message* aMsg,
1057
        PickleIterator* aIter,
1058
        mozilla::ipc::IProtocol* aActor,
1059
        paramType* aVar) -> bool
1060
0
{
1061
0
    mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PWebRenderBridge", PWebRenderBridgeMsgStart);
1062
0
    if ((actor).isNothing()) {
1063
0
        return false;
1064
0
    }
1065
0
1066
0
    (*(aVar)) = static_cast<mozilla::layers::PWebRenderBridgeChild*>((actor).value());
1067
0
    return true;
1068
0
}
1069
1070
} // namespace ipc
1071
} // namespace mozilla