Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/layers/PLayerTransactionChild.h"
8 : #include "FrameMetrics.h"
9 : #include "ipc/IPCMessageUtils.h"
10 : #include "mozilla/layers/APZTestData.h"
11 : #include "mozilla/layers/CompositorTypes.h"
12 :
13 : #include "mozilla/layers/PCompositorBridgeChild.h"
14 : #include "mozilla/layout/PRenderFrameChild.h"
15 : #include "mozilla/layers/PTextureChild.h"
16 :
17 : #include "nsIFile.h"
18 : #include "GeckoProfiler.h"
19 :
20 : namespace mozilla {
21 : namespace layers {
22 :
23 :
24 0 : auto PLayerTransactionChild::Recv__delete__() -> mozilla::ipc::IPCResult
25 : {
26 0 : return IPC_OK();
27 : }
28 :
29 0 : auto PLayerTransactionChild::ActorDestroy(ActorDestroyReason aWhy) -> void
30 : {
31 0 : }
32 :
33 2 : MOZ_IMPLICIT PLayerTransactionChild::PLayerTransactionChild() :
34 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
35 2 : mState(PLayerTransaction::__Dead)
36 : {
37 2 : MOZ_COUNT_CTOR(PLayerTransactionChild);
38 2 : }
39 :
40 0 : PLayerTransactionChild::~PLayerTransactionChild()
41 : {
42 0 : MOZ_COUNT_DTOR(PLayerTransactionChild);
43 0 : }
44 :
45 2 : auto PLayerTransactionChild::Manager() const -> PCompositorBridgeChild*
46 : {
47 2 : return static_cast<PCompositorBridgeChild*>(IProtocol::Manager());
48 : }
49 :
50 24 : auto PLayerTransactionChild::SendInitReadLocks(const nsTArray<ReadLockInit>& locks) -> bool
51 : {
52 24 : IPC::Message* msg__ = PLayerTransaction::Msg_InitReadLocks(Id());
53 :
54 24 : Write(locks, msg__);
55 : // Sentinel = 'locks'
56 24 : (msg__)->WriteSentinel(4169533841);
57 :
58 :
59 :
60 :
61 24 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
62 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
63 : }
64 48 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_InitReadLocks", OTHER);
65 24 : PLayerTransaction::Transition(PLayerTransaction::Msg_InitReadLocks__ID, (&(mState)));
66 :
67 24 : bool sendok__ = (GetIPCChannel())->Send(msg__);
68 48 : return sendok__;
69 : }
70 :
71 28 : auto PLayerTransactionChild::SendUpdate(const TransactionInfo& txn) -> bool
72 : {
73 28 : IPC::Message* msg__ = PLayerTransaction::Msg_Update(Id());
74 :
75 28 : Write(txn, msg__);
76 : // Sentinel = 'txn'
77 28 : (msg__)->WriteSentinel(316309761);
78 :
79 :
80 :
81 :
82 28 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
83 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
84 : }
85 56 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_Update", OTHER);
86 28 : PLayerTransaction::Transition(PLayerTransaction::Msg_Update__ID, (&(mState)));
87 :
88 28 : bool sendok__ = (GetIPCChannel())->Send(msg__);
89 56 : return sendok__;
90 : }
91 :
92 0 : auto PLayerTransactionChild::SendPaintTime(
93 : const uint64_t& id,
94 : const TimeDuration& paintTime) -> bool
95 : {
96 0 : IPC::Message* msg__ = PLayerTransaction::Msg_PaintTime(Id());
97 :
98 0 : Write(id, msg__);
99 : // Sentinel = 'id'
100 0 : (msg__)->WriteSentinel(2794505629);
101 0 : Write(paintTime, msg__);
102 : // Sentinel = 'paintTime'
103 0 : (msg__)->WriteSentinel(2185917910);
104 :
105 :
106 :
107 :
108 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
109 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
110 : }
111 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_PaintTime", OTHER);
112 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_PaintTime__ID, (&(mState)));
113 :
114 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
115 0 : return sendok__;
116 : }
117 :
118 2 : auto PLayerTransactionChild::SendSetLayerObserverEpoch(const uint64_t& layerObserverEpoch) -> bool
119 : {
120 2 : IPC::Message* msg__ = PLayerTransaction::Msg_SetLayerObserverEpoch(Id());
121 :
122 2 : Write(layerObserverEpoch, msg__);
123 : // Sentinel = 'layerObserverEpoch'
124 2 : (msg__)->WriteSentinel(932884902);
125 :
126 :
127 :
128 :
129 2 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
130 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
131 : }
132 4 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetLayerObserverEpoch", OTHER);
133 2 : PLayerTransaction::Transition(PLayerTransaction::Msg_SetLayerObserverEpoch__ID, (&(mState)));
134 :
135 2 : bool sendok__ = (GetIPCChannel())->Send(msg__);
136 4 : return sendok__;
137 : }
138 :
139 22 : auto PLayerTransactionChild::SendNewCompositable(
140 : const CompositableHandle& handle,
141 : const TextureInfo& info) -> bool
142 : {
143 22 : IPC::Message* msg__ = PLayerTransaction::Msg_NewCompositable(Id());
144 :
145 22 : Write(handle, msg__);
146 : // Sentinel = 'handle'
147 22 : (msg__)->WriteSentinel(453975108);
148 22 : Write(info, msg__);
149 : // Sentinel = 'info'
150 22 : (msg__)->WriteSentinel(3750868832);
151 :
152 :
153 :
154 :
155 22 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
156 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
157 : }
158 44 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_NewCompositable", OTHER);
159 22 : PLayerTransaction::Transition(PLayerTransaction::Msg_NewCompositable__ID, (&(mState)));
160 :
161 22 : bool sendok__ = (GetIPCChannel())->Send(msg__);
162 44 : return sendok__;
163 : }
164 :
165 23 : auto PLayerTransactionChild::SendReleaseLayer(const LayerHandle& layer) -> bool
166 : {
167 23 : IPC::Message* msg__ = PLayerTransaction::Msg_ReleaseLayer(Id());
168 :
169 23 : Write(layer, msg__);
170 : // Sentinel = 'layer'
171 23 : (msg__)->WriteSentinel(1899167106);
172 :
173 :
174 :
175 :
176 23 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
177 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
178 : }
179 46 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ReleaseLayer", OTHER);
180 23 : PLayerTransaction::Transition(PLayerTransaction::Msg_ReleaseLayer__ID, (&(mState)));
181 :
182 23 : bool sendok__ = (GetIPCChannel())->Send(msg__);
183 46 : return sendok__;
184 : }
185 :
186 19 : auto PLayerTransactionChild::SendReleaseCompositable(const CompositableHandle& compositable) -> bool
187 : {
188 19 : IPC::Message* msg__ = PLayerTransaction::Msg_ReleaseCompositable(Id());
189 :
190 19 : Write(compositable, msg__);
191 : // Sentinel = 'compositable'
192 19 : (msg__)->WriteSentinel(4031958248);
193 :
194 :
195 :
196 :
197 19 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
198 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
199 : }
200 38 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ReleaseCompositable", OTHER);
201 19 : PLayerTransaction::Transition(PLayerTransaction::Msg_ReleaseCompositable__ID, (&(mState)));
202 :
203 19 : bool sendok__ = (GetIPCChannel())->Send(msg__);
204 38 : return sendok__;
205 : }
206 :
207 0 : auto PLayerTransactionChild::SendSetConfirmedTargetAPZC(
208 : const uint64_t& aInputBlockId,
209 : const nsTArray<ScrollableLayerGuid>& aTargets) -> bool
210 : {
211 0 : IPC::Message* msg__ = PLayerTransaction::Msg_SetConfirmedTargetAPZC(Id());
212 :
213 0 : Write(aInputBlockId, msg__);
214 : // Sentinel = 'aInputBlockId'
215 0 : (msg__)->WriteSentinel(3003300100);
216 0 : Write(aTargets, msg__);
217 : // Sentinel = 'aTargets'
218 0 : (msg__)->WriteSentinel(1782943901);
219 :
220 :
221 :
222 :
223 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
224 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
225 : }
226 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetConfirmedTargetAPZC", OTHER);
227 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_SetConfirmedTargetAPZC__ID, (&(mState)));
228 :
229 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
230 0 : return sendok__;
231 : }
232 :
233 0 : auto PLayerTransactionChild::SendSetTestSampleTime(const TimeStamp& sampleTime) -> bool
234 : {
235 0 : IPC::Message* msg__ = PLayerTransaction::Msg_SetTestSampleTime(Id());
236 :
237 0 : Write(sampleTime, msg__);
238 : // Sentinel = 'sampleTime'
239 0 : (msg__)->WriteSentinel(2958171755);
240 :
241 0 : (msg__)->set_sync();
242 :
243 :
244 0 : Message reply__;
245 :
246 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
247 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
248 : }
249 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetTestSampleTime", OTHER);
250 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_SetTestSampleTime__ID, (&(mState)));
251 :
252 : bool sendok__;
253 : {
254 : AutoProfilerTracing syncIPCTracer(
255 : "IPC",
256 0 : "PLayerTransaction::Msg_SetTestSampleTime");
257 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
258 : }
259 0 : if ((!(sendok__))) {
260 0 : return false;
261 : }
262 :
263 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
264 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
265 : }
266 :
267 0 : return true;
268 : }
269 :
270 0 : auto PLayerTransactionChild::SendLeaveTestMode() -> bool
271 : {
272 0 : IPC::Message* msg__ = PLayerTransaction::Msg_LeaveTestMode(Id());
273 :
274 :
275 0 : (msg__)->set_sync();
276 :
277 :
278 0 : Message reply__;
279 :
280 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
281 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
282 : }
283 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_LeaveTestMode", OTHER);
284 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_LeaveTestMode__ID, (&(mState)));
285 :
286 : bool sendok__;
287 : {
288 : AutoProfilerTracing syncIPCTracer(
289 : "IPC",
290 0 : "PLayerTransaction::Msg_LeaveTestMode");
291 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
292 : }
293 0 : if ((!(sendok__))) {
294 0 : return false;
295 : }
296 :
297 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
298 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
299 : }
300 :
301 0 : return true;
302 : }
303 :
304 0 : auto PLayerTransactionChild::SendGetAnimationOpacity(
305 : const uint64_t& aCompositorAnimationsId,
306 : float* opacity,
307 : bool* hasAnimationOpacity) -> bool
308 : {
309 0 : IPC::Message* msg__ = PLayerTransaction::Msg_GetAnimationOpacity(Id());
310 :
311 0 : Write(aCompositorAnimationsId, msg__);
312 : // Sentinel = 'aCompositorAnimationsId'
313 0 : (msg__)->WriteSentinel(3630778879);
314 :
315 0 : (msg__)->set_sync();
316 :
317 :
318 0 : Message reply__;
319 :
320 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
321 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
322 : }
323 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetAnimationOpacity", OTHER);
324 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_GetAnimationOpacity__ID, (&(mState)));
325 :
326 : bool sendok__;
327 : {
328 : AutoProfilerTracing syncIPCTracer(
329 : "IPC",
330 0 : "PLayerTransaction::Msg_GetAnimationOpacity");
331 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
332 : }
333 0 : if ((!(sendok__))) {
334 0 : return false;
335 : }
336 :
337 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
338 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
339 : }
340 :
341 0 : PickleIterator iter__(reply__);
342 :
343 0 : if ((!(Read(opacity, (&(reply__)), (&(iter__)))))) {
344 0 : FatalError("Error deserializing 'float'");
345 0 : return false;
346 : }
347 : // Sentinel = 'opacity'
348 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3006582720)))) {
349 0 : mozilla::ipc::SentinelReadError("Error deserializing 'float'");
350 0 : return false;
351 : }
352 0 : if ((!(Read(hasAnimationOpacity, (&(reply__)), (&(iter__)))))) {
353 0 : FatalError("Error deserializing 'bool'");
354 0 : return false;
355 : }
356 : // Sentinel = 'hasAnimationOpacity'
357 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 738927542)))) {
358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
359 0 : return false;
360 : }
361 0 : (reply__).EndRead(iter__, (reply__).type());
362 :
363 0 : return true;
364 : }
365 :
366 0 : auto PLayerTransactionChild::SendGetAnimationTransform(
367 : const uint64_t& aCompositorAnimationId,
368 : MaybeTransform* transform) -> bool
369 : {
370 0 : IPC::Message* msg__ = PLayerTransaction::Msg_GetAnimationTransform(Id());
371 :
372 0 : Write(aCompositorAnimationId, msg__);
373 : // Sentinel = 'aCompositorAnimationId'
374 0 : (msg__)->WriteSentinel(2017409677);
375 :
376 0 : (msg__)->set_sync();
377 :
378 :
379 0 : Message reply__;
380 :
381 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
382 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
383 : }
384 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetAnimationTransform", OTHER);
385 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_GetAnimationTransform__ID, (&(mState)));
386 :
387 : bool sendok__;
388 : {
389 : AutoProfilerTracing syncIPCTracer(
390 : "IPC",
391 0 : "PLayerTransaction::Msg_GetAnimationTransform");
392 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
393 : }
394 0 : if ((!(sendok__))) {
395 0 : return false;
396 : }
397 :
398 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
399 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
400 : }
401 :
402 0 : PickleIterator iter__(reply__);
403 :
404 0 : if ((!(Read(transform, (&(reply__)), (&(iter__)))))) {
405 0 : FatalError("Error deserializing 'MaybeTransform'");
406 0 : return false;
407 : }
408 : // Sentinel = 'transform'
409 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 69691181)))) {
410 0 : mozilla::ipc::SentinelReadError("Error deserializing 'MaybeTransform'");
411 0 : return false;
412 : }
413 0 : (reply__).EndRead(iter__, (reply__).type());
414 :
415 0 : return true;
416 : }
417 :
418 0 : auto PLayerTransactionChild::SendSetAsyncScrollOffset(
419 : const ViewID& id,
420 : const float& x,
421 : const float& y) -> bool
422 : {
423 0 : IPC::Message* msg__ = PLayerTransaction::Msg_SetAsyncScrollOffset(Id());
424 :
425 0 : Write(id, msg__);
426 : // Sentinel = 'id'
427 0 : (msg__)->WriteSentinel(2794505629);
428 0 : Write(x, msg__);
429 : // Sentinel = 'x'
430 0 : (msg__)->WriteSentinel(2475144313);
431 0 : Write(y, msg__);
432 : // Sentinel = 'y'
433 0 : (msg__)->WriteSentinel(2603144696);
434 :
435 0 : (msg__)->set_sync();
436 :
437 :
438 0 : Message reply__;
439 :
440 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
441 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
442 : }
443 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetAsyncScrollOffset", OTHER);
444 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_SetAsyncScrollOffset__ID, (&(mState)));
445 :
446 : bool sendok__;
447 : {
448 : AutoProfilerTracing syncIPCTracer(
449 : "IPC",
450 0 : "PLayerTransaction::Msg_SetAsyncScrollOffset");
451 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
452 : }
453 0 : if ((!(sendok__))) {
454 0 : return false;
455 : }
456 :
457 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
458 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
459 : }
460 :
461 0 : return true;
462 : }
463 :
464 0 : auto PLayerTransactionChild::SendSetAsyncZoom(
465 : const ViewID& id,
466 : const float& zoom) -> bool
467 : {
468 0 : IPC::Message* msg__ = PLayerTransaction::Msg_SetAsyncZoom(Id());
469 :
470 0 : Write(id, msg__);
471 : // Sentinel = 'id'
472 0 : (msg__)->WriteSentinel(2794505629);
473 0 : Write(zoom, msg__);
474 : // Sentinel = 'zoom'
475 0 : (msg__)->WriteSentinel(1680696941);
476 :
477 0 : (msg__)->set_sync();
478 :
479 :
480 0 : Message reply__;
481 :
482 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
483 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
484 : }
485 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetAsyncZoom", OTHER);
486 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_SetAsyncZoom__ID, (&(mState)));
487 :
488 : bool sendok__;
489 : {
490 : AutoProfilerTracing syncIPCTracer(
491 : "IPC",
492 0 : "PLayerTransaction::Msg_SetAsyncZoom");
493 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
494 : }
495 0 : if ((!(sendok__))) {
496 0 : return false;
497 : }
498 :
499 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
500 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
501 : }
502 :
503 0 : return true;
504 : }
505 :
506 0 : auto PLayerTransactionChild::SendFlushApzRepaints() -> bool
507 : {
508 0 : IPC::Message* msg__ = PLayerTransaction::Msg_FlushApzRepaints(Id());
509 :
510 :
511 :
512 :
513 :
514 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
515 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
516 : }
517 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_FlushApzRepaints", OTHER);
518 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_FlushApzRepaints__ID, (&(mState)));
519 :
520 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
521 0 : return sendok__;
522 : }
523 :
524 0 : auto PLayerTransactionChild::SendClearCachedResources() -> bool
525 : {
526 0 : IPC::Message* msg__ = PLayerTransaction::Msg_ClearCachedResources(Id());
527 :
528 :
529 :
530 :
531 :
532 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
533 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
534 : }
535 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ClearCachedResources", OTHER);
536 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_ClearCachedResources__ID, (&(mState)));
537 :
538 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
539 0 : return sendok__;
540 : }
541 :
542 0 : auto PLayerTransactionChild::SendForceComposite() -> bool
543 : {
544 0 : IPC::Message* msg__ = PLayerTransaction::Msg_ForceComposite(Id());
545 :
546 :
547 :
548 :
549 :
550 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
551 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
552 : }
553 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ForceComposite", OTHER);
554 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_ForceComposite__ID, (&(mState)));
555 :
556 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
557 0 : return sendok__;
558 : }
559 :
560 0 : auto PLayerTransactionChild::SendGetAPZTestData(APZTestData* data) -> bool
561 : {
562 0 : IPC::Message* msg__ = PLayerTransaction::Msg_GetAPZTestData(Id());
563 :
564 :
565 0 : (msg__)->set_sync();
566 :
567 :
568 0 : Message reply__;
569 :
570 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
571 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
572 : }
573 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetAPZTestData", OTHER);
574 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_GetAPZTestData__ID, (&(mState)));
575 :
576 : bool sendok__;
577 : {
578 : AutoProfilerTracing syncIPCTracer(
579 : "IPC",
580 0 : "PLayerTransaction::Msg_GetAPZTestData");
581 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
582 : }
583 0 : if ((!(sendok__))) {
584 0 : return false;
585 : }
586 :
587 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
588 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
589 : }
590 :
591 0 : PickleIterator iter__(reply__);
592 :
593 0 : if ((!(Read(data, (&(reply__)), (&(iter__)))))) {
594 0 : FatalError("Error deserializing 'APZTestData'");
595 0 : return false;
596 : }
597 : // Sentinel = 'data'
598 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 843352540)))) {
599 0 : mozilla::ipc::SentinelReadError("Error deserializing 'APZTestData'");
600 0 : return false;
601 : }
602 0 : (reply__).EndRead(iter__, (reply__).type());
603 :
604 0 : return true;
605 : }
606 :
607 0 : auto PLayerTransactionChild::SendRequestProperty(
608 : const nsString& property,
609 : float* value) -> bool
610 : {
611 0 : IPC::Message* msg__ = PLayerTransaction::Msg_RequestProperty(Id());
612 :
613 0 : Write(property, msg__);
614 : // Sentinel = 'property'
615 0 : (msg__)->WriteSentinel(1482237307);
616 :
617 0 : (msg__)->set_sync();
618 :
619 :
620 0 : Message reply__;
621 :
622 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
623 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
624 : }
625 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_RequestProperty", OTHER);
626 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_RequestProperty__ID, (&(mState)));
627 :
628 : bool sendok__;
629 : {
630 : AutoProfilerTracing syncIPCTracer(
631 : "IPC",
632 0 : "PLayerTransaction::Msg_RequestProperty");
633 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
634 : }
635 0 : if ((!(sendok__))) {
636 0 : return false;
637 : }
638 :
639 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
640 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
641 : }
642 :
643 0 : PickleIterator iter__(reply__);
644 :
645 0 : if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
646 0 : FatalError("Error deserializing 'float'");
647 0 : return false;
648 : }
649 : // Sentinel = 'value'
650 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
651 0 : mozilla::ipc::SentinelReadError("Error deserializing 'float'");
652 0 : return false;
653 : }
654 0 : (reply__).EndRead(iter__, (reply__).type());
655 :
656 0 : return true;
657 : }
658 :
659 1 : auto PLayerTransactionChild::SendGetTextureFactoryIdentifier(TextureFactoryIdentifier* aIdentifier) -> bool
660 : {
661 1 : IPC::Message* msg__ = PLayerTransaction::Msg_GetTextureFactoryIdentifier(Id());
662 :
663 :
664 1 : (msg__)->set_sync();
665 :
666 :
667 2 : Message reply__;
668 :
669 1 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
670 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
671 : }
672 2 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetTextureFactoryIdentifier", OTHER);
673 1 : PLayerTransaction::Transition(PLayerTransaction::Msg_GetTextureFactoryIdentifier__ID, (&(mState)));
674 :
675 : bool sendok__;
676 : {
677 : AutoProfilerTracing syncIPCTracer(
678 : "IPC",
679 2 : "PLayerTransaction::Msg_GetTextureFactoryIdentifier");
680 1 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
681 : }
682 1 : if ((!(sendok__))) {
683 0 : return false;
684 : }
685 :
686 1 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
687 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
688 : }
689 :
690 1 : PickleIterator iter__(reply__);
691 :
692 1 : if ((!(Read(aIdentifier, (&(reply__)), (&(iter__)))))) {
693 0 : FatalError("Error deserializing 'TextureFactoryIdentifier'");
694 0 : return false;
695 : }
696 : // Sentinel = 'aIdentifier'
697 1 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3975378435)))) {
698 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TextureFactoryIdentifier'");
699 0 : return false;
700 : }
701 1 : (reply__).EndRead(iter__, (reply__).type());
702 :
703 1 : return true;
704 : }
705 :
706 0 : auto PLayerTransactionChild::SendRecordPaintTimes(const PaintTiming& timing) -> bool
707 : {
708 0 : IPC::Message* msg__ = PLayerTransaction::Msg_RecordPaintTimes(Id());
709 :
710 0 : Write(timing, msg__);
711 : // Sentinel = 'timing'
712 0 : (msg__)->WriteSentinel(3852786776);
713 :
714 :
715 :
716 :
717 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
718 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
719 : }
720 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_RecordPaintTimes", OTHER);
721 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_RecordPaintTimes__ID, (&(mState)));
722 :
723 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
724 0 : return sendok__;
725 : }
726 :
727 0 : auto PLayerTransactionChild::SendShutdown() -> bool
728 : {
729 0 : IPC::Message* msg__ = PLayerTransaction::Msg_Shutdown(Id());
730 :
731 :
732 :
733 :
734 :
735 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
736 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
737 : }
738 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_Shutdown", OTHER);
739 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_Shutdown__ID, (&(mState)));
740 :
741 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
742 0 : return sendok__;
743 : }
744 :
745 0 : auto PLayerTransactionChild::SendShutdownSync() -> bool
746 : {
747 0 : IPC::Message* msg__ = PLayerTransaction::Msg_ShutdownSync(Id());
748 :
749 :
750 0 : (msg__)->set_sync();
751 :
752 :
753 0 : Message reply__;
754 :
755 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
756 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
757 : }
758 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ShutdownSync", OTHER);
759 0 : PLayerTransaction::Transition(PLayerTransaction::Msg_ShutdownSync__ID, (&(mState)));
760 :
761 : bool sendok__;
762 : {
763 : AutoProfilerTracing syncIPCTracer(
764 : "IPC",
765 0 : "PLayerTransaction::Msg_ShutdownSync");
766 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
767 : }
768 0 : if ((!(sendok__))) {
769 0 : return false;
770 : }
771 :
772 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
773 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
774 : }
775 :
776 0 : return true;
777 : }
778 :
779 0 : auto PLayerTransactionChild::RemoveManagee(
780 : int32_t aProtocolId,
781 : ProtocolBase* aListener) -> void
782 : {
783 0 : FatalError("unreached");
784 0 : return;
785 : }
786 :
787 0 : auto PLayerTransactionChild::OnMessageReceived(const Message& msg__) -> PLayerTransactionChild::Result
788 : {
789 0 : switch ((msg__).type()) {
790 : case PLayerTransaction::Msg___delete____ID:
791 : {
792 0 : if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionChild")) {
793 0 : mozilla::ipc::LogMessageForProtocol("PLayerTransactionChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
794 : }
795 0 : AUTO_PROFILER_LABEL("PLayerTransaction::Msg___delete__", OTHER);
796 :
797 0 : PickleIterator iter__(msg__);
798 : PLayerTransactionChild* actor;
799 :
800 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
801 0 : FatalError("Error deserializing 'PLayerTransactionChild'");
802 0 : return MsgValueError;
803 : }
804 : // Sentinel = 'actor'
805 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
806 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PLayerTransactionChild'");
807 0 : return MsgValueError;
808 : }
809 0 : (msg__).EndRead(iter__, (msg__).type());
810 0 : PLayerTransaction::Transition(PLayerTransaction::Msg___delete____ID, (&(mState)));
811 0 : if ((!(Recv__delete__()))) {
812 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
813 : // Error handled in mozilla::ipc::IPCResult
814 0 : return MsgProcessingError;
815 : }
816 :
817 :
818 0 : IProtocol* mgr = (actor)->Manager();
819 0 : (actor)->DestroySubtree(Deletion);
820 0 : (actor)->DeallocSubtree();
821 0 : (mgr)->RemoveManagee(PLayerTransactionMsgStart, actor);
822 :
823 0 : return MsgProcessed;
824 : }
825 : default:
826 : {
827 0 : return MsgNotKnown;
828 : }
829 : }
830 : }
831 :
832 0 : auto PLayerTransactionChild::OnMessageReceived(
833 : const Message& msg__,
834 : Message*& reply__) -> PLayerTransactionChild::Result
835 : {
836 0 : return MsgNotKnown;
837 : }
838 :
839 0 : auto PLayerTransactionChild::OnCallReceived(
840 : const Message& msg__,
841 : Message*& reply__) -> PLayerTransactionChild::Result
842 : {
843 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
844 : return MsgNotKnown;
845 : }
846 :
847 0 : auto PLayerTransactionChild::GetProtocolTypeId() -> int32_t
848 : {
849 0 : return PLayerTransactionMsgStart;
850 : }
851 :
852 0 : auto PLayerTransactionChild::ProtocolName() const -> const char*
853 : {
854 0 : return "PLayerTransactionChild";
855 : }
856 :
857 0 : auto PLayerTransactionChild::DestroySubtree(ActorDestroyReason why) -> void
858 : {
859 : // Unregister from our manager.
860 0 : Unregister(Id());
861 :
862 : // Reject owning pending promises.
863 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
864 :
865 : // Finally, destroy "us".
866 0 : ActorDestroy(why);
867 0 : }
868 :
869 0 : auto PLayerTransactionChild::DeallocSubtree() -> void
870 : {
871 0 : }
872 :
873 0 : auto PLayerTransactionChild::Write(
874 : const CubicBezierFunction& v__,
875 : Message* msg__) -> void
876 : {
877 0 : Write((v__).x1(), msg__);
878 : // Sentinel = 'x1'
879 0 : (msg__)->WriteSentinel(739453787);
880 0 : Write((v__).y1(), msg__);
881 : // Sentinel = 'y1'
882 0 : (msg__)->WriteSentinel(2893099544);
883 0 : Write((v__).x2(), msg__);
884 : // Sentinel = 'x2'
885 0 : (msg__)->WriteSentinel(739453784);
886 0 : Write((v__).y2(), msg__);
887 : // Sentinel = 'y2'
888 0 : (msg__)->WriteSentinel(2893099547);
889 0 : }
890 :
891 0 : auto PLayerTransactionChild::Read(
892 : CubicBezierFunction* v__,
893 : const Message* msg__,
894 : PickleIterator* iter__) -> bool
895 : {
896 0 : if ((!(Read((&((v__)->x1())), msg__, iter__)))) {
897 0 : FatalError("Error deserializing 'x1' (float) member of 'CubicBezierFunction'");
898 0 : return false;
899 : }
900 : // Sentinel = 'x1'
901 0 : if ((!((msg__)->ReadSentinel(iter__, 739453787)))) {
902 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x1' (float) member of 'CubicBezierFunction'");
903 0 : return false;
904 : }
905 0 : if ((!(Read((&((v__)->y1())), msg__, iter__)))) {
906 0 : FatalError("Error deserializing 'y1' (float) member of 'CubicBezierFunction'");
907 0 : return false;
908 : }
909 : // Sentinel = 'y1'
910 0 : if ((!((msg__)->ReadSentinel(iter__, 2893099544)))) {
911 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y1' (float) member of 'CubicBezierFunction'");
912 0 : return false;
913 : }
914 0 : if ((!(Read((&((v__)->x2())), msg__, iter__)))) {
915 0 : FatalError("Error deserializing 'x2' (float) member of 'CubicBezierFunction'");
916 0 : return false;
917 : }
918 : // Sentinel = 'x2'
919 0 : if ((!((msg__)->ReadSentinel(iter__, 739453784)))) {
920 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x2' (float) member of 'CubicBezierFunction'");
921 0 : return false;
922 : }
923 0 : if ((!(Read((&((v__)->y2())), msg__, iter__)))) {
924 0 : FatalError("Error deserializing 'y2' (float) member of 'CubicBezierFunction'");
925 0 : return false;
926 : }
927 : // Sentinel = 'y2'
928 0 : if ((!((msg__)->ReadSentinel(iter__, 2893099547)))) {
929 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y2' (float) member of 'CubicBezierFunction'");
930 0 : return false;
931 : }
932 0 : return true;
933 : }
934 :
935 2 : auto PLayerTransactionChild::Write(
936 : const OpDestroy& v__,
937 : Message* msg__) -> void
938 : {
939 : typedef OpDestroy type__;
940 2 : Write(int((v__).type()), msg__);
941 : // Sentinel = 'OpDestroy'
942 2 : (msg__)->WriteSentinel(3796861956);
943 :
944 2 : switch ((v__).type()) {
945 : case type__::TPTextureParent:
946 : {
947 0 : FatalError("wrong side!");
948 0 : return;
949 : }
950 : case type__::TPTextureChild:
951 : {
952 2 : Write((v__).get_PTextureChild(), msg__, false);
953 : // Sentinel = 'TPTextureChild'
954 2 : (msg__)->WriteSentinel(3251900187);
955 2 : return;
956 : }
957 : case type__::TCompositableHandle:
958 : {
959 0 : Write((v__).get_CompositableHandle(), msg__);
960 : // Sentinel = 'TCompositableHandle'
961 0 : (msg__)->WriteSentinel(4258010777);
962 0 : return;
963 : }
964 : default:
965 : {
966 0 : FatalError("unknown union type");
967 0 : return;
968 : }
969 : }
970 : }
971 :
972 0 : auto PLayerTransactionChild::Read(
973 : OpDestroy* v__,
974 : const Message* msg__,
975 : PickleIterator* iter__) -> bool
976 : {
977 : typedef OpDestroy type__;
978 : int type;
979 0 : if ((!(Read((&(type)), msg__, iter__)))) {
980 0 : mozilla::ipc::UnionTypeReadError("OpDestroy");
981 0 : return false;
982 : }
983 : // Sentinel = 'OpDestroy'
984 0 : if ((!((msg__)->ReadSentinel(iter__, 3796861956)))) {
985 0 : mozilla::ipc::SentinelReadError("OpDestroy");
986 0 : return false;
987 : }
988 :
989 0 : switch (type) {
990 : case type__::TPTextureParent:
991 : {
992 0 : PTextureChild* tmp = nullptr;
993 0 : (*(v__)) = tmp;
994 0 : if ((!(Read((&((v__)->get_PTextureChild())), msg__, iter__, false)))) {
995 0 : FatalError("Error deserializing Union type");
996 0 : return false;
997 : }
998 : // Sentinel = 'TPTextureParent'
999 0 : if ((!((msg__)->ReadSentinel(iter__, 896696938)))) {
1000 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1001 0 : return false;
1002 : }
1003 0 : return true;
1004 : }
1005 : case type__::TPTextureChild:
1006 : {
1007 0 : return false;
1008 : }
1009 : case type__::TCompositableHandle:
1010 : {
1011 0 : CompositableHandle tmp = CompositableHandle();
1012 0 : (*(v__)) = tmp;
1013 0 : if ((!(Read((&((v__)->get_CompositableHandle())), msg__, iter__)))) {
1014 0 : FatalError("Error deserializing Union type");
1015 0 : return false;
1016 : }
1017 : // Sentinel = 'TCompositableHandle'
1018 0 : if ((!((msg__)->ReadSentinel(iter__, 4258010777)))) {
1019 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1020 0 : return false;
1021 : }
1022 0 : return true;
1023 : }
1024 : default:
1025 : {
1026 0 : FatalError("unknown union type");
1027 0 : return false;
1028 : }
1029 : }
1030 : }
1031 :
1032 23 : auto PLayerTransactionChild::Write(
1033 : const OpInsertAfter& v__,
1034 : Message* msg__) -> void
1035 : {
1036 23 : Write((v__).container(), msg__);
1037 : // Sentinel = 'container'
1038 23 : (msg__)->WriteSentinel(613059236);
1039 23 : Write((v__).childLayer(), msg__);
1040 : // Sentinel = 'childLayer'
1041 23 : (msg__)->WriteSentinel(154398963);
1042 23 : Write((v__).after(), msg__);
1043 : // Sentinel = 'after'
1044 23 : (msg__)->WriteSentinel(3066110411);
1045 23 : }
1046 :
1047 0 : auto PLayerTransactionChild::Read(
1048 : OpInsertAfter* v__,
1049 : const Message* msg__,
1050 : PickleIterator* iter__) -> bool
1051 : {
1052 0 : if ((!(Read((&((v__)->container())), msg__, iter__)))) {
1053 0 : FatalError("Error deserializing 'container' (LayerHandle) member of 'OpInsertAfter'");
1054 0 : return false;
1055 : }
1056 : // Sentinel = 'container'
1057 0 : if ((!((msg__)->ReadSentinel(iter__, 613059236)))) {
1058 0 : mozilla::ipc::SentinelReadError("Error deserializing 'container' (LayerHandle) member of 'OpInsertAfter'");
1059 0 : return false;
1060 : }
1061 0 : if ((!(Read((&((v__)->childLayer())), msg__, iter__)))) {
1062 0 : FatalError("Error deserializing 'childLayer' (LayerHandle) member of 'OpInsertAfter'");
1063 0 : return false;
1064 : }
1065 : // Sentinel = 'childLayer'
1066 0 : if ((!((msg__)->ReadSentinel(iter__, 154398963)))) {
1067 0 : mozilla::ipc::SentinelReadError("Error deserializing 'childLayer' (LayerHandle) member of 'OpInsertAfter'");
1068 0 : return false;
1069 : }
1070 0 : if ((!(Read((&((v__)->after())), msg__, iter__)))) {
1071 0 : FatalError("Error deserializing 'after' (LayerHandle) member of 'OpInsertAfter'");
1072 0 : return false;
1073 : }
1074 : // Sentinel = 'after'
1075 0 : if ((!((msg__)->ReadSentinel(iter__, 3066110411)))) {
1076 0 : mozilla::ipc::SentinelReadError("Error deserializing 'after' (LayerHandle) member of 'OpInsertAfter'");
1077 0 : return false;
1078 : }
1079 0 : return true;
1080 : }
1081 :
1082 0 : auto PLayerTransactionChild::Write(
1083 : const TextLayerAttributes& v__,
1084 : Message* msg__) -> void
1085 : {
1086 0 : Write((v__).bounds(), msg__);
1087 : // Sentinel = 'bounds'
1088 0 : (msg__)->WriteSentinel(809584493);
1089 0 : Write((v__).glyphs(), msg__);
1090 : // Sentinel = 'glyphs'
1091 0 : (msg__)->WriteSentinel(2497623611);
1092 0 : Write((v__).scaledFont(), msg__);
1093 : // Sentinel = 'scaledFont'
1094 0 : (msg__)->WriteSentinel(927858859);
1095 0 : }
1096 :
1097 0 : auto PLayerTransactionChild::Read(
1098 : TextLayerAttributes* v__,
1099 : const Message* msg__,
1100 : PickleIterator* iter__) -> bool
1101 : {
1102 0 : if ((!(Read((&((v__)->bounds())), msg__, iter__)))) {
1103 0 : FatalError("Error deserializing 'bounds' (IntRect) member of 'TextLayerAttributes'");
1104 0 : return false;
1105 : }
1106 : // Sentinel = 'bounds'
1107 0 : if ((!((msg__)->ReadSentinel(iter__, 809584493)))) {
1108 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bounds' (IntRect) member of 'TextLayerAttributes'");
1109 0 : return false;
1110 : }
1111 0 : if ((!(Read((&((v__)->glyphs())), msg__, iter__)))) {
1112 0 : FatalError("Error deserializing 'glyphs' (GlyphArray[]) member of 'TextLayerAttributes'");
1113 0 : return false;
1114 : }
1115 : // Sentinel = 'glyphs'
1116 0 : if ((!((msg__)->ReadSentinel(iter__, 2497623611)))) {
1117 0 : mozilla::ipc::SentinelReadError("Error deserializing 'glyphs' (GlyphArray[]) member of 'TextLayerAttributes'");
1118 0 : return false;
1119 : }
1120 0 : if ((!(Read((&((v__)->scaledFont())), msg__, iter__)))) {
1121 0 : FatalError("Error deserializing 'scaledFont' (uintptr_t) member of 'TextLayerAttributes'");
1122 0 : return false;
1123 : }
1124 : // Sentinel = 'scaledFont'
1125 0 : if ((!((msg__)->ReadSentinel(iter__, 927858859)))) {
1126 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaledFont' (uintptr_t) member of 'TextLayerAttributes'");
1127 0 : return false;
1128 : }
1129 0 : return true;
1130 : }
1131 :
1132 0 : auto PLayerTransactionChild::Write(
1133 : const ShmemSection& v__,
1134 : Message* msg__) -> void
1135 : {
1136 0 : Write((v__).shmem(), msg__);
1137 : // Sentinel = 'shmem'
1138 0 : (msg__)->WriteSentinel(4252604405);
1139 0 : Write((v__).offset(), msg__);
1140 : // Sentinel = 'offset'
1141 0 : (msg__)->WriteSentinel(1369947863);
1142 0 : Write((v__).size(), msg__);
1143 : // Sentinel = 'size'
1144 0 : (msg__)->WriteSentinel(931048223);
1145 0 : }
1146 :
1147 0 : auto PLayerTransactionChild::Read(
1148 : ShmemSection* v__,
1149 : const Message* msg__,
1150 : PickleIterator* iter__) -> bool
1151 : {
1152 0 : if ((!(Read((&((v__)->shmem())), msg__, iter__)))) {
1153 0 : FatalError("Error deserializing 'shmem' (Shmem) member of 'ShmemSection'");
1154 0 : return false;
1155 : }
1156 : // Sentinel = 'shmem'
1157 0 : if ((!((msg__)->ReadSentinel(iter__, 4252604405)))) {
1158 0 : mozilla::ipc::SentinelReadError("Error deserializing 'shmem' (Shmem) member of 'ShmemSection'");
1159 0 : return false;
1160 : }
1161 0 : if ((!(Read((&((v__)->offset())), msg__, iter__)))) {
1162 0 : FatalError("Error deserializing 'offset' (uint32_t) member of 'ShmemSection'");
1163 0 : return false;
1164 : }
1165 : // Sentinel = 'offset'
1166 0 : if ((!((msg__)->ReadSentinel(iter__, 1369947863)))) {
1167 0 : mozilla::ipc::SentinelReadError("Error deserializing 'offset' (uint32_t) member of 'ShmemSection'");
1168 0 : return false;
1169 : }
1170 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1171 0 : FatalError("Error deserializing 'size' (size_t) member of 'ShmemSection'");
1172 0 : return false;
1173 : }
1174 : // Sentinel = 'size'
1175 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1176 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (size_t) member of 'ShmemSection'");
1177 0 : return false;
1178 : }
1179 0 : return true;
1180 : }
1181 :
1182 0 : auto PLayerTransactionChild::Write(
1183 : const PlaceholderTileDescriptor& v__,
1184 : Message* msg__) -> void
1185 : {
1186 0 : }
1187 :
1188 0 : auto PLayerTransactionChild::Read(
1189 : PlaceholderTileDescriptor* v__,
1190 : const Message* msg__,
1191 : PickleIterator* iter__) -> bool
1192 : {
1193 0 : return true;
1194 : }
1195 :
1196 0 : auto PLayerTransactionChild::Write(
1197 : const OpRepositionChild& v__,
1198 : Message* msg__) -> void
1199 : {
1200 0 : Write((v__).container(), msg__);
1201 : // Sentinel = 'container'
1202 0 : (msg__)->WriteSentinel(613059236);
1203 0 : Write((v__).childLayer(), msg__);
1204 : // Sentinel = 'childLayer'
1205 0 : (msg__)->WriteSentinel(154398963);
1206 0 : Write((v__).after(), msg__);
1207 : // Sentinel = 'after'
1208 0 : (msg__)->WriteSentinel(3066110411);
1209 0 : }
1210 :
1211 0 : auto PLayerTransactionChild::Read(
1212 : OpRepositionChild* v__,
1213 : const Message* msg__,
1214 : PickleIterator* iter__) -> bool
1215 : {
1216 0 : if ((!(Read((&((v__)->container())), msg__, iter__)))) {
1217 0 : FatalError("Error deserializing 'container' (LayerHandle) member of 'OpRepositionChild'");
1218 0 : return false;
1219 : }
1220 : // Sentinel = 'container'
1221 0 : if ((!((msg__)->ReadSentinel(iter__, 613059236)))) {
1222 0 : mozilla::ipc::SentinelReadError("Error deserializing 'container' (LayerHandle) member of 'OpRepositionChild'");
1223 0 : return false;
1224 : }
1225 0 : if ((!(Read((&((v__)->childLayer())), msg__, iter__)))) {
1226 0 : FatalError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRepositionChild'");
1227 0 : return false;
1228 : }
1229 : // Sentinel = 'childLayer'
1230 0 : if ((!((msg__)->ReadSentinel(iter__, 154398963)))) {
1231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRepositionChild'");
1232 0 : return false;
1233 : }
1234 0 : if ((!(Read((&((v__)->after())), msg__, iter__)))) {
1235 0 : FatalError("Error deserializing 'after' (LayerHandle) member of 'OpRepositionChild'");
1236 0 : return false;
1237 : }
1238 : // Sentinel = 'after'
1239 0 : if ((!((msg__)->ReadSentinel(iter__, 3066110411)))) {
1240 0 : mozilla::ipc::SentinelReadError("Error deserializing 'after' (LayerHandle) member of 'OpRepositionChild'");
1241 0 : return false;
1242 : }
1243 0 : return true;
1244 : }
1245 :
1246 0 : auto PLayerTransactionChild::Write(
1247 : const Perspective& v__,
1248 : Message* msg__) -> void
1249 : {
1250 0 : Write((v__).value(), msg__);
1251 : // Sentinel = 'value'
1252 0 : (msg__)->WriteSentinel(3456818542);
1253 0 : }
1254 :
1255 0 : auto PLayerTransactionChild::Read(
1256 : Perspective* v__,
1257 : const Message* msg__,
1258 : PickleIterator* iter__) -> bool
1259 : {
1260 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
1261 0 : FatalError("Error deserializing 'value' (float) member of 'Perspective'");
1262 0 : return false;
1263 : }
1264 : // Sentinel = 'value'
1265 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
1266 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (float) member of 'Perspective'");
1267 0 : return false;
1268 : }
1269 0 : return true;
1270 : }
1271 :
1272 124 : auto PLayerTransactionChild::Write(
1273 : const LayerAttributes& v__,
1274 : Message* msg__) -> void
1275 : {
1276 124 : Write((v__).common(), msg__);
1277 : // Sentinel = 'common'
1278 124 : (msg__)->WriteSentinel(2459522165);
1279 124 : Write((v__).specific(), msg__);
1280 : // Sentinel = 'specific'
1281 124 : (msg__)->WriteSentinel(1386407536);
1282 124 : }
1283 :
1284 0 : auto PLayerTransactionChild::Read(
1285 : LayerAttributes* v__,
1286 : const Message* msg__,
1287 : PickleIterator* iter__) -> bool
1288 : {
1289 0 : if ((!(Read((&((v__)->common())), msg__, iter__)))) {
1290 0 : FatalError("Error deserializing 'common' (CommonLayerAttributes) member of 'LayerAttributes'");
1291 0 : return false;
1292 : }
1293 : // Sentinel = 'common'
1294 0 : if ((!((msg__)->ReadSentinel(iter__, 2459522165)))) {
1295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'common' (CommonLayerAttributes) member of 'LayerAttributes'");
1296 0 : return false;
1297 : }
1298 0 : if ((!(Read((&((v__)->specific())), msg__, iter__)))) {
1299 0 : FatalError("Error deserializing 'specific' (SpecificLayerAttributes) member of 'LayerAttributes'");
1300 0 : return false;
1301 : }
1302 : // Sentinel = 'specific'
1303 0 : if ((!((msg__)->ReadSentinel(iter__, 1386407536)))) {
1304 0 : mozilla::ipc::SentinelReadError("Error deserializing 'specific' (SpecificLayerAttributes) member of 'LayerAttributes'");
1305 0 : return false;
1306 : }
1307 0 : return true;
1308 : }
1309 :
1310 0 : auto PLayerTransactionChild::Write(
1311 : const TransformFunction& v__,
1312 : Message* msg__) -> void
1313 : {
1314 : typedef TransformFunction type__;
1315 0 : Write(int((v__).type()), msg__);
1316 : // Sentinel = 'TransformFunction'
1317 0 : (msg__)->WriteSentinel(2553734589);
1318 :
1319 0 : switch ((v__).type()) {
1320 : case type__::TPerspective:
1321 : {
1322 0 : Write((v__).get_Perspective(), msg__);
1323 : // Sentinel = 'TPerspective'
1324 0 : (msg__)->WriteSentinel(536769614);
1325 0 : return;
1326 : }
1327 : case type__::TRotationX:
1328 : {
1329 0 : Write((v__).get_RotationX(), msg__);
1330 : // Sentinel = 'TRotationX'
1331 0 : (msg__)->WriteSentinel(3076537720);
1332 0 : return;
1333 : }
1334 : case type__::TRotationY:
1335 : {
1336 0 : Write((v__).get_RotationY(), msg__);
1337 : // Sentinel = 'TRotationY'
1338 0 : (msg__)->WriteSentinel(3076537721);
1339 0 : return;
1340 : }
1341 : case type__::TRotationZ:
1342 : {
1343 0 : Write((v__).get_RotationZ(), msg__);
1344 : // Sentinel = 'TRotationZ'
1345 0 : (msg__)->WriteSentinel(3076537722);
1346 0 : return;
1347 : }
1348 : case type__::TRotation:
1349 : {
1350 0 : Write((v__).get_Rotation(), msg__);
1351 : // Sentinel = 'TRotation'
1352 0 : (msg__)->WriteSentinel(204395655);
1353 0 : return;
1354 : }
1355 : case type__::TRotation3D:
1356 : {
1357 0 : Write((v__).get_Rotation3D(), msg__);
1358 : // Sentinel = 'TRotation3D'
1359 0 : (msg__)->WriteSentinel(1650945988);
1360 0 : return;
1361 : }
1362 : case type__::TScale:
1363 : {
1364 0 : Write((v__).get_Scale(), msg__);
1365 : // Sentinel = 'TScale'
1366 0 : (msg__)->WriteSentinel(4188009060);
1367 0 : return;
1368 : }
1369 : case type__::TSkew:
1370 : {
1371 0 : Write((v__).get_Skew(), msg__);
1372 : // Sentinel = 'TSkew'
1373 0 : (msg__)->WriteSentinel(398444919);
1374 0 : return;
1375 : }
1376 : case type__::TSkewX:
1377 : {
1378 0 : Write((v__).get_SkewX(), msg__);
1379 : // Sentinel = 'TSkewX'
1380 0 : (msg__)->WriteSentinel(1993284744);
1381 0 : return;
1382 : }
1383 : case type__::TSkewY:
1384 : {
1385 0 : Write((v__).get_SkewY(), msg__);
1386 : // Sentinel = 'TSkewY'
1387 0 : (msg__)->WriteSentinel(1993284745);
1388 0 : return;
1389 : }
1390 : case type__::TTranslation:
1391 : {
1392 0 : Write((v__).get_Translation(), msg__);
1393 : // Sentinel = 'TTranslation'
1394 0 : (msg__)->WriteSentinel(2021428737);
1395 0 : return;
1396 : }
1397 : case type__::TTransformMatrix:
1398 : {
1399 0 : Write((v__).get_TransformMatrix(), msg__);
1400 : // Sentinel = 'TTransformMatrix'
1401 0 : (msg__)->WriteSentinel(2585816443);
1402 0 : return;
1403 : }
1404 : default:
1405 : {
1406 0 : FatalError("unknown union type");
1407 0 : return;
1408 : }
1409 : }
1410 : }
1411 :
1412 0 : auto PLayerTransactionChild::Read(
1413 : TransformFunction* v__,
1414 : const Message* msg__,
1415 : PickleIterator* iter__) -> bool
1416 : {
1417 : typedef TransformFunction type__;
1418 : int type;
1419 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1420 0 : mozilla::ipc::UnionTypeReadError("TransformFunction");
1421 0 : return false;
1422 : }
1423 : // Sentinel = 'TransformFunction'
1424 0 : if ((!((msg__)->ReadSentinel(iter__, 2553734589)))) {
1425 0 : mozilla::ipc::SentinelReadError("TransformFunction");
1426 0 : return false;
1427 : }
1428 :
1429 0 : switch (type) {
1430 : case type__::TPerspective:
1431 : {
1432 0 : Perspective tmp = Perspective();
1433 0 : (*(v__)) = tmp;
1434 0 : if ((!(Read((&((v__)->get_Perspective())), msg__, iter__)))) {
1435 0 : FatalError("Error deserializing Union type");
1436 0 : return false;
1437 : }
1438 : // Sentinel = 'TPerspective'
1439 0 : if ((!((msg__)->ReadSentinel(iter__, 536769614)))) {
1440 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1441 0 : return false;
1442 : }
1443 0 : return true;
1444 : }
1445 : case type__::TRotationX:
1446 : {
1447 0 : RotationX tmp = RotationX();
1448 0 : (*(v__)) = tmp;
1449 0 : if ((!(Read((&((v__)->get_RotationX())), msg__, iter__)))) {
1450 0 : FatalError("Error deserializing Union type");
1451 0 : return false;
1452 : }
1453 : // Sentinel = 'TRotationX'
1454 0 : if ((!((msg__)->ReadSentinel(iter__, 3076537720)))) {
1455 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1456 0 : return false;
1457 : }
1458 0 : return true;
1459 : }
1460 : case type__::TRotationY:
1461 : {
1462 0 : RotationY tmp = RotationY();
1463 0 : (*(v__)) = tmp;
1464 0 : if ((!(Read((&((v__)->get_RotationY())), msg__, iter__)))) {
1465 0 : FatalError("Error deserializing Union type");
1466 0 : return false;
1467 : }
1468 : // Sentinel = 'TRotationY'
1469 0 : if ((!((msg__)->ReadSentinel(iter__, 3076537721)))) {
1470 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1471 0 : return false;
1472 : }
1473 0 : return true;
1474 : }
1475 : case type__::TRotationZ:
1476 : {
1477 0 : RotationZ tmp = RotationZ();
1478 0 : (*(v__)) = tmp;
1479 0 : if ((!(Read((&((v__)->get_RotationZ())), msg__, iter__)))) {
1480 0 : FatalError("Error deserializing Union type");
1481 0 : return false;
1482 : }
1483 : // Sentinel = 'TRotationZ'
1484 0 : if ((!((msg__)->ReadSentinel(iter__, 3076537722)))) {
1485 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1486 0 : return false;
1487 : }
1488 0 : return true;
1489 : }
1490 : case type__::TRotation:
1491 : {
1492 0 : Rotation tmp = Rotation();
1493 0 : (*(v__)) = tmp;
1494 0 : if ((!(Read((&((v__)->get_Rotation())), msg__, iter__)))) {
1495 0 : FatalError("Error deserializing Union type");
1496 0 : return false;
1497 : }
1498 : // Sentinel = 'TRotation'
1499 0 : if ((!((msg__)->ReadSentinel(iter__, 204395655)))) {
1500 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1501 0 : return false;
1502 : }
1503 0 : return true;
1504 : }
1505 : case type__::TRotation3D:
1506 : {
1507 0 : Rotation3D tmp = Rotation3D();
1508 0 : (*(v__)) = tmp;
1509 0 : if ((!(Read((&((v__)->get_Rotation3D())), msg__, iter__)))) {
1510 0 : FatalError("Error deserializing Union type");
1511 0 : return false;
1512 : }
1513 : // Sentinel = 'TRotation3D'
1514 0 : if ((!((msg__)->ReadSentinel(iter__, 1650945988)))) {
1515 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1516 0 : return false;
1517 : }
1518 0 : return true;
1519 : }
1520 : case type__::TScale:
1521 : {
1522 0 : Scale tmp = Scale();
1523 0 : (*(v__)) = tmp;
1524 0 : if ((!(Read((&((v__)->get_Scale())), msg__, iter__)))) {
1525 0 : FatalError("Error deserializing Union type");
1526 0 : return false;
1527 : }
1528 : // Sentinel = 'TScale'
1529 0 : if ((!((msg__)->ReadSentinel(iter__, 4188009060)))) {
1530 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1531 0 : return false;
1532 : }
1533 0 : return true;
1534 : }
1535 : case type__::TSkew:
1536 : {
1537 0 : Skew tmp = Skew();
1538 0 : (*(v__)) = tmp;
1539 0 : if ((!(Read((&((v__)->get_Skew())), msg__, iter__)))) {
1540 0 : FatalError("Error deserializing Union type");
1541 0 : return false;
1542 : }
1543 : // Sentinel = 'TSkew'
1544 0 : if ((!((msg__)->ReadSentinel(iter__, 398444919)))) {
1545 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1546 0 : return false;
1547 : }
1548 0 : return true;
1549 : }
1550 : case type__::TSkewX:
1551 : {
1552 0 : SkewX tmp = SkewX();
1553 0 : (*(v__)) = tmp;
1554 0 : if ((!(Read((&((v__)->get_SkewX())), msg__, iter__)))) {
1555 0 : FatalError("Error deserializing Union type");
1556 0 : return false;
1557 : }
1558 : // Sentinel = 'TSkewX'
1559 0 : if ((!((msg__)->ReadSentinel(iter__, 1993284744)))) {
1560 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1561 0 : return false;
1562 : }
1563 0 : return true;
1564 : }
1565 : case type__::TSkewY:
1566 : {
1567 0 : SkewY tmp = SkewY();
1568 0 : (*(v__)) = tmp;
1569 0 : if ((!(Read((&((v__)->get_SkewY())), msg__, iter__)))) {
1570 0 : FatalError("Error deserializing Union type");
1571 0 : return false;
1572 : }
1573 : // Sentinel = 'TSkewY'
1574 0 : if ((!((msg__)->ReadSentinel(iter__, 1993284745)))) {
1575 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1576 0 : return false;
1577 : }
1578 0 : return true;
1579 : }
1580 : case type__::TTranslation:
1581 : {
1582 0 : Translation tmp = Translation();
1583 0 : (*(v__)) = tmp;
1584 0 : if ((!(Read((&((v__)->get_Translation())), msg__, iter__)))) {
1585 0 : FatalError("Error deserializing Union type");
1586 0 : return false;
1587 : }
1588 : // Sentinel = 'TTranslation'
1589 0 : if ((!((msg__)->ReadSentinel(iter__, 2021428737)))) {
1590 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1591 0 : return false;
1592 : }
1593 0 : return true;
1594 : }
1595 : case type__::TTransformMatrix:
1596 : {
1597 0 : TransformMatrix tmp = TransformMatrix();
1598 0 : (*(v__)) = tmp;
1599 0 : if ((!(Read((&((v__)->get_TransformMatrix())), msg__, iter__)))) {
1600 0 : FatalError("Error deserializing Union type");
1601 0 : return false;
1602 : }
1603 : // Sentinel = 'TTransformMatrix'
1604 0 : if ((!((msg__)->ReadSentinel(iter__, 2585816443)))) {
1605 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1606 0 : return false;
1607 : }
1608 0 : return true;
1609 : }
1610 : default:
1611 : {
1612 0 : FatalError("unknown union type");
1613 0 : return false;
1614 : }
1615 : }
1616 : }
1617 :
1618 28 : auto PLayerTransactionChild::Write(
1619 : const nsTArray<OpDestroy>& v__,
1620 : Message* msg__) -> void
1621 : {
1622 28 : uint32_t length = (v__).Length();
1623 28 : Write(length, msg__);
1624 : // Sentinel = ('length', 'OpDestroy[]')
1625 28 : (msg__)->WriteSentinel(1887202695);
1626 :
1627 30 : for (auto& elem : v__) {
1628 2 : Write(elem, msg__);
1629 : // Sentinel = 'OpDestroy[]'
1630 2 : (msg__)->WriteSentinel(2935587554);
1631 : }
1632 28 : }
1633 :
1634 0 : auto PLayerTransactionChild::Read(
1635 : nsTArray<OpDestroy>* v__,
1636 : const Message* msg__,
1637 : PickleIterator* iter__) -> bool
1638 : {
1639 0 : nsTArray<OpDestroy> fa;
1640 : uint32_t length;
1641 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1642 0 : mozilla::ipc::ArrayLengthReadError("OpDestroy[]");
1643 0 : return false;
1644 : }
1645 : // Sentinel = ('length', 'OpDestroy[]')
1646 0 : if ((!((msg__)->ReadSentinel(iter__, 1887202695)))) {
1647 0 : mozilla::ipc::SentinelReadError("OpDestroy[]");
1648 0 : return false;
1649 : }
1650 :
1651 0 : OpDestroy* elems = (fa).AppendElements(length);
1652 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1653 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1654 0 : FatalError("Error deserializing 'OpDestroy[i]'");
1655 0 : return false;
1656 : }
1657 : // Sentinel = 'OpDestroy[]'
1658 0 : if ((!((msg__)->ReadSentinel(iter__, 2935587554)))) {
1659 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OpDestroy[i]'");
1660 0 : return false;
1661 : }
1662 : }
1663 0 : (v__)->SwapElements(fa);
1664 0 : return true;
1665 : }
1666 :
1667 137 : auto PLayerTransactionChild::Write(
1668 : const Edit& v__,
1669 : Message* msg__) -> void
1670 : {
1671 : typedef Edit type__;
1672 137 : Write(int((v__).type()), msg__);
1673 : // Sentinel = 'Edit'
1674 137 : (msg__)->WriteSentinel(2038278088);
1675 :
1676 137 : switch ((v__).type()) {
1677 : case type__::TOpCreatePaintedLayer:
1678 : {
1679 22 : Write((v__).get_OpCreatePaintedLayer(), msg__);
1680 : // Sentinel = 'TOpCreatePaintedLayer'
1681 22 : (msg__)->WriteSentinel(3853495226);
1682 22 : return;
1683 : }
1684 : case type__::TOpCreateContainerLayer:
1685 : {
1686 4 : Write((v__).get_OpCreateContainerLayer(), msg__);
1687 : // Sentinel = 'TOpCreateContainerLayer'
1688 4 : (msg__)->WriteSentinel(1810998542);
1689 4 : return;
1690 : }
1691 : case type__::TOpCreateImageLayer:
1692 : {
1693 0 : Write((v__).get_OpCreateImageLayer(), msg__);
1694 : // Sentinel = 'TOpCreateImageLayer'
1695 0 : (msg__)->WriteSentinel(3556379108);
1696 0 : return;
1697 : }
1698 : case type__::TOpCreateColorLayer:
1699 : {
1700 4 : Write((v__).get_OpCreateColorLayer(), msg__);
1701 : // Sentinel = 'TOpCreateColorLayer'
1702 4 : (msg__)->WriteSentinel(1657969326);
1703 4 : return;
1704 : }
1705 : case type__::TOpCreateTextLayer:
1706 : {
1707 0 : Write((v__).get_OpCreateTextLayer(), msg__);
1708 : // Sentinel = 'TOpCreateTextLayer'
1709 0 : (msg__)->WriteSentinel(3677396385);
1710 0 : return;
1711 : }
1712 : case type__::TOpCreateBorderLayer:
1713 : {
1714 0 : Write((v__).get_OpCreateBorderLayer(), msg__);
1715 : // Sentinel = 'TOpCreateBorderLayer'
1716 0 : (msg__)->WriteSentinel(3102637726);
1717 0 : return;
1718 : }
1719 : case type__::TOpCreateCanvasLayer:
1720 : {
1721 0 : Write((v__).get_OpCreateCanvasLayer(), msg__);
1722 : // Sentinel = 'TOpCreateCanvasLayer'
1723 0 : (msg__)->WriteSentinel(156843276);
1724 0 : return;
1725 : }
1726 : case type__::TOpCreateRefLayer:
1727 : {
1728 1 : Write((v__).get_OpCreateRefLayer(), msg__);
1729 : // Sentinel = 'TOpCreateRefLayer'
1730 1 : (msg__)->WriteSentinel(1988949338);
1731 1 : return;
1732 : }
1733 : case type__::TOpSetDiagnosticTypes:
1734 : {
1735 0 : Write((v__).get_OpSetDiagnosticTypes(), msg__);
1736 : // Sentinel = 'TOpSetDiagnosticTypes'
1737 0 : (msg__)->WriteSentinel(2447105948);
1738 0 : return;
1739 : }
1740 : case type__::TOpWindowOverlayChanged:
1741 : {
1742 0 : Write((v__).get_OpWindowOverlayChanged(), msg__);
1743 : // Sentinel = 'TOpWindowOverlayChanged'
1744 0 : (msg__)->WriteSentinel(3466220546);
1745 0 : return;
1746 : }
1747 : case type__::TOpSetRoot:
1748 : {
1749 4 : Write((v__).get_OpSetRoot(), msg__);
1750 : // Sentinel = 'TOpSetRoot'
1751 4 : (msg__)->WriteSentinel(2410055009);
1752 4 : return;
1753 : }
1754 : case type__::TOpInsertAfter:
1755 : {
1756 23 : Write((v__).get_OpInsertAfter(), msg__);
1757 : // Sentinel = 'TOpInsertAfter'
1758 23 : (msg__)->WriteSentinel(1382649822);
1759 23 : return;
1760 : }
1761 : case type__::TOpPrependChild:
1762 : {
1763 4 : Write((v__).get_OpPrependChild(), msg__);
1764 : // Sentinel = 'TOpPrependChild'
1765 4 : (msg__)->WriteSentinel(444055092);
1766 4 : return;
1767 : }
1768 : case type__::TOpRemoveChild:
1769 : {
1770 20 : Write((v__).get_OpRemoveChild(), msg__);
1771 : // Sentinel = 'TOpRemoveChild'
1772 20 : (msg__)->WriteSentinel(2988995859);
1773 20 : return;
1774 : }
1775 : case type__::TOpRepositionChild:
1776 : {
1777 0 : Write((v__).get_OpRepositionChild(), msg__);
1778 : // Sentinel = 'TOpRepositionChild'
1779 0 : (msg__)->WriteSentinel(2467889549);
1780 0 : return;
1781 : }
1782 : case type__::TOpRaiseToTopChild:
1783 : {
1784 0 : Write((v__).get_OpRaiseToTopChild(), msg__);
1785 : // Sentinel = 'TOpRaiseToTopChild'
1786 0 : (msg__)->WriteSentinel(2024445967);
1787 0 : return;
1788 : }
1789 : case type__::TOpAttachCompositable:
1790 : {
1791 22 : Write((v__).get_OpAttachCompositable(), msg__);
1792 : // Sentinel = 'TOpAttachCompositable'
1793 22 : (msg__)->WriteSentinel(1767933903);
1794 22 : return;
1795 : }
1796 : case type__::TOpAttachAsyncCompositable:
1797 : {
1798 0 : Write((v__).get_OpAttachAsyncCompositable(), msg__);
1799 : // Sentinel = 'TOpAttachAsyncCompositable'
1800 0 : (msg__)->WriteSentinel(4011154988);
1801 0 : return;
1802 : }
1803 : case type__::TCompositableOperation:
1804 : {
1805 33 : Write((v__).get_CompositableOperation(), msg__);
1806 : // Sentinel = 'TCompositableOperation'
1807 33 : (msg__)->WriteSentinel(1903999853);
1808 33 : return;
1809 : }
1810 : default:
1811 : {
1812 0 : FatalError("unknown union type");
1813 0 : return;
1814 : }
1815 : }
1816 : }
1817 :
1818 0 : auto PLayerTransactionChild::Read(
1819 : Edit* v__,
1820 : const Message* msg__,
1821 : PickleIterator* iter__) -> bool
1822 : {
1823 : typedef Edit type__;
1824 : int type;
1825 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1826 0 : mozilla::ipc::UnionTypeReadError("Edit");
1827 0 : return false;
1828 : }
1829 : // Sentinel = 'Edit'
1830 0 : if ((!((msg__)->ReadSentinel(iter__, 2038278088)))) {
1831 0 : mozilla::ipc::SentinelReadError("Edit");
1832 0 : return false;
1833 : }
1834 :
1835 0 : switch (type) {
1836 : case type__::TOpCreatePaintedLayer:
1837 : {
1838 0 : OpCreatePaintedLayer tmp = OpCreatePaintedLayer();
1839 0 : (*(v__)) = tmp;
1840 0 : if ((!(Read((&((v__)->get_OpCreatePaintedLayer())), msg__, iter__)))) {
1841 0 : FatalError("Error deserializing Union type");
1842 0 : return false;
1843 : }
1844 : // Sentinel = 'TOpCreatePaintedLayer'
1845 0 : if ((!((msg__)->ReadSentinel(iter__, 3853495226)))) {
1846 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1847 0 : return false;
1848 : }
1849 0 : return true;
1850 : }
1851 : case type__::TOpCreateContainerLayer:
1852 : {
1853 0 : OpCreateContainerLayer tmp = OpCreateContainerLayer();
1854 0 : (*(v__)) = tmp;
1855 0 : if ((!(Read((&((v__)->get_OpCreateContainerLayer())), msg__, iter__)))) {
1856 0 : FatalError("Error deserializing Union type");
1857 0 : return false;
1858 : }
1859 : // Sentinel = 'TOpCreateContainerLayer'
1860 0 : if ((!((msg__)->ReadSentinel(iter__, 1810998542)))) {
1861 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1862 0 : return false;
1863 : }
1864 0 : return true;
1865 : }
1866 : case type__::TOpCreateImageLayer:
1867 : {
1868 0 : OpCreateImageLayer tmp = OpCreateImageLayer();
1869 0 : (*(v__)) = tmp;
1870 0 : if ((!(Read((&((v__)->get_OpCreateImageLayer())), msg__, iter__)))) {
1871 0 : FatalError("Error deserializing Union type");
1872 0 : return false;
1873 : }
1874 : // Sentinel = 'TOpCreateImageLayer'
1875 0 : if ((!((msg__)->ReadSentinel(iter__, 3556379108)))) {
1876 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1877 0 : return false;
1878 : }
1879 0 : return true;
1880 : }
1881 : case type__::TOpCreateColorLayer:
1882 : {
1883 0 : OpCreateColorLayer tmp = OpCreateColorLayer();
1884 0 : (*(v__)) = tmp;
1885 0 : if ((!(Read((&((v__)->get_OpCreateColorLayer())), msg__, iter__)))) {
1886 0 : FatalError("Error deserializing Union type");
1887 0 : return false;
1888 : }
1889 : // Sentinel = 'TOpCreateColorLayer'
1890 0 : if ((!((msg__)->ReadSentinel(iter__, 1657969326)))) {
1891 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1892 0 : return false;
1893 : }
1894 0 : return true;
1895 : }
1896 : case type__::TOpCreateTextLayer:
1897 : {
1898 0 : OpCreateTextLayer tmp = OpCreateTextLayer();
1899 0 : (*(v__)) = tmp;
1900 0 : if ((!(Read((&((v__)->get_OpCreateTextLayer())), msg__, iter__)))) {
1901 0 : FatalError("Error deserializing Union type");
1902 0 : return false;
1903 : }
1904 : // Sentinel = 'TOpCreateTextLayer'
1905 0 : if ((!((msg__)->ReadSentinel(iter__, 3677396385)))) {
1906 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1907 0 : return false;
1908 : }
1909 0 : return true;
1910 : }
1911 : case type__::TOpCreateBorderLayer:
1912 : {
1913 0 : OpCreateBorderLayer tmp = OpCreateBorderLayer();
1914 0 : (*(v__)) = tmp;
1915 0 : if ((!(Read((&((v__)->get_OpCreateBorderLayer())), msg__, iter__)))) {
1916 0 : FatalError("Error deserializing Union type");
1917 0 : return false;
1918 : }
1919 : // Sentinel = 'TOpCreateBorderLayer'
1920 0 : if ((!((msg__)->ReadSentinel(iter__, 3102637726)))) {
1921 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1922 0 : return false;
1923 : }
1924 0 : return true;
1925 : }
1926 : case type__::TOpCreateCanvasLayer:
1927 : {
1928 0 : OpCreateCanvasLayer tmp = OpCreateCanvasLayer();
1929 0 : (*(v__)) = tmp;
1930 0 : if ((!(Read((&((v__)->get_OpCreateCanvasLayer())), msg__, iter__)))) {
1931 0 : FatalError("Error deserializing Union type");
1932 0 : return false;
1933 : }
1934 : // Sentinel = 'TOpCreateCanvasLayer'
1935 0 : if ((!((msg__)->ReadSentinel(iter__, 156843276)))) {
1936 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1937 0 : return false;
1938 : }
1939 0 : return true;
1940 : }
1941 : case type__::TOpCreateRefLayer:
1942 : {
1943 0 : OpCreateRefLayer tmp = OpCreateRefLayer();
1944 0 : (*(v__)) = tmp;
1945 0 : if ((!(Read((&((v__)->get_OpCreateRefLayer())), msg__, iter__)))) {
1946 0 : FatalError("Error deserializing Union type");
1947 0 : return false;
1948 : }
1949 : // Sentinel = 'TOpCreateRefLayer'
1950 0 : if ((!((msg__)->ReadSentinel(iter__, 1988949338)))) {
1951 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1952 0 : return false;
1953 : }
1954 0 : return true;
1955 : }
1956 : case type__::TOpSetDiagnosticTypes:
1957 : {
1958 0 : OpSetDiagnosticTypes tmp = OpSetDiagnosticTypes();
1959 0 : (*(v__)) = tmp;
1960 0 : if ((!(Read((&((v__)->get_OpSetDiagnosticTypes())), msg__, iter__)))) {
1961 0 : FatalError("Error deserializing Union type");
1962 0 : return false;
1963 : }
1964 : // Sentinel = 'TOpSetDiagnosticTypes'
1965 0 : if ((!((msg__)->ReadSentinel(iter__, 2447105948)))) {
1966 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1967 0 : return false;
1968 : }
1969 0 : return true;
1970 : }
1971 : case type__::TOpWindowOverlayChanged:
1972 : {
1973 0 : OpWindowOverlayChanged tmp = OpWindowOverlayChanged();
1974 0 : (*(v__)) = tmp;
1975 0 : if ((!(Read((&((v__)->get_OpWindowOverlayChanged())), msg__, iter__)))) {
1976 0 : FatalError("Error deserializing Union type");
1977 0 : return false;
1978 : }
1979 : // Sentinel = 'TOpWindowOverlayChanged'
1980 0 : if ((!((msg__)->ReadSentinel(iter__, 3466220546)))) {
1981 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1982 0 : return false;
1983 : }
1984 0 : return true;
1985 : }
1986 : case type__::TOpSetRoot:
1987 : {
1988 0 : OpSetRoot tmp = OpSetRoot();
1989 0 : (*(v__)) = tmp;
1990 0 : if ((!(Read((&((v__)->get_OpSetRoot())), msg__, iter__)))) {
1991 0 : FatalError("Error deserializing Union type");
1992 0 : return false;
1993 : }
1994 : // Sentinel = 'TOpSetRoot'
1995 0 : if ((!((msg__)->ReadSentinel(iter__, 2410055009)))) {
1996 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1997 0 : return false;
1998 : }
1999 0 : return true;
2000 : }
2001 : case type__::TOpInsertAfter:
2002 : {
2003 0 : OpInsertAfter tmp = OpInsertAfter();
2004 0 : (*(v__)) = tmp;
2005 0 : if ((!(Read((&((v__)->get_OpInsertAfter())), msg__, iter__)))) {
2006 0 : FatalError("Error deserializing Union type");
2007 0 : return false;
2008 : }
2009 : // Sentinel = 'TOpInsertAfter'
2010 0 : if ((!((msg__)->ReadSentinel(iter__, 1382649822)))) {
2011 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2012 0 : return false;
2013 : }
2014 0 : return true;
2015 : }
2016 : case type__::TOpPrependChild:
2017 : {
2018 0 : OpPrependChild tmp = OpPrependChild();
2019 0 : (*(v__)) = tmp;
2020 0 : if ((!(Read((&((v__)->get_OpPrependChild())), msg__, iter__)))) {
2021 0 : FatalError("Error deserializing Union type");
2022 0 : return false;
2023 : }
2024 : // Sentinel = 'TOpPrependChild'
2025 0 : if ((!((msg__)->ReadSentinel(iter__, 444055092)))) {
2026 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2027 0 : return false;
2028 : }
2029 0 : return true;
2030 : }
2031 : case type__::TOpRemoveChild:
2032 : {
2033 0 : OpRemoveChild tmp = OpRemoveChild();
2034 0 : (*(v__)) = tmp;
2035 0 : if ((!(Read((&((v__)->get_OpRemoveChild())), msg__, iter__)))) {
2036 0 : FatalError("Error deserializing Union type");
2037 0 : return false;
2038 : }
2039 : // Sentinel = 'TOpRemoveChild'
2040 0 : if ((!((msg__)->ReadSentinel(iter__, 2988995859)))) {
2041 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2042 0 : return false;
2043 : }
2044 0 : return true;
2045 : }
2046 : case type__::TOpRepositionChild:
2047 : {
2048 0 : OpRepositionChild tmp = OpRepositionChild();
2049 0 : (*(v__)) = tmp;
2050 0 : if ((!(Read((&((v__)->get_OpRepositionChild())), msg__, iter__)))) {
2051 0 : FatalError("Error deserializing Union type");
2052 0 : return false;
2053 : }
2054 : // Sentinel = 'TOpRepositionChild'
2055 0 : if ((!((msg__)->ReadSentinel(iter__, 2467889549)))) {
2056 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2057 0 : return false;
2058 : }
2059 0 : return true;
2060 : }
2061 : case type__::TOpRaiseToTopChild:
2062 : {
2063 0 : OpRaiseToTopChild tmp = OpRaiseToTopChild();
2064 0 : (*(v__)) = tmp;
2065 0 : if ((!(Read((&((v__)->get_OpRaiseToTopChild())), msg__, iter__)))) {
2066 0 : FatalError("Error deserializing Union type");
2067 0 : return false;
2068 : }
2069 : // Sentinel = 'TOpRaiseToTopChild'
2070 0 : if ((!((msg__)->ReadSentinel(iter__, 2024445967)))) {
2071 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2072 0 : return false;
2073 : }
2074 0 : return true;
2075 : }
2076 : case type__::TOpAttachCompositable:
2077 : {
2078 0 : OpAttachCompositable tmp = OpAttachCompositable();
2079 0 : (*(v__)) = tmp;
2080 0 : if ((!(Read((&((v__)->get_OpAttachCompositable())), msg__, iter__)))) {
2081 0 : FatalError("Error deserializing Union type");
2082 0 : return false;
2083 : }
2084 : // Sentinel = 'TOpAttachCompositable'
2085 0 : if ((!((msg__)->ReadSentinel(iter__, 1767933903)))) {
2086 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2087 0 : return false;
2088 : }
2089 0 : return true;
2090 : }
2091 : case type__::TOpAttachAsyncCompositable:
2092 : {
2093 0 : OpAttachAsyncCompositable tmp = OpAttachAsyncCompositable();
2094 0 : (*(v__)) = tmp;
2095 0 : if ((!(Read((&((v__)->get_OpAttachAsyncCompositable())), msg__, iter__)))) {
2096 0 : FatalError("Error deserializing Union type");
2097 0 : return false;
2098 : }
2099 : // Sentinel = 'TOpAttachAsyncCompositable'
2100 0 : if ((!((msg__)->ReadSentinel(iter__, 4011154988)))) {
2101 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2102 0 : return false;
2103 : }
2104 0 : return true;
2105 : }
2106 : case type__::TCompositableOperation:
2107 : {
2108 0 : CompositableOperation tmp = CompositableOperation();
2109 0 : (*(v__)) = tmp;
2110 0 : if ((!(Read((&((v__)->get_CompositableOperation())), msg__, iter__)))) {
2111 0 : FatalError("Error deserializing Union type");
2112 0 : return false;
2113 : }
2114 : // Sentinel = 'TCompositableOperation'
2115 0 : if ((!((msg__)->ReadSentinel(iter__, 1903999853)))) {
2116 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2117 0 : return false;
2118 : }
2119 0 : return true;
2120 : }
2121 : default:
2122 : {
2123 0 : FatalError("unknown union type");
2124 0 : return false;
2125 : }
2126 : }
2127 : }
2128 :
2129 0 : auto PLayerTransactionChild::Write(
2130 : const MaybeTexture& v__,
2131 : Message* msg__) -> void
2132 : {
2133 : typedef MaybeTexture type__;
2134 0 : Write(int((v__).type()), msg__);
2135 : // Sentinel = 'MaybeTexture'
2136 0 : (msg__)->WriteSentinel(264725529);
2137 :
2138 0 : switch ((v__).type()) {
2139 : case type__::TPTextureParent:
2140 : {
2141 0 : FatalError("wrong side!");
2142 0 : return;
2143 : }
2144 : case type__::TPTextureChild:
2145 : {
2146 0 : Write((v__).get_PTextureChild(), msg__, false);
2147 : // Sentinel = 'TPTextureChild'
2148 0 : (msg__)->WriteSentinel(3251900187);
2149 0 : return;
2150 : }
2151 : case type__::Tnull_t:
2152 : {
2153 0 : Write((v__).get_null_t(), msg__);
2154 : // Sentinel = 'Tnull_t'
2155 0 : (msg__)->WriteSentinel(3731137201);
2156 0 : return;
2157 : }
2158 : default:
2159 : {
2160 0 : FatalError("unknown union type");
2161 0 : return;
2162 : }
2163 : }
2164 : }
2165 :
2166 0 : auto PLayerTransactionChild::Read(
2167 : MaybeTexture* v__,
2168 : const Message* msg__,
2169 : PickleIterator* iter__) -> bool
2170 : {
2171 : typedef MaybeTexture type__;
2172 : int type;
2173 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2174 0 : mozilla::ipc::UnionTypeReadError("MaybeTexture");
2175 0 : return false;
2176 : }
2177 : // Sentinel = 'MaybeTexture'
2178 0 : if ((!((msg__)->ReadSentinel(iter__, 264725529)))) {
2179 0 : mozilla::ipc::SentinelReadError("MaybeTexture");
2180 0 : return false;
2181 : }
2182 :
2183 0 : switch (type) {
2184 : case type__::TPTextureParent:
2185 : {
2186 0 : PTextureChild* tmp = nullptr;
2187 0 : (*(v__)) = tmp;
2188 0 : if ((!(Read((&((v__)->get_PTextureChild())), msg__, iter__, false)))) {
2189 0 : FatalError("Error deserializing Union type");
2190 0 : return false;
2191 : }
2192 : // Sentinel = 'TPTextureParent'
2193 0 : if ((!((msg__)->ReadSentinel(iter__, 896696938)))) {
2194 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2195 0 : return false;
2196 : }
2197 0 : return true;
2198 : }
2199 : case type__::TPTextureChild:
2200 : {
2201 0 : return false;
2202 : }
2203 : case type__::Tnull_t:
2204 : {
2205 : null_t tmp = null_t();
2206 0 : (*(v__)) = tmp;
2207 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
2208 0 : FatalError("Error deserializing Union type");
2209 0 : return false;
2210 : }
2211 : // Sentinel = 'Tnull_t'
2212 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
2213 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2214 0 : return false;
2215 : }
2216 0 : return true;
2217 : }
2218 : default:
2219 : {
2220 0 : FatalError("unknown union type");
2221 0 : return false;
2222 : }
2223 : }
2224 : }
2225 :
2226 4 : auto PLayerTransactionChild::Write(
2227 : const ColorLayerAttributes& v__,
2228 : Message* msg__) -> void
2229 : {
2230 4 : Write((v__).color(), msg__);
2231 : // Sentinel = 'color'
2232 4 : (msg__)->WriteSentinel(2703551752);
2233 4 : Write((v__).bounds(), msg__);
2234 : // Sentinel = 'bounds'
2235 4 : (msg__)->WriteSentinel(809584493);
2236 4 : }
2237 :
2238 0 : auto PLayerTransactionChild::Read(
2239 : ColorLayerAttributes* v__,
2240 : const Message* msg__,
2241 : PickleIterator* iter__) -> bool
2242 : {
2243 0 : if ((!(Read((&((v__)->color())), msg__, iter__)))) {
2244 0 : FatalError("Error deserializing 'color' (LayerColor) member of 'ColorLayerAttributes'");
2245 0 : return false;
2246 : }
2247 : // Sentinel = 'color'
2248 0 : if ((!((msg__)->ReadSentinel(iter__, 2703551752)))) {
2249 0 : mozilla::ipc::SentinelReadError("Error deserializing 'color' (LayerColor) member of 'ColorLayerAttributes'");
2250 0 : return false;
2251 : }
2252 0 : if ((!(Read((&((v__)->bounds())), msg__, iter__)))) {
2253 0 : FatalError("Error deserializing 'bounds' (IntRect) member of 'ColorLayerAttributes'");
2254 0 : return false;
2255 : }
2256 : // Sentinel = 'bounds'
2257 0 : if ((!((msg__)->ReadSentinel(iter__, 809584493)))) {
2258 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bounds' (IntRect) member of 'ColorLayerAttributes'");
2259 0 : return false;
2260 : }
2261 0 : return true;
2262 : }
2263 :
2264 28 : auto PLayerTransactionChild::Write(
2265 : const TargetConfig& v__,
2266 : Message* msg__) -> void
2267 : {
2268 28 : Write((v__).naturalBounds(), msg__);
2269 : // Sentinel = 'naturalBounds'
2270 28 : (msg__)->WriteSentinel(2065643689);
2271 28 : Write((v__).rotation(), msg__);
2272 : // Sentinel = 'rotation'
2273 28 : (msg__)->WriteSentinel(289872474);
2274 28 : Write((v__).orientation(), msg__);
2275 : // Sentinel = 'orientation'
2276 28 : (msg__)->WriteSentinel(759639429);
2277 28 : Write((v__).clearRegion(), msg__);
2278 : // Sentinel = 'clearRegion'
2279 28 : (msg__)->WriteSentinel(2731638988);
2280 28 : }
2281 :
2282 0 : auto PLayerTransactionChild::Read(
2283 : TargetConfig* v__,
2284 : const Message* msg__,
2285 : PickleIterator* iter__) -> bool
2286 : {
2287 0 : if ((!(Read((&((v__)->naturalBounds())), msg__, iter__)))) {
2288 0 : FatalError("Error deserializing 'naturalBounds' (IntRect) member of 'TargetConfig'");
2289 0 : return false;
2290 : }
2291 : // Sentinel = 'naturalBounds'
2292 0 : if ((!((msg__)->ReadSentinel(iter__, 2065643689)))) {
2293 0 : mozilla::ipc::SentinelReadError("Error deserializing 'naturalBounds' (IntRect) member of 'TargetConfig'");
2294 0 : return false;
2295 : }
2296 0 : if ((!(Read((&((v__)->rotation())), msg__, iter__)))) {
2297 0 : FatalError("Error deserializing 'rotation' (ScreenRotation) member of 'TargetConfig'");
2298 0 : return false;
2299 : }
2300 : // Sentinel = 'rotation'
2301 0 : if ((!((msg__)->ReadSentinel(iter__, 289872474)))) {
2302 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rotation' (ScreenRotation) member of 'TargetConfig'");
2303 0 : return false;
2304 : }
2305 0 : if ((!(Read((&((v__)->orientation())), msg__, iter__)))) {
2306 0 : FatalError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'TargetConfig'");
2307 0 : return false;
2308 : }
2309 : // Sentinel = 'orientation'
2310 0 : if ((!((msg__)->ReadSentinel(iter__, 759639429)))) {
2311 0 : mozilla::ipc::SentinelReadError("Error deserializing 'orientation' (ScreenOrientationInternal) member of 'TargetConfig'");
2312 0 : return false;
2313 : }
2314 0 : if ((!(Read((&((v__)->clearRegion())), msg__, iter__)))) {
2315 0 : FatalError("Error deserializing 'clearRegion' (nsIntRegion) member of 'TargetConfig'");
2316 0 : return false;
2317 : }
2318 : // Sentinel = 'clearRegion'
2319 0 : if ((!((msg__)->ReadSentinel(iter__, 2731638988)))) {
2320 0 : mozilla::ipc::SentinelReadError("Error deserializing 'clearRegion' (nsIntRegion) member of 'TargetConfig'");
2321 0 : return false;
2322 : }
2323 0 : return true;
2324 : }
2325 :
2326 28 : auto PLayerTransactionChild::Write(
2327 : const nsTArray<OpSetLayerAttributes>& v__,
2328 : Message* msg__) -> void
2329 : {
2330 28 : uint32_t length = (v__).Length();
2331 28 : Write(length, msg__);
2332 : // Sentinel = ('length', 'OpSetLayerAttributes[]')
2333 28 : (msg__)->WriteSentinel(2640478076);
2334 :
2335 152 : for (auto& elem : v__) {
2336 124 : Write(elem, msg__);
2337 : // Sentinel = 'OpSetLayerAttributes[]'
2338 124 : (msg__)->WriteSentinel(706017835);
2339 : }
2340 28 : }
2341 :
2342 0 : auto PLayerTransactionChild::Read(
2343 : nsTArray<OpSetLayerAttributes>* v__,
2344 : const Message* msg__,
2345 : PickleIterator* iter__) -> bool
2346 : {
2347 0 : nsTArray<OpSetLayerAttributes> fa;
2348 : uint32_t length;
2349 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2350 0 : mozilla::ipc::ArrayLengthReadError("OpSetLayerAttributes[]");
2351 0 : return false;
2352 : }
2353 : // Sentinel = ('length', 'OpSetLayerAttributes[]')
2354 0 : if ((!((msg__)->ReadSentinel(iter__, 2640478076)))) {
2355 0 : mozilla::ipc::SentinelReadError("OpSetLayerAttributes[]");
2356 0 : return false;
2357 : }
2358 :
2359 0 : OpSetLayerAttributes* elems = (fa).AppendElements(length);
2360 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2361 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2362 0 : FatalError("Error deserializing 'OpSetLayerAttributes[i]'");
2363 0 : return false;
2364 : }
2365 : // Sentinel = 'OpSetLayerAttributes[]'
2366 0 : if ((!((msg__)->ReadSentinel(iter__, 706017835)))) {
2367 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OpSetLayerAttributes[i]'");
2368 0 : return false;
2369 : }
2370 : }
2371 0 : (v__)->SwapElements(fa);
2372 0 : return true;
2373 : }
2374 :
2375 0 : auto PLayerTransactionChild::Write(
2376 : const Rotation& v__,
2377 : Message* msg__) -> void
2378 : {
2379 0 : Write((v__).angle(), msg__);
2380 : // Sentinel = 'angle'
2381 0 : (msg__)->WriteSentinel(3388308388);
2382 0 : }
2383 :
2384 0 : auto PLayerTransactionChild::Read(
2385 : Rotation* v__,
2386 : const Message* msg__,
2387 : PickleIterator* iter__) -> bool
2388 : {
2389 0 : if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
2390 0 : FatalError("Error deserializing 'angle' (CSSAngle) member of 'Rotation'");
2391 0 : return false;
2392 : }
2393 : // Sentinel = 'angle'
2394 0 : if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
2395 0 : mozilla::ipc::SentinelReadError("Error deserializing 'angle' (CSSAngle) member of 'Rotation'");
2396 0 : return false;
2397 : }
2398 0 : return true;
2399 : }
2400 :
2401 24 : auto PLayerTransactionChild::Write(
2402 : const OpSetSimpleLayerAttributes& v__,
2403 : Message* msg__) -> void
2404 : {
2405 24 : Write((v__).layer(), msg__);
2406 : // Sentinel = 'layer'
2407 24 : (msg__)->WriteSentinel(1899167106);
2408 24 : Write((v__).attrs(), msg__);
2409 : // Sentinel = 'attrs'
2410 24 : (msg__)->WriteSentinel(3014987797);
2411 24 : }
2412 :
2413 0 : auto PLayerTransactionChild::Read(
2414 : OpSetSimpleLayerAttributes* v__,
2415 : const Message* msg__,
2416 : PickleIterator* iter__) -> bool
2417 : {
2418 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
2419 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpSetSimpleLayerAttributes'");
2420 0 : return false;
2421 : }
2422 : // Sentinel = 'layer'
2423 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
2424 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpSetSimpleLayerAttributes'");
2425 0 : return false;
2426 : }
2427 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2428 0 : FatalError("Error deserializing 'attrs' (SimpleLayerAttributes) member of 'OpSetSimpleLayerAttributes'");
2429 0 : return false;
2430 : }
2431 : // Sentinel = 'attrs'
2432 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2433 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (SimpleLayerAttributes) member of 'OpSetSimpleLayerAttributes'");
2434 0 : return false;
2435 : }
2436 0 : return true;
2437 : }
2438 :
2439 0 : auto PLayerTransactionChild::Write(
2440 : const TransformData& v__,
2441 : Message* msg__) -> void
2442 : {
2443 0 : Write((v__).origin(), msg__);
2444 : // Sentinel = 'origin'
2445 0 : (msg__)->WriteSentinel(1429924608);
2446 0 : Write((v__).transformOrigin(), msg__);
2447 : // Sentinel = 'transformOrigin'
2448 0 : (msg__)->WriteSentinel(466321709);
2449 0 : Write((v__).bounds(), msg__);
2450 : // Sentinel = 'bounds'
2451 0 : (msg__)->WriteSentinel(809584493);
2452 0 : Write((v__).appUnitsPerDevPixel(), msg__);
2453 : // Sentinel = 'appUnitsPerDevPixel'
2454 0 : (msg__)->WriteSentinel(2226875639);
2455 0 : Write((v__).inheritedXScale(), msg__);
2456 : // Sentinel = 'inheritedXScale'
2457 0 : (msg__)->WriteSentinel(1285237395);
2458 0 : Write((v__).inheritedYScale(), msg__);
2459 : // Sentinel = 'inheritedYScale'
2460 0 : (msg__)->WriteSentinel(3724217552);
2461 0 : Write((v__).hasPerspectiveParent(), msg__);
2462 : // Sentinel = 'hasPerspectiveParent'
2463 0 : (msg__)->WriteSentinel(1340430378);
2464 0 : }
2465 :
2466 0 : auto PLayerTransactionChild::Read(
2467 : TransformData* v__,
2468 : const Message* msg__,
2469 : PickleIterator* iter__) -> bool
2470 : {
2471 0 : if ((!(Read((&((v__)->origin())), msg__, iter__)))) {
2472 0 : FatalError("Error deserializing 'origin' (nsPoint) member of 'TransformData'");
2473 0 : return false;
2474 : }
2475 : // Sentinel = 'origin'
2476 0 : if ((!((msg__)->ReadSentinel(iter__, 1429924608)))) {
2477 0 : mozilla::ipc::SentinelReadError("Error deserializing 'origin' (nsPoint) member of 'TransformData'");
2478 0 : return false;
2479 : }
2480 0 : if ((!(Read((&((v__)->transformOrigin())), msg__, iter__)))) {
2481 0 : FatalError("Error deserializing 'transformOrigin' (Point3D) member of 'TransformData'");
2482 0 : return false;
2483 : }
2484 : // Sentinel = 'transformOrigin'
2485 0 : if ((!((msg__)->ReadSentinel(iter__, 466321709)))) {
2486 0 : mozilla::ipc::SentinelReadError("Error deserializing 'transformOrigin' (Point3D) member of 'TransformData'");
2487 0 : return false;
2488 : }
2489 0 : if ((!(Read((&((v__)->bounds())), msg__, iter__)))) {
2490 0 : FatalError("Error deserializing 'bounds' (nsRect) member of 'TransformData'");
2491 0 : return false;
2492 : }
2493 : // Sentinel = 'bounds'
2494 0 : if ((!((msg__)->ReadSentinel(iter__, 809584493)))) {
2495 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bounds' (nsRect) member of 'TransformData'");
2496 0 : return false;
2497 : }
2498 0 : if ((!(Read((&((v__)->appUnitsPerDevPixel())), msg__, iter__)))) {
2499 0 : FatalError("Error deserializing 'appUnitsPerDevPixel' (int32_t) member of 'TransformData'");
2500 0 : return false;
2501 : }
2502 : // Sentinel = 'appUnitsPerDevPixel'
2503 0 : if ((!((msg__)->ReadSentinel(iter__, 2226875639)))) {
2504 0 : mozilla::ipc::SentinelReadError("Error deserializing 'appUnitsPerDevPixel' (int32_t) member of 'TransformData'");
2505 0 : return false;
2506 : }
2507 0 : if ((!(Read((&((v__)->inheritedXScale())), msg__, iter__)))) {
2508 0 : FatalError("Error deserializing 'inheritedXScale' (float) member of 'TransformData'");
2509 0 : return false;
2510 : }
2511 : // Sentinel = 'inheritedXScale'
2512 0 : if ((!((msg__)->ReadSentinel(iter__, 1285237395)))) {
2513 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inheritedXScale' (float) member of 'TransformData'");
2514 0 : return false;
2515 : }
2516 0 : if ((!(Read((&((v__)->inheritedYScale())), msg__, iter__)))) {
2517 0 : FatalError("Error deserializing 'inheritedYScale' (float) member of 'TransformData'");
2518 0 : return false;
2519 : }
2520 : // Sentinel = 'inheritedYScale'
2521 0 : if ((!((msg__)->ReadSentinel(iter__, 3724217552)))) {
2522 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inheritedYScale' (float) member of 'TransformData'");
2523 0 : return false;
2524 : }
2525 0 : if ((!(Read((&((v__)->hasPerspectiveParent())), msg__, iter__)))) {
2526 0 : FatalError("Error deserializing 'hasPerspectiveParent' (bool) member of 'TransformData'");
2527 0 : return false;
2528 : }
2529 : // Sentinel = 'hasPerspectiveParent'
2530 0 : if ((!((msg__)->ReadSentinel(iter__, 1340430378)))) {
2531 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasPerspectiveParent' (bool) member of 'TransformData'");
2532 0 : return false;
2533 : }
2534 0 : return true;
2535 : }
2536 :
2537 0 : auto PLayerTransactionChild::Write(
2538 : const OpCreateImageLayer& v__,
2539 : Message* msg__) -> void
2540 : {
2541 0 : Write((v__).layer(), msg__);
2542 : // Sentinel = 'layer'
2543 0 : (msg__)->WriteSentinel(1899167106);
2544 0 : }
2545 :
2546 0 : auto PLayerTransactionChild::Read(
2547 : OpCreateImageLayer* v__,
2548 : const Message* msg__,
2549 : PickleIterator* iter__) -> bool
2550 : {
2551 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
2552 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateImageLayer'");
2553 0 : return false;
2554 : }
2555 : // Sentinel = 'layer'
2556 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
2557 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateImageLayer'");
2558 0 : return false;
2559 : }
2560 0 : return true;
2561 : }
2562 :
2563 0 : auto PLayerTransactionChild::Write(
2564 : const OpCreateCanvasLayer& v__,
2565 : Message* msg__) -> void
2566 : {
2567 0 : Write((v__).layer(), msg__);
2568 : // Sentinel = 'layer'
2569 0 : (msg__)->WriteSentinel(1899167106);
2570 0 : }
2571 :
2572 0 : auto PLayerTransactionChild::Read(
2573 : OpCreateCanvasLayer* v__,
2574 : const Message* msg__,
2575 : PickleIterator* iter__) -> bool
2576 : {
2577 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
2578 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateCanvasLayer'");
2579 0 : return false;
2580 : }
2581 : // Sentinel = 'layer'
2582 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
2583 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateCanvasLayer'");
2584 0 : return false;
2585 : }
2586 0 : return true;
2587 : }
2588 :
2589 0 : auto PLayerTransactionChild::Write(
2590 : const TimingFunction& v__,
2591 : Message* msg__) -> void
2592 : {
2593 : typedef TimingFunction type__;
2594 0 : Write(int((v__).type()), msg__);
2595 : // Sentinel = 'TimingFunction'
2596 0 : (msg__)->WriteSentinel(1340109572);
2597 :
2598 0 : switch ((v__).type()) {
2599 : case type__::Tnull_t:
2600 : {
2601 0 : Write((v__).get_null_t(), msg__);
2602 : // Sentinel = 'Tnull_t'
2603 0 : (msg__)->WriteSentinel(3731137201);
2604 0 : return;
2605 : }
2606 : case type__::TCubicBezierFunction:
2607 : {
2608 0 : Write((v__).get_CubicBezierFunction(), msg__);
2609 : // Sentinel = 'TCubicBezierFunction'
2610 0 : (msg__)->WriteSentinel(258133495);
2611 0 : return;
2612 : }
2613 : case type__::TStepFunction:
2614 : {
2615 0 : Write((v__).get_StepFunction(), msg__);
2616 : // Sentinel = 'TStepFunction'
2617 0 : (msg__)->WriteSentinel(2005731339);
2618 0 : return;
2619 : }
2620 : case type__::TFramesFunction:
2621 : {
2622 0 : Write((v__).get_FramesFunction(), msg__);
2623 : // Sentinel = 'TFramesFunction'
2624 0 : (msg__)->WriteSentinel(492999321);
2625 0 : return;
2626 : }
2627 : default:
2628 : {
2629 0 : FatalError("unknown union type");
2630 0 : return;
2631 : }
2632 : }
2633 : }
2634 :
2635 0 : auto PLayerTransactionChild::Read(
2636 : TimingFunction* v__,
2637 : const Message* msg__,
2638 : PickleIterator* iter__) -> bool
2639 : {
2640 : typedef TimingFunction type__;
2641 : int type;
2642 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2643 0 : mozilla::ipc::UnionTypeReadError("TimingFunction");
2644 0 : return false;
2645 : }
2646 : // Sentinel = 'TimingFunction'
2647 0 : if ((!((msg__)->ReadSentinel(iter__, 1340109572)))) {
2648 0 : mozilla::ipc::SentinelReadError("TimingFunction");
2649 0 : return false;
2650 : }
2651 :
2652 0 : switch (type) {
2653 : case type__::Tnull_t:
2654 : {
2655 : null_t tmp = null_t();
2656 0 : (*(v__)) = tmp;
2657 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
2658 0 : FatalError("Error deserializing Union type");
2659 0 : return false;
2660 : }
2661 : // Sentinel = 'Tnull_t'
2662 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
2663 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2664 0 : return false;
2665 : }
2666 0 : return true;
2667 : }
2668 : case type__::TCubicBezierFunction:
2669 : {
2670 0 : CubicBezierFunction tmp = CubicBezierFunction();
2671 0 : (*(v__)) = tmp;
2672 0 : if ((!(Read((&((v__)->get_CubicBezierFunction())), msg__, iter__)))) {
2673 0 : FatalError("Error deserializing Union type");
2674 0 : return false;
2675 : }
2676 : // Sentinel = 'TCubicBezierFunction'
2677 0 : if ((!((msg__)->ReadSentinel(iter__, 258133495)))) {
2678 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2679 0 : return false;
2680 : }
2681 0 : return true;
2682 : }
2683 : case type__::TStepFunction:
2684 : {
2685 0 : StepFunction tmp = StepFunction();
2686 0 : (*(v__)) = tmp;
2687 0 : if ((!(Read((&((v__)->get_StepFunction())), msg__, iter__)))) {
2688 0 : FatalError("Error deserializing Union type");
2689 0 : return false;
2690 : }
2691 : // Sentinel = 'TStepFunction'
2692 0 : if ((!((msg__)->ReadSentinel(iter__, 2005731339)))) {
2693 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2694 0 : return false;
2695 : }
2696 0 : return true;
2697 : }
2698 : case type__::TFramesFunction:
2699 : {
2700 0 : FramesFunction tmp = FramesFunction();
2701 0 : (*(v__)) = tmp;
2702 0 : if ((!(Read((&((v__)->get_FramesFunction())), msg__, iter__)))) {
2703 0 : FatalError("Error deserializing Union type");
2704 0 : return false;
2705 : }
2706 : // Sentinel = 'TFramesFunction'
2707 0 : if ((!((msg__)->ReadSentinel(iter__, 492999321)))) {
2708 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2709 0 : return false;
2710 : }
2711 0 : return true;
2712 : }
2713 : default:
2714 : {
2715 0 : FatalError("unknown union type");
2716 0 : return false;
2717 : }
2718 : }
2719 : }
2720 :
2721 0 : auto PLayerTransactionChild::Write(
2722 : const StepFunction& v__,
2723 : Message* msg__) -> void
2724 : {
2725 0 : Write((v__).steps(), msg__);
2726 : // Sentinel = 'steps'
2727 0 : (msg__)->WriteSentinel(713197172);
2728 0 : Write((v__).type(), msg__);
2729 : // Sentinel = 'type'
2730 0 : (msg__)->WriteSentinel(2982068540);
2731 0 : }
2732 :
2733 0 : auto PLayerTransactionChild::Read(
2734 : StepFunction* v__,
2735 : const Message* msg__,
2736 : PickleIterator* iter__) -> bool
2737 : {
2738 0 : if ((!(Read((&((v__)->steps())), msg__, iter__)))) {
2739 0 : FatalError("Error deserializing 'steps' (int) member of 'StepFunction'");
2740 0 : return false;
2741 : }
2742 : // Sentinel = 'steps'
2743 0 : if ((!((msg__)->ReadSentinel(iter__, 713197172)))) {
2744 0 : mozilla::ipc::SentinelReadError("Error deserializing 'steps' (int) member of 'StepFunction'");
2745 0 : return false;
2746 : }
2747 0 : if ((!(Read((&((v__)->type())), msg__, iter__)))) {
2748 0 : FatalError("Error deserializing 'type' (int) member of 'StepFunction'");
2749 0 : return false;
2750 : }
2751 : // Sentinel = 'type'
2752 0 : if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
2753 0 : mozilla::ipc::SentinelReadError("Error deserializing 'type' (int) member of 'StepFunction'");
2754 0 : return false;
2755 : }
2756 0 : return true;
2757 : }
2758 :
2759 35 : auto PLayerTransactionChild::Write(
2760 : const PTextureChild* v__,
2761 : Message* msg__,
2762 : bool nullable__) -> void
2763 : {
2764 : int32_t id;
2765 35 : if ((!(v__))) {
2766 0 : if ((!(nullable__))) {
2767 0 : FatalError("NULL actor value passed to non-nullable param");
2768 : }
2769 0 : id = 0;
2770 : }
2771 : else {
2772 35 : id = (v__)->Id();
2773 35 : if ((1) == (id)) {
2774 0 : FatalError("actor has been |delete|d");
2775 : }
2776 : }
2777 :
2778 35 : Write(id, msg__);
2779 35 : }
2780 :
2781 0 : auto PLayerTransactionChild::Read(
2782 : PTextureChild** v__,
2783 : const Message* msg__,
2784 : PickleIterator* iter__,
2785 : bool nullable__) -> bool
2786 : {
2787 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTexture", PTextureMsgStart);
2788 0 : if ((actor).isNothing()) {
2789 0 : return false;
2790 : }
2791 :
2792 0 : (*(v__)) = static_cast<PTextureChild*>((actor).value());
2793 0 : return true;
2794 : }
2795 :
2796 33 : auto PLayerTransactionChild::Write(
2797 : const OpPaintTextureRegion& v__,
2798 : Message* msg__) -> void
2799 : {
2800 33 : Write((v__).bufferData(), msg__);
2801 : // Sentinel = 'bufferData'
2802 33 : (msg__)->WriteSentinel(1624783476);
2803 33 : Write((v__).updatedRegion(), msg__);
2804 : // Sentinel = 'updatedRegion'
2805 33 : (msg__)->WriteSentinel(2578696480);
2806 33 : }
2807 :
2808 0 : auto PLayerTransactionChild::Read(
2809 : OpPaintTextureRegion* v__,
2810 : const Message* msg__,
2811 : PickleIterator* iter__) -> bool
2812 : {
2813 0 : if ((!(Read((&((v__)->bufferData())), msg__, iter__)))) {
2814 0 : FatalError("Error deserializing 'bufferData' (ThebesBufferData) member of 'OpPaintTextureRegion'");
2815 0 : return false;
2816 : }
2817 : // Sentinel = 'bufferData'
2818 0 : if ((!((msg__)->ReadSentinel(iter__, 1624783476)))) {
2819 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferData' (ThebesBufferData) member of 'OpPaintTextureRegion'");
2820 0 : return false;
2821 : }
2822 0 : if ((!(Read((&((v__)->updatedRegion())), msg__, iter__)))) {
2823 0 : FatalError("Error deserializing 'updatedRegion' (nsIntRegion) member of 'OpPaintTextureRegion'");
2824 0 : return false;
2825 : }
2826 : // Sentinel = 'updatedRegion'
2827 0 : if ((!((msg__)->ReadSentinel(iter__, 2578696480)))) {
2828 0 : mozilla::ipc::SentinelReadError("Error deserializing 'updatedRegion' (nsIntRegion) member of 'OpPaintTextureRegion'");
2829 0 : return false;
2830 : }
2831 0 : return true;
2832 : }
2833 :
2834 124 : auto PLayerTransactionChild::Write(
2835 : const CompositorAnimations& v__,
2836 : Message* msg__) -> void
2837 : {
2838 124 : Write((v__).animations(), msg__);
2839 : // Sentinel = 'animations'
2840 124 : (msg__)->WriteSentinel(2502829527);
2841 124 : Write((v__).id(), msg__);
2842 : // Sentinel = 'id'
2843 124 : (msg__)->WriteSentinel(2794505629);
2844 124 : }
2845 :
2846 0 : auto PLayerTransactionChild::Read(
2847 : CompositorAnimations* v__,
2848 : const Message* msg__,
2849 : PickleIterator* iter__) -> bool
2850 : {
2851 0 : if ((!(Read((&((v__)->animations())), msg__, iter__)))) {
2852 0 : FatalError("Error deserializing 'animations' (Animation[]) member of 'CompositorAnimations'");
2853 0 : return false;
2854 : }
2855 : // Sentinel = 'animations'
2856 0 : if ((!((msg__)->ReadSentinel(iter__, 2502829527)))) {
2857 0 : mozilla::ipc::SentinelReadError("Error deserializing 'animations' (Animation[]) member of 'CompositorAnimations'");
2858 0 : return false;
2859 : }
2860 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
2861 0 : FatalError("Error deserializing 'id' (uint64_t) member of 'CompositorAnimations'");
2862 0 : return false;
2863 : }
2864 : // Sentinel = 'id'
2865 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
2866 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint64_t) member of 'CompositorAnimations'");
2867 0 : return false;
2868 : }
2869 0 : return true;
2870 : }
2871 :
2872 0 : auto PLayerTransactionChild::Write(
2873 : const OpAttachAsyncCompositable& v__,
2874 : Message* msg__) -> void
2875 : {
2876 0 : Write((v__).layer(), msg__);
2877 : // Sentinel = 'layer'
2878 0 : (msg__)->WriteSentinel(1899167106);
2879 0 : Write((v__).compositable(), msg__);
2880 : // Sentinel = 'compositable'
2881 0 : (msg__)->WriteSentinel(4031958248);
2882 0 : }
2883 :
2884 0 : auto PLayerTransactionChild::Read(
2885 : OpAttachAsyncCompositable* v__,
2886 : const Message* msg__,
2887 : PickleIterator* iter__) -> bool
2888 : {
2889 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
2890 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpAttachAsyncCompositable'");
2891 0 : return false;
2892 : }
2893 : // Sentinel = 'layer'
2894 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
2895 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpAttachAsyncCompositable'");
2896 0 : return false;
2897 : }
2898 0 : if ((!(Read((&((v__)->compositable())), msg__, iter__)))) {
2899 0 : FatalError("Error deserializing 'compositable' (CompositableHandle) member of 'OpAttachAsyncCompositable'");
2900 0 : return false;
2901 : }
2902 : // Sentinel = 'compositable'
2903 0 : if ((!((msg__)->ReadSentinel(iter__, 4031958248)))) {
2904 0 : mozilla::ipc::SentinelReadError("Error deserializing 'compositable' (CompositableHandle) member of 'OpAttachAsyncCompositable'");
2905 0 : return false;
2906 : }
2907 0 : return true;
2908 : }
2909 :
2910 28 : auto PLayerTransactionChild::Write(
2911 : const nsTArray<PluginWindowData>& v__,
2912 : Message* msg__) -> void
2913 : {
2914 28 : uint32_t length = (v__).Length();
2915 28 : Write(length, msg__);
2916 : // Sentinel = ('length', 'PluginWindowData[]')
2917 28 : (msg__)->WriteSentinel(3757363184);
2918 :
2919 28 : for (auto& elem : v__) {
2920 0 : Write(elem, msg__);
2921 : // Sentinel = 'PluginWindowData[]'
2922 0 : (msg__)->WriteSentinel(3814367271);
2923 : }
2924 28 : }
2925 :
2926 0 : auto PLayerTransactionChild::Read(
2927 : nsTArray<PluginWindowData>* v__,
2928 : const Message* msg__,
2929 : PickleIterator* iter__) -> bool
2930 : {
2931 0 : nsTArray<PluginWindowData> fa;
2932 : uint32_t length;
2933 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2934 0 : mozilla::ipc::ArrayLengthReadError("PluginWindowData[]");
2935 0 : return false;
2936 : }
2937 : // Sentinel = ('length', 'PluginWindowData[]')
2938 0 : if ((!((msg__)->ReadSentinel(iter__, 3757363184)))) {
2939 0 : mozilla::ipc::SentinelReadError("PluginWindowData[]");
2940 0 : return false;
2941 : }
2942 :
2943 0 : PluginWindowData* elems = (fa).AppendElements(length);
2944 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2945 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2946 0 : FatalError("Error deserializing 'PluginWindowData[i]'");
2947 0 : return false;
2948 : }
2949 : // Sentinel = 'PluginWindowData[]'
2950 0 : if ((!((msg__)->ReadSentinel(iter__, 3814367271)))) {
2951 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PluginWindowData[i]'");
2952 0 : return false;
2953 : }
2954 : }
2955 0 : (v__)->SwapElements(fa);
2956 0 : return true;
2957 : }
2958 :
2959 4 : auto PLayerTransactionChild::Write(
2960 : const OpCreateColorLayer& v__,
2961 : Message* msg__) -> void
2962 : {
2963 4 : Write((v__).layer(), msg__);
2964 : // Sentinel = 'layer'
2965 4 : (msg__)->WriteSentinel(1899167106);
2966 4 : }
2967 :
2968 0 : auto PLayerTransactionChild::Read(
2969 : OpCreateColorLayer* v__,
2970 : const Message* msg__,
2971 : PickleIterator* iter__) -> bool
2972 : {
2973 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
2974 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateColorLayer'");
2975 0 : return false;
2976 : }
2977 : // Sentinel = 'layer'
2978 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
2979 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateColorLayer'");
2980 0 : return false;
2981 : }
2982 0 : return true;
2983 : }
2984 :
2985 33 : auto PLayerTransactionChild::Write(
2986 : const CrossProcessSemaphoreDescriptor& v__,
2987 : Message* msg__) -> void
2988 : {
2989 33 : Write((v__).sem(), msg__);
2990 : // Sentinel = 'sem'
2991 33 : (msg__)->WriteSentinel(3763377306);
2992 33 : }
2993 :
2994 0 : auto PLayerTransactionChild::Read(
2995 : CrossProcessSemaphoreDescriptor* v__,
2996 : const Message* msg__,
2997 : PickleIterator* iter__) -> bool
2998 : {
2999 0 : if ((!(Read((&((v__)->sem())), msg__, iter__)))) {
3000 0 : FatalError("Error deserializing 'sem' (CrossProcessSemaphoreHandle) member of 'CrossProcessSemaphoreDescriptor'");
3001 0 : return false;
3002 : }
3003 : // Sentinel = 'sem'
3004 0 : if ((!((msg__)->ReadSentinel(iter__, 3763377306)))) {
3005 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sem' (CrossProcessSemaphoreHandle) member of 'CrossProcessSemaphoreDescriptor'");
3006 0 : return false;
3007 : }
3008 0 : return true;
3009 : }
3010 :
3011 0 : auto PLayerTransactionChild::Write(
3012 : const Translation& v__,
3013 : Message* msg__) -> void
3014 : {
3015 0 : Write((v__).x(), msg__);
3016 : // Sentinel = 'x'
3017 0 : (msg__)->WriteSentinel(2475144313);
3018 0 : Write((v__).y(), msg__);
3019 : // Sentinel = 'y'
3020 0 : (msg__)->WriteSentinel(2603144696);
3021 0 : Write((v__).z(), msg__);
3022 : // Sentinel = 'z'
3023 0 : (msg__)->WriteSentinel(2731145083);
3024 0 : }
3025 :
3026 0 : auto PLayerTransactionChild::Read(
3027 : Translation* v__,
3028 : const Message* msg__,
3029 : PickleIterator* iter__) -> bool
3030 : {
3031 0 : if ((!(Read((&((v__)->x())), msg__, iter__)))) {
3032 0 : FatalError("Error deserializing 'x' (float) member of 'Translation'");
3033 0 : return false;
3034 : }
3035 : // Sentinel = 'x'
3036 0 : if ((!((msg__)->ReadSentinel(iter__, 2475144313)))) {
3037 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x' (float) member of 'Translation'");
3038 0 : return false;
3039 : }
3040 0 : if ((!(Read((&((v__)->y())), msg__, iter__)))) {
3041 0 : FatalError("Error deserializing 'y' (float) member of 'Translation'");
3042 0 : return false;
3043 : }
3044 : // Sentinel = 'y'
3045 0 : if ((!((msg__)->ReadSentinel(iter__, 2603144696)))) {
3046 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y' (float) member of 'Translation'");
3047 0 : return false;
3048 : }
3049 0 : if ((!(Read((&((v__)->z())), msg__, iter__)))) {
3050 0 : FatalError("Error deserializing 'z' (float) member of 'Translation'");
3051 0 : return false;
3052 : }
3053 : // Sentinel = 'z'
3054 0 : if ((!((msg__)->ReadSentinel(iter__, 2731145083)))) {
3055 0 : mozilla::ipc::SentinelReadError("Error deserializing 'z' (float) member of 'Translation'");
3056 0 : return false;
3057 : }
3058 0 : return true;
3059 : }
3060 :
3061 0 : auto PLayerTransactionChild::Write(
3062 : const OpRemoveTexture& v__,
3063 : Message* msg__) -> void
3064 : {
3065 : // skipping actor field that's meaningless on this side
3066 0 : Write((v__).textureChild(), msg__, false);
3067 : // Sentinel = 'texture'
3068 0 : (msg__)->WriteSentinel(3654462510);
3069 0 : }
3070 :
3071 0 : auto PLayerTransactionChild::Read(
3072 : OpRemoveTexture* v__,
3073 : const Message* msg__,
3074 : PickleIterator* iter__) -> bool
3075 : {
3076 : // skipping actor field that's meaningless on this side
3077 0 : if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
3078 0 : FatalError("Error deserializing 'textureChild' (PTexture) member of 'OpRemoveTexture'");
3079 0 : return false;
3080 : }
3081 : // Sentinel = 'texture'
3082 0 : if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
3083 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'OpRemoveTexture'");
3084 0 : return false;
3085 : }
3086 0 : return true;
3087 : }
3088 :
3089 33 : auto PLayerTransactionChild::Write(
3090 : const TimedTexture& v__,
3091 : Message* msg__) -> void
3092 : {
3093 : // skipping actor field that's meaningless on this side
3094 33 : Write((v__).textureChild(), msg__, false);
3095 : // Sentinel = 'texture'
3096 33 : (msg__)->WriteSentinel(3654462510);
3097 33 : Write((v__).sharedLock(), msg__);
3098 : // Sentinel = 'sharedLock'
3099 33 : (msg__)->WriteSentinel(1249896484);
3100 33 : Write((v__).timeStamp(), msg__);
3101 : // Sentinel = 'timeStamp'
3102 33 : (msg__)->WriteSentinel(988250409);
3103 33 : Write((v__).picture(), msg__);
3104 : // Sentinel = 'picture'
3105 33 : (msg__)->WriteSentinel(3195561921);
3106 33 : Write((v__).frameID(), msg__);
3107 : // Sentinel = 'frameID'
3108 33 : (msg__)->WriteSentinel(3054835247);
3109 33 : Write((v__).producerID(), msg__);
3110 : // Sentinel = 'producerID'
3111 33 : (msg__)->WriteSentinel(1942472743);
3112 33 : }
3113 :
3114 0 : auto PLayerTransactionChild::Read(
3115 : TimedTexture* v__,
3116 : const Message* msg__,
3117 : PickleIterator* iter__) -> bool
3118 : {
3119 : // skipping actor field that's meaningless on this side
3120 0 : if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
3121 0 : FatalError("Error deserializing 'textureChild' (PTexture) member of 'TimedTexture'");
3122 0 : return false;
3123 : }
3124 : // Sentinel = 'texture'
3125 0 : if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
3126 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'TimedTexture'");
3127 0 : return false;
3128 : }
3129 0 : if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
3130 0 : FatalError("Error deserializing 'sharedLock' (ReadLockHandle) member of 'TimedTexture'");
3131 0 : return false;
3132 : }
3133 : // Sentinel = 'sharedLock'
3134 0 : if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
3135 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockHandle) member of 'TimedTexture'");
3136 0 : return false;
3137 : }
3138 0 : if ((!(Read((&((v__)->timeStamp())), msg__, iter__)))) {
3139 0 : FatalError("Error deserializing 'timeStamp' (TimeStamp) member of 'TimedTexture'");
3140 0 : return false;
3141 : }
3142 : // Sentinel = 'timeStamp'
3143 0 : if ((!((msg__)->ReadSentinel(iter__, 988250409)))) {
3144 0 : mozilla::ipc::SentinelReadError("Error deserializing 'timeStamp' (TimeStamp) member of 'TimedTexture'");
3145 0 : return false;
3146 : }
3147 0 : if ((!(Read((&((v__)->picture())), msg__, iter__)))) {
3148 0 : FatalError("Error deserializing 'picture' (IntRect) member of 'TimedTexture'");
3149 0 : return false;
3150 : }
3151 : // Sentinel = 'picture'
3152 0 : if ((!((msg__)->ReadSentinel(iter__, 3195561921)))) {
3153 0 : mozilla::ipc::SentinelReadError("Error deserializing 'picture' (IntRect) member of 'TimedTexture'");
3154 0 : return false;
3155 : }
3156 0 : if ((!(Read((&((v__)->frameID())), msg__, iter__)))) {
3157 0 : FatalError("Error deserializing 'frameID' (uint32_t) member of 'TimedTexture'");
3158 0 : return false;
3159 : }
3160 : // Sentinel = 'frameID'
3161 0 : if ((!((msg__)->ReadSentinel(iter__, 3054835247)))) {
3162 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frameID' (uint32_t) member of 'TimedTexture'");
3163 0 : return false;
3164 : }
3165 0 : if ((!(Read((&((v__)->producerID())), msg__, iter__)))) {
3166 0 : FatalError("Error deserializing 'producerID' (uint32_t) member of 'TimedTexture'");
3167 0 : return false;
3168 : }
3169 : // Sentinel = 'producerID'
3170 0 : if ((!((msg__)->ReadSentinel(iter__, 1942472743)))) {
3171 0 : mozilla::ipc::SentinelReadError("Error deserializing 'producerID' (uint32_t) member of 'TimedTexture'");
3172 0 : return false;
3173 : }
3174 0 : return true;
3175 : }
3176 :
3177 0 : auto PLayerTransactionChild::Write(
3178 : const AnimationSegment& v__,
3179 : Message* msg__) -> void
3180 : {
3181 0 : Write((v__).startState(), msg__);
3182 : // Sentinel = 'startState'
3183 0 : (msg__)->WriteSentinel(4108886385);
3184 0 : Write((v__).endState(), msg__);
3185 : // Sentinel = 'endState'
3186 0 : (msg__)->WriteSentinel(1429422250);
3187 0 : Write((v__).startPortion(), msg__);
3188 : // Sentinel = 'startPortion'
3189 0 : (msg__)->WriteSentinel(3719513325);
3190 0 : Write((v__).endPortion(), msg__);
3191 : // Sentinel = 'endPortion'
3192 0 : (msg__)->WriteSentinel(2820069090);
3193 0 : Write((v__).startComposite(), msg__);
3194 : // Sentinel = 'startComposite'
3195 0 : (msg__)->WriteSentinel(293778843);
3196 0 : Write((v__).endComposite(), msg__);
3197 : // Sentinel = 'endComposite'
3198 0 : (msg__)->WriteSentinel(734492384);
3199 0 : Write((v__).sampleFn(), msg__);
3200 : // Sentinel = 'sampleFn'
3201 0 : (msg__)->WriteSentinel(939676522);
3202 0 : }
3203 :
3204 0 : auto PLayerTransactionChild::Read(
3205 : AnimationSegment* v__,
3206 : const Message* msg__,
3207 : PickleIterator* iter__) -> bool
3208 : {
3209 0 : if ((!(Read((&((v__)->startState())), msg__, iter__)))) {
3210 0 : FatalError("Error deserializing 'startState' (Animatable) member of 'AnimationSegment'");
3211 0 : return false;
3212 : }
3213 : // Sentinel = 'startState'
3214 0 : if ((!((msg__)->ReadSentinel(iter__, 4108886385)))) {
3215 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startState' (Animatable) member of 'AnimationSegment'");
3216 0 : return false;
3217 : }
3218 0 : if ((!(Read((&((v__)->endState())), msg__, iter__)))) {
3219 0 : FatalError("Error deserializing 'endState' (Animatable) member of 'AnimationSegment'");
3220 0 : return false;
3221 : }
3222 : // Sentinel = 'endState'
3223 0 : if ((!((msg__)->ReadSentinel(iter__, 1429422250)))) {
3224 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endState' (Animatable) member of 'AnimationSegment'");
3225 0 : return false;
3226 : }
3227 0 : if ((!(Read((&((v__)->startPortion())), msg__, iter__)))) {
3228 0 : FatalError("Error deserializing 'startPortion' (float) member of 'AnimationSegment'");
3229 0 : return false;
3230 : }
3231 : // Sentinel = 'startPortion'
3232 0 : if ((!((msg__)->ReadSentinel(iter__, 3719513325)))) {
3233 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPortion' (float) member of 'AnimationSegment'");
3234 0 : return false;
3235 : }
3236 0 : if ((!(Read((&((v__)->endPortion())), msg__, iter__)))) {
3237 0 : FatalError("Error deserializing 'endPortion' (float) member of 'AnimationSegment'");
3238 0 : return false;
3239 : }
3240 : // Sentinel = 'endPortion'
3241 0 : if ((!((msg__)->ReadSentinel(iter__, 2820069090)))) {
3242 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPortion' (float) member of 'AnimationSegment'");
3243 0 : return false;
3244 : }
3245 0 : if ((!(Read((&((v__)->startComposite())), msg__, iter__)))) {
3246 0 : FatalError("Error deserializing 'startComposite' (uint8_t) member of 'AnimationSegment'");
3247 0 : return false;
3248 : }
3249 : // Sentinel = 'startComposite'
3250 0 : if ((!((msg__)->ReadSentinel(iter__, 293778843)))) {
3251 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startComposite' (uint8_t) member of 'AnimationSegment'");
3252 0 : return false;
3253 : }
3254 0 : if ((!(Read((&((v__)->endComposite())), msg__, iter__)))) {
3255 0 : FatalError("Error deserializing 'endComposite' (uint8_t) member of 'AnimationSegment'");
3256 0 : return false;
3257 : }
3258 : // Sentinel = 'endComposite'
3259 0 : if ((!((msg__)->ReadSentinel(iter__, 734492384)))) {
3260 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endComposite' (uint8_t) member of 'AnimationSegment'");
3261 0 : return false;
3262 : }
3263 0 : if ((!(Read((&((v__)->sampleFn())), msg__, iter__)))) {
3264 0 : FatalError("Error deserializing 'sampleFn' (TimingFunction) member of 'AnimationSegment'");
3265 0 : return false;
3266 : }
3267 : // Sentinel = 'sampleFn'
3268 0 : if ((!((msg__)->ReadSentinel(iter__, 939676522)))) {
3269 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sampleFn' (TimingFunction) member of 'AnimationSegment'");
3270 0 : return false;
3271 : }
3272 0 : return true;
3273 : }
3274 :
3275 0 : auto PLayerTransactionChild::Write(
3276 : const OpSetDiagnosticTypes& v__,
3277 : Message* msg__) -> void
3278 : {
3279 0 : Write((v__).diagnostics(), msg__);
3280 : // Sentinel = 'diagnostics'
3281 0 : (msg__)->WriteSentinel(2961767415);
3282 0 : }
3283 :
3284 0 : auto PLayerTransactionChild::Read(
3285 : OpSetDiagnosticTypes* v__,
3286 : const Message* msg__,
3287 : PickleIterator* iter__) -> bool
3288 : {
3289 0 : if ((!(Read((&((v__)->diagnostics())), msg__, iter__)))) {
3290 0 : FatalError("Error deserializing 'diagnostics' (DiagnosticTypes) member of 'OpSetDiagnosticTypes'");
3291 0 : return false;
3292 : }
3293 : // Sentinel = 'diagnostics'
3294 0 : if ((!((msg__)->ReadSentinel(iter__, 2961767415)))) {
3295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'diagnostics' (DiagnosticTypes) member of 'OpSetDiagnosticTypes'");
3296 0 : return false;
3297 : }
3298 0 : return true;
3299 : }
3300 :
3301 0 : auto PLayerTransactionChild::Write(
3302 : const FramesFunction& v__,
3303 : Message* msg__) -> void
3304 : {
3305 0 : Write((v__).frames(), msg__);
3306 : // Sentinel = 'frames'
3307 0 : (msg__)->WriteSentinel(3065599768);
3308 0 : }
3309 :
3310 0 : auto PLayerTransactionChild::Read(
3311 : FramesFunction* v__,
3312 : const Message* msg__,
3313 : PickleIterator* iter__) -> bool
3314 : {
3315 0 : if ((!(Read((&((v__)->frames())), msg__, iter__)))) {
3316 0 : FatalError("Error deserializing 'frames' (int) member of 'FramesFunction'");
3317 0 : return false;
3318 : }
3319 : // Sentinel = 'frames'
3320 0 : if ((!((msg__)->ReadSentinel(iter__, 3065599768)))) {
3321 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frames' (int) member of 'FramesFunction'");
3322 0 : return false;
3323 : }
3324 0 : return true;
3325 : }
3326 :
3327 0 : auto PLayerTransactionChild::Write(
3328 : const SkewX& v__,
3329 : Message* msg__) -> void
3330 : {
3331 0 : Write((v__).x(), msg__);
3332 : // Sentinel = 'x'
3333 0 : (msg__)->WriteSentinel(2475144313);
3334 0 : }
3335 :
3336 0 : auto PLayerTransactionChild::Read(
3337 : SkewX* v__,
3338 : const Message* msg__,
3339 : PickleIterator* iter__) -> bool
3340 : {
3341 0 : if ((!(Read((&((v__)->x())), msg__, iter__)))) {
3342 0 : FatalError("Error deserializing 'x' (CSSAngle) member of 'SkewX'");
3343 0 : return false;
3344 : }
3345 : // Sentinel = 'x'
3346 0 : if ((!((msg__)->ReadSentinel(iter__, 2475144313)))) {
3347 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x' (CSSAngle) member of 'SkewX'");
3348 0 : return false;
3349 : }
3350 0 : return true;
3351 : }
3352 :
3353 0 : auto PLayerTransactionChild::Write(
3354 : const SkewY& v__,
3355 : Message* msg__) -> void
3356 : {
3357 0 : Write((v__).y(), msg__);
3358 : // Sentinel = 'y'
3359 0 : (msg__)->WriteSentinel(2603144696);
3360 0 : }
3361 :
3362 0 : auto PLayerTransactionChild::Read(
3363 : SkewY* v__,
3364 : const Message* msg__,
3365 : PickleIterator* iter__) -> bool
3366 : {
3367 0 : if ((!(Read((&((v__)->y())), msg__, iter__)))) {
3368 0 : FatalError("Error deserializing 'y' (CSSAngle) member of 'SkewY'");
3369 0 : return false;
3370 : }
3371 : // Sentinel = 'y'
3372 0 : if ((!((msg__)->ReadSentinel(iter__, 2603144696)))) {
3373 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y' (CSSAngle) member of 'SkewY'");
3374 0 : return false;
3375 : }
3376 0 : return true;
3377 : }
3378 :
3379 0 : auto PLayerTransactionChild::Write(
3380 : Shmem& v__,
3381 : Message* msg__) -> void
3382 : {
3383 0 : IPC::WriteParam(msg__, v__);
3384 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
3385 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
3386 0 : }
3387 :
3388 0 : auto PLayerTransactionChild::Read(
3389 : Shmem* v__,
3390 : const Message* msg__,
3391 : PickleIterator* iter__) -> bool
3392 : {
3393 0 : Shmem tmp;
3394 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
3395 0 : return false;
3396 : }
3397 :
3398 0 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
3399 0 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
3400 0 : if (rawmem) {
3401 0 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
3402 0 : return true;
3403 : }
3404 0 : (*(v__)) = Shmem();
3405 0 : return true;
3406 : }
3407 :
3408 0 : auto PLayerTransactionChild::Write(
3409 : const OpCreateBorderLayer& v__,
3410 : Message* msg__) -> void
3411 : {
3412 0 : Write((v__).layer(), msg__);
3413 : // Sentinel = 'layer'
3414 0 : (msg__)->WriteSentinel(1899167106);
3415 0 : }
3416 :
3417 0 : auto PLayerTransactionChild::Read(
3418 : OpCreateBorderLayer* v__,
3419 : const Message* msg__,
3420 : PickleIterator* iter__) -> bool
3421 : {
3422 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
3423 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateBorderLayer'");
3424 0 : return false;
3425 : }
3426 : // Sentinel = 'layer'
3427 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
3428 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateBorderLayer'");
3429 0 : return false;
3430 : }
3431 0 : return true;
3432 : }
3433 :
3434 0 : auto PLayerTransactionChild::Write(
3435 : const MaybeTransform& v__,
3436 : Message* msg__) -> void
3437 : {
3438 : typedef MaybeTransform type__;
3439 0 : Write(int((v__).type()), msg__);
3440 : // Sentinel = 'MaybeTransform'
3441 0 : (msg__)->WriteSentinel(3057705086);
3442 :
3443 0 : switch ((v__).type()) {
3444 : case type__::TMatrix4x4:
3445 : {
3446 0 : Write((v__).get_Matrix4x4(), msg__);
3447 : // Sentinel = 'TMatrix4x4'
3448 0 : (msg__)->WriteSentinel(1886581935);
3449 0 : return;
3450 : }
3451 : case type__::Tvoid_t:
3452 : {
3453 0 : Write((v__).get_void_t(), msg__);
3454 : // Sentinel = 'Tvoid_t'
3455 0 : (msg__)->WriteSentinel(3041273328);
3456 0 : return;
3457 : }
3458 : default:
3459 : {
3460 0 : FatalError("unknown union type");
3461 0 : return;
3462 : }
3463 : }
3464 : }
3465 :
3466 0 : auto PLayerTransactionChild::Read(
3467 : MaybeTransform* v__,
3468 : const Message* msg__,
3469 : PickleIterator* iter__) -> bool
3470 : {
3471 : typedef MaybeTransform type__;
3472 : int type;
3473 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3474 0 : mozilla::ipc::UnionTypeReadError("MaybeTransform");
3475 0 : return false;
3476 : }
3477 : // Sentinel = 'MaybeTransform'
3478 0 : if ((!((msg__)->ReadSentinel(iter__, 3057705086)))) {
3479 0 : mozilla::ipc::SentinelReadError("MaybeTransform");
3480 0 : return false;
3481 : }
3482 :
3483 0 : switch (type) {
3484 : case type__::TMatrix4x4:
3485 : {
3486 0 : Matrix4x4 tmp = Matrix4x4();
3487 0 : (*(v__)) = tmp;
3488 0 : if ((!(Read((&((v__)->get_Matrix4x4())), msg__, iter__)))) {
3489 0 : FatalError("Error deserializing Union type");
3490 0 : return false;
3491 : }
3492 : // Sentinel = 'TMatrix4x4'
3493 0 : if ((!((msg__)->ReadSentinel(iter__, 1886581935)))) {
3494 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3495 0 : return false;
3496 : }
3497 0 : return true;
3498 : }
3499 : case type__::Tvoid_t:
3500 : {
3501 : void_t tmp = void_t();
3502 0 : (*(v__)) = tmp;
3503 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3504 0 : FatalError("Error deserializing Union type");
3505 0 : return false;
3506 : }
3507 : // Sentinel = 'Tvoid_t'
3508 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3509 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3510 0 : return false;
3511 : }
3512 0 : return true;
3513 : }
3514 : default:
3515 : {
3516 0 : FatalError("unknown union type");
3517 0 : return false;
3518 : }
3519 : }
3520 : }
3521 :
3522 0 : auto PLayerTransactionChild::Write(
3523 : const nsTArray<TransformFunction>& v__,
3524 : Message* msg__) -> void
3525 : {
3526 0 : uint32_t length = (v__).Length();
3527 0 : Write(length, msg__);
3528 : // Sentinel = ('length', 'TransformFunction[]')
3529 0 : (msg__)->WriteSentinel(2517499252);
3530 :
3531 0 : for (auto& elem : v__) {
3532 0 : Write(elem, msg__);
3533 : // Sentinel = 'TransformFunction[]'
3534 0 : (msg__)->WriteSentinel(1101525651);
3535 : }
3536 0 : }
3537 :
3538 0 : auto PLayerTransactionChild::Read(
3539 : nsTArray<TransformFunction>* v__,
3540 : const Message* msg__,
3541 : PickleIterator* iter__) -> bool
3542 : {
3543 0 : nsTArray<TransformFunction> fa;
3544 : uint32_t length;
3545 0 : if ((!(Read((&(length)), msg__, iter__)))) {
3546 0 : mozilla::ipc::ArrayLengthReadError("TransformFunction[]");
3547 0 : return false;
3548 : }
3549 : // Sentinel = ('length', 'TransformFunction[]')
3550 0 : if ((!((msg__)->ReadSentinel(iter__, 2517499252)))) {
3551 0 : mozilla::ipc::SentinelReadError("TransformFunction[]");
3552 0 : return false;
3553 : }
3554 :
3555 0 : TransformFunction* elems = (fa).AppendElements(length);
3556 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
3557 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
3558 0 : FatalError("Error deserializing 'TransformFunction[i]'");
3559 0 : return false;
3560 : }
3561 : // Sentinel = 'TransformFunction[]'
3562 0 : if ((!((msg__)->ReadSentinel(iter__, 1101525651)))) {
3563 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TransformFunction[i]'");
3564 0 : return false;
3565 : }
3566 : }
3567 0 : (v__)->SwapElements(fa);
3568 0 : return true;
3569 : }
3570 :
3571 4 : auto PLayerTransactionChild::Write(
3572 : const OpPrependChild& v__,
3573 : Message* msg__) -> void
3574 : {
3575 4 : Write((v__).container(), msg__);
3576 : // Sentinel = 'container'
3577 4 : (msg__)->WriteSentinel(613059236);
3578 4 : Write((v__).childLayer(), msg__);
3579 : // Sentinel = 'childLayer'
3580 4 : (msg__)->WriteSentinel(154398963);
3581 4 : }
3582 :
3583 0 : auto PLayerTransactionChild::Read(
3584 : OpPrependChild* v__,
3585 : const Message* msg__,
3586 : PickleIterator* iter__) -> bool
3587 : {
3588 0 : if ((!(Read((&((v__)->container())), msg__, iter__)))) {
3589 0 : FatalError("Error deserializing 'container' (LayerHandle) member of 'OpPrependChild'");
3590 0 : return false;
3591 : }
3592 : // Sentinel = 'container'
3593 0 : if ((!((msg__)->ReadSentinel(iter__, 613059236)))) {
3594 0 : mozilla::ipc::SentinelReadError("Error deserializing 'container' (LayerHandle) member of 'OpPrependChild'");
3595 0 : return false;
3596 : }
3597 0 : if ((!(Read((&((v__)->childLayer())), msg__, iter__)))) {
3598 0 : FatalError("Error deserializing 'childLayer' (LayerHandle) member of 'OpPrependChild'");
3599 0 : return false;
3600 : }
3601 : // Sentinel = 'childLayer'
3602 0 : if ((!((msg__)->ReadSentinel(iter__, 154398963)))) {
3603 0 : mozilla::ipc::SentinelReadError("Error deserializing 'childLayer' (LayerHandle) member of 'OpPrependChild'");
3604 0 : return false;
3605 : }
3606 0 : return true;
3607 : }
3608 :
3609 43 : auto PLayerTransactionChild::Write(
3610 : const ContainerLayerAttributes& v__,
3611 : Message* msg__) -> void
3612 : {
3613 43 : Write((v__).preXScale(), msg__);
3614 : // Sentinel = 'preXScale'
3615 43 : (msg__)->WriteSentinel(2584362704);
3616 43 : Write((v__).preYScale(), msg__);
3617 : // Sentinel = 'preYScale'
3618 43 : (msg__)->WriteSentinel(970268767);
3619 43 : Write((v__).inheritedXScale(), msg__);
3620 : // Sentinel = 'inheritedXScale'
3621 43 : (msg__)->WriteSentinel(1285237395);
3622 43 : Write((v__).inheritedYScale(), msg__);
3623 : // Sentinel = 'inheritedYScale'
3624 43 : (msg__)->WriteSentinel(3724217552);
3625 43 : Write((v__).presShellResolution(), msg__);
3626 : // Sentinel = 'presShellResolution'
3627 43 : (msg__)->WriteSentinel(526924453);
3628 43 : Write((v__).scaleToResolution(), msg__);
3629 : // Sentinel = 'scaleToResolution'
3630 43 : (msg__)->WriteSentinel(2681979286);
3631 43 : Write((v__).eventRegionsOverride(), msg__);
3632 : // Sentinel = 'eventRegionsOverride'
3633 43 : (msg__)->WriteSentinel(2829940611);
3634 43 : }
3635 :
3636 0 : auto PLayerTransactionChild::Read(
3637 : ContainerLayerAttributes* v__,
3638 : const Message* msg__,
3639 : PickleIterator* iter__) -> bool
3640 : {
3641 0 : if ((!(Read((&((v__)->preXScale())), msg__, iter__)))) {
3642 0 : FatalError("Error deserializing 'preXScale' (float) member of 'ContainerLayerAttributes'");
3643 0 : return false;
3644 : }
3645 : // Sentinel = 'preXScale'
3646 0 : if ((!((msg__)->ReadSentinel(iter__, 2584362704)))) {
3647 0 : mozilla::ipc::SentinelReadError("Error deserializing 'preXScale' (float) member of 'ContainerLayerAttributes'");
3648 0 : return false;
3649 : }
3650 0 : if ((!(Read((&((v__)->preYScale())), msg__, iter__)))) {
3651 0 : FatalError("Error deserializing 'preYScale' (float) member of 'ContainerLayerAttributes'");
3652 0 : return false;
3653 : }
3654 : // Sentinel = 'preYScale'
3655 0 : if ((!((msg__)->ReadSentinel(iter__, 970268767)))) {
3656 0 : mozilla::ipc::SentinelReadError("Error deserializing 'preYScale' (float) member of 'ContainerLayerAttributes'");
3657 0 : return false;
3658 : }
3659 0 : if ((!(Read((&((v__)->inheritedXScale())), msg__, iter__)))) {
3660 0 : FatalError("Error deserializing 'inheritedXScale' (float) member of 'ContainerLayerAttributes'");
3661 0 : return false;
3662 : }
3663 : // Sentinel = 'inheritedXScale'
3664 0 : if ((!((msg__)->ReadSentinel(iter__, 1285237395)))) {
3665 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inheritedXScale' (float) member of 'ContainerLayerAttributes'");
3666 0 : return false;
3667 : }
3668 0 : if ((!(Read((&((v__)->inheritedYScale())), msg__, iter__)))) {
3669 0 : FatalError("Error deserializing 'inheritedYScale' (float) member of 'ContainerLayerAttributes'");
3670 0 : return false;
3671 : }
3672 : // Sentinel = 'inheritedYScale'
3673 0 : if ((!((msg__)->ReadSentinel(iter__, 3724217552)))) {
3674 0 : mozilla::ipc::SentinelReadError("Error deserializing 'inheritedYScale' (float) member of 'ContainerLayerAttributes'");
3675 0 : return false;
3676 : }
3677 0 : if ((!(Read((&((v__)->presShellResolution())), msg__, iter__)))) {
3678 0 : FatalError("Error deserializing 'presShellResolution' (float) member of 'ContainerLayerAttributes'");
3679 0 : return false;
3680 : }
3681 : // Sentinel = 'presShellResolution'
3682 0 : if ((!((msg__)->ReadSentinel(iter__, 526924453)))) {
3683 0 : mozilla::ipc::SentinelReadError("Error deserializing 'presShellResolution' (float) member of 'ContainerLayerAttributes'");
3684 0 : return false;
3685 : }
3686 0 : if ((!(Read((&((v__)->scaleToResolution())), msg__, iter__)))) {
3687 0 : FatalError("Error deserializing 'scaleToResolution' (bool) member of 'ContainerLayerAttributes'");
3688 0 : return false;
3689 : }
3690 : // Sentinel = 'scaleToResolution'
3691 0 : if ((!((msg__)->ReadSentinel(iter__, 2681979286)))) {
3692 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaleToResolution' (bool) member of 'ContainerLayerAttributes'");
3693 0 : return false;
3694 : }
3695 0 : if ((!(Read((&((v__)->eventRegionsOverride())), msg__, iter__)))) {
3696 0 : FatalError("Error deserializing 'eventRegionsOverride' (EventRegionsOverride) member of 'ContainerLayerAttributes'");
3697 0 : return false;
3698 : }
3699 : // Sentinel = 'eventRegionsOverride'
3700 0 : if ((!((msg__)->ReadSentinel(iter__, 2829940611)))) {
3701 0 : mozilla::ipc::SentinelReadError("Error deserializing 'eventRegionsOverride' (EventRegionsOverride) member of 'ContainerLayerAttributes'");
3702 0 : return false;
3703 : }
3704 0 : return true;
3705 : }
3706 :
3707 124 : auto PLayerTransactionChild::Write(
3708 : const OpSetLayerAttributes& v__,
3709 : Message* msg__) -> void
3710 : {
3711 124 : Write((v__).layer(), msg__);
3712 : // Sentinel = 'layer'
3713 124 : (msg__)->WriteSentinel(1899167106);
3714 124 : Write((v__).attrs(), msg__);
3715 : // Sentinel = 'attrs'
3716 124 : (msg__)->WriteSentinel(3014987797);
3717 124 : }
3718 :
3719 0 : auto PLayerTransactionChild::Read(
3720 : OpSetLayerAttributes* v__,
3721 : const Message* msg__,
3722 : PickleIterator* iter__) -> bool
3723 : {
3724 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
3725 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpSetLayerAttributes'");
3726 0 : return false;
3727 : }
3728 : // Sentinel = 'layer'
3729 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
3730 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpSetLayerAttributes'");
3731 0 : return false;
3732 : }
3733 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
3734 0 : FatalError("Error deserializing 'attrs' (LayerAttributes) member of 'OpSetLayerAttributes'");
3735 0 : return false;
3736 : }
3737 : // Sentinel = 'attrs'
3738 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
3739 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (LayerAttributes) member of 'OpSetLayerAttributes'");
3740 0 : return false;
3741 : }
3742 0 : return true;
3743 : }
3744 :
3745 124 : auto PLayerTransactionChild::Write(
3746 : const SpecificLayerAttributes& v__,
3747 : Message* msg__) -> void
3748 : {
3749 : typedef SpecificLayerAttributes type__;
3750 124 : Write(int((v__).type()), msg__);
3751 : // Sentinel = 'SpecificLayerAttributes'
3752 124 : (msg__)->WriteSentinel(764973155);
3753 :
3754 124 : switch ((v__).type()) {
3755 : case type__::Tnull_t:
3756 : {
3757 0 : Write((v__).get_null_t(), msg__);
3758 : // Sentinel = 'Tnull_t'
3759 0 : (msg__)->WriteSentinel(3731137201);
3760 0 : return;
3761 : }
3762 : case type__::TPaintedLayerAttributes:
3763 : {
3764 53 : Write((v__).get_PaintedLayerAttributes(), msg__);
3765 : // Sentinel = 'TPaintedLayerAttributes'
3766 53 : (msg__)->WriteSentinel(299542338);
3767 53 : return;
3768 : }
3769 : case type__::TContainerLayerAttributes:
3770 : {
3771 43 : Write((v__).get_ContainerLayerAttributes(), msg__);
3772 : // Sentinel = 'TContainerLayerAttributes'
3773 43 : (msg__)->WriteSentinel(2707677910);
3774 43 : return;
3775 : }
3776 : case type__::TColorLayerAttributes:
3777 : {
3778 4 : Write((v__).get_ColorLayerAttributes(), msg__);
3779 : // Sentinel = 'TColorLayerAttributes'
3780 4 : (msg__)->WriteSentinel(1741074522);
3781 4 : return;
3782 : }
3783 : case type__::TCanvasLayerAttributes:
3784 : {
3785 0 : Write((v__).get_CanvasLayerAttributes(), msg__);
3786 : // Sentinel = 'TCanvasLayerAttributes'
3787 0 : (msg__)->WriteSentinel(1471416018);
3788 0 : return;
3789 : }
3790 : case type__::TTextLayerAttributes:
3791 : {
3792 0 : Write((v__).get_TextLayerAttributes(), msg__);
3793 : // Sentinel = 'TTextLayerAttributes'
3794 0 : (msg__)->WriteSentinel(748812707);
3795 0 : return;
3796 : }
3797 : case type__::TRefLayerAttributes:
3798 : {
3799 24 : Write((v__).get_RefLayerAttributes(), msg__);
3800 : // Sentinel = 'TRefLayerAttributes'
3801 24 : (msg__)->WriteSentinel(3960711078);
3802 24 : return;
3803 : }
3804 : case type__::TImageLayerAttributes:
3805 : {
3806 0 : Write((v__).get_ImageLayerAttributes(), msg__);
3807 : // Sentinel = 'TImageLayerAttributes'
3808 0 : (msg__)->WriteSentinel(1391450712);
3809 0 : return;
3810 : }
3811 : case type__::TBorderLayerAttributes:
3812 : {
3813 0 : Write((v__).get_BorderLayerAttributes(), msg__);
3814 : // Sentinel = 'TBorderLayerAttributes'
3815 0 : (msg__)->WriteSentinel(4114944608);
3816 0 : return;
3817 : }
3818 : default:
3819 : {
3820 0 : FatalError("unknown union type");
3821 0 : return;
3822 : }
3823 : }
3824 : }
3825 :
3826 0 : auto PLayerTransactionChild::Read(
3827 : SpecificLayerAttributes* v__,
3828 : const Message* msg__,
3829 : PickleIterator* iter__) -> bool
3830 : {
3831 : typedef SpecificLayerAttributes type__;
3832 : int type;
3833 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3834 0 : mozilla::ipc::UnionTypeReadError("SpecificLayerAttributes");
3835 0 : return false;
3836 : }
3837 : // Sentinel = 'SpecificLayerAttributes'
3838 0 : if ((!((msg__)->ReadSentinel(iter__, 764973155)))) {
3839 0 : mozilla::ipc::SentinelReadError("SpecificLayerAttributes");
3840 0 : return false;
3841 : }
3842 :
3843 0 : switch (type) {
3844 : case type__::Tnull_t:
3845 : {
3846 : null_t tmp = null_t();
3847 0 : (*(v__)) = tmp;
3848 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
3849 0 : FatalError("Error deserializing Union type");
3850 0 : return false;
3851 : }
3852 : // Sentinel = 'Tnull_t'
3853 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
3854 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3855 0 : return false;
3856 : }
3857 0 : return true;
3858 : }
3859 : case type__::TPaintedLayerAttributes:
3860 : {
3861 0 : PaintedLayerAttributes tmp = PaintedLayerAttributes();
3862 0 : (*(v__)) = tmp;
3863 0 : if ((!(Read((&((v__)->get_PaintedLayerAttributes())), msg__, iter__)))) {
3864 0 : FatalError("Error deserializing Union type");
3865 0 : return false;
3866 : }
3867 : // Sentinel = 'TPaintedLayerAttributes'
3868 0 : if ((!((msg__)->ReadSentinel(iter__, 299542338)))) {
3869 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3870 0 : return false;
3871 : }
3872 0 : return true;
3873 : }
3874 : case type__::TContainerLayerAttributes:
3875 : {
3876 0 : ContainerLayerAttributes tmp = ContainerLayerAttributes();
3877 0 : (*(v__)) = tmp;
3878 0 : if ((!(Read((&((v__)->get_ContainerLayerAttributes())), msg__, iter__)))) {
3879 0 : FatalError("Error deserializing Union type");
3880 0 : return false;
3881 : }
3882 : // Sentinel = 'TContainerLayerAttributes'
3883 0 : if ((!((msg__)->ReadSentinel(iter__, 2707677910)))) {
3884 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3885 0 : return false;
3886 : }
3887 0 : return true;
3888 : }
3889 : case type__::TColorLayerAttributes:
3890 : {
3891 0 : ColorLayerAttributes tmp = ColorLayerAttributes();
3892 0 : (*(v__)) = tmp;
3893 0 : if ((!(Read((&((v__)->get_ColorLayerAttributes())), msg__, iter__)))) {
3894 0 : FatalError("Error deserializing Union type");
3895 0 : return false;
3896 : }
3897 : // Sentinel = 'TColorLayerAttributes'
3898 0 : if ((!((msg__)->ReadSentinel(iter__, 1741074522)))) {
3899 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3900 0 : return false;
3901 : }
3902 0 : return true;
3903 : }
3904 : case type__::TCanvasLayerAttributes:
3905 : {
3906 0 : CanvasLayerAttributes tmp = CanvasLayerAttributes();
3907 0 : (*(v__)) = tmp;
3908 0 : if ((!(Read((&((v__)->get_CanvasLayerAttributes())), msg__, iter__)))) {
3909 0 : FatalError("Error deserializing Union type");
3910 0 : return false;
3911 : }
3912 : // Sentinel = 'TCanvasLayerAttributes'
3913 0 : if ((!((msg__)->ReadSentinel(iter__, 1471416018)))) {
3914 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3915 0 : return false;
3916 : }
3917 0 : return true;
3918 : }
3919 : case type__::TTextLayerAttributes:
3920 : {
3921 0 : TextLayerAttributes tmp = TextLayerAttributes();
3922 0 : (*(v__)) = tmp;
3923 0 : if ((!(Read((&((v__)->get_TextLayerAttributes())), msg__, iter__)))) {
3924 0 : FatalError("Error deserializing Union type");
3925 0 : return false;
3926 : }
3927 : // Sentinel = 'TTextLayerAttributes'
3928 0 : if ((!((msg__)->ReadSentinel(iter__, 748812707)))) {
3929 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3930 0 : return false;
3931 : }
3932 0 : return true;
3933 : }
3934 : case type__::TRefLayerAttributes:
3935 : {
3936 0 : RefLayerAttributes tmp = RefLayerAttributes();
3937 0 : (*(v__)) = tmp;
3938 0 : if ((!(Read((&((v__)->get_RefLayerAttributes())), msg__, iter__)))) {
3939 0 : FatalError("Error deserializing Union type");
3940 0 : return false;
3941 : }
3942 : // Sentinel = 'TRefLayerAttributes'
3943 0 : if ((!((msg__)->ReadSentinel(iter__, 3960711078)))) {
3944 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3945 0 : return false;
3946 : }
3947 0 : return true;
3948 : }
3949 : case type__::TImageLayerAttributes:
3950 : {
3951 0 : ImageLayerAttributes tmp = ImageLayerAttributes();
3952 0 : (*(v__)) = tmp;
3953 0 : if ((!(Read((&((v__)->get_ImageLayerAttributes())), msg__, iter__)))) {
3954 0 : FatalError("Error deserializing Union type");
3955 0 : return false;
3956 : }
3957 : // Sentinel = 'TImageLayerAttributes'
3958 0 : if ((!((msg__)->ReadSentinel(iter__, 1391450712)))) {
3959 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3960 0 : return false;
3961 : }
3962 0 : return true;
3963 : }
3964 : case type__::TBorderLayerAttributes:
3965 : {
3966 0 : BorderLayerAttributes tmp = BorderLayerAttributes();
3967 0 : (*(v__)) = tmp;
3968 0 : if ((!(Read((&((v__)->get_BorderLayerAttributes())), msg__, iter__)))) {
3969 0 : FatalError("Error deserializing Union type");
3970 0 : return false;
3971 : }
3972 : // Sentinel = 'TBorderLayerAttributes'
3973 0 : if ((!((msg__)->ReadSentinel(iter__, 4114944608)))) {
3974 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3975 0 : return false;
3976 : }
3977 0 : return true;
3978 : }
3979 : default:
3980 : {
3981 0 : FatalError("unknown union type");
3982 0 : return false;
3983 : }
3984 : }
3985 : }
3986 :
3987 0 : auto PLayerTransactionChild::Write(
3988 : const OpRaiseToTopChild& v__,
3989 : Message* msg__) -> void
3990 : {
3991 0 : Write((v__).container(), msg__);
3992 : // Sentinel = 'container'
3993 0 : (msg__)->WriteSentinel(613059236);
3994 0 : Write((v__).childLayer(), msg__);
3995 : // Sentinel = 'childLayer'
3996 0 : (msg__)->WriteSentinel(154398963);
3997 0 : }
3998 :
3999 0 : auto PLayerTransactionChild::Read(
4000 : OpRaiseToTopChild* v__,
4001 : const Message* msg__,
4002 : PickleIterator* iter__) -> bool
4003 : {
4004 0 : if ((!(Read((&((v__)->container())), msg__, iter__)))) {
4005 0 : FatalError("Error deserializing 'container' (LayerHandle) member of 'OpRaiseToTopChild'");
4006 0 : return false;
4007 : }
4008 : // Sentinel = 'container'
4009 0 : if ((!((msg__)->ReadSentinel(iter__, 613059236)))) {
4010 0 : mozilla::ipc::SentinelReadError("Error deserializing 'container' (LayerHandle) member of 'OpRaiseToTopChild'");
4011 0 : return false;
4012 : }
4013 0 : if ((!(Read((&((v__)->childLayer())), msg__, iter__)))) {
4014 0 : FatalError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRaiseToTopChild'");
4015 0 : return false;
4016 : }
4017 : // Sentinel = 'childLayer'
4018 0 : if ((!((msg__)->ReadSentinel(iter__, 154398963)))) {
4019 0 : mozilla::ipc::SentinelReadError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRaiseToTopChild'");
4020 0 : return false;
4021 : }
4022 0 : return true;
4023 : }
4024 :
4025 0 : auto PLayerTransactionChild::Write(
4026 : const GlyphArray& v__,
4027 : Message* msg__) -> void
4028 : {
4029 0 : Write((v__).color(), msg__);
4030 : // Sentinel = 'color'
4031 0 : (msg__)->WriteSentinel(2703551752);
4032 0 : Write((v__).glyphs(), msg__);
4033 : // Sentinel = 'glyphs'
4034 0 : (msg__)->WriteSentinel(2497623611);
4035 0 : }
4036 :
4037 0 : auto PLayerTransactionChild::Read(
4038 : GlyphArray* v__,
4039 : const Message* msg__,
4040 : PickleIterator* iter__) -> bool
4041 : {
4042 0 : if ((!(Read((&((v__)->color())), msg__, iter__)))) {
4043 0 : FatalError("Error deserializing 'color' (LayerColor) member of 'GlyphArray'");
4044 0 : return false;
4045 : }
4046 : // Sentinel = 'color'
4047 0 : if ((!((msg__)->ReadSentinel(iter__, 2703551752)))) {
4048 0 : mozilla::ipc::SentinelReadError("Error deserializing 'color' (LayerColor) member of 'GlyphArray'");
4049 0 : return false;
4050 : }
4051 0 : if ((!(Read((&((v__)->glyphs())), msg__, iter__)))) {
4052 0 : FatalError("Error deserializing 'glyphs' (Glyph[]) member of 'GlyphArray'");
4053 0 : return false;
4054 : }
4055 : // Sentinel = 'glyphs'
4056 0 : if ((!((msg__)->ReadSentinel(iter__, 2497623611)))) {
4057 0 : mozilla::ipc::SentinelReadError("Error deserializing 'glyphs' (Glyph[]) member of 'GlyphArray'");
4058 0 : return false;
4059 : }
4060 0 : return true;
4061 : }
4062 :
4063 0 : auto PLayerTransactionChild::Write(
4064 : const PluginWindowData& v__,
4065 : Message* msg__) -> void
4066 : {
4067 0 : Write((v__).windowId(), msg__);
4068 : // Sentinel = 'windowId'
4069 0 : (msg__)->WriteSentinel(719502035);
4070 0 : Write((v__).clip(), msg__);
4071 : // Sentinel = 'clip'
4072 0 : (msg__)->WriteSentinel(3899292550);
4073 0 : Write((v__).bounds(), msg__);
4074 : // Sentinel = 'bounds'
4075 0 : (msg__)->WriteSentinel(809584493);
4076 0 : Write((v__).visible(), msg__);
4077 : // Sentinel = 'visible'
4078 0 : (msg__)->WriteSentinel(1037099281);
4079 0 : }
4080 :
4081 0 : auto PLayerTransactionChild::Read(
4082 : PluginWindowData* v__,
4083 : const Message* msg__,
4084 : PickleIterator* iter__) -> bool
4085 : {
4086 0 : if ((!(Read((&((v__)->windowId())), msg__, iter__)))) {
4087 0 : FatalError("Error deserializing 'windowId' (uintptr_t) member of 'PluginWindowData'");
4088 0 : return false;
4089 : }
4090 : // Sentinel = 'windowId'
4091 0 : if ((!((msg__)->ReadSentinel(iter__, 719502035)))) {
4092 0 : mozilla::ipc::SentinelReadError("Error deserializing 'windowId' (uintptr_t) member of 'PluginWindowData'");
4093 0 : return false;
4094 : }
4095 0 : if ((!(Read((&((v__)->clip())), msg__, iter__)))) {
4096 0 : FatalError("Error deserializing 'clip' (LayoutDeviceIntRect[]) member of 'PluginWindowData'");
4097 0 : return false;
4098 : }
4099 : // Sentinel = 'clip'
4100 0 : if ((!((msg__)->ReadSentinel(iter__, 3899292550)))) {
4101 0 : mozilla::ipc::SentinelReadError("Error deserializing 'clip' (LayoutDeviceIntRect[]) member of 'PluginWindowData'");
4102 0 : return false;
4103 : }
4104 0 : if ((!(Read((&((v__)->bounds())), msg__, iter__)))) {
4105 0 : FatalError("Error deserializing 'bounds' (LayoutDeviceIntRect) member of 'PluginWindowData'");
4106 0 : return false;
4107 : }
4108 : // Sentinel = 'bounds'
4109 0 : if ((!((msg__)->ReadSentinel(iter__, 809584493)))) {
4110 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bounds' (LayoutDeviceIntRect) member of 'PluginWindowData'");
4111 0 : return false;
4112 : }
4113 0 : if ((!(Read((&((v__)->visible())), msg__, iter__)))) {
4114 0 : FatalError("Error deserializing 'visible' (bool) member of 'PluginWindowData'");
4115 0 : return false;
4116 : }
4117 : // Sentinel = 'visible'
4118 0 : if ((!((msg__)->ReadSentinel(iter__, 1037099281)))) {
4119 0 : mozilla::ipc::SentinelReadError("Error deserializing 'visible' (bool) member of 'PluginWindowData'");
4120 0 : return false;
4121 : }
4122 0 : return true;
4123 : }
4124 :
4125 124 : auto PLayerTransactionChild::Write(
4126 : const CommonLayerAttributes& v__,
4127 : Message* msg__) -> void
4128 : {
4129 124 : Write((v__).visibleRegion(), msg__);
4130 : // Sentinel = 'visibleRegion'
4131 124 : (msg__)->WriteSentinel(2676991175);
4132 124 : Write((v__).eventRegions(), msg__);
4133 : // Sentinel = 'eventRegions'
4134 124 : (msg__)->WriteSentinel(438949443);
4135 124 : Write((v__).useClipRect(), msg__);
4136 : // Sentinel = 'useClipRect'
4137 124 : (msg__)->WriteSentinel(677378102);
4138 124 : Write((v__).clipRect(), msg__);
4139 : // Sentinel = 'clipRect'
4140 124 : (msg__)->WriteSentinel(1242385220);
4141 124 : Write((v__).maskLayer(), msg__);
4142 : // Sentinel = 'maskLayer'
4143 124 : (msg__)->WriteSentinel(1412766294);
4144 124 : Write((v__).ancestorMaskLayers(), msg__);
4145 : // Sentinel = 'ancestorMaskLayers'
4146 124 : (msg__)->WriteSentinel(2851099655);
4147 124 : Write((v__).compositorAnimations(), msg__);
4148 : // Sentinel = 'compositorAnimations'
4149 124 : (msg__)->WriteSentinel(1016284326);
4150 124 : Write((v__).invalidRegion(), msg__);
4151 : // Sentinel = 'invalidRegion'
4152 124 : (msg__)->WriteSentinel(3857779772);
4153 124 : Write((v__).scrollMetadata(), msg__);
4154 : // Sentinel = 'scrollMetadata'
4155 124 : (msg__)->WriteSentinel(257252514);
4156 124 : Write((v__).displayListLog(), msg__);
4157 : // Sentinel = 'displayListLog'
4158 124 : (msg__)->WriteSentinel(1994382750);
4159 124 : }
4160 :
4161 0 : auto PLayerTransactionChild::Read(
4162 : CommonLayerAttributes* v__,
4163 : const Message* msg__,
4164 : PickleIterator* iter__) -> bool
4165 : {
4166 0 : if ((!(Read((&((v__)->visibleRegion())), msg__, iter__)))) {
4167 0 : FatalError("Error deserializing 'visibleRegion' (LayerIntRegion) member of 'CommonLayerAttributes'");
4168 0 : return false;
4169 : }
4170 : // Sentinel = 'visibleRegion'
4171 0 : if ((!((msg__)->ReadSentinel(iter__, 2676991175)))) {
4172 0 : mozilla::ipc::SentinelReadError("Error deserializing 'visibleRegion' (LayerIntRegion) member of 'CommonLayerAttributes'");
4173 0 : return false;
4174 : }
4175 0 : if ((!(Read((&((v__)->eventRegions())), msg__, iter__)))) {
4176 0 : FatalError("Error deserializing 'eventRegions' (EventRegions) member of 'CommonLayerAttributes'");
4177 0 : return false;
4178 : }
4179 : // Sentinel = 'eventRegions'
4180 0 : if ((!((msg__)->ReadSentinel(iter__, 438949443)))) {
4181 0 : mozilla::ipc::SentinelReadError("Error deserializing 'eventRegions' (EventRegions) member of 'CommonLayerAttributes'");
4182 0 : return false;
4183 : }
4184 0 : if ((!(Read((&((v__)->useClipRect())), msg__, iter__)))) {
4185 0 : FatalError("Error deserializing 'useClipRect' (bool) member of 'CommonLayerAttributes'");
4186 0 : return false;
4187 : }
4188 : // Sentinel = 'useClipRect'
4189 0 : if ((!((msg__)->ReadSentinel(iter__, 677378102)))) {
4190 0 : mozilla::ipc::SentinelReadError("Error deserializing 'useClipRect' (bool) member of 'CommonLayerAttributes'");
4191 0 : return false;
4192 : }
4193 0 : if ((!(Read((&((v__)->clipRect())), msg__, iter__)))) {
4194 0 : FatalError("Error deserializing 'clipRect' (ParentLayerIntRect) member of 'CommonLayerAttributes'");
4195 0 : return false;
4196 : }
4197 : // Sentinel = 'clipRect'
4198 0 : if ((!((msg__)->ReadSentinel(iter__, 1242385220)))) {
4199 0 : mozilla::ipc::SentinelReadError("Error deserializing 'clipRect' (ParentLayerIntRect) member of 'CommonLayerAttributes'");
4200 0 : return false;
4201 : }
4202 0 : if ((!(Read((&((v__)->maskLayer())), msg__, iter__)))) {
4203 0 : FatalError("Error deserializing 'maskLayer' (LayerHandle) member of 'CommonLayerAttributes'");
4204 0 : return false;
4205 : }
4206 : // Sentinel = 'maskLayer'
4207 0 : if ((!((msg__)->ReadSentinel(iter__, 1412766294)))) {
4208 0 : mozilla::ipc::SentinelReadError("Error deserializing 'maskLayer' (LayerHandle) member of 'CommonLayerAttributes'");
4209 0 : return false;
4210 : }
4211 0 : if ((!(Read((&((v__)->ancestorMaskLayers())), msg__, iter__)))) {
4212 0 : FatalError("Error deserializing 'ancestorMaskLayers' (LayerHandle[]) member of 'CommonLayerAttributes'");
4213 0 : return false;
4214 : }
4215 : // Sentinel = 'ancestorMaskLayers'
4216 0 : if ((!((msg__)->ReadSentinel(iter__, 2851099655)))) {
4217 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ancestorMaskLayers' (LayerHandle[]) member of 'CommonLayerAttributes'");
4218 0 : return false;
4219 : }
4220 0 : if ((!(Read((&((v__)->compositorAnimations())), msg__, iter__)))) {
4221 0 : FatalError("Error deserializing 'compositorAnimations' (CompositorAnimations) member of 'CommonLayerAttributes'");
4222 0 : return false;
4223 : }
4224 : // Sentinel = 'compositorAnimations'
4225 0 : if ((!((msg__)->ReadSentinel(iter__, 1016284326)))) {
4226 0 : mozilla::ipc::SentinelReadError("Error deserializing 'compositorAnimations' (CompositorAnimations) member of 'CommonLayerAttributes'");
4227 0 : return false;
4228 : }
4229 0 : if ((!(Read((&((v__)->invalidRegion())), msg__, iter__)))) {
4230 0 : FatalError("Error deserializing 'invalidRegion' (nsIntRegion) member of 'CommonLayerAttributes'");
4231 0 : return false;
4232 : }
4233 : // Sentinel = 'invalidRegion'
4234 0 : if ((!((msg__)->ReadSentinel(iter__, 3857779772)))) {
4235 0 : mozilla::ipc::SentinelReadError("Error deserializing 'invalidRegion' (nsIntRegion) member of 'CommonLayerAttributes'");
4236 0 : return false;
4237 : }
4238 0 : if ((!(Read((&((v__)->scrollMetadata())), msg__, iter__)))) {
4239 0 : FatalError("Error deserializing 'scrollMetadata' (ScrollMetadata[]) member of 'CommonLayerAttributes'");
4240 0 : return false;
4241 : }
4242 : // Sentinel = 'scrollMetadata'
4243 0 : if ((!((msg__)->ReadSentinel(iter__, 257252514)))) {
4244 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scrollMetadata' (ScrollMetadata[]) member of 'CommonLayerAttributes'");
4245 0 : return false;
4246 : }
4247 0 : if ((!(Read((&((v__)->displayListLog())), msg__, iter__)))) {
4248 0 : FatalError("Error deserializing 'displayListLog' (nsCString) member of 'CommonLayerAttributes'");
4249 0 : return false;
4250 : }
4251 : // Sentinel = 'displayListLog'
4252 0 : if ((!((msg__)->ReadSentinel(iter__, 1994382750)))) {
4253 0 : mozilla::ipc::SentinelReadError("Error deserializing 'displayListLog' (nsCString) member of 'CommonLayerAttributes'");
4254 0 : return false;
4255 : }
4256 0 : return true;
4257 : }
4258 :
4259 24 : auto PLayerTransactionChild::Write(
4260 : const RefLayerAttributes& v__,
4261 : Message* msg__) -> void
4262 : {
4263 24 : Write((v__).id(), msg__);
4264 : // Sentinel = 'id'
4265 24 : (msg__)->WriteSentinel(2794505629);
4266 24 : Write((v__).eventRegionsOverride(), msg__);
4267 : // Sentinel = 'eventRegionsOverride'
4268 24 : (msg__)->WriteSentinel(2829940611);
4269 24 : }
4270 :
4271 0 : auto PLayerTransactionChild::Read(
4272 : RefLayerAttributes* v__,
4273 : const Message* msg__,
4274 : PickleIterator* iter__) -> bool
4275 : {
4276 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
4277 0 : FatalError("Error deserializing 'id' (uint64_t) member of 'RefLayerAttributes'");
4278 0 : return false;
4279 : }
4280 : // Sentinel = 'id'
4281 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
4282 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint64_t) member of 'RefLayerAttributes'");
4283 0 : return false;
4284 : }
4285 0 : if ((!(Read((&((v__)->eventRegionsOverride())), msg__, iter__)))) {
4286 0 : FatalError("Error deserializing 'eventRegionsOverride' (EventRegionsOverride) member of 'RefLayerAttributes'");
4287 0 : return false;
4288 : }
4289 : // Sentinel = 'eventRegionsOverride'
4290 0 : if ((!((msg__)->ReadSentinel(iter__, 2829940611)))) {
4291 0 : mozilla::ipc::SentinelReadError("Error deserializing 'eventRegionsOverride' (EventRegionsOverride) member of 'RefLayerAttributes'");
4292 0 : return false;
4293 : }
4294 0 : return true;
4295 : }
4296 :
4297 0 : auto PLayerTransactionChild::Write(
4298 : const PLayerTransactionChild* v__,
4299 : Message* msg__,
4300 : bool nullable__) -> void
4301 : {
4302 : int32_t id;
4303 0 : if ((!(v__))) {
4304 0 : if ((!(nullable__))) {
4305 0 : FatalError("NULL actor value passed to non-nullable param");
4306 : }
4307 0 : id = 0;
4308 : }
4309 : else {
4310 0 : id = (v__)->Id();
4311 0 : if ((1) == (id)) {
4312 0 : FatalError("actor has been |delete|d");
4313 : }
4314 : }
4315 :
4316 0 : Write(id, msg__);
4317 0 : }
4318 :
4319 0 : auto PLayerTransactionChild::Read(
4320 : PLayerTransactionChild** v__,
4321 : const Message* msg__,
4322 : PickleIterator* iter__,
4323 : bool nullable__) -> bool
4324 : {
4325 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PLayerTransaction", PLayerTransactionMsgStart);
4326 0 : if ((actor).isNothing()) {
4327 0 : return false;
4328 : }
4329 :
4330 0 : (*(v__)) = static_cast<PLayerTransactionChild*>((actor).value());
4331 0 : return true;
4332 : }
4333 :
4334 24 : auto PLayerTransactionChild::Write(
4335 : const nsTArray<ReadLockInit>& v__,
4336 : Message* msg__) -> void
4337 : {
4338 24 : uint32_t length = (v__).Length();
4339 24 : Write(length, msg__);
4340 : // Sentinel = ('length', 'ReadLockInit[]')
4341 24 : (msg__)->WriteSentinel(3010682310);
4342 :
4343 57 : for (auto& elem : v__) {
4344 33 : Write(elem, msg__);
4345 : // Sentinel = 'ReadLockInit[]'
4346 33 : (msg__)->WriteSentinel(1659602585);
4347 : }
4348 24 : }
4349 :
4350 0 : auto PLayerTransactionChild::Read(
4351 : nsTArray<ReadLockInit>* v__,
4352 : const Message* msg__,
4353 : PickleIterator* iter__) -> bool
4354 : {
4355 0 : nsTArray<ReadLockInit> fa;
4356 : uint32_t length;
4357 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4358 0 : mozilla::ipc::ArrayLengthReadError("ReadLockInit[]");
4359 0 : return false;
4360 : }
4361 : // Sentinel = ('length', 'ReadLockInit[]')
4362 0 : if ((!((msg__)->ReadSentinel(iter__, 3010682310)))) {
4363 0 : mozilla::ipc::SentinelReadError("ReadLockInit[]");
4364 0 : return false;
4365 : }
4366 :
4367 0 : ReadLockInit* elems = (fa).AppendElements(length);
4368 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4369 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4370 0 : FatalError("Error deserializing 'ReadLockInit[i]'");
4371 0 : return false;
4372 : }
4373 : // Sentinel = 'ReadLockInit[]'
4374 0 : if ((!((msg__)->ReadSentinel(iter__, 1659602585)))) {
4375 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReadLockInit[i]'");
4376 0 : return false;
4377 : }
4378 : }
4379 0 : (v__)->SwapElements(fa);
4380 0 : return true;
4381 : }
4382 :
4383 0 : auto PLayerTransactionChild::Write(
4384 : const MaybeTimeDuration& v__,
4385 : Message* msg__) -> void
4386 : {
4387 : typedef MaybeTimeDuration type__;
4388 0 : Write(int((v__).type()), msg__);
4389 : // Sentinel = 'MaybeTimeDuration'
4390 0 : (msg__)->WriteSentinel(2974565326);
4391 :
4392 0 : switch ((v__).type()) {
4393 : case type__::Tnull_t:
4394 : {
4395 0 : Write((v__).get_null_t(), msg__);
4396 : // Sentinel = 'Tnull_t'
4397 0 : (msg__)->WriteSentinel(3731137201);
4398 0 : return;
4399 : }
4400 : case type__::TTimeDuration:
4401 : {
4402 0 : Write((v__).get_TimeDuration(), msg__);
4403 : // Sentinel = 'TTimeDuration'
4404 0 : (msg__)->WriteSentinel(1576139930);
4405 0 : return;
4406 : }
4407 : default:
4408 : {
4409 0 : FatalError("unknown union type");
4410 0 : return;
4411 : }
4412 : }
4413 : }
4414 :
4415 0 : auto PLayerTransactionChild::Read(
4416 : MaybeTimeDuration* v__,
4417 : const Message* msg__,
4418 : PickleIterator* iter__) -> bool
4419 : {
4420 : typedef MaybeTimeDuration type__;
4421 : int type;
4422 0 : if ((!(Read((&(type)), msg__, iter__)))) {
4423 0 : mozilla::ipc::UnionTypeReadError("MaybeTimeDuration");
4424 0 : return false;
4425 : }
4426 : // Sentinel = 'MaybeTimeDuration'
4427 0 : if ((!((msg__)->ReadSentinel(iter__, 2974565326)))) {
4428 0 : mozilla::ipc::SentinelReadError("MaybeTimeDuration");
4429 0 : return false;
4430 : }
4431 :
4432 0 : switch (type) {
4433 : case type__::Tnull_t:
4434 : {
4435 : null_t tmp = null_t();
4436 0 : (*(v__)) = tmp;
4437 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
4438 0 : FatalError("Error deserializing Union type");
4439 0 : return false;
4440 : }
4441 : // Sentinel = 'Tnull_t'
4442 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
4443 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4444 0 : return false;
4445 : }
4446 0 : return true;
4447 : }
4448 : case type__::TTimeDuration:
4449 : {
4450 0 : TimeDuration tmp = TimeDuration();
4451 0 : (*(v__)) = tmp;
4452 0 : if ((!(Read((&((v__)->get_TimeDuration())), msg__, iter__)))) {
4453 0 : FatalError("Error deserializing Union type");
4454 0 : return false;
4455 : }
4456 : // Sentinel = 'TTimeDuration'
4457 0 : if ((!((msg__)->ReadSentinel(iter__, 1576139930)))) {
4458 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4459 0 : return false;
4460 : }
4461 0 : return true;
4462 : }
4463 : default:
4464 : {
4465 0 : FatalError("unknown union type");
4466 0 : return false;
4467 : }
4468 : }
4469 : }
4470 :
4471 0 : auto PLayerTransactionChild::Write(
4472 : const nsTArray<TileDescriptor>& v__,
4473 : Message* msg__) -> void
4474 : {
4475 0 : uint32_t length = (v__).Length();
4476 0 : Write(length, msg__);
4477 : // Sentinel = ('length', 'TileDescriptor[]')
4478 0 : (msg__)->WriteSentinel(709203120);
4479 :
4480 0 : for (auto& elem : v__) {
4481 0 : Write(elem, msg__);
4482 : // Sentinel = 'TileDescriptor[]'
4483 0 : (msg__)->WriteSentinel(3848440807);
4484 : }
4485 0 : }
4486 :
4487 0 : auto PLayerTransactionChild::Read(
4488 : nsTArray<TileDescriptor>* v__,
4489 : const Message* msg__,
4490 : PickleIterator* iter__) -> bool
4491 : {
4492 0 : nsTArray<TileDescriptor> fa;
4493 : uint32_t length;
4494 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4495 0 : mozilla::ipc::ArrayLengthReadError("TileDescriptor[]");
4496 0 : return false;
4497 : }
4498 : // Sentinel = ('length', 'TileDescriptor[]')
4499 0 : if ((!((msg__)->ReadSentinel(iter__, 709203120)))) {
4500 0 : mozilla::ipc::SentinelReadError("TileDescriptor[]");
4501 0 : return false;
4502 : }
4503 :
4504 0 : TileDescriptor* elems = (fa).AppendElements(length);
4505 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4506 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4507 0 : FatalError("Error deserializing 'TileDescriptor[i]'");
4508 0 : return false;
4509 : }
4510 : // Sentinel = 'TileDescriptor[]'
4511 0 : if ((!((msg__)->ReadSentinel(iter__, 3848440807)))) {
4512 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TileDescriptor[i]'");
4513 0 : return false;
4514 : }
4515 : }
4516 0 : (v__)->SwapElements(fa);
4517 0 : return true;
4518 : }
4519 :
4520 33 : auto PLayerTransactionChild::Write(
4521 : const ThebesBufferData& v__,
4522 : Message* msg__) -> void
4523 : {
4524 33 : Write((v__).rect(), msg__);
4525 : // Sentinel = 'rect'
4526 33 : (msg__)->WriteSentinel(438776542);
4527 33 : Write((v__).rotation(), msg__);
4528 : // Sentinel = 'rotation'
4529 33 : (msg__)->WriteSentinel(289872474);
4530 33 : }
4531 :
4532 0 : auto PLayerTransactionChild::Read(
4533 : ThebesBufferData* v__,
4534 : const Message* msg__,
4535 : PickleIterator* iter__) -> bool
4536 : {
4537 0 : if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
4538 0 : FatalError("Error deserializing 'rect' (IntRect) member of 'ThebesBufferData'");
4539 0 : return false;
4540 : }
4541 : // Sentinel = 'rect'
4542 0 : if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
4543 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rect' (IntRect) member of 'ThebesBufferData'");
4544 0 : return false;
4545 : }
4546 0 : if ((!(Read((&((v__)->rotation())), msg__, iter__)))) {
4547 0 : FatalError("Error deserializing 'rotation' (IntPoint) member of 'ThebesBufferData'");
4548 0 : return false;
4549 : }
4550 : // Sentinel = 'rotation'
4551 0 : if ((!((msg__)->ReadSentinel(iter__, 289872474)))) {
4552 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rotation' (IntPoint) member of 'ThebesBufferData'");
4553 0 : return false;
4554 : }
4555 0 : return true;
4556 : }
4557 :
4558 0 : auto PLayerTransactionChild::Write(
4559 : const ImageLayerAttributes& v__,
4560 : Message* msg__) -> void
4561 : {
4562 0 : Write((v__).samplingFilter(), msg__);
4563 : // Sentinel = 'samplingFilter'
4564 0 : (msg__)->WriteSentinel(2274374003);
4565 0 : Write((v__).scaleToSize(), msg__);
4566 : // Sentinel = 'scaleToSize'
4567 0 : (msg__)->WriteSentinel(1078440273);
4568 0 : Write((v__).scaleMode(), msg__);
4569 : // Sentinel = 'scaleMode'
4570 0 : (msg__)->WriteSentinel(1807422362);
4571 0 : }
4572 :
4573 0 : auto PLayerTransactionChild::Read(
4574 : ImageLayerAttributes* v__,
4575 : const Message* msg__,
4576 : PickleIterator* iter__) -> bool
4577 : {
4578 0 : if ((!(Read((&((v__)->samplingFilter())), msg__, iter__)))) {
4579 0 : FatalError("Error deserializing 'samplingFilter' (SamplingFilter) member of 'ImageLayerAttributes'");
4580 0 : return false;
4581 : }
4582 : // Sentinel = 'samplingFilter'
4583 0 : if ((!((msg__)->ReadSentinel(iter__, 2274374003)))) {
4584 0 : mozilla::ipc::SentinelReadError("Error deserializing 'samplingFilter' (SamplingFilter) member of 'ImageLayerAttributes'");
4585 0 : return false;
4586 : }
4587 0 : if ((!(Read((&((v__)->scaleToSize())), msg__, iter__)))) {
4588 0 : FatalError("Error deserializing 'scaleToSize' (IntSize) member of 'ImageLayerAttributes'");
4589 0 : return false;
4590 : }
4591 : // Sentinel = 'scaleToSize'
4592 0 : if ((!((msg__)->ReadSentinel(iter__, 1078440273)))) {
4593 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaleToSize' (IntSize) member of 'ImageLayerAttributes'");
4594 0 : return false;
4595 : }
4596 0 : if ((!(Read((&((v__)->scaleMode())), msg__, iter__)))) {
4597 0 : FatalError("Error deserializing 'scaleMode' (ScaleMode) member of 'ImageLayerAttributes'");
4598 0 : return false;
4599 : }
4600 : // Sentinel = 'scaleMode'
4601 0 : if ((!((msg__)->ReadSentinel(iter__, 1807422362)))) {
4602 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaleMode' (ScaleMode) member of 'ImageLayerAttributes'");
4603 0 : return false;
4604 : }
4605 0 : return true;
4606 : }
4607 :
4608 0 : auto PLayerTransactionChild::Write(
4609 : const OpUseTiledLayerBuffer& v__,
4610 : Message* msg__) -> void
4611 : {
4612 0 : Write((v__).tileLayerDescriptor(), msg__);
4613 : // Sentinel = 'tileLayerDescriptor'
4614 0 : (msg__)->WriteSentinel(1059372119);
4615 0 : }
4616 :
4617 0 : auto PLayerTransactionChild::Read(
4618 : OpUseTiledLayerBuffer* v__,
4619 : const Message* msg__,
4620 : PickleIterator* iter__) -> bool
4621 : {
4622 0 : if ((!(Read((&((v__)->tileLayerDescriptor())), msg__, iter__)))) {
4623 0 : FatalError("Error deserializing 'tileLayerDescriptor' (SurfaceDescriptorTiles) member of 'OpUseTiledLayerBuffer'");
4624 0 : return false;
4625 : }
4626 : // Sentinel = 'tileLayerDescriptor'
4627 0 : if ((!((msg__)->ReadSentinel(iter__, 1059372119)))) {
4628 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tileLayerDescriptor' (SurfaceDescriptorTiles) member of 'OpUseTiledLayerBuffer'");
4629 0 : return false;
4630 : }
4631 0 : return true;
4632 : }
4633 :
4634 28 : auto PLayerTransactionChild::Write(
4635 : const nsTArray<Edit>& v__,
4636 : Message* msg__) -> void
4637 : {
4638 28 : uint32_t length = (v__).Length();
4639 28 : Write(length, msg__);
4640 : // Sentinel = ('length', 'Edit[]')
4641 28 : (msg__)->WriteSentinel(2033330003);
4642 :
4643 165 : for (auto& elem : v__) {
4644 137 : Write(elem, msg__);
4645 : // Sentinel = 'Edit[]'
4646 137 : (msg__)->WriteSentinel(3455210534);
4647 : }
4648 28 : }
4649 :
4650 0 : auto PLayerTransactionChild::Read(
4651 : nsTArray<Edit>* v__,
4652 : const Message* msg__,
4653 : PickleIterator* iter__) -> bool
4654 : {
4655 0 : nsTArray<Edit> fa;
4656 : uint32_t length;
4657 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4658 0 : mozilla::ipc::ArrayLengthReadError("Edit[]");
4659 0 : return false;
4660 : }
4661 : // Sentinel = ('length', 'Edit[]')
4662 0 : if ((!((msg__)->ReadSentinel(iter__, 2033330003)))) {
4663 0 : mozilla::ipc::SentinelReadError("Edit[]");
4664 0 : return false;
4665 : }
4666 :
4667 0 : Edit* elems = (fa).AppendElements(length);
4668 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4669 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4670 0 : FatalError("Error deserializing 'Edit[i]'");
4671 0 : return false;
4672 : }
4673 : // Sentinel = 'Edit[]'
4674 0 : if ((!((msg__)->ReadSentinel(iter__, 3455210534)))) {
4675 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Edit[i]'");
4676 0 : return false;
4677 : }
4678 : }
4679 0 : (v__)->SwapElements(fa);
4680 0 : return true;
4681 : }
4682 :
4683 28 : auto PLayerTransactionChild::Write(
4684 : const nsTArray<OpSetSimpleLayerAttributes>& v__,
4685 : Message* msg__) -> void
4686 : {
4687 28 : uint32_t length = (v__).Length();
4688 28 : Write(length, msg__);
4689 : // Sentinel = ('length', 'OpSetSimpleLayerAttributes[]')
4690 28 : (msg__)->WriteSentinel(1007438984);
4691 :
4692 52 : for (auto& elem : v__) {
4693 24 : Write(elem, msg__);
4694 : // Sentinel = 'OpSetSimpleLayerAttributes[]'
4695 24 : (msg__)->WriteSentinel(2525001647);
4696 : }
4697 28 : }
4698 :
4699 0 : auto PLayerTransactionChild::Read(
4700 : nsTArray<OpSetSimpleLayerAttributes>* v__,
4701 : const Message* msg__,
4702 : PickleIterator* iter__) -> bool
4703 : {
4704 0 : nsTArray<OpSetSimpleLayerAttributes> fa;
4705 : uint32_t length;
4706 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4707 0 : mozilla::ipc::ArrayLengthReadError("OpSetSimpleLayerAttributes[]");
4708 0 : return false;
4709 : }
4710 : // Sentinel = ('length', 'OpSetSimpleLayerAttributes[]')
4711 0 : if ((!((msg__)->ReadSentinel(iter__, 1007438984)))) {
4712 0 : mozilla::ipc::SentinelReadError("OpSetSimpleLayerAttributes[]");
4713 0 : return false;
4714 : }
4715 :
4716 0 : OpSetSimpleLayerAttributes* elems = (fa).AppendElements(length);
4717 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4718 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4719 0 : FatalError("Error deserializing 'OpSetSimpleLayerAttributes[i]'");
4720 0 : return false;
4721 : }
4722 : // Sentinel = 'OpSetSimpleLayerAttributes[]'
4723 0 : if ((!((msg__)->ReadSentinel(iter__, 2525001647)))) {
4724 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OpSetSimpleLayerAttributes[i]'");
4725 0 : return false;
4726 : }
4727 : }
4728 0 : (v__)->SwapElements(fa);
4729 0 : return true;
4730 : }
4731 :
4732 0 : auto PLayerTransactionChild::Write(
4733 : const OpCreateTextLayer& v__,
4734 : Message* msg__) -> void
4735 : {
4736 0 : Write((v__).layer(), msg__);
4737 : // Sentinel = 'layer'
4738 0 : (msg__)->WriteSentinel(1899167106);
4739 0 : }
4740 :
4741 0 : auto PLayerTransactionChild::Read(
4742 : OpCreateTextLayer* v__,
4743 : const Message* msg__,
4744 : PickleIterator* iter__) -> bool
4745 : {
4746 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
4747 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateTextLayer'");
4748 0 : return false;
4749 : }
4750 : // Sentinel = 'layer'
4751 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
4752 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateTextLayer'");
4753 0 : return false;
4754 : }
4755 0 : return true;
4756 : }
4757 :
4758 0 : auto PLayerTransactionChild::Write(
4759 : const BorderLayerAttributes& v__,
4760 : Message* msg__) -> void
4761 : {
4762 0 : Write((v__).rect(), msg__);
4763 : // Sentinel = 'rect'
4764 0 : (msg__)->WriteSentinel(438776542);
4765 0 : Write((v__).colors(), msg__);
4766 : // Sentinel = 'colors'
4767 0 : (msg__)->WriteSentinel(2508874770);
4768 0 : Write((v__).corners(), msg__);
4769 : // Sentinel = 'corners'
4770 0 : (msg__)->WriteSentinel(625732201);
4771 0 : Write((v__).widths(), msg__);
4772 : // Sentinel = 'widths'
4773 0 : (msg__)->WriteSentinel(1424280297);
4774 0 : }
4775 :
4776 0 : auto PLayerTransactionChild::Read(
4777 : BorderLayerAttributes* v__,
4778 : const Message* msg__,
4779 : PickleIterator* iter__) -> bool
4780 : {
4781 0 : if ((!(Read((&((v__)->rect())), msg__, iter__)))) {
4782 0 : FatalError("Error deserializing 'rect' (LayerRect) member of 'BorderLayerAttributes'");
4783 0 : return false;
4784 : }
4785 : // Sentinel = 'rect'
4786 0 : if ((!((msg__)->ReadSentinel(iter__, 438776542)))) {
4787 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rect' (LayerRect) member of 'BorderLayerAttributes'");
4788 0 : return false;
4789 : }
4790 0 : if ((!(Read((&((v__)->colors())), msg__, iter__)))) {
4791 0 : FatalError("Error deserializing 'colors' (BorderColors) member of 'BorderLayerAttributes'");
4792 0 : return false;
4793 : }
4794 : // Sentinel = 'colors'
4795 0 : if ((!((msg__)->ReadSentinel(iter__, 2508874770)))) {
4796 0 : mozilla::ipc::SentinelReadError("Error deserializing 'colors' (BorderColors) member of 'BorderLayerAttributes'");
4797 0 : return false;
4798 : }
4799 0 : if ((!(Read((&((v__)->corners())), msg__, iter__)))) {
4800 0 : FatalError("Error deserializing 'corners' (BorderCorners) member of 'BorderLayerAttributes'");
4801 0 : return false;
4802 : }
4803 : // Sentinel = 'corners'
4804 0 : if ((!((msg__)->ReadSentinel(iter__, 625732201)))) {
4805 0 : mozilla::ipc::SentinelReadError("Error deserializing 'corners' (BorderCorners) member of 'BorderLayerAttributes'");
4806 0 : return false;
4807 : }
4808 0 : if ((!(Read((&((v__)->widths())), msg__, iter__)))) {
4809 0 : FatalError("Error deserializing 'widths' (BorderWidths) member of 'BorderLayerAttributes'");
4810 0 : return false;
4811 : }
4812 : // Sentinel = 'widths'
4813 0 : if ((!((msg__)->ReadSentinel(iter__, 1424280297)))) {
4814 0 : mozilla::ipc::SentinelReadError("Error deserializing 'widths' (BorderWidths) member of 'BorderLayerAttributes'");
4815 0 : return false;
4816 : }
4817 0 : return true;
4818 : }
4819 :
4820 22 : auto PLayerTransactionChild::Write(
4821 : const OpAttachCompositable& v__,
4822 : Message* msg__) -> void
4823 : {
4824 22 : Write((v__).layer(), msg__);
4825 : // Sentinel = 'layer'
4826 22 : (msg__)->WriteSentinel(1899167106);
4827 22 : Write((v__).compositable(), msg__);
4828 : // Sentinel = 'compositable'
4829 22 : (msg__)->WriteSentinel(4031958248);
4830 22 : }
4831 :
4832 0 : auto PLayerTransactionChild::Read(
4833 : OpAttachCompositable* v__,
4834 : const Message* msg__,
4835 : PickleIterator* iter__) -> bool
4836 : {
4837 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
4838 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpAttachCompositable'");
4839 0 : return false;
4840 : }
4841 : // Sentinel = 'layer'
4842 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
4843 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpAttachCompositable'");
4844 0 : return false;
4845 : }
4846 0 : if ((!(Read((&((v__)->compositable())), msg__, iter__)))) {
4847 0 : FatalError("Error deserializing 'compositable' (CompositableHandle) member of 'OpAttachCompositable'");
4848 0 : return false;
4849 : }
4850 : // Sentinel = 'compositable'
4851 0 : if ((!((msg__)->ReadSentinel(iter__, 4031958248)))) {
4852 0 : mozilla::ipc::SentinelReadError("Error deserializing 'compositable' (CompositableHandle) member of 'OpAttachCompositable'");
4853 0 : return false;
4854 : }
4855 0 : return true;
4856 : }
4857 :
4858 4 : auto PLayerTransactionChild::Write(
4859 : const OpSetRoot& v__,
4860 : Message* msg__) -> void
4861 : {
4862 4 : Write((v__).root(), msg__);
4863 : // Sentinel = 'root'
4864 4 : (msg__)->WriteSentinel(333463932);
4865 4 : }
4866 :
4867 0 : auto PLayerTransactionChild::Read(
4868 : OpSetRoot* v__,
4869 : const Message* msg__,
4870 : PickleIterator* iter__) -> bool
4871 : {
4872 0 : if ((!(Read((&((v__)->root())), msg__, iter__)))) {
4873 0 : FatalError("Error deserializing 'root' (LayerHandle) member of 'OpSetRoot'");
4874 0 : return false;
4875 : }
4876 : // Sentinel = 'root'
4877 0 : if ((!((msg__)->ReadSentinel(iter__, 333463932)))) {
4878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'root' (LayerHandle) member of 'OpSetRoot'");
4879 0 : return false;
4880 : }
4881 0 : return true;
4882 : }
4883 :
4884 20 : auto PLayerTransactionChild::Write(
4885 : const OpRemoveChild& v__,
4886 : Message* msg__) -> void
4887 : {
4888 20 : Write((v__).container(), msg__);
4889 : // Sentinel = 'container'
4890 20 : (msg__)->WriteSentinel(613059236);
4891 20 : Write((v__).childLayer(), msg__);
4892 : // Sentinel = 'childLayer'
4893 20 : (msg__)->WriteSentinel(154398963);
4894 20 : }
4895 :
4896 0 : auto PLayerTransactionChild::Read(
4897 : OpRemoveChild* v__,
4898 : const Message* msg__,
4899 : PickleIterator* iter__) -> bool
4900 : {
4901 0 : if ((!(Read((&((v__)->container())), msg__, iter__)))) {
4902 0 : FatalError("Error deserializing 'container' (LayerHandle) member of 'OpRemoveChild'");
4903 0 : return false;
4904 : }
4905 : // Sentinel = 'container'
4906 0 : if ((!((msg__)->ReadSentinel(iter__, 613059236)))) {
4907 0 : mozilla::ipc::SentinelReadError("Error deserializing 'container' (LayerHandle) member of 'OpRemoveChild'");
4908 0 : return false;
4909 : }
4910 0 : if ((!(Read((&((v__)->childLayer())), msg__, iter__)))) {
4911 0 : FatalError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRemoveChild'");
4912 0 : return false;
4913 : }
4914 : // Sentinel = 'childLayer'
4915 0 : if ((!((msg__)->ReadSentinel(iter__, 154398963)))) {
4916 0 : mozilla::ipc::SentinelReadError("Error deserializing 'childLayer' (LayerHandle) member of 'OpRemoveChild'");
4917 0 : return false;
4918 : }
4919 0 : return true;
4920 : }
4921 :
4922 0 : auto PLayerTransactionChild::Write(
4923 : const nsTArray<AnimationSegment>& v__,
4924 : Message* msg__) -> void
4925 : {
4926 0 : uint32_t length = (v__).Length();
4927 0 : Write(length, msg__);
4928 : // Sentinel = ('length', 'AnimationSegment[]')
4929 0 : (msg__)->WriteSentinel(3972020876);
4930 :
4931 0 : for (auto& elem : v__) {
4932 0 : Write(elem, msg__);
4933 : // Sentinel = 'AnimationSegment[]'
4934 0 : (msg__)->WriteSentinel(3516015771);
4935 : }
4936 0 : }
4937 :
4938 0 : auto PLayerTransactionChild::Read(
4939 : nsTArray<AnimationSegment>* v__,
4940 : const Message* msg__,
4941 : PickleIterator* iter__) -> bool
4942 : {
4943 0 : nsTArray<AnimationSegment> fa;
4944 : uint32_t length;
4945 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4946 0 : mozilla::ipc::ArrayLengthReadError("AnimationSegment[]");
4947 0 : return false;
4948 : }
4949 : // Sentinel = ('length', 'AnimationSegment[]')
4950 0 : if ((!((msg__)->ReadSentinel(iter__, 3972020876)))) {
4951 0 : mozilla::ipc::SentinelReadError("AnimationSegment[]");
4952 0 : return false;
4953 : }
4954 :
4955 0 : AnimationSegment* elems = (fa).AppendElements(length);
4956 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4957 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4958 0 : FatalError("Error deserializing 'AnimationSegment[i]'");
4959 0 : return false;
4960 : }
4961 : // Sentinel = 'AnimationSegment[]'
4962 0 : if ((!((msg__)->ReadSentinel(iter__, 3516015771)))) {
4963 0 : mozilla::ipc::SentinelReadError("Error deserializing 'AnimationSegment[i]'");
4964 0 : return false;
4965 : }
4966 : }
4967 0 : (v__)->SwapElements(fa);
4968 0 : return true;
4969 : }
4970 :
4971 0 : auto PLayerTransactionChild::Write(
4972 : const OpWindowOverlayChanged& v__,
4973 : Message* msg__) -> void
4974 : {
4975 0 : }
4976 :
4977 0 : auto PLayerTransactionChild::Read(
4978 : OpWindowOverlayChanged* v__,
4979 : const Message* msg__,
4980 : PickleIterator* iter__) -> bool
4981 : {
4982 0 : return true;
4983 : }
4984 :
4985 0 : auto PLayerTransactionChild::Write(
4986 : const TransformMatrix& v__,
4987 : Message* msg__) -> void
4988 : {
4989 0 : Write((v__).value(), msg__);
4990 : // Sentinel = 'value'
4991 0 : (msg__)->WriteSentinel(3456818542);
4992 0 : }
4993 :
4994 0 : auto PLayerTransactionChild::Read(
4995 : TransformMatrix* v__,
4996 : const Message* msg__,
4997 : PickleIterator* iter__) -> bool
4998 : {
4999 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
5000 0 : FatalError("Error deserializing 'value' (Matrix4x4) member of 'TransformMatrix'");
5001 0 : return false;
5002 : }
5003 : // Sentinel = 'value'
5004 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
5005 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (Matrix4x4) member of 'TransformMatrix'");
5006 0 : return false;
5007 : }
5008 0 : return true;
5009 : }
5010 :
5011 0 : auto PLayerTransactionChild::Write(
5012 : const Scale& v__,
5013 : Message* msg__) -> void
5014 : {
5015 0 : Write((v__).x(), msg__);
5016 : // Sentinel = 'x'
5017 0 : (msg__)->WriteSentinel(2475144313);
5018 0 : Write((v__).y(), msg__);
5019 : // Sentinel = 'y'
5020 0 : (msg__)->WriteSentinel(2603144696);
5021 0 : Write((v__).z(), msg__);
5022 : // Sentinel = 'z'
5023 0 : (msg__)->WriteSentinel(2731145083);
5024 0 : }
5025 :
5026 0 : auto PLayerTransactionChild::Read(
5027 : Scale* v__,
5028 : const Message* msg__,
5029 : PickleIterator* iter__) -> bool
5030 : {
5031 0 : if ((!(Read((&((v__)->x())), msg__, iter__)))) {
5032 0 : FatalError("Error deserializing 'x' (float) member of 'Scale'");
5033 0 : return false;
5034 : }
5035 : // Sentinel = 'x'
5036 0 : if ((!((msg__)->ReadSentinel(iter__, 2475144313)))) {
5037 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x' (float) member of 'Scale'");
5038 0 : return false;
5039 : }
5040 0 : if ((!(Read((&((v__)->y())), msg__, iter__)))) {
5041 0 : FatalError("Error deserializing 'y' (float) member of 'Scale'");
5042 0 : return false;
5043 : }
5044 : // Sentinel = 'y'
5045 0 : if ((!((msg__)->ReadSentinel(iter__, 2603144696)))) {
5046 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y' (float) member of 'Scale'");
5047 0 : return false;
5048 : }
5049 0 : if ((!(Read((&((v__)->z())), msg__, iter__)))) {
5050 0 : FatalError("Error deserializing 'z' (float) member of 'Scale'");
5051 0 : return false;
5052 : }
5053 : // Sentinel = 'z'
5054 0 : if ((!((msg__)->ReadSentinel(iter__, 2731145083)))) {
5055 0 : mozilla::ipc::SentinelReadError("Error deserializing 'z' (float) member of 'Scale'");
5056 0 : return false;
5057 : }
5058 0 : return true;
5059 : }
5060 :
5061 33 : auto PLayerTransactionChild::Write(
5062 : const OpUseTexture& v__,
5063 : Message* msg__) -> void
5064 : {
5065 33 : Write((v__).textures(), msg__);
5066 : // Sentinel = 'textures'
5067 33 : (msg__)->WriteSentinel(1760338112);
5068 33 : }
5069 :
5070 0 : auto PLayerTransactionChild::Read(
5071 : OpUseTexture* v__,
5072 : const Message* msg__,
5073 : PickleIterator* iter__) -> bool
5074 : {
5075 0 : if ((!(Read((&((v__)->textures())), msg__, iter__)))) {
5076 0 : FatalError("Error deserializing 'textures' (TimedTexture[]) member of 'OpUseTexture'");
5077 0 : return false;
5078 : }
5079 : // Sentinel = 'textures'
5080 0 : if ((!((msg__)->ReadSentinel(iter__, 1760338112)))) {
5081 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textures' (TimedTexture[]) member of 'OpUseTexture'");
5082 0 : return false;
5083 : }
5084 0 : return true;
5085 : }
5086 :
5087 28 : auto PLayerTransactionChild::Write(
5088 : const TransactionInfo& v__,
5089 : Message* msg__) -> void
5090 : {
5091 28 : Write((v__).cset(), msg__);
5092 : // Sentinel = 'cset'
5093 28 : (msg__)->WriteSentinel(1641215409);
5094 28 : Write((v__).setSimpleAttrs(), msg__);
5095 : // Sentinel = 'setSimpleAttrs'
5096 28 : (msg__)->WriteSentinel(2311501828);
5097 28 : Write((v__).setAttrs(), msg__);
5098 : // Sentinel = 'setAttrs'
5099 28 : (msg__)->WriteSentinel(1753236472);
5100 28 : Write((v__).paints(), msg__);
5101 : // Sentinel = 'paints'
5102 28 : (msg__)->WriteSentinel(4193300201);
5103 28 : Write((v__).toDestroy(), msg__);
5104 : // Sentinel = 'toDestroy'
5105 28 : (msg__)->WriteSentinel(4183172130);
5106 28 : Write((v__).fwdTransactionId(), msg__);
5107 : // Sentinel = 'fwdTransactionId'
5108 28 : (msg__)->WriteSentinel(2023976742);
5109 28 : Write((v__).id(), msg__);
5110 : // Sentinel = 'id'
5111 28 : (msg__)->WriteSentinel(2794505629);
5112 28 : Write((v__).targetConfig(), msg__);
5113 : // Sentinel = 'targetConfig'
5114 28 : (msg__)->WriteSentinel(3027540357);
5115 28 : Write((v__).plugins(), msg__);
5116 : // Sentinel = 'plugins'
5117 28 : (msg__)->WriteSentinel(2745061527);
5118 28 : Write((v__).isFirstPaint(), msg__);
5119 : // Sentinel = 'isFirstPaint'
5120 28 : (msg__)->WriteSentinel(3748149138);
5121 28 : Write((v__).focusTarget(), msg__);
5122 : // Sentinel = 'focusTarget'
5123 28 : (msg__)->WriteSentinel(2511236160);
5124 28 : Write((v__).scheduleComposite(), msg__);
5125 : // Sentinel = 'scheduleComposite'
5126 28 : (msg__)->WriteSentinel(3730535701);
5127 28 : Write((v__).paintSequenceNumber(), msg__);
5128 : // Sentinel = 'paintSequenceNumber'
5129 28 : (msg__)->WriteSentinel(3875026487);
5130 28 : Write((v__).isRepeatTransaction(), msg__);
5131 : // Sentinel = 'isRepeatTransaction'
5132 28 : (msg__)->WriteSentinel(4043798256);
5133 28 : Write((v__).transactionStart(), msg__);
5134 : // Sentinel = 'transactionStart'
5135 28 : (msg__)->WriteSentinel(214152700);
5136 28 : }
5137 :
5138 0 : auto PLayerTransactionChild::Read(
5139 : TransactionInfo* v__,
5140 : const Message* msg__,
5141 : PickleIterator* iter__) -> bool
5142 : {
5143 0 : if ((!(Read((&((v__)->cset())), msg__, iter__)))) {
5144 0 : FatalError("Error deserializing 'cset' (Edit[]) member of 'TransactionInfo'");
5145 0 : return false;
5146 : }
5147 : // Sentinel = 'cset'
5148 0 : if ((!((msg__)->ReadSentinel(iter__, 1641215409)))) {
5149 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cset' (Edit[]) member of 'TransactionInfo'");
5150 0 : return false;
5151 : }
5152 0 : if ((!(Read((&((v__)->setSimpleAttrs())), msg__, iter__)))) {
5153 0 : FatalError("Error deserializing 'setSimpleAttrs' (OpSetSimpleLayerAttributes[]) member of 'TransactionInfo'");
5154 0 : return false;
5155 : }
5156 : // Sentinel = 'setSimpleAttrs'
5157 0 : if ((!((msg__)->ReadSentinel(iter__, 2311501828)))) {
5158 0 : mozilla::ipc::SentinelReadError("Error deserializing 'setSimpleAttrs' (OpSetSimpleLayerAttributes[]) member of 'TransactionInfo'");
5159 0 : return false;
5160 : }
5161 0 : if ((!(Read((&((v__)->setAttrs())), msg__, iter__)))) {
5162 0 : FatalError("Error deserializing 'setAttrs' (OpSetLayerAttributes[]) member of 'TransactionInfo'");
5163 0 : return false;
5164 : }
5165 : // Sentinel = 'setAttrs'
5166 0 : if ((!((msg__)->ReadSentinel(iter__, 1753236472)))) {
5167 0 : mozilla::ipc::SentinelReadError("Error deserializing 'setAttrs' (OpSetLayerAttributes[]) member of 'TransactionInfo'");
5168 0 : return false;
5169 : }
5170 0 : if ((!(Read((&((v__)->paints())), msg__, iter__)))) {
5171 0 : FatalError("Error deserializing 'paints' (CompositableOperation[]) member of 'TransactionInfo'");
5172 0 : return false;
5173 : }
5174 : // Sentinel = 'paints'
5175 0 : if ((!((msg__)->ReadSentinel(iter__, 4193300201)))) {
5176 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paints' (CompositableOperation[]) member of 'TransactionInfo'");
5177 0 : return false;
5178 : }
5179 0 : if ((!(Read((&((v__)->toDestroy())), msg__, iter__)))) {
5180 0 : FatalError("Error deserializing 'toDestroy' (OpDestroy[]) member of 'TransactionInfo'");
5181 0 : return false;
5182 : }
5183 : // Sentinel = 'toDestroy'
5184 0 : if ((!((msg__)->ReadSentinel(iter__, 4183172130)))) {
5185 0 : mozilla::ipc::SentinelReadError("Error deserializing 'toDestroy' (OpDestroy[]) member of 'TransactionInfo'");
5186 0 : return false;
5187 : }
5188 0 : if ((!(Read((&((v__)->fwdTransactionId())), msg__, iter__)))) {
5189 0 : FatalError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'TransactionInfo'");
5190 0 : return false;
5191 : }
5192 : // Sentinel = 'fwdTransactionId'
5193 0 : if ((!((msg__)->ReadSentinel(iter__, 2023976742)))) {
5194 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'TransactionInfo'");
5195 0 : return false;
5196 : }
5197 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
5198 0 : FatalError("Error deserializing 'id' (uint64_t) member of 'TransactionInfo'");
5199 0 : return false;
5200 : }
5201 : // Sentinel = 'id'
5202 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
5203 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint64_t) member of 'TransactionInfo'");
5204 0 : return false;
5205 : }
5206 0 : if ((!(Read((&((v__)->targetConfig())), msg__, iter__)))) {
5207 0 : FatalError("Error deserializing 'targetConfig' (TargetConfig) member of 'TransactionInfo'");
5208 0 : return false;
5209 : }
5210 : // Sentinel = 'targetConfig'
5211 0 : if ((!((msg__)->ReadSentinel(iter__, 3027540357)))) {
5212 0 : mozilla::ipc::SentinelReadError("Error deserializing 'targetConfig' (TargetConfig) member of 'TransactionInfo'");
5213 0 : return false;
5214 : }
5215 0 : if ((!(Read((&((v__)->plugins())), msg__, iter__)))) {
5216 0 : FatalError("Error deserializing 'plugins' (PluginWindowData[]) member of 'TransactionInfo'");
5217 0 : return false;
5218 : }
5219 : // Sentinel = 'plugins'
5220 0 : if ((!((msg__)->ReadSentinel(iter__, 2745061527)))) {
5221 0 : mozilla::ipc::SentinelReadError("Error deserializing 'plugins' (PluginWindowData[]) member of 'TransactionInfo'");
5222 0 : return false;
5223 : }
5224 0 : if ((!(Read((&((v__)->isFirstPaint())), msg__, iter__)))) {
5225 0 : FatalError("Error deserializing 'isFirstPaint' (bool) member of 'TransactionInfo'");
5226 0 : return false;
5227 : }
5228 : // Sentinel = 'isFirstPaint'
5229 0 : if ((!((msg__)->ReadSentinel(iter__, 3748149138)))) {
5230 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isFirstPaint' (bool) member of 'TransactionInfo'");
5231 0 : return false;
5232 : }
5233 0 : if ((!(Read((&((v__)->focusTarget())), msg__, iter__)))) {
5234 0 : FatalError("Error deserializing 'focusTarget' (FocusTarget) member of 'TransactionInfo'");
5235 0 : return false;
5236 : }
5237 : // Sentinel = 'focusTarget'
5238 0 : if ((!((msg__)->ReadSentinel(iter__, 2511236160)))) {
5239 0 : mozilla::ipc::SentinelReadError("Error deserializing 'focusTarget' (FocusTarget) member of 'TransactionInfo'");
5240 0 : return false;
5241 : }
5242 0 : if ((!(Read((&((v__)->scheduleComposite())), msg__, iter__)))) {
5243 0 : FatalError("Error deserializing 'scheduleComposite' (bool) member of 'TransactionInfo'");
5244 0 : return false;
5245 : }
5246 : // Sentinel = 'scheduleComposite'
5247 0 : if ((!((msg__)->ReadSentinel(iter__, 3730535701)))) {
5248 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheduleComposite' (bool) member of 'TransactionInfo'");
5249 0 : return false;
5250 : }
5251 0 : if ((!(Read((&((v__)->paintSequenceNumber())), msg__, iter__)))) {
5252 0 : FatalError("Error deserializing 'paintSequenceNumber' (uint32_t) member of 'TransactionInfo'");
5253 0 : return false;
5254 : }
5255 : // Sentinel = 'paintSequenceNumber'
5256 0 : if ((!((msg__)->ReadSentinel(iter__, 3875026487)))) {
5257 0 : mozilla::ipc::SentinelReadError("Error deserializing 'paintSequenceNumber' (uint32_t) member of 'TransactionInfo'");
5258 0 : return false;
5259 : }
5260 0 : if ((!(Read((&((v__)->isRepeatTransaction())), msg__, iter__)))) {
5261 0 : FatalError("Error deserializing 'isRepeatTransaction' (bool) member of 'TransactionInfo'");
5262 0 : return false;
5263 : }
5264 : // Sentinel = 'isRepeatTransaction'
5265 0 : if ((!((msg__)->ReadSentinel(iter__, 4043798256)))) {
5266 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isRepeatTransaction' (bool) member of 'TransactionInfo'");
5267 0 : return false;
5268 : }
5269 0 : if ((!(Read((&((v__)->transactionStart())), msg__, iter__)))) {
5270 0 : FatalError("Error deserializing 'transactionStart' (TimeStamp) member of 'TransactionInfo'");
5271 0 : return false;
5272 : }
5273 : // Sentinel = 'transactionStart'
5274 0 : if ((!((msg__)->ReadSentinel(iter__, 214152700)))) {
5275 0 : mozilla::ipc::SentinelReadError("Error deserializing 'transactionStart' (TimeStamp) member of 'TransactionInfo'");
5276 0 : return false;
5277 : }
5278 0 : return true;
5279 : }
5280 :
5281 0 : auto PLayerTransactionChild::Write(
5282 : const TexturedTileDescriptor& v__,
5283 : Message* msg__) -> void
5284 : {
5285 : // skipping actor field that's meaningless on this side
5286 0 : Write((v__).textureChild(), msg__, false);
5287 : // Sentinel = 'texture'
5288 0 : (msg__)->WriteSentinel(3654462510);
5289 0 : Write((v__).textureOnWhite(), msg__);
5290 : // Sentinel = 'textureOnWhite'
5291 0 : (msg__)->WriteSentinel(4123373327);
5292 0 : Write((v__).updateRect(), msg__);
5293 : // Sentinel = 'updateRect'
5294 0 : (msg__)->WriteSentinel(655450235);
5295 0 : Write((v__).sharedLock(), msg__);
5296 : // Sentinel = 'sharedLock'
5297 0 : (msg__)->WriteSentinel(1249896484);
5298 0 : Write((v__).sharedLockOnWhite(), msg__);
5299 : // Sentinel = 'sharedLockOnWhite'
5300 0 : (msg__)->WriteSentinel(2954092853);
5301 0 : Write((v__).wasPlaceholder(), msg__);
5302 : // Sentinel = 'wasPlaceholder'
5303 0 : (msg__)->WriteSentinel(3801375384);
5304 0 : }
5305 :
5306 0 : auto PLayerTransactionChild::Read(
5307 : TexturedTileDescriptor* v__,
5308 : const Message* msg__,
5309 : PickleIterator* iter__) -> bool
5310 : {
5311 : // skipping actor field that's meaningless on this side
5312 0 : if ((!(Read((&((v__)->textureChild())), msg__, iter__, false)))) {
5313 0 : FatalError("Error deserializing 'textureChild' (PTexture) member of 'TexturedTileDescriptor'");
5314 0 : return false;
5315 : }
5316 : // Sentinel = 'texture'
5317 0 : if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
5318 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureChild' (PTexture) member of 'TexturedTileDescriptor'");
5319 0 : return false;
5320 : }
5321 0 : if ((!(Read((&((v__)->textureOnWhite())), msg__, iter__)))) {
5322 0 : FatalError("Error deserializing 'textureOnWhite' (MaybeTexture) member of 'TexturedTileDescriptor'");
5323 0 : return false;
5324 : }
5325 : // Sentinel = 'textureOnWhite'
5326 0 : if ((!((msg__)->ReadSentinel(iter__, 4123373327)))) {
5327 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureOnWhite' (MaybeTexture) member of 'TexturedTileDescriptor'");
5328 0 : return false;
5329 : }
5330 0 : if ((!(Read((&((v__)->updateRect())), msg__, iter__)))) {
5331 0 : FatalError("Error deserializing 'updateRect' (IntRect) member of 'TexturedTileDescriptor'");
5332 0 : return false;
5333 : }
5334 : // Sentinel = 'updateRect'
5335 0 : if ((!((msg__)->ReadSentinel(iter__, 655450235)))) {
5336 0 : mozilla::ipc::SentinelReadError("Error deserializing 'updateRect' (IntRect) member of 'TexturedTileDescriptor'");
5337 0 : return false;
5338 : }
5339 0 : if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
5340 0 : FatalError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
5341 0 : return false;
5342 : }
5343 : // Sentinel = 'sharedLock'
5344 0 : if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
5345 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
5346 0 : return false;
5347 : }
5348 0 : if ((!(Read((&((v__)->sharedLockOnWhite())), msg__, iter__)))) {
5349 0 : FatalError("Error deserializing 'sharedLockOnWhite' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
5350 0 : return false;
5351 : }
5352 : // Sentinel = 'sharedLockOnWhite'
5353 0 : if ((!((msg__)->ReadSentinel(iter__, 2954092853)))) {
5354 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockOnWhite' (ReadLockDescriptor) member of 'TexturedTileDescriptor'");
5355 0 : return false;
5356 : }
5357 0 : if ((!(Read((&((v__)->wasPlaceholder())), msg__, iter__)))) {
5358 0 : FatalError("Error deserializing 'wasPlaceholder' (bool) member of 'TexturedTileDescriptor'");
5359 0 : return false;
5360 : }
5361 : // Sentinel = 'wasPlaceholder'
5362 0 : if ((!((msg__)->ReadSentinel(iter__, 3801375384)))) {
5363 0 : mozilla::ipc::SentinelReadError("Error deserializing 'wasPlaceholder' (bool) member of 'TexturedTileDescriptor'");
5364 0 : return false;
5365 : }
5366 0 : return true;
5367 : }
5368 :
5369 0 : auto PLayerTransactionChild::Write(
5370 : const Rotation3D& v__,
5371 : Message* msg__) -> void
5372 : {
5373 0 : Write((v__).x(), msg__);
5374 : // Sentinel = 'x'
5375 0 : (msg__)->WriteSentinel(2475144313);
5376 0 : Write((v__).y(), msg__);
5377 : // Sentinel = 'y'
5378 0 : (msg__)->WriteSentinel(2603144696);
5379 0 : Write((v__).z(), msg__);
5380 : // Sentinel = 'z'
5381 0 : (msg__)->WriteSentinel(2731145083);
5382 0 : Write((v__).angle(), msg__);
5383 : // Sentinel = 'angle'
5384 0 : (msg__)->WriteSentinel(3388308388);
5385 0 : }
5386 :
5387 0 : auto PLayerTransactionChild::Read(
5388 : Rotation3D* v__,
5389 : const Message* msg__,
5390 : PickleIterator* iter__) -> bool
5391 : {
5392 0 : if ((!(Read((&((v__)->x())), msg__, iter__)))) {
5393 0 : FatalError("Error deserializing 'x' (float) member of 'Rotation3D'");
5394 0 : return false;
5395 : }
5396 : // Sentinel = 'x'
5397 0 : if ((!((msg__)->ReadSentinel(iter__, 2475144313)))) {
5398 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x' (float) member of 'Rotation3D'");
5399 0 : return false;
5400 : }
5401 0 : if ((!(Read((&((v__)->y())), msg__, iter__)))) {
5402 0 : FatalError("Error deserializing 'y' (float) member of 'Rotation3D'");
5403 0 : return false;
5404 : }
5405 : // Sentinel = 'y'
5406 0 : if ((!((msg__)->ReadSentinel(iter__, 2603144696)))) {
5407 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y' (float) member of 'Rotation3D'");
5408 0 : return false;
5409 : }
5410 0 : if ((!(Read((&((v__)->z())), msg__, iter__)))) {
5411 0 : FatalError("Error deserializing 'z' (float) member of 'Rotation3D'");
5412 0 : return false;
5413 : }
5414 : // Sentinel = 'z'
5415 0 : if ((!((msg__)->ReadSentinel(iter__, 2731145083)))) {
5416 0 : mozilla::ipc::SentinelReadError("Error deserializing 'z' (float) member of 'Rotation3D'");
5417 0 : return false;
5418 : }
5419 0 : if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
5420 0 : FatalError("Error deserializing 'angle' (CSSAngle) member of 'Rotation3D'");
5421 0 : return false;
5422 : }
5423 : // Sentinel = 'angle'
5424 0 : if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
5425 0 : mozilla::ipc::SentinelReadError("Error deserializing 'angle' (CSSAngle) member of 'Rotation3D'");
5426 0 : return false;
5427 : }
5428 0 : return true;
5429 : }
5430 :
5431 0 : auto PLayerTransactionChild::Write(
5432 : const OpUseComponentAlphaTextures& v__,
5433 : Message* msg__) -> void
5434 : {
5435 : // skipping actor field that's meaningless on this side
5436 0 : Write((v__).textureOnBlackChild(), msg__, false);
5437 : // Sentinel = 'textureOnBlack'
5438 0 : (msg__)->WriteSentinel(2782165397);
5439 : // skipping actor field that's meaningless on this side
5440 0 : Write((v__).textureOnWhiteChild(), msg__, false);
5441 : // Sentinel = 'textureOnWhite'
5442 0 : (msg__)->WriteSentinel(4123373327);
5443 0 : Write((v__).sharedLockBlack(), msg__);
5444 : // Sentinel = 'sharedLockBlack'
5445 0 : (msg__)->WriteSentinel(3577180696);
5446 0 : Write((v__).sharedLockWhite(), msg__);
5447 : // Sentinel = 'sharedLockWhite'
5448 0 : (msg__)->WriteSentinel(3643157938);
5449 0 : }
5450 :
5451 0 : auto PLayerTransactionChild::Read(
5452 : OpUseComponentAlphaTextures* v__,
5453 : const Message* msg__,
5454 : PickleIterator* iter__) -> bool
5455 : {
5456 : // skipping actor field that's meaningless on this side
5457 0 : if ((!(Read((&((v__)->textureOnBlackChild())), msg__, iter__, false)))) {
5458 0 : FatalError("Error deserializing 'textureOnBlackChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
5459 0 : return false;
5460 : }
5461 : // Sentinel = 'textureOnBlack'
5462 0 : if ((!((msg__)->ReadSentinel(iter__, 2782165397)))) {
5463 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureOnBlackChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
5464 0 : return false;
5465 : }
5466 : // skipping actor field that's meaningless on this side
5467 0 : if ((!(Read((&((v__)->textureOnWhiteChild())), msg__, iter__, false)))) {
5468 0 : FatalError("Error deserializing 'textureOnWhiteChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
5469 0 : return false;
5470 : }
5471 : // Sentinel = 'textureOnWhite'
5472 0 : if ((!((msg__)->ReadSentinel(iter__, 4123373327)))) {
5473 0 : mozilla::ipc::SentinelReadError("Error deserializing 'textureOnWhiteChild' (PTexture) member of 'OpUseComponentAlphaTextures'");
5474 0 : return false;
5475 : }
5476 0 : if ((!(Read((&((v__)->sharedLockBlack())), msg__, iter__)))) {
5477 0 : FatalError("Error deserializing 'sharedLockBlack' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
5478 0 : return false;
5479 : }
5480 : // Sentinel = 'sharedLockBlack'
5481 0 : if ((!((msg__)->ReadSentinel(iter__, 3577180696)))) {
5482 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockBlack' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
5483 0 : return false;
5484 : }
5485 0 : if ((!(Read((&((v__)->sharedLockWhite())), msg__, iter__)))) {
5486 0 : FatalError("Error deserializing 'sharedLockWhite' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
5487 0 : return false;
5488 : }
5489 : // Sentinel = 'sharedLockWhite'
5490 0 : if ((!((msg__)->ReadSentinel(iter__, 3643157938)))) {
5491 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLockWhite' (ReadLockHandle) member of 'OpUseComponentAlphaTextures'");
5492 0 : return false;
5493 : }
5494 0 : return true;
5495 : }
5496 :
5497 4 : auto PLayerTransactionChild::Write(
5498 : const LayerColor& v__,
5499 : Message* msg__) -> void
5500 : {
5501 4 : Write((v__).value(), msg__);
5502 : // Sentinel = 'value'
5503 4 : (msg__)->WriteSentinel(3456818542);
5504 4 : }
5505 :
5506 0 : auto PLayerTransactionChild::Read(
5507 : LayerColor* v__,
5508 : const Message* msg__,
5509 : PickleIterator* iter__) -> bool
5510 : {
5511 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
5512 0 : FatalError("Error deserializing 'value' (Color) member of 'LayerColor'");
5513 0 : return false;
5514 : }
5515 : // Sentinel = 'value'
5516 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
5517 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (Color) member of 'LayerColor'");
5518 0 : return false;
5519 : }
5520 0 : return true;
5521 : }
5522 :
5523 0 : auto PLayerTransactionChild::Write(
5524 : const nsTArray<GlyphArray>& v__,
5525 : Message* msg__) -> void
5526 : {
5527 0 : uint32_t length = (v__).Length();
5528 0 : Write(length, msg__);
5529 : // Sentinel = ('length', 'GlyphArray[]')
5530 0 : (msg__)->WriteSentinel(2784346266);
5531 :
5532 0 : for (auto& elem : v__) {
5533 0 : Write(elem, msg__);
5534 : // Sentinel = 'GlyphArray[]'
5535 0 : (msg__)->WriteSentinel(1884738165);
5536 : }
5537 0 : }
5538 :
5539 0 : auto PLayerTransactionChild::Read(
5540 : nsTArray<GlyphArray>* v__,
5541 : const Message* msg__,
5542 : PickleIterator* iter__) -> bool
5543 : {
5544 0 : nsTArray<GlyphArray> fa;
5545 : uint32_t length;
5546 0 : if ((!(Read((&(length)), msg__, iter__)))) {
5547 0 : mozilla::ipc::ArrayLengthReadError("GlyphArray[]");
5548 0 : return false;
5549 : }
5550 : // Sentinel = ('length', 'GlyphArray[]')
5551 0 : if ((!((msg__)->ReadSentinel(iter__, 2784346266)))) {
5552 0 : mozilla::ipc::SentinelReadError("GlyphArray[]");
5553 0 : return false;
5554 : }
5555 :
5556 0 : GlyphArray* elems = (fa).AppendElements(length);
5557 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
5558 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
5559 0 : FatalError("Error deserializing 'GlyphArray[i]'");
5560 0 : return false;
5561 : }
5562 : // Sentinel = 'GlyphArray[]'
5563 0 : if ((!((msg__)->ReadSentinel(iter__, 1884738165)))) {
5564 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GlyphArray[i]'");
5565 0 : return false;
5566 : }
5567 : }
5568 0 : (v__)->SwapElements(fa);
5569 0 : return true;
5570 : }
5571 :
5572 0 : auto PLayerTransactionChild::Write(
5573 : const Animation& v__,
5574 : Message* msg__) -> void
5575 : {
5576 0 : Write((v__).originTime(), msg__);
5577 : // Sentinel = 'originTime'
5578 0 : (msg__)->WriteSentinel(1478411195);
5579 0 : Write((v__).startTime(), msg__);
5580 : // Sentinel = 'startTime'
5581 0 : (msg__)->WriteSentinel(2351600086);
5582 0 : Write((v__).delay(), msg__);
5583 : // Sentinel = 'delay'
5584 0 : (msg__)->WriteSentinel(1275664816);
5585 0 : Write((v__).endDelay(), msg__);
5586 : // Sentinel = 'endDelay'
5587 0 : (msg__)->WriteSentinel(3866533328);
5588 0 : Write((v__).holdTime(), msg__);
5589 : // Sentinel = 'holdTime'
5590 0 : (msg__)->WriteSentinel(1802005980);
5591 0 : Write((v__).duration(), msg__);
5592 : // Sentinel = 'duration'
5593 0 : (msg__)->WriteSentinel(1938599576);
5594 0 : Write((v__).segments(), msg__);
5595 : // Sentinel = 'segments'
5596 0 : (msg__)->WriteSentinel(2098446378);
5597 0 : Write((v__).iterations(), msg__);
5598 : // Sentinel = 'iterations'
5599 0 : (msg__)->WriteSentinel(3248319766);
5600 0 : Write((v__).iterationStart(), msg__);
5601 : // Sentinel = 'iterationStart'
5602 0 : (msg__)->WriteSentinel(335770313);
5603 0 : Write((v__).direction(), msg__);
5604 : // Sentinel = 'direction'
5605 0 : (msg__)->WriteSentinel(1283484994);
5606 0 : Write((v__).fillMode(), msg__);
5607 : // Sentinel = 'fillMode'
5608 0 : (msg__)->WriteSentinel(319252690);
5609 0 : Write((v__).property(), msg__);
5610 : // Sentinel = 'property'
5611 0 : (msg__)->WriteSentinel(1482237307);
5612 0 : Write((v__).data(), msg__);
5613 : // Sentinel = 'data'
5614 0 : (msg__)->WriteSentinel(843352540);
5615 0 : Write((v__).playbackRate(), msg__);
5616 : // Sentinel = 'playbackRate'
5617 0 : (msg__)->WriteSentinel(1664611053);
5618 0 : Write((v__).easingFunction(), msg__);
5619 : // Sentinel = 'easingFunction'
5620 0 : (msg__)->WriteSentinel(2740589013);
5621 0 : Write((v__).iterationComposite(), msg__);
5622 : // Sentinel = 'iterationComposite'
5623 0 : (msg__)->WriteSentinel(3806204580);
5624 0 : Write((v__).isNotPlaying(), msg__);
5625 : // Sentinel = 'isNotPlaying'
5626 0 : (msg__)->WriteSentinel(3910541071);
5627 0 : Write((v__).baseStyle(), msg__);
5628 : // Sentinel = 'baseStyle'
5629 0 : (msg__)->WriteSentinel(2514776219);
5630 0 : }
5631 :
5632 0 : auto PLayerTransactionChild::Read(
5633 : Animation* v__,
5634 : const Message* msg__,
5635 : PickleIterator* iter__) -> bool
5636 : {
5637 0 : if ((!(Read((&((v__)->originTime())), msg__, iter__)))) {
5638 0 : FatalError("Error deserializing 'originTime' (TimeStamp) member of 'Animation'");
5639 0 : return false;
5640 : }
5641 : // Sentinel = 'originTime'
5642 0 : if ((!((msg__)->ReadSentinel(iter__, 1478411195)))) {
5643 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originTime' (TimeStamp) member of 'Animation'");
5644 0 : return false;
5645 : }
5646 0 : if ((!(Read((&((v__)->startTime())), msg__, iter__)))) {
5647 0 : FatalError("Error deserializing 'startTime' (MaybeTimeDuration) member of 'Animation'");
5648 0 : return false;
5649 : }
5650 : // Sentinel = 'startTime'
5651 0 : if ((!((msg__)->ReadSentinel(iter__, 2351600086)))) {
5652 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startTime' (MaybeTimeDuration) member of 'Animation'");
5653 0 : return false;
5654 : }
5655 0 : if ((!(Read((&((v__)->delay())), msg__, iter__)))) {
5656 0 : FatalError("Error deserializing 'delay' (TimeDuration) member of 'Animation'");
5657 0 : return false;
5658 : }
5659 : // Sentinel = 'delay'
5660 0 : if ((!((msg__)->ReadSentinel(iter__, 1275664816)))) {
5661 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delay' (TimeDuration) member of 'Animation'");
5662 0 : return false;
5663 : }
5664 0 : if ((!(Read((&((v__)->endDelay())), msg__, iter__)))) {
5665 0 : FatalError("Error deserializing 'endDelay' (TimeDuration) member of 'Animation'");
5666 0 : return false;
5667 : }
5668 : // Sentinel = 'endDelay'
5669 0 : if ((!((msg__)->ReadSentinel(iter__, 3866533328)))) {
5670 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endDelay' (TimeDuration) member of 'Animation'");
5671 0 : return false;
5672 : }
5673 0 : if ((!(Read((&((v__)->holdTime())), msg__, iter__)))) {
5674 0 : FatalError("Error deserializing 'holdTime' (TimeDuration) member of 'Animation'");
5675 0 : return false;
5676 : }
5677 : // Sentinel = 'holdTime'
5678 0 : if ((!((msg__)->ReadSentinel(iter__, 1802005980)))) {
5679 0 : mozilla::ipc::SentinelReadError("Error deserializing 'holdTime' (TimeDuration) member of 'Animation'");
5680 0 : return false;
5681 : }
5682 0 : if ((!(Read((&((v__)->duration())), msg__, iter__)))) {
5683 0 : FatalError("Error deserializing 'duration' (TimeDuration) member of 'Animation'");
5684 0 : return false;
5685 : }
5686 : // Sentinel = 'duration'
5687 0 : if ((!((msg__)->ReadSentinel(iter__, 1938599576)))) {
5688 0 : mozilla::ipc::SentinelReadError("Error deserializing 'duration' (TimeDuration) member of 'Animation'");
5689 0 : return false;
5690 : }
5691 0 : if ((!(Read((&((v__)->segments())), msg__, iter__)))) {
5692 0 : FatalError("Error deserializing 'segments' (AnimationSegment[]) member of 'Animation'");
5693 0 : return false;
5694 : }
5695 : // Sentinel = 'segments'
5696 0 : if ((!((msg__)->ReadSentinel(iter__, 2098446378)))) {
5697 0 : mozilla::ipc::SentinelReadError("Error deserializing 'segments' (AnimationSegment[]) member of 'Animation'");
5698 0 : return false;
5699 : }
5700 0 : if ((!(Read((&((v__)->iterations())), msg__, iter__)))) {
5701 0 : FatalError("Error deserializing 'iterations' (float) member of 'Animation'");
5702 0 : return false;
5703 : }
5704 : // Sentinel = 'iterations'
5705 0 : if ((!((msg__)->ReadSentinel(iter__, 3248319766)))) {
5706 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iterations' (float) member of 'Animation'");
5707 0 : return false;
5708 : }
5709 0 : if ((!(Read((&((v__)->iterationStart())), msg__, iter__)))) {
5710 0 : FatalError("Error deserializing 'iterationStart' (float) member of 'Animation'");
5711 0 : return false;
5712 : }
5713 : // Sentinel = 'iterationStart'
5714 0 : if ((!((msg__)->ReadSentinel(iter__, 335770313)))) {
5715 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iterationStart' (float) member of 'Animation'");
5716 0 : return false;
5717 : }
5718 0 : if ((!(Read((&((v__)->direction())), msg__, iter__)))) {
5719 0 : FatalError("Error deserializing 'direction' (uint8_t) member of 'Animation'");
5720 0 : return false;
5721 : }
5722 : // Sentinel = 'direction'
5723 0 : if ((!((msg__)->ReadSentinel(iter__, 1283484994)))) {
5724 0 : mozilla::ipc::SentinelReadError("Error deserializing 'direction' (uint8_t) member of 'Animation'");
5725 0 : return false;
5726 : }
5727 0 : if ((!(Read((&((v__)->fillMode())), msg__, iter__)))) {
5728 0 : FatalError("Error deserializing 'fillMode' (uint8_t) member of 'Animation'");
5729 0 : return false;
5730 : }
5731 : // Sentinel = 'fillMode'
5732 0 : if ((!((msg__)->ReadSentinel(iter__, 319252690)))) {
5733 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fillMode' (uint8_t) member of 'Animation'");
5734 0 : return false;
5735 : }
5736 0 : if ((!(Read((&((v__)->property())), msg__, iter__)))) {
5737 0 : FatalError("Error deserializing 'property' (nsCSSPropertyID) member of 'Animation'");
5738 0 : return false;
5739 : }
5740 : // Sentinel = 'property'
5741 0 : if ((!((msg__)->ReadSentinel(iter__, 1482237307)))) {
5742 0 : mozilla::ipc::SentinelReadError("Error deserializing 'property' (nsCSSPropertyID) member of 'Animation'");
5743 0 : return false;
5744 : }
5745 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
5746 0 : FatalError("Error deserializing 'data' (AnimationData) member of 'Animation'");
5747 0 : return false;
5748 : }
5749 : // Sentinel = 'data'
5750 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
5751 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (AnimationData) member of 'Animation'");
5752 0 : return false;
5753 : }
5754 0 : if ((!(Read((&((v__)->playbackRate())), msg__, iter__)))) {
5755 0 : FatalError("Error deserializing 'playbackRate' (float) member of 'Animation'");
5756 0 : return false;
5757 : }
5758 : // Sentinel = 'playbackRate'
5759 0 : if ((!((msg__)->ReadSentinel(iter__, 1664611053)))) {
5760 0 : mozilla::ipc::SentinelReadError("Error deserializing 'playbackRate' (float) member of 'Animation'");
5761 0 : return false;
5762 : }
5763 0 : if ((!(Read((&((v__)->easingFunction())), msg__, iter__)))) {
5764 0 : FatalError("Error deserializing 'easingFunction' (TimingFunction) member of 'Animation'");
5765 0 : return false;
5766 : }
5767 : // Sentinel = 'easingFunction'
5768 0 : if ((!((msg__)->ReadSentinel(iter__, 2740589013)))) {
5769 0 : mozilla::ipc::SentinelReadError("Error deserializing 'easingFunction' (TimingFunction) member of 'Animation'");
5770 0 : return false;
5771 : }
5772 0 : if ((!(Read((&((v__)->iterationComposite())), msg__, iter__)))) {
5773 0 : FatalError("Error deserializing 'iterationComposite' (uint8_t) member of 'Animation'");
5774 0 : return false;
5775 : }
5776 : // Sentinel = 'iterationComposite'
5777 0 : if ((!((msg__)->ReadSentinel(iter__, 3806204580)))) {
5778 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iterationComposite' (uint8_t) member of 'Animation'");
5779 0 : return false;
5780 : }
5781 0 : if ((!(Read((&((v__)->isNotPlaying())), msg__, iter__)))) {
5782 0 : FatalError("Error deserializing 'isNotPlaying' (bool) member of 'Animation'");
5783 0 : return false;
5784 : }
5785 : // Sentinel = 'isNotPlaying'
5786 0 : if ((!((msg__)->ReadSentinel(iter__, 3910541071)))) {
5787 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isNotPlaying' (bool) member of 'Animation'");
5788 0 : return false;
5789 : }
5790 0 : if ((!(Read((&((v__)->baseStyle())), msg__, iter__)))) {
5791 0 : FatalError("Error deserializing 'baseStyle' (Animatable) member of 'Animation'");
5792 0 : return false;
5793 : }
5794 : // Sentinel = 'baseStyle'
5795 0 : if ((!((msg__)->ReadSentinel(iter__, 2514776219)))) {
5796 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseStyle' (Animatable) member of 'Animation'");
5797 0 : return false;
5798 : }
5799 0 : return true;
5800 : }
5801 :
5802 0 : auto PLayerTransactionChild::Write(
5803 : const CanvasLayerAttributes& v__,
5804 : Message* msg__) -> void
5805 : {
5806 0 : Write((v__).samplingFilter(), msg__);
5807 : // Sentinel = 'samplingFilter'
5808 0 : (msg__)->WriteSentinel(2274374003);
5809 0 : Write((v__).bounds(), msg__);
5810 : // Sentinel = 'bounds'
5811 0 : (msg__)->WriteSentinel(809584493);
5812 0 : }
5813 :
5814 0 : auto PLayerTransactionChild::Read(
5815 : CanvasLayerAttributes* v__,
5816 : const Message* msg__,
5817 : PickleIterator* iter__) -> bool
5818 : {
5819 0 : if ((!(Read((&((v__)->samplingFilter())), msg__, iter__)))) {
5820 0 : FatalError("Error deserializing 'samplingFilter' (SamplingFilter) member of 'CanvasLayerAttributes'");
5821 0 : return false;
5822 : }
5823 : // Sentinel = 'samplingFilter'
5824 0 : if ((!((msg__)->ReadSentinel(iter__, 2274374003)))) {
5825 0 : mozilla::ipc::SentinelReadError("Error deserializing 'samplingFilter' (SamplingFilter) member of 'CanvasLayerAttributes'");
5826 0 : return false;
5827 : }
5828 0 : if ((!(Read((&((v__)->bounds())), msg__, iter__)))) {
5829 0 : FatalError("Error deserializing 'bounds' (IntRect) member of 'CanvasLayerAttributes'");
5830 0 : return false;
5831 : }
5832 : // Sentinel = 'bounds'
5833 0 : if ((!((msg__)->ReadSentinel(iter__, 809584493)))) {
5834 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bounds' (IntRect) member of 'CanvasLayerAttributes'");
5835 0 : return false;
5836 : }
5837 0 : return true;
5838 : }
5839 :
5840 22 : auto PLayerTransactionChild::Write(
5841 : const OpCreatePaintedLayer& v__,
5842 : Message* msg__) -> void
5843 : {
5844 22 : Write((v__).layer(), msg__);
5845 : // Sentinel = 'layer'
5846 22 : (msg__)->WriteSentinel(1899167106);
5847 22 : }
5848 :
5849 0 : auto PLayerTransactionChild::Read(
5850 : OpCreatePaintedLayer* v__,
5851 : const Message* msg__,
5852 : PickleIterator* iter__) -> bool
5853 : {
5854 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
5855 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreatePaintedLayer'");
5856 0 : return false;
5857 : }
5858 : // Sentinel = 'layer'
5859 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
5860 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreatePaintedLayer'");
5861 0 : return false;
5862 : }
5863 0 : return true;
5864 : }
5865 :
5866 0 : auto PLayerTransactionChild::Write(
5867 : const SurfaceDescriptorTiles& v__,
5868 : Message* msg__) -> void
5869 : {
5870 0 : Write((v__).validRegion(), msg__);
5871 : // Sentinel = 'validRegion'
5872 0 : (msg__)->WriteSentinel(1063106721);
5873 0 : Write((v__).tiles(), msg__);
5874 : // Sentinel = 'tiles'
5875 0 : (msg__)->WriteSentinel(2787066946);
5876 0 : Write((v__).tileOrigin(), msg__);
5877 : // Sentinel = 'tileOrigin'
5878 0 : (msg__)->WriteSentinel(41129744);
5879 0 : Write((v__).tileSize(), msg__);
5880 : // Sentinel = 'tileSize'
5881 0 : (msg__)->WriteSentinel(2603105767);
5882 0 : Write((v__).firstTileX(), msg__);
5883 : // Sentinel = 'firstTileX'
5884 0 : (msg__)->WriteSentinel(1961114936);
5885 0 : Write((v__).firstTileY(), msg__);
5886 : // Sentinel = 'firstTileY'
5887 0 : (msg__)->WriteSentinel(1961114937);
5888 0 : Write((v__).retainedWidth(), msg__);
5889 : // Sentinel = 'retainedWidth'
5890 0 : (msg__)->WriteSentinel(2490297853);
5891 0 : Write((v__).retainedHeight(), msg__);
5892 : // Sentinel = 'retainedHeight'
5893 0 : (msg__)->WriteSentinel(3230772307);
5894 0 : Write((v__).resolution(), msg__);
5895 : // Sentinel = 'resolution'
5896 0 : (msg__)->WriteSentinel(4077768700);
5897 0 : Write((v__).frameXResolution(), msg__);
5898 : // Sentinel = 'frameXResolution'
5899 0 : (msg__)->WriteSentinel(876167199);
5900 0 : Write((v__).frameYResolution(), msg__);
5901 : // Sentinel = 'frameYResolution'
5902 0 : (msg__)->WriteSentinel(2856703858);
5903 0 : Write((v__).isProgressive(), msg__);
5904 : // Sentinel = 'isProgressive'
5905 0 : (msg__)->WriteSentinel(1291560808);
5906 0 : }
5907 :
5908 0 : auto PLayerTransactionChild::Read(
5909 : SurfaceDescriptorTiles* v__,
5910 : const Message* msg__,
5911 : PickleIterator* iter__) -> bool
5912 : {
5913 0 : if ((!(Read((&((v__)->validRegion())), msg__, iter__)))) {
5914 0 : FatalError("Error deserializing 'validRegion' (nsIntRegion) member of 'SurfaceDescriptorTiles'");
5915 0 : return false;
5916 : }
5917 : // Sentinel = 'validRegion'
5918 0 : if ((!((msg__)->ReadSentinel(iter__, 1063106721)))) {
5919 0 : mozilla::ipc::SentinelReadError("Error deserializing 'validRegion' (nsIntRegion) member of 'SurfaceDescriptorTiles'");
5920 0 : return false;
5921 : }
5922 0 : if ((!(Read((&((v__)->tiles())), msg__, iter__)))) {
5923 0 : FatalError("Error deserializing 'tiles' (TileDescriptor[]) member of 'SurfaceDescriptorTiles'");
5924 0 : return false;
5925 : }
5926 : // Sentinel = 'tiles'
5927 0 : if ((!((msg__)->ReadSentinel(iter__, 2787066946)))) {
5928 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tiles' (TileDescriptor[]) member of 'SurfaceDescriptorTiles'");
5929 0 : return false;
5930 : }
5931 0 : if ((!(Read((&((v__)->tileOrigin())), msg__, iter__)))) {
5932 0 : FatalError("Error deserializing 'tileOrigin' (IntPoint) member of 'SurfaceDescriptorTiles'");
5933 0 : return false;
5934 : }
5935 : // Sentinel = 'tileOrigin'
5936 0 : if ((!((msg__)->ReadSentinel(iter__, 41129744)))) {
5937 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tileOrigin' (IntPoint) member of 'SurfaceDescriptorTiles'");
5938 0 : return false;
5939 : }
5940 0 : if ((!(Read((&((v__)->tileSize())), msg__, iter__)))) {
5941 0 : FatalError("Error deserializing 'tileSize' (IntSize) member of 'SurfaceDescriptorTiles'");
5942 0 : return false;
5943 : }
5944 : // Sentinel = 'tileSize'
5945 0 : if ((!((msg__)->ReadSentinel(iter__, 2603105767)))) {
5946 0 : mozilla::ipc::SentinelReadError("Error deserializing 'tileSize' (IntSize) member of 'SurfaceDescriptorTiles'");
5947 0 : return false;
5948 : }
5949 0 : if ((!(Read((&((v__)->firstTileX())), msg__, iter__)))) {
5950 0 : FatalError("Error deserializing 'firstTileX' (int) member of 'SurfaceDescriptorTiles'");
5951 0 : return false;
5952 : }
5953 : // Sentinel = 'firstTileX'
5954 0 : if ((!((msg__)->ReadSentinel(iter__, 1961114936)))) {
5955 0 : mozilla::ipc::SentinelReadError("Error deserializing 'firstTileX' (int) member of 'SurfaceDescriptorTiles'");
5956 0 : return false;
5957 : }
5958 0 : if ((!(Read((&((v__)->firstTileY())), msg__, iter__)))) {
5959 0 : FatalError("Error deserializing 'firstTileY' (int) member of 'SurfaceDescriptorTiles'");
5960 0 : return false;
5961 : }
5962 : // Sentinel = 'firstTileY'
5963 0 : if ((!((msg__)->ReadSentinel(iter__, 1961114937)))) {
5964 0 : mozilla::ipc::SentinelReadError("Error deserializing 'firstTileY' (int) member of 'SurfaceDescriptorTiles'");
5965 0 : return false;
5966 : }
5967 0 : if ((!(Read((&((v__)->retainedWidth())), msg__, iter__)))) {
5968 0 : FatalError("Error deserializing 'retainedWidth' (int) member of 'SurfaceDescriptorTiles'");
5969 0 : return false;
5970 : }
5971 : // Sentinel = 'retainedWidth'
5972 0 : if ((!((msg__)->ReadSentinel(iter__, 2490297853)))) {
5973 0 : mozilla::ipc::SentinelReadError("Error deserializing 'retainedWidth' (int) member of 'SurfaceDescriptorTiles'");
5974 0 : return false;
5975 : }
5976 0 : if ((!(Read((&((v__)->retainedHeight())), msg__, iter__)))) {
5977 0 : FatalError("Error deserializing 'retainedHeight' (int) member of 'SurfaceDescriptorTiles'");
5978 0 : return false;
5979 : }
5980 : // Sentinel = 'retainedHeight'
5981 0 : if ((!((msg__)->ReadSentinel(iter__, 3230772307)))) {
5982 0 : mozilla::ipc::SentinelReadError("Error deserializing 'retainedHeight' (int) member of 'SurfaceDescriptorTiles'");
5983 0 : return false;
5984 : }
5985 0 : if ((!(Read((&((v__)->resolution())), msg__, iter__)))) {
5986 0 : FatalError("Error deserializing 'resolution' (float) member of 'SurfaceDescriptorTiles'");
5987 0 : return false;
5988 : }
5989 : // Sentinel = 'resolution'
5990 0 : if ((!((msg__)->ReadSentinel(iter__, 4077768700)))) {
5991 0 : mozilla::ipc::SentinelReadError("Error deserializing 'resolution' (float) member of 'SurfaceDescriptorTiles'");
5992 0 : return false;
5993 : }
5994 0 : if ((!(Read((&((v__)->frameXResolution())), msg__, iter__)))) {
5995 0 : FatalError("Error deserializing 'frameXResolution' (float) member of 'SurfaceDescriptorTiles'");
5996 0 : return false;
5997 : }
5998 : // Sentinel = 'frameXResolution'
5999 0 : if ((!((msg__)->ReadSentinel(iter__, 876167199)))) {
6000 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frameXResolution' (float) member of 'SurfaceDescriptorTiles'");
6001 0 : return false;
6002 : }
6003 0 : if ((!(Read((&((v__)->frameYResolution())), msg__, iter__)))) {
6004 0 : FatalError("Error deserializing 'frameYResolution' (float) member of 'SurfaceDescriptorTiles'");
6005 0 : return false;
6006 : }
6007 : // Sentinel = 'frameYResolution'
6008 0 : if ((!((msg__)->ReadSentinel(iter__, 2856703858)))) {
6009 0 : mozilla::ipc::SentinelReadError("Error deserializing 'frameYResolution' (float) member of 'SurfaceDescriptorTiles'");
6010 0 : return false;
6011 : }
6012 0 : if ((!(Read((&((v__)->isProgressive())), msg__, iter__)))) {
6013 0 : FatalError("Error deserializing 'isProgressive' (bool) member of 'SurfaceDescriptorTiles'");
6014 0 : return false;
6015 : }
6016 : // Sentinel = 'isProgressive'
6017 0 : if ((!((msg__)->ReadSentinel(iter__, 1291560808)))) {
6018 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isProgressive' (bool) member of 'SurfaceDescriptorTiles'");
6019 0 : return false;
6020 : }
6021 0 : return true;
6022 : }
6023 :
6024 0 : auto PLayerTransactionChild::Write(
6025 : const CSSAngle& v__,
6026 : Message* msg__) -> void
6027 : {
6028 0 : Write((v__).value(), msg__);
6029 : // Sentinel = 'value'
6030 0 : (msg__)->WriteSentinel(3456818542);
6031 0 : Write((v__).unit(), msg__);
6032 : // Sentinel = 'unit'
6033 0 : (msg__)->WriteSentinel(1305575710);
6034 0 : }
6035 :
6036 0 : auto PLayerTransactionChild::Read(
6037 : CSSAngle* v__,
6038 : const Message* msg__,
6039 : PickleIterator* iter__) -> bool
6040 : {
6041 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
6042 0 : FatalError("Error deserializing 'value' (float) member of 'CSSAngle'");
6043 0 : return false;
6044 : }
6045 : // Sentinel = 'value'
6046 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
6047 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (float) member of 'CSSAngle'");
6048 0 : return false;
6049 : }
6050 0 : if ((!(Read((&((v__)->unit())), msg__, iter__)))) {
6051 0 : FatalError("Error deserializing 'unit' (int) member of 'CSSAngle'");
6052 0 : return false;
6053 : }
6054 : // Sentinel = 'unit'
6055 0 : if ((!((msg__)->ReadSentinel(iter__, 1305575710)))) {
6056 0 : mozilla::ipc::SentinelReadError("Error deserializing 'unit' (int) member of 'CSSAngle'");
6057 0 : return false;
6058 : }
6059 0 : return true;
6060 : }
6061 :
6062 0 : auto PLayerTransactionChild::Write(
6063 : const RotationZ& v__,
6064 : Message* msg__) -> void
6065 : {
6066 0 : Write((v__).angle(), msg__);
6067 : // Sentinel = 'angle'
6068 0 : (msg__)->WriteSentinel(3388308388);
6069 0 : }
6070 :
6071 0 : auto PLayerTransactionChild::Read(
6072 : RotationZ* v__,
6073 : const Message* msg__,
6074 : PickleIterator* iter__) -> bool
6075 : {
6076 0 : if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
6077 0 : FatalError("Error deserializing 'angle' (CSSAngle) member of 'RotationZ'");
6078 0 : return false;
6079 : }
6080 : // Sentinel = 'angle'
6081 0 : if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
6082 0 : mozilla::ipc::SentinelReadError("Error deserializing 'angle' (CSSAngle) member of 'RotationZ'");
6083 0 : return false;
6084 : }
6085 0 : return true;
6086 : }
6087 :
6088 0 : auto PLayerTransactionChild::Write(
6089 : const RotationX& v__,
6090 : Message* msg__) -> void
6091 : {
6092 0 : Write((v__).angle(), msg__);
6093 : // Sentinel = 'angle'
6094 0 : (msg__)->WriteSentinel(3388308388);
6095 0 : }
6096 :
6097 0 : auto PLayerTransactionChild::Read(
6098 : RotationX* v__,
6099 : const Message* msg__,
6100 : PickleIterator* iter__) -> bool
6101 : {
6102 0 : if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
6103 0 : FatalError("Error deserializing 'angle' (CSSAngle) member of 'RotationX'");
6104 0 : return false;
6105 : }
6106 : // Sentinel = 'angle'
6107 0 : if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
6108 0 : mozilla::ipc::SentinelReadError("Error deserializing 'angle' (CSSAngle) member of 'RotationX'");
6109 0 : return false;
6110 : }
6111 0 : return true;
6112 : }
6113 :
6114 0 : auto PLayerTransactionChild::Write(
6115 : const RotationY& v__,
6116 : Message* msg__) -> void
6117 : {
6118 0 : Write((v__).angle(), msg__);
6119 : // Sentinel = 'angle'
6120 0 : (msg__)->WriteSentinel(3388308388);
6121 0 : }
6122 :
6123 0 : auto PLayerTransactionChild::Read(
6124 : RotationY* v__,
6125 : const Message* msg__,
6126 : PickleIterator* iter__) -> bool
6127 : {
6128 0 : if ((!(Read((&((v__)->angle())), msg__, iter__)))) {
6129 0 : FatalError("Error deserializing 'angle' (CSSAngle) member of 'RotationY'");
6130 0 : return false;
6131 : }
6132 : // Sentinel = 'angle'
6133 0 : if ((!((msg__)->ReadSentinel(iter__, 3388308388)))) {
6134 0 : mozilla::ipc::SentinelReadError("Error deserializing 'angle' (CSSAngle) member of 'RotationY'");
6135 0 : return false;
6136 : }
6137 0 : return true;
6138 : }
6139 :
6140 0 : auto PLayerTransactionChild::Write(
6141 : const Animatable& v__,
6142 : Message* msg__) -> void
6143 : {
6144 : typedef Animatable type__;
6145 0 : Write(int((v__).type()), msg__);
6146 : // Sentinel = 'Animatable'
6147 0 : (msg__)->WriteSentinel(1922875594);
6148 :
6149 0 : switch ((v__).type()) {
6150 : case type__::Tnull_t:
6151 : {
6152 0 : Write((v__).get_null_t(), msg__);
6153 : // Sentinel = 'Tnull_t'
6154 0 : (msg__)->WriteSentinel(3731137201);
6155 0 : return;
6156 : }
6157 : case type__::Tfloat:
6158 : {
6159 0 : Write((v__).get_float(), msg__);
6160 : // Sentinel = 'Tfloat'
6161 0 : (msg__)->WriteSentinel(2693237468);
6162 0 : return;
6163 : }
6164 : case type__::TArrayOfTransformFunction:
6165 : {
6166 0 : Write((v__).get_ArrayOfTransformFunction(), msg__);
6167 : // Sentinel = 'TArrayOfTransformFunction'
6168 0 : (msg__)->WriteSentinel(2388656529);
6169 0 : return;
6170 : }
6171 : default:
6172 : {
6173 0 : FatalError("unknown union type");
6174 0 : return;
6175 : }
6176 : }
6177 : }
6178 :
6179 0 : auto PLayerTransactionChild::Read(
6180 : Animatable* v__,
6181 : const Message* msg__,
6182 : PickleIterator* iter__) -> bool
6183 : {
6184 : typedef Animatable type__;
6185 : int type;
6186 0 : if ((!(Read((&(type)), msg__, iter__)))) {
6187 0 : mozilla::ipc::UnionTypeReadError("Animatable");
6188 0 : return false;
6189 : }
6190 : // Sentinel = 'Animatable'
6191 0 : if ((!((msg__)->ReadSentinel(iter__, 1922875594)))) {
6192 0 : mozilla::ipc::SentinelReadError("Animatable");
6193 0 : return false;
6194 : }
6195 :
6196 0 : switch (type) {
6197 : case type__::Tnull_t:
6198 : {
6199 : null_t tmp = null_t();
6200 0 : (*(v__)) = tmp;
6201 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
6202 0 : FatalError("Error deserializing Union type");
6203 0 : return false;
6204 : }
6205 : // Sentinel = 'Tnull_t'
6206 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
6207 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6208 0 : return false;
6209 : }
6210 0 : return true;
6211 : }
6212 : case type__::Tfloat:
6213 : {
6214 0 : float tmp = float();
6215 0 : (*(v__)) = tmp;
6216 0 : if ((!(Read((&((v__)->get_float())), msg__, iter__)))) {
6217 0 : FatalError("Error deserializing Union type");
6218 0 : return false;
6219 : }
6220 : // Sentinel = 'Tfloat'
6221 0 : if ((!((msg__)->ReadSentinel(iter__, 2693237468)))) {
6222 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6223 0 : return false;
6224 : }
6225 0 : return true;
6226 : }
6227 : case type__::TArrayOfTransformFunction:
6228 : {
6229 0 : nsTArray<TransformFunction> tmp;
6230 0 : (*(v__)) = tmp;
6231 0 : if ((!(Read((&((v__)->get_ArrayOfTransformFunction())), msg__, iter__)))) {
6232 0 : FatalError("Error deserializing Union type");
6233 0 : return false;
6234 : }
6235 : // Sentinel = 'TArrayOfTransformFunction'
6236 0 : if ((!((msg__)->ReadSentinel(iter__, 2388656529)))) {
6237 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6238 0 : return false;
6239 : }
6240 0 : return true;
6241 : }
6242 : default:
6243 : {
6244 0 : FatalError("unknown union type");
6245 0 : return false;
6246 : }
6247 : }
6248 : }
6249 :
6250 0 : auto PLayerTransactionChild::Write(
6251 : const TileDescriptor& v__,
6252 : Message* msg__) -> void
6253 : {
6254 : typedef TileDescriptor type__;
6255 0 : Write(int((v__).type()), msg__);
6256 : // Sentinel = 'TileDescriptor'
6257 0 : (msg__)->WriteSentinel(1522454921);
6258 :
6259 0 : switch ((v__).type()) {
6260 : case type__::TTexturedTileDescriptor:
6261 : {
6262 0 : Write((v__).get_TexturedTileDescriptor(), msg__);
6263 : // Sentinel = 'TTexturedTileDescriptor'
6264 0 : (msg__)->WriteSentinel(2237132903);
6265 0 : return;
6266 : }
6267 : case type__::TPlaceholderTileDescriptor:
6268 : {
6269 0 : Write((v__).get_PlaceholderTileDescriptor(), msg__);
6270 : // Sentinel = 'TPlaceholderTileDescriptor'
6271 0 : (msg__)->WriteSentinel(1643451770);
6272 0 : return;
6273 : }
6274 : default:
6275 : {
6276 0 : FatalError("unknown union type");
6277 0 : return;
6278 : }
6279 : }
6280 : }
6281 :
6282 0 : auto PLayerTransactionChild::Read(
6283 : TileDescriptor* v__,
6284 : const Message* msg__,
6285 : PickleIterator* iter__) -> bool
6286 : {
6287 : typedef TileDescriptor type__;
6288 : int type;
6289 0 : if ((!(Read((&(type)), msg__, iter__)))) {
6290 0 : mozilla::ipc::UnionTypeReadError("TileDescriptor");
6291 0 : return false;
6292 : }
6293 : // Sentinel = 'TileDescriptor'
6294 0 : if ((!((msg__)->ReadSentinel(iter__, 1522454921)))) {
6295 0 : mozilla::ipc::SentinelReadError("TileDescriptor");
6296 0 : return false;
6297 : }
6298 :
6299 0 : switch (type) {
6300 : case type__::TTexturedTileDescriptor:
6301 : {
6302 0 : TexturedTileDescriptor tmp = TexturedTileDescriptor();
6303 0 : (*(v__)) = tmp;
6304 0 : if ((!(Read((&((v__)->get_TexturedTileDescriptor())), msg__, iter__)))) {
6305 0 : FatalError("Error deserializing Union type");
6306 0 : return false;
6307 : }
6308 : // Sentinel = 'TTexturedTileDescriptor'
6309 0 : if ((!((msg__)->ReadSentinel(iter__, 2237132903)))) {
6310 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6311 0 : return false;
6312 : }
6313 0 : return true;
6314 : }
6315 : case type__::TPlaceholderTileDescriptor:
6316 : {
6317 0 : PlaceholderTileDescriptor tmp = PlaceholderTileDescriptor();
6318 0 : (*(v__)) = tmp;
6319 0 : if ((!(Read((&((v__)->get_PlaceholderTileDescriptor())), msg__, iter__)))) {
6320 0 : FatalError("Error deserializing Union type");
6321 0 : return false;
6322 : }
6323 : // Sentinel = 'TPlaceholderTileDescriptor'
6324 0 : if ((!((msg__)->ReadSentinel(iter__, 1643451770)))) {
6325 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6326 0 : return false;
6327 : }
6328 0 : return true;
6329 : }
6330 : default:
6331 : {
6332 0 : FatalError("unknown union type");
6333 0 : return false;
6334 : }
6335 : }
6336 : }
6337 :
6338 1 : auto PLayerTransactionChild::Write(
6339 : const OpCreateRefLayer& v__,
6340 : Message* msg__) -> void
6341 : {
6342 1 : Write((v__).layer(), msg__);
6343 : // Sentinel = 'layer'
6344 1 : (msg__)->WriteSentinel(1899167106);
6345 1 : }
6346 :
6347 0 : auto PLayerTransactionChild::Read(
6348 : OpCreateRefLayer* v__,
6349 : const Message* msg__,
6350 : PickleIterator* iter__) -> bool
6351 : {
6352 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
6353 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateRefLayer'");
6354 0 : return false;
6355 : }
6356 : // Sentinel = 'layer'
6357 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
6358 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateRefLayer'");
6359 0 : return false;
6360 : }
6361 0 : return true;
6362 : }
6363 :
6364 4 : auto PLayerTransactionChild::Write(
6365 : const OpCreateContainerLayer& v__,
6366 : Message* msg__) -> void
6367 : {
6368 4 : Write((v__).layer(), msg__);
6369 : // Sentinel = 'layer'
6370 4 : (msg__)->WriteSentinel(1899167106);
6371 4 : }
6372 :
6373 0 : auto PLayerTransactionChild::Read(
6374 : OpCreateContainerLayer* v__,
6375 : const Message* msg__,
6376 : PickleIterator* iter__) -> bool
6377 : {
6378 0 : if ((!(Read((&((v__)->layer())), msg__, iter__)))) {
6379 0 : FatalError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateContainerLayer'");
6380 0 : return false;
6381 : }
6382 : // Sentinel = 'layer'
6383 0 : if ((!((msg__)->ReadSentinel(iter__, 1899167106)))) {
6384 0 : mozilla::ipc::SentinelReadError("Error deserializing 'layer' (LayerHandle) member of 'OpCreateContainerLayer'");
6385 0 : return false;
6386 : }
6387 0 : return true;
6388 : }
6389 :
6390 53 : auto PLayerTransactionChild::Write(
6391 : const PaintedLayerAttributes& v__,
6392 : Message* msg__) -> void
6393 : {
6394 53 : Write((v__).validRegion(), msg__);
6395 : // Sentinel = 'validRegion'
6396 53 : (msg__)->WriteSentinel(1063106721);
6397 53 : }
6398 :
6399 0 : auto PLayerTransactionChild::Read(
6400 : PaintedLayerAttributes* v__,
6401 : const Message* msg__,
6402 : PickleIterator* iter__) -> bool
6403 : {
6404 0 : if ((!(Read((&((v__)->validRegion())), msg__, iter__)))) {
6405 0 : FatalError("Error deserializing 'validRegion' (nsIntRegion) member of 'PaintedLayerAttributes'");
6406 0 : return false;
6407 : }
6408 : // Sentinel = 'validRegion'
6409 0 : if ((!((msg__)->ReadSentinel(iter__, 1063106721)))) {
6410 0 : mozilla::ipc::SentinelReadError("Error deserializing 'validRegion' (nsIntRegion) member of 'PaintedLayerAttributes'");
6411 0 : return false;
6412 : }
6413 0 : return true;
6414 : }
6415 :
6416 0 : auto PLayerTransactionChild::Write(
6417 : const AnimationData& v__,
6418 : Message* msg__) -> void
6419 : {
6420 : typedef AnimationData type__;
6421 0 : Write(int((v__).type()), msg__);
6422 : // Sentinel = 'AnimationData'
6423 0 : (msg__)->WriteSentinel(3226711031);
6424 :
6425 0 : switch ((v__).type()) {
6426 : case type__::Tnull_t:
6427 : {
6428 0 : Write((v__).get_null_t(), msg__);
6429 : // Sentinel = 'Tnull_t'
6430 0 : (msg__)->WriteSentinel(3731137201);
6431 0 : return;
6432 : }
6433 : case type__::TTransformData:
6434 : {
6435 0 : Write((v__).get_TransformData(), msg__);
6436 : // Sentinel = 'TTransformData'
6437 0 : (msg__)->WriteSentinel(3843342686);
6438 0 : return;
6439 : }
6440 : default:
6441 : {
6442 0 : FatalError("unknown union type");
6443 0 : return;
6444 : }
6445 : }
6446 : }
6447 :
6448 0 : auto PLayerTransactionChild::Read(
6449 : AnimationData* v__,
6450 : const Message* msg__,
6451 : PickleIterator* iter__) -> bool
6452 : {
6453 : typedef AnimationData type__;
6454 : int type;
6455 0 : if ((!(Read((&(type)), msg__, iter__)))) {
6456 0 : mozilla::ipc::UnionTypeReadError("AnimationData");
6457 0 : return false;
6458 : }
6459 : // Sentinel = 'AnimationData'
6460 0 : if ((!((msg__)->ReadSentinel(iter__, 3226711031)))) {
6461 0 : mozilla::ipc::SentinelReadError("AnimationData");
6462 0 : return false;
6463 : }
6464 :
6465 0 : switch (type) {
6466 : case type__::Tnull_t:
6467 : {
6468 : null_t tmp = null_t();
6469 0 : (*(v__)) = tmp;
6470 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
6471 0 : FatalError("Error deserializing Union type");
6472 0 : return false;
6473 : }
6474 : // Sentinel = 'Tnull_t'
6475 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
6476 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6477 0 : return false;
6478 : }
6479 0 : return true;
6480 : }
6481 : case type__::TTransformData:
6482 : {
6483 0 : TransformData tmp = TransformData();
6484 0 : (*(v__)) = tmp;
6485 0 : if ((!(Read((&((v__)->get_TransformData())), msg__, iter__)))) {
6486 0 : FatalError("Error deserializing Union type");
6487 0 : return false;
6488 : }
6489 : // Sentinel = 'TTransformData'
6490 0 : if ((!((msg__)->ReadSentinel(iter__, 3843342686)))) {
6491 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6492 0 : return false;
6493 : }
6494 0 : return true;
6495 : }
6496 : default:
6497 : {
6498 0 : FatalError("unknown union type");
6499 0 : return false;
6500 : }
6501 : }
6502 : }
6503 :
6504 33 : auto PLayerTransactionChild::Write(
6505 : const ReadLockInit& v__,
6506 : Message* msg__) -> void
6507 : {
6508 33 : Write((v__).sharedLock(), msg__);
6509 : // Sentinel = 'sharedLock'
6510 33 : (msg__)->WriteSentinel(1249896484);
6511 33 : Write((v__).handle(), msg__);
6512 : // Sentinel = 'handle'
6513 33 : (msg__)->WriteSentinel(453975108);
6514 33 : }
6515 :
6516 0 : auto PLayerTransactionChild::Read(
6517 : ReadLockInit* v__,
6518 : const Message* msg__,
6519 : PickleIterator* iter__) -> bool
6520 : {
6521 0 : if ((!(Read((&((v__)->sharedLock())), msg__, iter__)))) {
6522 0 : FatalError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'ReadLockInit'");
6523 0 : return false;
6524 : }
6525 : // Sentinel = 'sharedLock'
6526 0 : if ((!((msg__)->ReadSentinel(iter__, 1249896484)))) {
6527 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sharedLock' (ReadLockDescriptor) member of 'ReadLockInit'");
6528 0 : return false;
6529 : }
6530 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
6531 0 : FatalError("Error deserializing 'handle' (ReadLockHandle) member of 'ReadLockInit'");
6532 0 : return false;
6533 : }
6534 : // Sentinel = 'handle'
6535 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
6536 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (ReadLockHandle) member of 'ReadLockInit'");
6537 0 : return false;
6538 : }
6539 0 : return true;
6540 : }
6541 :
6542 33 : auto PLayerTransactionChild::Write(
6543 : const nsTArray<TimedTexture>& v__,
6544 : Message* msg__) -> void
6545 : {
6546 33 : uint32_t length = (v__).Length();
6547 33 : Write(length, msg__);
6548 : // Sentinel = ('length', 'TimedTexture[]')
6549 33 : (msg__)->WriteSentinel(3681527117);
6550 :
6551 66 : for (auto& elem : v__) {
6552 33 : Write(elem, msg__);
6553 : // Sentinel = 'TimedTexture[]'
6554 33 : (msg__)->WriteSentinel(1531351012);
6555 : }
6556 33 : }
6557 :
6558 0 : auto PLayerTransactionChild::Read(
6559 : nsTArray<TimedTexture>* v__,
6560 : const Message* msg__,
6561 : PickleIterator* iter__) -> bool
6562 : {
6563 0 : nsTArray<TimedTexture> fa;
6564 : uint32_t length;
6565 0 : if ((!(Read((&(length)), msg__, iter__)))) {
6566 0 : mozilla::ipc::ArrayLengthReadError("TimedTexture[]");
6567 0 : return false;
6568 : }
6569 : // Sentinel = ('length', 'TimedTexture[]')
6570 0 : if ((!((msg__)->ReadSentinel(iter__, 3681527117)))) {
6571 0 : mozilla::ipc::SentinelReadError("TimedTexture[]");
6572 0 : return false;
6573 : }
6574 :
6575 0 : TimedTexture* elems = (fa).AppendElements(length);
6576 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
6577 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
6578 0 : FatalError("Error deserializing 'TimedTexture[i]'");
6579 0 : return false;
6580 : }
6581 : // Sentinel = 'TimedTexture[]'
6582 0 : if ((!((msg__)->ReadSentinel(iter__, 1531351012)))) {
6583 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TimedTexture[i]'");
6584 0 : return false;
6585 : }
6586 : }
6587 0 : (v__)->SwapElements(fa);
6588 0 : return true;
6589 : }
6590 :
6591 66 : auto PLayerTransactionChild::Write(
6592 : const CompositableOperation& v__,
6593 : Message* msg__) -> void
6594 : {
6595 66 : Write((v__).compositable(), msg__);
6596 : // Sentinel = 'compositable'
6597 66 : (msg__)->WriteSentinel(4031958248);
6598 66 : Write((v__).detail(), msg__);
6599 : // Sentinel = 'detail'
6600 66 : (msg__)->WriteSentinel(3931660205);
6601 66 : }
6602 :
6603 0 : auto PLayerTransactionChild::Read(
6604 : CompositableOperation* v__,
6605 : const Message* msg__,
6606 : PickleIterator* iter__) -> bool
6607 : {
6608 0 : if ((!(Read((&((v__)->compositable())), msg__, iter__)))) {
6609 0 : FatalError("Error deserializing 'compositable' (CompositableHandle) member of 'CompositableOperation'");
6610 0 : return false;
6611 : }
6612 : // Sentinel = 'compositable'
6613 0 : if ((!((msg__)->ReadSentinel(iter__, 4031958248)))) {
6614 0 : mozilla::ipc::SentinelReadError("Error deserializing 'compositable' (CompositableHandle) member of 'CompositableOperation'");
6615 0 : return false;
6616 : }
6617 0 : if ((!(Read((&((v__)->detail())), msg__, iter__)))) {
6618 0 : FatalError("Error deserializing 'detail' (CompositableOperationDetail) member of 'CompositableOperation'");
6619 0 : return false;
6620 : }
6621 : // Sentinel = 'detail'
6622 0 : if ((!((msg__)->ReadSentinel(iter__, 3931660205)))) {
6623 0 : mozilla::ipc::SentinelReadError("Error deserializing 'detail' (CompositableOperationDetail) member of 'CompositableOperation'");
6624 0 : return false;
6625 : }
6626 0 : return true;
6627 : }
6628 :
6629 0 : auto PLayerTransactionChild::Write(
6630 : const Skew& v__,
6631 : Message* msg__) -> void
6632 : {
6633 0 : Write((v__).x(), msg__);
6634 : // Sentinel = 'x'
6635 0 : (msg__)->WriteSentinel(2475144313);
6636 0 : Write((v__).y(), msg__);
6637 : // Sentinel = 'y'
6638 0 : (msg__)->WriteSentinel(2603144696);
6639 0 : }
6640 :
6641 0 : auto PLayerTransactionChild::Read(
6642 : Skew* v__,
6643 : const Message* msg__,
6644 : PickleIterator* iter__) -> bool
6645 : {
6646 0 : if ((!(Read((&((v__)->x())), msg__, iter__)))) {
6647 0 : FatalError("Error deserializing 'x' (CSSAngle) member of 'Skew'");
6648 0 : return false;
6649 : }
6650 : // Sentinel = 'x'
6651 0 : if ((!((msg__)->ReadSentinel(iter__, 2475144313)))) {
6652 0 : mozilla::ipc::SentinelReadError("Error deserializing 'x' (CSSAngle) member of 'Skew'");
6653 0 : return false;
6654 : }
6655 0 : if ((!(Read((&((v__)->y())), msg__, iter__)))) {
6656 0 : FatalError("Error deserializing 'y' (CSSAngle) member of 'Skew'");
6657 0 : return false;
6658 : }
6659 : // Sentinel = 'y'
6660 0 : if ((!((msg__)->ReadSentinel(iter__, 2603144696)))) {
6661 0 : mozilla::ipc::SentinelReadError("Error deserializing 'y' (CSSAngle) member of 'Skew'");
6662 0 : return false;
6663 : }
6664 0 : return true;
6665 : }
6666 :
6667 66 : auto PLayerTransactionChild::Write(
6668 : const CompositableOperationDetail& v__,
6669 : Message* msg__) -> void
6670 : {
6671 : typedef CompositableOperationDetail type__;
6672 66 : Write(int((v__).type()), msg__);
6673 : // Sentinel = 'CompositableOperationDetail'
6674 66 : (msg__)->WriteSentinel(676020439);
6675 :
6676 66 : switch ((v__).type()) {
6677 : case type__::TOpPaintTextureRegion:
6678 : {
6679 33 : Write((v__).get_OpPaintTextureRegion(), msg__);
6680 : // Sentinel = 'TOpPaintTextureRegion'
6681 33 : (msg__)->WriteSentinel(734509049);
6682 33 : return;
6683 : }
6684 : case type__::TOpUseTiledLayerBuffer:
6685 : {
6686 0 : Write((v__).get_OpUseTiledLayerBuffer(), msg__);
6687 : // Sentinel = 'TOpUseTiledLayerBuffer'
6688 0 : (msg__)->WriteSentinel(916924693);
6689 0 : return;
6690 : }
6691 : case type__::TOpRemoveTexture:
6692 : {
6693 0 : Write((v__).get_OpRemoveTexture(), msg__);
6694 : // Sentinel = 'TOpRemoveTexture'
6695 0 : (msg__)->WriteSentinel(2379906162);
6696 0 : return;
6697 : }
6698 : case type__::TOpUseTexture:
6699 : {
6700 33 : Write((v__).get_OpUseTexture(), msg__);
6701 : // Sentinel = 'TOpUseTexture'
6702 33 : (msg__)->WriteSentinel(581630962);
6703 33 : return;
6704 : }
6705 : case type__::TOpUseComponentAlphaTextures:
6706 : {
6707 0 : Write((v__).get_OpUseComponentAlphaTextures(), msg__);
6708 : // Sentinel = 'TOpUseComponentAlphaTextures'
6709 0 : (msg__)->WriteSentinel(457985329);
6710 0 : return;
6711 : }
6712 : default:
6713 : {
6714 0 : FatalError("unknown union type");
6715 0 : return;
6716 : }
6717 : }
6718 : }
6719 :
6720 0 : auto PLayerTransactionChild::Read(
6721 : CompositableOperationDetail* v__,
6722 : const Message* msg__,
6723 : PickleIterator* iter__) -> bool
6724 : {
6725 : typedef CompositableOperationDetail type__;
6726 : int type;
6727 0 : if ((!(Read((&(type)), msg__, iter__)))) {
6728 0 : mozilla::ipc::UnionTypeReadError("CompositableOperationDetail");
6729 0 : return false;
6730 : }
6731 : // Sentinel = 'CompositableOperationDetail'
6732 0 : if ((!((msg__)->ReadSentinel(iter__, 676020439)))) {
6733 0 : mozilla::ipc::SentinelReadError("CompositableOperationDetail");
6734 0 : return false;
6735 : }
6736 :
6737 0 : switch (type) {
6738 : case type__::TOpPaintTextureRegion:
6739 : {
6740 0 : OpPaintTextureRegion tmp = OpPaintTextureRegion();
6741 0 : (*(v__)) = tmp;
6742 0 : if ((!(Read((&((v__)->get_OpPaintTextureRegion())), msg__, iter__)))) {
6743 0 : FatalError("Error deserializing Union type");
6744 0 : return false;
6745 : }
6746 : // Sentinel = 'TOpPaintTextureRegion'
6747 0 : if ((!((msg__)->ReadSentinel(iter__, 734509049)))) {
6748 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6749 0 : return false;
6750 : }
6751 0 : return true;
6752 : }
6753 : case type__::TOpUseTiledLayerBuffer:
6754 : {
6755 0 : OpUseTiledLayerBuffer tmp = OpUseTiledLayerBuffer();
6756 0 : (*(v__)) = tmp;
6757 0 : if ((!(Read((&((v__)->get_OpUseTiledLayerBuffer())), msg__, iter__)))) {
6758 0 : FatalError("Error deserializing Union type");
6759 0 : return false;
6760 : }
6761 : // Sentinel = 'TOpUseTiledLayerBuffer'
6762 0 : if ((!((msg__)->ReadSentinel(iter__, 916924693)))) {
6763 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6764 0 : return false;
6765 : }
6766 0 : return true;
6767 : }
6768 : case type__::TOpRemoveTexture:
6769 : {
6770 0 : OpRemoveTexture tmp = OpRemoveTexture();
6771 0 : (*(v__)) = tmp;
6772 0 : if ((!(Read((&((v__)->get_OpRemoveTexture())), msg__, iter__)))) {
6773 0 : FatalError("Error deserializing Union type");
6774 0 : return false;
6775 : }
6776 : // Sentinel = 'TOpRemoveTexture'
6777 0 : if ((!((msg__)->ReadSentinel(iter__, 2379906162)))) {
6778 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6779 0 : return false;
6780 : }
6781 0 : return true;
6782 : }
6783 : case type__::TOpUseTexture:
6784 : {
6785 0 : OpUseTexture tmp = OpUseTexture();
6786 0 : (*(v__)) = tmp;
6787 0 : if ((!(Read((&((v__)->get_OpUseTexture())), msg__, iter__)))) {
6788 0 : FatalError("Error deserializing Union type");
6789 0 : return false;
6790 : }
6791 : // Sentinel = 'TOpUseTexture'
6792 0 : if ((!((msg__)->ReadSentinel(iter__, 581630962)))) {
6793 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6794 0 : return false;
6795 : }
6796 0 : return true;
6797 : }
6798 : case type__::TOpUseComponentAlphaTextures:
6799 : {
6800 0 : OpUseComponentAlphaTextures tmp = OpUseComponentAlphaTextures();
6801 0 : (*(v__)) = tmp;
6802 0 : if ((!(Read((&((v__)->get_OpUseComponentAlphaTextures())), msg__, iter__)))) {
6803 0 : FatalError("Error deserializing Union type");
6804 0 : return false;
6805 : }
6806 : // Sentinel = 'TOpUseComponentAlphaTextures'
6807 0 : if ((!((msg__)->ReadSentinel(iter__, 457985329)))) {
6808 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6809 0 : return false;
6810 : }
6811 0 : return true;
6812 : }
6813 : default:
6814 : {
6815 0 : FatalError("unknown union type");
6816 0 : return false;
6817 : }
6818 : }
6819 : }
6820 :
6821 33 : auto PLayerTransactionChild::Write(
6822 : const ReadLockDescriptor& v__,
6823 : Message* msg__) -> void
6824 : {
6825 : typedef ReadLockDescriptor type__;
6826 33 : Write(int((v__).type()), msg__);
6827 : // Sentinel = 'ReadLockDescriptor'
6828 33 : (msg__)->WriteSentinel(3238270764);
6829 :
6830 33 : switch ((v__).type()) {
6831 : case type__::TShmemSection:
6832 : {
6833 0 : Write((v__).get_ShmemSection(), msg__);
6834 : // Sentinel = 'TShmemSection'
6835 0 : (msg__)->WriteSentinel(3037204004);
6836 0 : return;
6837 : }
6838 : case type__::TCrossProcessSemaphoreDescriptor:
6839 : {
6840 33 : Write((v__).get_CrossProcessSemaphoreDescriptor(), msg__);
6841 : // Sentinel = 'TCrossProcessSemaphoreDescriptor'
6842 33 : (msg__)->WriteSentinel(2516853580);
6843 33 : return;
6844 : }
6845 : case type__::Tuintptr_t:
6846 : {
6847 0 : Write((v__).get_uintptr_t(), msg__);
6848 : // Sentinel = 'Tuintptr_t'
6849 0 : (msg__)->WriteSentinel(3218141805);
6850 0 : return;
6851 : }
6852 : case type__::Tnull_t:
6853 : {
6854 0 : Write((v__).get_null_t(), msg__);
6855 : // Sentinel = 'Tnull_t'
6856 0 : (msg__)->WriteSentinel(3731137201);
6857 0 : return;
6858 : }
6859 : default:
6860 : {
6861 0 : FatalError("unknown union type");
6862 0 : return;
6863 : }
6864 : }
6865 : }
6866 :
6867 0 : auto PLayerTransactionChild::Read(
6868 : ReadLockDescriptor* v__,
6869 : const Message* msg__,
6870 : PickleIterator* iter__) -> bool
6871 : {
6872 : typedef ReadLockDescriptor type__;
6873 : int type;
6874 0 : if ((!(Read((&(type)), msg__, iter__)))) {
6875 0 : mozilla::ipc::UnionTypeReadError("ReadLockDescriptor");
6876 0 : return false;
6877 : }
6878 : // Sentinel = 'ReadLockDescriptor'
6879 0 : if ((!((msg__)->ReadSentinel(iter__, 3238270764)))) {
6880 0 : mozilla::ipc::SentinelReadError("ReadLockDescriptor");
6881 0 : return false;
6882 : }
6883 :
6884 0 : switch (type) {
6885 : case type__::TShmemSection:
6886 : {
6887 0 : ShmemSection tmp = ShmemSection();
6888 0 : (*(v__)) = tmp;
6889 0 : if ((!(Read((&((v__)->get_ShmemSection())), msg__, iter__)))) {
6890 0 : FatalError("Error deserializing Union type");
6891 0 : return false;
6892 : }
6893 : // Sentinel = 'TShmemSection'
6894 0 : if ((!((msg__)->ReadSentinel(iter__, 3037204004)))) {
6895 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6896 0 : return false;
6897 : }
6898 0 : return true;
6899 : }
6900 : case type__::TCrossProcessSemaphoreDescriptor:
6901 : {
6902 0 : CrossProcessSemaphoreDescriptor tmp = CrossProcessSemaphoreDescriptor();
6903 0 : (*(v__)) = tmp;
6904 0 : if ((!(Read((&((v__)->get_CrossProcessSemaphoreDescriptor())), msg__, iter__)))) {
6905 0 : FatalError("Error deserializing Union type");
6906 0 : return false;
6907 : }
6908 : // Sentinel = 'TCrossProcessSemaphoreDescriptor'
6909 0 : if ((!((msg__)->ReadSentinel(iter__, 2516853580)))) {
6910 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6911 0 : return false;
6912 : }
6913 0 : return true;
6914 : }
6915 : case type__::Tuintptr_t:
6916 : {
6917 0 : uintptr_t tmp = uintptr_t();
6918 0 : (*(v__)) = tmp;
6919 0 : if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
6920 0 : FatalError("Error deserializing Union type");
6921 0 : return false;
6922 : }
6923 : // Sentinel = 'Tuintptr_t'
6924 0 : if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
6925 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6926 0 : return false;
6927 : }
6928 0 : return true;
6929 : }
6930 : case type__::Tnull_t:
6931 : {
6932 : null_t tmp = null_t();
6933 0 : (*(v__)) = tmp;
6934 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
6935 0 : FatalError("Error deserializing Union type");
6936 0 : return false;
6937 : }
6938 : // Sentinel = 'Tnull_t'
6939 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
6940 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
6941 0 : return false;
6942 : }
6943 0 : return true;
6944 : }
6945 : default:
6946 : {
6947 0 : FatalError("unknown union type");
6948 0 : return false;
6949 : }
6950 : }
6951 : }
6952 :
6953 0 : auto PLayerTransactionChild::Write(
6954 : const PaintTiming& v__,
6955 : Message* msg__) -> void
6956 : {
6957 0 : Write((v__).serializeMs(), msg__);
6958 : // Sentinel = 'serializeMs'
6959 0 : (msg__)->WriteSentinel(1679155289);
6960 0 : Write((v__).sendMs(), msg__);
6961 : // Sentinel = 'sendMs'
6962 0 : (msg__)->WriteSentinel(1895220908);
6963 0 : Write((v__).dlMs(), msg__);
6964 : // Sentinel = 'dlMs'
6965 0 : (msg__)->WriteSentinel(1536357008);
6966 0 : Write((v__).flbMs(), msg__);
6967 : // Sentinel = 'flbMs'
6968 0 : (msg__)->WriteSentinel(315691481);
6969 0 : Write((v__).rasterMs(), msg__);
6970 : // Sentinel = 'rasterMs'
6971 0 : (msg__)->WriteSentinel(3876624083);
6972 0 : }
6973 :
6974 0 : auto PLayerTransactionChild::Read(
6975 : PaintTiming* v__,
6976 : const Message* msg__,
6977 : PickleIterator* iter__) -> bool
6978 : {
6979 0 : if ((!(Read((&((v__)->serializeMs())), msg__, iter__)))) {
6980 0 : FatalError("Error deserializing 'serializeMs' (float) member of 'PaintTiming'");
6981 0 : return false;
6982 : }
6983 : // Sentinel = 'serializeMs'
6984 0 : if ((!((msg__)->ReadSentinel(iter__, 1679155289)))) {
6985 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializeMs' (float) member of 'PaintTiming'");
6986 0 : return false;
6987 : }
6988 0 : if ((!(Read((&((v__)->sendMs())), msg__, iter__)))) {
6989 0 : FatalError("Error deserializing 'sendMs' (float) member of 'PaintTiming'");
6990 0 : return false;
6991 : }
6992 : // Sentinel = 'sendMs'
6993 0 : if ((!((msg__)->ReadSentinel(iter__, 1895220908)))) {
6994 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sendMs' (float) member of 'PaintTiming'");
6995 0 : return false;
6996 : }
6997 0 : if ((!(Read((&((v__)->dlMs())), msg__, iter__)))) {
6998 0 : FatalError("Error deserializing 'dlMs' (float) member of 'PaintTiming'");
6999 0 : return false;
7000 : }
7001 : // Sentinel = 'dlMs'
7002 0 : if ((!((msg__)->ReadSentinel(iter__, 1536357008)))) {
7003 0 : mozilla::ipc::SentinelReadError("Error deserializing 'dlMs' (float) member of 'PaintTiming'");
7004 0 : return false;
7005 : }
7006 0 : if ((!(Read((&((v__)->flbMs())), msg__, iter__)))) {
7007 0 : FatalError("Error deserializing 'flbMs' (float) member of 'PaintTiming'");
7008 0 : return false;
7009 : }
7010 : // Sentinel = 'flbMs'
7011 0 : if ((!((msg__)->ReadSentinel(iter__, 315691481)))) {
7012 0 : mozilla::ipc::SentinelReadError("Error deserializing 'flbMs' (float) member of 'PaintTiming'");
7013 0 : return false;
7014 : }
7015 0 : if ((!(Read((&((v__)->rasterMs())), msg__, iter__)))) {
7016 0 : FatalError("Error deserializing 'rasterMs' (float) member of 'PaintTiming'");
7017 0 : return false;
7018 : }
7019 : // Sentinel = 'rasterMs'
7020 0 : if ((!((msg__)->ReadSentinel(iter__, 3876624083)))) {
7021 0 : mozilla::ipc::SentinelReadError("Error deserializing 'rasterMs' (float) member of 'PaintTiming'");
7022 0 : return false;
7023 : }
7024 0 : return true;
7025 : }
7026 :
7027 124 : auto PLayerTransactionChild::Write(
7028 : const nsTArray<Animation>& v__,
7029 : Message* msg__) -> void
7030 : {
7031 124 : uint32_t length = (v__).Length();
7032 124 : Write(length, msg__);
7033 : // Sentinel = ('length', 'Animation[]')
7034 124 : (msg__)->WriteSentinel(4007294134);
7035 :
7036 124 : for (auto& elem : v__) {
7037 0 : Write(elem, msg__);
7038 : // Sentinel = 'Animation[]'
7039 0 : (msg__)->WriteSentinel(2603867689);
7040 : }
7041 124 : }
7042 :
7043 0 : auto PLayerTransactionChild::Read(
7044 : nsTArray<Animation>* v__,
7045 : const Message* msg__,
7046 : PickleIterator* iter__) -> bool
7047 : {
7048 0 : nsTArray<Animation> fa;
7049 : uint32_t length;
7050 0 : if ((!(Read((&(length)), msg__, iter__)))) {
7051 0 : mozilla::ipc::ArrayLengthReadError("Animation[]");
7052 0 : return false;
7053 : }
7054 : // Sentinel = ('length', 'Animation[]')
7055 0 : if ((!((msg__)->ReadSentinel(iter__, 4007294134)))) {
7056 0 : mozilla::ipc::SentinelReadError("Animation[]");
7057 0 : return false;
7058 : }
7059 :
7060 0 : Animation* elems = (fa).AppendElements(length);
7061 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
7062 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
7063 0 : FatalError("Error deserializing 'Animation[i]'");
7064 0 : return false;
7065 : }
7066 : // Sentinel = 'Animation[]'
7067 0 : if ((!((msg__)->ReadSentinel(iter__, 2603867689)))) {
7068 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Animation[i]'");
7069 0 : return false;
7070 : }
7071 : }
7072 0 : (v__)->SwapElements(fa);
7073 0 : return true;
7074 : }
7075 :
7076 28 : auto PLayerTransactionChild::Write(
7077 : const nsTArray<CompositableOperation>& v__,
7078 : Message* msg__) -> void
7079 : {
7080 28 : uint32_t length = (v__).Length();
7081 28 : Write(length, msg__);
7082 : // Sentinel = ('length', 'CompositableOperation[]')
7083 28 : (msg__)->WriteSentinel(1164254785);
7084 :
7085 61 : for (auto& elem : v__) {
7086 33 : Write(elem, msg__);
7087 : // Sentinel = 'CompositableOperation[]'
7088 33 : (msg__)->WriteSentinel(574132320);
7089 : }
7090 28 : }
7091 :
7092 0 : auto PLayerTransactionChild::Read(
7093 : nsTArray<CompositableOperation>* v__,
7094 : const Message* msg__,
7095 : PickleIterator* iter__) -> bool
7096 : {
7097 0 : nsTArray<CompositableOperation> fa;
7098 : uint32_t length;
7099 0 : if ((!(Read((&(length)), msg__, iter__)))) {
7100 0 : mozilla::ipc::ArrayLengthReadError("CompositableOperation[]");
7101 0 : return false;
7102 : }
7103 : // Sentinel = ('length', 'CompositableOperation[]')
7104 0 : if ((!((msg__)->ReadSentinel(iter__, 1164254785)))) {
7105 0 : mozilla::ipc::SentinelReadError("CompositableOperation[]");
7106 0 : return false;
7107 : }
7108 :
7109 0 : CompositableOperation* elems = (fa).AppendElements(length);
7110 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
7111 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
7112 0 : FatalError("Error deserializing 'CompositableOperation[i]'");
7113 0 : return false;
7114 : }
7115 : // Sentinel = 'CompositableOperation[]'
7116 0 : if ((!((msg__)->ReadSentinel(iter__, 574132320)))) {
7117 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CompositableOperation[i]'");
7118 0 : return false;
7119 : }
7120 : }
7121 0 : (v__)->SwapElements(fa);
7122 0 : return true;
7123 : }
7124 :
7125 :
7126 :
7127 : } // namespace layers
7128 : } // namespace mozilla
|