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