Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PVideoDecoderManagerChild.h"
8 : #include "mozilla/layers/CompositorTypes.h"
9 : #ifdef MOZ_CRASHREPORTER
10 : # include "nsXULAppAPI.h"
11 : #endif
12 :
13 : #include "mozilla/layers/PTextureChild.h"
14 : #include "mozilla/dom/PVideoDecoderChild.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 : namespace dom {
21 :
22 :
23 0 : auto PVideoDecoderManagerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
24 : {
25 0 : }
26 :
27 0 : auto PVideoDecoderManagerChild::ProcessingError(
28 : Result aCode,
29 : const char* aReason) -> void
30 : {
31 0 : }
32 :
33 0 : auto PVideoDecoderManagerChild::ShouldContinueFromReplyTimeout() -> bool
34 : {
35 0 : return true;
36 : }
37 :
38 0 : auto PVideoDecoderManagerChild::EnteredCxxStack() -> void
39 : {
40 0 : }
41 :
42 0 : auto PVideoDecoderManagerChild::ExitedCxxStack() -> void
43 : {
44 0 : }
45 :
46 0 : auto PVideoDecoderManagerChild::EnteredCall() -> void
47 : {
48 0 : }
49 :
50 0 : auto PVideoDecoderManagerChild::ExitedCall() -> void
51 : {
52 0 : }
53 :
54 0 : MOZ_IMPLICIT PVideoDecoderManagerChild::PVideoDecoderManagerChild() :
55 : mozilla::ipc::IToplevelProtocol(PVideoDecoderManagerMsgStart, mozilla::ipc::ChildSide),
56 : mChannel("PVideoDecoderManagerChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
57 0 : mState(PVideoDecoderManager::__Start)
58 : {
59 0 : MOZ_COUNT_CTOR(PVideoDecoderManagerChild);
60 0 : }
61 :
62 0 : PVideoDecoderManagerChild::~PVideoDecoderManagerChild()
63 : {
64 0 : MOZ_COUNT_DTOR(PVideoDecoderManagerChild);
65 0 : }
66 :
67 0 : auto PVideoDecoderManagerChild::ManagedPVideoDecoderChild(nsTArray<PVideoDecoderChild*>& aArr) const -> void
68 : {
69 0 : (mManagedPVideoDecoderChild).ToArray(aArr);
70 0 : }
71 :
72 0 : auto PVideoDecoderManagerChild::ManagedPVideoDecoderChild() const -> const ManagedContainer<PVideoDecoderChild>&
73 : {
74 0 : return mManagedPVideoDecoderChild;
75 : }
76 :
77 0 : auto PVideoDecoderManagerChild::SendPVideoDecoderConstructor(
78 : const VideoInfo& info,
79 : const TextureFactoryIdentifier& identifier,
80 : bool* success) -> PVideoDecoderChild*
81 : {
82 0 : return SendPVideoDecoderConstructor(AllocPVideoDecoderChild(info, identifier, success), info, identifier, success);
83 : }
84 :
85 0 : auto PVideoDecoderManagerChild::SendPVideoDecoderConstructor(
86 : PVideoDecoderChild* actor,
87 : const VideoInfo& info,
88 : const TextureFactoryIdentifier& identifier,
89 : bool* success) -> PVideoDecoderChild*
90 : {
91 0 : if ((!(actor))) {
92 0 : NS_WARNING("Error constructing actor PVideoDecoderChild");
93 0 : return nullptr;
94 : }
95 0 : (actor)->SetManager(this);
96 0 : Register(actor);
97 0 : (actor)->SetIPCChannel(GetIPCChannel());
98 0 : (mManagedPVideoDecoderChild).PutEntry(actor);
99 0 : (actor)->mState = mozilla::dom::PVideoDecoder::__Start;
100 :
101 0 : IPC::Message* msg__ = PVideoDecoderManager::Msg_PVideoDecoderConstructor(MSG_ROUTING_CONTROL);
102 :
103 0 : Write(actor, msg__, false);
104 : // Sentinel = 'actor'
105 0 : (msg__)->WriteSentinel(875202478);
106 0 : Write(info, msg__);
107 : // Sentinel = 'info'
108 0 : (msg__)->WriteSentinel(3750868832);
109 0 : Write(identifier, msg__);
110 : // Sentinel = 'identifier'
111 0 : (msg__)->WriteSentinel(2916735611);
112 :
113 0 : (msg__)->set_sync();
114 0 : (msg__)->set_constructor();
115 :
116 :
117 0 : Message reply__;
118 :
119 0 : if (mozilla::ipc::LoggingEnabledFor("PVideoDecoderManagerChild")) {
120 0 : mozilla::ipc::LogMessageForProtocol("PVideoDecoderManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
121 : }
122 0 : AUTO_PROFILER_LABEL("PVideoDecoderManager::Msg_PVideoDecoderConstructor", OTHER);
123 0 : PVideoDecoderManager::Transition(PVideoDecoderManager::Msg_PVideoDecoderConstructor__ID, (&(mState)));
124 :
125 : bool sendok__;
126 : {
127 : AutoProfilerTracing syncIPCTracer(
128 : "IPC",
129 0 : "PVideoDecoderManager::Msg_PVideoDecoderConstructor");
130 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
131 : }
132 0 : if ((!(sendok__))) {
133 0 : FatalError("constructor for actor failed");
134 0 : return nullptr;
135 : }
136 :
137 0 : if (mozilla::ipc::LoggingEnabledFor("PVideoDecoderManagerChild")) {
138 0 : mozilla::ipc::LogMessageForProtocol("PVideoDecoderManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
139 : }
140 :
141 0 : PickleIterator iter__(reply__);
142 :
143 0 : if ((!(Read(success, (&(reply__)), (&(iter__)))))) {
144 : if (true) {
145 0 : FatalError("constructor for actor failed");
146 0 : return nullptr;
147 : }
148 : }
149 : // Sentinel = 'success'
150 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3877396070)))) {
151 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
152 0 : return nullptr;
153 : }
154 0 : (reply__).EndRead(iter__, (reply__).type());
155 0 : return actor;
156 : }
157 :
158 0 : auto PVideoDecoderManagerChild::SendReadback(
159 : const SurfaceDescriptorGPUVideo& sd,
160 : SurfaceDescriptor* aResult) -> bool
161 : {
162 0 : IPC::Message* msg__ = PVideoDecoderManager::Msg_Readback(MSG_ROUTING_CONTROL);
163 :
164 0 : Write(sd, msg__);
165 : // Sentinel = 'sd'
166 0 : (msg__)->WriteSentinel(2856126975);
167 :
168 0 : (msg__)->set_sync();
169 :
170 :
171 0 : Message reply__;
172 :
173 0 : if (mozilla::ipc::LoggingEnabledFor("PVideoDecoderManagerChild")) {
174 0 : mozilla::ipc::LogMessageForProtocol("PVideoDecoderManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
175 : }
176 0 : AUTO_PROFILER_LABEL("PVideoDecoderManager::Msg_Readback", OTHER);
177 0 : PVideoDecoderManager::Transition(PVideoDecoderManager::Msg_Readback__ID, (&(mState)));
178 :
179 : bool sendok__;
180 : {
181 : AutoProfilerTracing syncIPCTracer(
182 : "IPC",
183 0 : "PVideoDecoderManager::Msg_Readback");
184 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
185 : }
186 0 : if ((!(sendok__))) {
187 0 : return false;
188 : }
189 :
190 0 : if (mozilla::ipc::LoggingEnabledFor("PVideoDecoderManagerChild")) {
191 0 : mozilla::ipc::LogMessageForProtocol("PVideoDecoderManagerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
192 : }
193 :
194 0 : PickleIterator iter__(reply__);
195 :
196 0 : if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
197 0 : FatalError("Error deserializing 'SurfaceDescriptor'");
198 0 : return false;
199 : }
200 : // Sentinel = 'aResult'
201 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
202 0 : mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceDescriptor'");
203 0 : return false;
204 : }
205 0 : (reply__).EndRead(iter__, (reply__).type());
206 :
207 0 : return true;
208 : }
209 :
210 0 : auto PVideoDecoderManagerChild::SendDeallocateSurfaceDescriptorGPUVideo(const SurfaceDescriptorGPUVideo& sd) -> bool
211 : {
212 0 : IPC::Message* msg__ = PVideoDecoderManager::Msg_DeallocateSurfaceDescriptorGPUVideo(MSG_ROUTING_CONTROL);
213 :
214 0 : Write(sd, msg__);
215 : // Sentinel = 'sd'
216 0 : (msg__)->WriteSentinel(2856126975);
217 :
218 :
219 :
220 :
221 0 : if (mozilla::ipc::LoggingEnabledFor("PVideoDecoderManagerChild")) {
222 0 : mozilla::ipc::LogMessageForProtocol("PVideoDecoderManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
223 : }
224 0 : AUTO_PROFILER_LABEL("PVideoDecoderManager::Msg_DeallocateSurfaceDescriptorGPUVideo", OTHER);
225 0 : PVideoDecoderManager::Transition(PVideoDecoderManager::Msg_DeallocateSurfaceDescriptorGPUVideo__ID, (&(mState)));
226 :
227 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
228 0 : return sendok__;
229 : }
230 :
231 0 : auto PVideoDecoderManagerChild::GetIPCChannel() -> MessageChannel*
232 : {
233 0 : return (&(mChannel));
234 : }
235 :
236 0 : auto PVideoDecoderManagerChild::GetIPCChannel() const -> const MessageChannel*
237 : {
238 0 : return (&(mChannel));
239 : }
240 :
241 0 : auto PVideoDecoderManagerChild::RemoveManagee(
242 : int32_t aProtocolId,
243 : ProtocolBase* aListener) -> void
244 : {
245 0 : switch (aProtocolId) {
246 : case PVideoDecoderMsgStart:
247 : {
248 0 : PVideoDecoderChild* actor = static_cast<PVideoDecoderChild*>(aListener);
249 0 : auto& container = mManagedPVideoDecoderChild;
250 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
251 :
252 0 : (container).RemoveEntry(actor);
253 0 : DeallocPVideoDecoderChild(actor);
254 0 : return;
255 : }
256 : default:
257 : {
258 0 : FatalError("unreached");
259 0 : return;
260 : }
261 : }
262 : }
263 :
264 0 : auto PVideoDecoderManagerChild::OnMessageReceived(const Message& msg__) -> PVideoDecoderManagerChild::Result
265 : {
266 0 : int32_t route__ = (msg__).routing_id();
267 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
268 0 : ChannelListener* routed__ = Lookup(route__);
269 0 : if ((!(routed__))) {
270 0 : return MsgRouteError;
271 : }
272 0 : return (routed__)->OnMessageReceived(msg__);
273 : }
274 :
275 0 : switch ((msg__).type()) {
276 : default:
277 : {
278 0 : return MsgNotKnown;
279 : }
280 : case SHMEM_CREATED_MESSAGE_TYPE:
281 : {
282 0 : if ((!(ShmemCreated(msg__)))) {
283 0 : return MsgPayloadError;
284 : }
285 0 : return MsgProcessed;
286 : }
287 : case SHMEM_DESTROYED_MESSAGE_TYPE:
288 : {
289 0 : if ((!(ShmemDestroyed(msg__)))) {
290 0 : return MsgPayloadError;
291 : }
292 0 : return MsgProcessed;
293 : }
294 : }
295 : }
296 :
297 0 : auto PVideoDecoderManagerChild::OnMessageReceived(
298 : const Message& msg__,
299 : Message*& reply__) -> PVideoDecoderManagerChild::Result
300 : {
301 0 : int32_t route__ = (msg__).routing_id();
302 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
303 0 : ChannelListener* routed__ = Lookup(route__);
304 0 : if ((!(routed__))) {
305 0 : return MsgRouteError;
306 : }
307 0 : return (routed__)->OnMessageReceived(msg__, reply__);
308 : }
309 :
310 0 : return MsgNotKnown;
311 : }
312 :
313 0 : auto PVideoDecoderManagerChild::OnCallReceived(
314 : const Message& msg__,
315 : Message*& reply__) -> PVideoDecoderManagerChild::Result
316 : {
317 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
318 : return MsgNotKnown;
319 : }
320 :
321 0 : auto PVideoDecoderManagerChild::GetProtocolTypeId() -> int32_t
322 : {
323 0 : return PVideoDecoderManagerMsgStart;
324 : }
325 :
326 0 : auto PVideoDecoderManagerChild::OnChannelClose() -> void
327 : {
328 0 : DestroySubtree(NormalShutdown);
329 0 : DeallocSubtree();
330 0 : DeallocShmems();
331 0 : DeallocPVideoDecoderManagerChild();
332 0 : }
333 :
334 0 : auto PVideoDecoderManagerChild::OnChannelError() -> void
335 : {
336 0 : DestroySubtree(AbnormalShutdown);
337 0 : DeallocSubtree();
338 0 : DeallocShmems();
339 0 : DeallocPVideoDecoderManagerChild();
340 0 : }
341 :
342 0 : auto PVideoDecoderManagerChild::ProtocolName() const -> const char*
343 : {
344 0 : return "PVideoDecoderManagerChild";
345 : }
346 :
347 0 : auto PVideoDecoderManagerChild::DestroySubtree(ActorDestroyReason why) -> void
348 : {
349 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
350 :
351 : {
352 : // Recursively shutting down PVideoDecoder kids
353 0 : nsTArray<PVideoDecoderChild*> kids;
354 : // Accumulate kids into a stable structure to iterate over
355 0 : ManagedPVideoDecoderChild(kids);
356 0 : for (auto& kid : kids) {
357 : // Guarding against a child removing a sibling from the list during the iteration.
358 0 : if ((mManagedPVideoDecoderChild).Contains(kid)) {
359 0 : (kid)->DestroySubtree(subtreewhy);
360 : }
361 : }
362 : }
363 :
364 : // Reject owning pending promises.
365 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
366 :
367 : // Finally, destroy "us".
368 0 : ActorDestroy(why);
369 0 : }
370 :
371 0 : auto PVideoDecoderManagerChild::DeallocSubtree() -> void
372 : {
373 : {
374 : // Recursively deleting PVideoDecoder kids
375 0 : for (auto iter = (mManagedPVideoDecoderChild).Iter(); (!((iter).Done())); (iter).Next()) {
376 0 : (((iter).Get())->GetKey())->DeallocSubtree();
377 : }
378 :
379 0 : for (auto iter = (mManagedPVideoDecoderChild).Iter(); (!((iter).Done())); (iter).Next()) {
380 0 : DeallocPVideoDecoderChild(((iter).Get())->GetKey());
381 : }
382 0 : (mManagedPVideoDecoderChild).Clear();
383 : }
384 0 : }
385 :
386 0 : auto PVideoDecoderManagerChild::DeallocPVideoDecoderManagerChild() -> void
387 : {
388 0 : }
389 :
390 0 : auto PVideoDecoderManagerChild::Write(
391 : const EGLImageDescriptor& v__,
392 : Message* msg__) -> void
393 : {
394 0 : Write((v__).image(), msg__);
395 : // Sentinel = 'image'
396 0 : (msg__)->WriteSentinel(103190282);
397 0 : Write((v__).fence(), msg__);
398 : // Sentinel = 'fence'
399 0 : (msg__)->WriteSentinel(1225633926);
400 0 : Write((v__).size(), msg__);
401 : // Sentinel = 'size'
402 0 : (msg__)->WriteSentinel(931048223);
403 0 : Write((v__).hasAlpha(), msg__);
404 : // Sentinel = 'hasAlpha'
405 0 : (msg__)->WriteSentinel(309498444);
406 0 : }
407 :
408 0 : auto PVideoDecoderManagerChild::Read(
409 : EGLImageDescriptor* v__,
410 : const Message* msg__,
411 : PickleIterator* iter__) -> bool
412 : {
413 0 : if ((!(Read((&((v__)->image())), msg__, iter__)))) {
414 0 : FatalError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
415 0 : return false;
416 : }
417 : // Sentinel = 'image'
418 0 : if ((!((msg__)->ReadSentinel(iter__, 103190282)))) {
419 0 : mozilla::ipc::SentinelReadError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
420 0 : return false;
421 : }
422 0 : if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
423 0 : FatalError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
424 0 : return false;
425 : }
426 : // Sentinel = 'fence'
427 0 : if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
428 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
429 0 : return false;
430 : }
431 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
432 0 : FatalError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
433 0 : return false;
434 : }
435 : // Sentinel = 'size'
436 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
437 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
438 0 : return false;
439 : }
440 0 : if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
441 0 : FatalError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
442 0 : return false;
443 : }
444 : // Sentinel = 'hasAlpha'
445 0 : if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
446 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
447 0 : return false;
448 : }
449 0 : return true;
450 : }
451 :
452 0 : auto PVideoDecoderManagerChild::Write(
453 : const SurfaceDescriptor& v__,
454 : Message* msg__) -> void
455 : {
456 : typedef SurfaceDescriptor type__;
457 0 : Write(int((v__).type()), msg__);
458 : // Sentinel = 'SurfaceDescriptor'
459 0 : (msg__)->WriteSentinel(1058499359);
460 :
461 0 : switch ((v__).type()) {
462 : case type__::TSurfaceDescriptorBuffer:
463 : {
464 0 : Write((v__).get_SurfaceDescriptorBuffer(), msg__);
465 : // Sentinel = 'TSurfaceDescriptorBuffer'
466 0 : (msg__)->WriteSentinel(2202696360);
467 0 : return;
468 : }
469 : case type__::TSurfaceDescriptorDIB:
470 : {
471 0 : Write((v__).get_SurfaceDescriptorDIB(), msg__);
472 : // Sentinel = 'TSurfaceDescriptorDIB'
473 0 : (msg__)->WriteSentinel(998410538);
474 0 : return;
475 : }
476 : case type__::TSurfaceDescriptorD3D10:
477 : {
478 0 : Write((v__).get_SurfaceDescriptorD3D10(), msg__);
479 : // Sentinel = 'TSurfaceDescriptorD3D10'
480 0 : (msg__)->WriteSentinel(2753564567);
481 0 : return;
482 : }
483 : case type__::TSurfaceDescriptorFileMapping:
484 : {
485 0 : Write((v__).get_SurfaceDescriptorFileMapping(), msg__);
486 : // Sentinel = 'TSurfaceDescriptorFileMapping'
487 0 : (msg__)->WriteSentinel(722196935);
488 0 : return;
489 : }
490 : case type__::TSurfaceDescriptorDXGIYCbCr:
491 : {
492 0 : Write((v__).get_SurfaceDescriptorDXGIYCbCr(), msg__);
493 : // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
494 0 : (msg__)->WriteSentinel(3061212892);
495 0 : return;
496 : }
497 : case type__::TSurfaceDescriptorX11:
498 : {
499 0 : Write((v__).get_SurfaceDescriptorX11(), msg__);
500 : // Sentinel = 'TSurfaceDescriptorX11'
501 0 : (msg__)->WriteSentinel(3923930613);
502 0 : return;
503 : }
504 : case type__::TSurfaceTextureDescriptor:
505 : {
506 0 : Write((v__).get_SurfaceTextureDescriptor(), msg__);
507 : // Sentinel = 'TSurfaceTextureDescriptor'
508 0 : (msg__)->WriteSentinel(2253946800);
509 0 : return;
510 : }
511 : case type__::TEGLImageDescriptor:
512 : {
513 0 : Write((v__).get_EGLImageDescriptor(), msg__);
514 : // Sentinel = 'TEGLImageDescriptor'
515 0 : (msg__)->WriteSentinel(2680446099);
516 0 : return;
517 : }
518 : case type__::TSurfaceDescriptorMacIOSurface:
519 : {
520 0 : Write((v__).get_SurfaceDescriptorMacIOSurface(), msg__);
521 : // Sentinel = 'TSurfaceDescriptorMacIOSurface'
522 0 : (msg__)->WriteSentinel(4267688786);
523 0 : return;
524 : }
525 : case type__::TSurfaceDescriptorSharedGLTexture:
526 : {
527 0 : Write((v__).get_SurfaceDescriptorSharedGLTexture(), msg__);
528 : // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
529 0 : (msg__)->WriteSentinel(4169514976);
530 0 : return;
531 : }
532 : case type__::TSurfaceDescriptorGPUVideo:
533 : {
534 0 : Write((v__).get_SurfaceDescriptorGPUVideo(), msg__);
535 : // Sentinel = 'TSurfaceDescriptorGPUVideo'
536 0 : (msg__)->WriteSentinel(2406892431);
537 0 : return;
538 : }
539 : case type__::Tnull_t:
540 : {
541 0 : Write((v__).get_null_t(), msg__);
542 : // Sentinel = 'Tnull_t'
543 0 : (msg__)->WriteSentinel(3731137201);
544 0 : return;
545 : }
546 : default:
547 : {
548 0 : FatalError("unknown union type");
549 0 : return;
550 : }
551 : }
552 : }
553 :
554 0 : auto PVideoDecoderManagerChild::Read(
555 : SurfaceDescriptor* v__,
556 : const Message* msg__,
557 : PickleIterator* iter__) -> bool
558 : {
559 : typedef SurfaceDescriptor type__;
560 : int type;
561 0 : if ((!(Read((&(type)), msg__, iter__)))) {
562 0 : mozilla::ipc::UnionTypeReadError("SurfaceDescriptor");
563 0 : return false;
564 : }
565 : // Sentinel = 'SurfaceDescriptor'
566 0 : if ((!((msg__)->ReadSentinel(iter__, 1058499359)))) {
567 0 : mozilla::ipc::SentinelReadError("SurfaceDescriptor");
568 0 : return false;
569 : }
570 :
571 0 : switch (type) {
572 : case type__::TSurfaceDescriptorBuffer:
573 : {
574 0 : SurfaceDescriptorBuffer tmp = SurfaceDescriptorBuffer();
575 0 : (*(v__)) = tmp;
576 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorBuffer())), msg__, iter__)))) {
577 0 : FatalError("Error deserializing Union type");
578 0 : return false;
579 : }
580 : // Sentinel = 'TSurfaceDescriptorBuffer'
581 0 : if ((!((msg__)->ReadSentinel(iter__, 2202696360)))) {
582 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
583 0 : return false;
584 : }
585 0 : return true;
586 : }
587 : case type__::TSurfaceDescriptorDIB:
588 : {
589 0 : SurfaceDescriptorDIB tmp = SurfaceDescriptorDIB();
590 0 : (*(v__)) = tmp;
591 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorDIB())), msg__, iter__)))) {
592 0 : FatalError("Error deserializing Union type");
593 0 : return false;
594 : }
595 : // Sentinel = 'TSurfaceDescriptorDIB'
596 0 : if ((!((msg__)->ReadSentinel(iter__, 998410538)))) {
597 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
598 0 : return false;
599 : }
600 0 : return true;
601 : }
602 : case type__::TSurfaceDescriptorD3D10:
603 : {
604 0 : SurfaceDescriptorD3D10 tmp = SurfaceDescriptorD3D10();
605 0 : (*(v__)) = tmp;
606 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorD3D10())), msg__, iter__)))) {
607 0 : FatalError("Error deserializing Union type");
608 0 : return false;
609 : }
610 : // Sentinel = 'TSurfaceDescriptorD3D10'
611 0 : if ((!((msg__)->ReadSentinel(iter__, 2753564567)))) {
612 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
613 0 : return false;
614 : }
615 0 : return true;
616 : }
617 : case type__::TSurfaceDescriptorFileMapping:
618 : {
619 0 : SurfaceDescriptorFileMapping tmp = SurfaceDescriptorFileMapping();
620 0 : (*(v__)) = tmp;
621 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorFileMapping())), msg__, iter__)))) {
622 0 : FatalError("Error deserializing Union type");
623 0 : return false;
624 : }
625 : // Sentinel = 'TSurfaceDescriptorFileMapping'
626 0 : if ((!((msg__)->ReadSentinel(iter__, 722196935)))) {
627 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
628 0 : return false;
629 : }
630 0 : return true;
631 : }
632 : case type__::TSurfaceDescriptorDXGIYCbCr:
633 : {
634 0 : SurfaceDescriptorDXGIYCbCr tmp = SurfaceDescriptorDXGIYCbCr();
635 0 : (*(v__)) = tmp;
636 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorDXGIYCbCr())), msg__, iter__)))) {
637 0 : FatalError("Error deserializing Union type");
638 0 : return false;
639 : }
640 : // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
641 0 : if ((!((msg__)->ReadSentinel(iter__, 3061212892)))) {
642 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
643 0 : return false;
644 : }
645 0 : return true;
646 : }
647 : case type__::TSurfaceDescriptorX11:
648 : {
649 0 : SurfaceDescriptorX11 tmp = SurfaceDescriptorX11();
650 0 : (*(v__)) = tmp;
651 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorX11())), msg__, iter__)))) {
652 0 : FatalError("Error deserializing Union type");
653 0 : return false;
654 : }
655 : // Sentinel = 'TSurfaceDescriptorX11'
656 0 : if ((!((msg__)->ReadSentinel(iter__, 3923930613)))) {
657 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
658 0 : return false;
659 : }
660 0 : return true;
661 : }
662 : case type__::TSurfaceTextureDescriptor:
663 : {
664 0 : SurfaceTextureDescriptor tmp = SurfaceTextureDescriptor();
665 0 : (*(v__)) = tmp;
666 0 : if ((!(Read((&((v__)->get_SurfaceTextureDescriptor())), msg__, iter__)))) {
667 0 : FatalError("Error deserializing Union type");
668 0 : return false;
669 : }
670 : // Sentinel = 'TSurfaceTextureDescriptor'
671 0 : if ((!((msg__)->ReadSentinel(iter__, 2253946800)))) {
672 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
673 0 : return false;
674 : }
675 0 : return true;
676 : }
677 : case type__::TEGLImageDescriptor:
678 : {
679 0 : EGLImageDescriptor tmp = EGLImageDescriptor();
680 0 : (*(v__)) = tmp;
681 0 : if ((!(Read((&((v__)->get_EGLImageDescriptor())), msg__, iter__)))) {
682 0 : FatalError("Error deserializing Union type");
683 0 : return false;
684 : }
685 : // Sentinel = 'TEGLImageDescriptor'
686 0 : if ((!((msg__)->ReadSentinel(iter__, 2680446099)))) {
687 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
688 0 : return false;
689 : }
690 0 : return true;
691 : }
692 : case type__::TSurfaceDescriptorMacIOSurface:
693 : {
694 0 : SurfaceDescriptorMacIOSurface tmp = SurfaceDescriptorMacIOSurface();
695 0 : (*(v__)) = tmp;
696 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorMacIOSurface())), msg__, iter__)))) {
697 0 : FatalError("Error deserializing Union type");
698 0 : return false;
699 : }
700 : // Sentinel = 'TSurfaceDescriptorMacIOSurface'
701 0 : if ((!((msg__)->ReadSentinel(iter__, 4267688786)))) {
702 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
703 0 : return false;
704 : }
705 0 : return true;
706 : }
707 : case type__::TSurfaceDescriptorSharedGLTexture:
708 : {
709 0 : SurfaceDescriptorSharedGLTexture tmp = SurfaceDescriptorSharedGLTexture();
710 0 : (*(v__)) = tmp;
711 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorSharedGLTexture())), msg__, iter__)))) {
712 0 : FatalError("Error deserializing Union type");
713 0 : return false;
714 : }
715 : // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
716 0 : if ((!((msg__)->ReadSentinel(iter__, 4169514976)))) {
717 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
718 0 : return false;
719 : }
720 0 : return true;
721 : }
722 : case type__::TSurfaceDescriptorGPUVideo:
723 : {
724 0 : SurfaceDescriptorGPUVideo tmp = SurfaceDescriptorGPUVideo();
725 0 : (*(v__)) = tmp;
726 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorGPUVideo())), msg__, iter__)))) {
727 0 : FatalError("Error deserializing Union type");
728 0 : return false;
729 : }
730 : // Sentinel = 'TSurfaceDescriptorGPUVideo'
731 0 : if ((!((msg__)->ReadSentinel(iter__, 2406892431)))) {
732 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
733 0 : return false;
734 : }
735 0 : return true;
736 : }
737 : case type__::Tnull_t:
738 : {
739 : null_t tmp = null_t();
740 0 : (*(v__)) = tmp;
741 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
742 0 : FatalError("Error deserializing Union type");
743 0 : return false;
744 : }
745 : // Sentinel = 'Tnull_t'
746 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
747 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
748 0 : return false;
749 : }
750 0 : return true;
751 : }
752 : default:
753 : {
754 0 : FatalError("unknown union type");
755 0 : return false;
756 : }
757 : }
758 : }
759 :
760 0 : auto PVideoDecoderManagerChild::Write(
761 : const MemoryOrShmem& v__,
762 : Message* msg__) -> void
763 : {
764 : typedef MemoryOrShmem type__;
765 0 : Write(int((v__).type()), msg__);
766 : // Sentinel = 'MemoryOrShmem'
767 0 : (msg__)->WriteSentinel(3227621763);
768 :
769 0 : switch ((v__).type()) {
770 : case type__::Tuintptr_t:
771 : {
772 0 : Write((v__).get_uintptr_t(), msg__);
773 : // Sentinel = 'Tuintptr_t'
774 0 : (msg__)->WriteSentinel(3218141805);
775 0 : return;
776 : }
777 : case type__::TShmem:
778 : {
779 0 : Write((v__).get_Shmem(), msg__);
780 : // Sentinel = 'TShmem'
781 0 : (msg__)->WriteSentinel(3517971266);
782 0 : return;
783 : }
784 : default:
785 : {
786 0 : FatalError("unknown union type");
787 0 : return;
788 : }
789 : }
790 : }
791 :
792 0 : auto PVideoDecoderManagerChild::Read(
793 : MemoryOrShmem* v__,
794 : const Message* msg__,
795 : PickleIterator* iter__) -> bool
796 : {
797 : typedef MemoryOrShmem type__;
798 : int type;
799 0 : if ((!(Read((&(type)), msg__, iter__)))) {
800 0 : mozilla::ipc::UnionTypeReadError("MemoryOrShmem");
801 0 : return false;
802 : }
803 : // Sentinel = 'MemoryOrShmem'
804 0 : if ((!((msg__)->ReadSentinel(iter__, 3227621763)))) {
805 0 : mozilla::ipc::SentinelReadError("MemoryOrShmem");
806 0 : return false;
807 : }
808 :
809 0 : switch (type) {
810 : case type__::Tuintptr_t:
811 : {
812 0 : uintptr_t tmp = uintptr_t();
813 0 : (*(v__)) = tmp;
814 0 : if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
815 0 : FatalError("Error deserializing Union type");
816 0 : return false;
817 : }
818 : // Sentinel = 'Tuintptr_t'
819 0 : if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
820 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
821 0 : return false;
822 : }
823 0 : return true;
824 : }
825 : case type__::TShmem:
826 : {
827 0 : Shmem tmp = Shmem();
828 0 : (*(v__)) = tmp;
829 0 : if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
830 0 : FatalError("Error deserializing Union type");
831 0 : return false;
832 : }
833 : // Sentinel = 'TShmem'
834 0 : if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
835 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
836 0 : return false;
837 : }
838 0 : return true;
839 : }
840 : default:
841 : {
842 0 : FatalError("unknown union type");
843 0 : return false;
844 : }
845 : }
846 : }
847 :
848 0 : auto PVideoDecoderManagerChild::Write(
849 : const SurfaceDescriptorBuffer& v__,
850 : Message* msg__) -> void
851 : {
852 0 : Write((v__).desc(), msg__);
853 : // Sentinel = 'desc'
854 0 : (msg__)->WriteSentinel(3761872479);
855 0 : Write((v__).data(), msg__);
856 : // Sentinel = 'data'
857 0 : (msg__)->WriteSentinel(843352540);
858 0 : }
859 :
860 0 : auto PVideoDecoderManagerChild::Read(
861 : SurfaceDescriptorBuffer* v__,
862 : const Message* msg__,
863 : PickleIterator* iter__) -> bool
864 : {
865 0 : if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
866 0 : FatalError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
867 0 : return false;
868 : }
869 : // Sentinel = 'desc'
870 0 : if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
871 0 : mozilla::ipc::SentinelReadError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
872 0 : return false;
873 : }
874 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
875 0 : FatalError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
876 0 : return false;
877 : }
878 : // Sentinel = 'data'
879 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
880 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
881 0 : return false;
882 : }
883 0 : return true;
884 : }
885 :
886 0 : auto PVideoDecoderManagerChild::Write(
887 : const SurfaceDescriptorDXGIYCbCr& v__,
888 : Message* msg__) -> void
889 : {
890 0 : Write((v__).handleY(), msg__);
891 : // Sentinel = 'handleY'
892 0 : (msg__)->WriteSentinel(2719705368);
893 0 : Write((v__).handleCb(), msg__);
894 : // Sentinel = 'handleCb'
895 0 : (msg__)->WriteSentinel(2777335333);
896 0 : Write((v__).handleCr(), msg__);
897 : // Sentinel = 'handleCr'
898 0 : (msg__)->WriteSentinel(2777335349);
899 0 : Write((v__).size(), msg__);
900 : // Sentinel = 'size'
901 0 : (msg__)->WriteSentinel(931048223);
902 0 : Write((v__).sizeY(), msg__);
903 : // Sentinel = 'sizeY'
904 0 : (msg__)->WriteSentinel(886619725);
905 0 : Write((v__).sizeCbCr(), msg__);
906 : // Sentinel = 'sizeCbCr'
907 0 : (msg__)->WriteSentinel(2196484423);
908 0 : }
909 :
910 0 : auto PVideoDecoderManagerChild::Read(
911 : SurfaceDescriptorDXGIYCbCr* v__,
912 : const Message* msg__,
913 : PickleIterator* iter__) -> bool
914 : {
915 0 : if ((!(Read((&((v__)->handleY())), msg__, iter__)))) {
916 0 : FatalError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
917 0 : return false;
918 : }
919 : // Sentinel = 'handleY'
920 0 : if ((!((msg__)->ReadSentinel(iter__, 2719705368)))) {
921 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
922 0 : return false;
923 : }
924 0 : if ((!(Read((&((v__)->handleCb())), msg__, iter__)))) {
925 0 : FatalError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
926 0 : return false;
927 : }
928 : // Sentinel = 'handleCb'
929 0 : if ((!((msg__)->ReadSentinel(iter__, 2777335333)))) {
930 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
931 0 : return false;
932 : }
933 0 : if ((!(Read((&((v__)->handleCr())), msg__, iter__)))) {
934 0 : FatalError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
935 0 : return false;
936 : }
937 : // Sentinel = 'handleCr'
938 0 : if ((!((msg__)->ReadSentinel(iter__, 2777335349)))) {
939 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
940 0 : return false;
941 : }
942 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
943 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
944 0 : return false;
945 : }
946 : // Sentinel = 'size'
947 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
948 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
949 0 : return false;
950 : }
951 0 : if ((!(Read((&((v__)->sizeY())), msg__, iter__)))) {
952 0 : FatalError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
953 0 : return false;
954 : }
955 : // Sentinel = 'sizeY'
956 0 : if ((!((msg__)->ReadSentinel(iter__, 886619725)))) {
957 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
958 0 : return false;
959 : }
960 0 : if ((!(Read((&((v__)->sizeCbCr())), msg__, iter__)))) {
961 0 : FatalError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
962 0 : return false;
963 : }
964 : // Sentinel = 'sizeCbCr'
965 0 : if ((!((msg__)->ReadSentinel(iter__, 2196484423)))) {
966 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
967 0 : return false;
968 : }
969 0 : return true;
970 : }
971 :
972 0 : auto PVideoDecoderManagerChild::Write(
973 : const SurfaceDescriptorDIB& v__,
974 : Message* msg__) -> void
975 : {
976 0 : Write((v__).surface(), msg__);
977 : // Sentinel = 'surface'
978 0 : (msg__)->WriteSentinel(2386836878);
979 0 : }
980 :
981 0 : auto PVideoDecoderManagerChild::Read(
982 : SurfaceDescriptorDIB* v__,
983 : const Message* msg__,
984 : PickleIterator* iter__) -> bool
985 : {
986 0 : if ((!(Read((&((v__)->surface())), msg__, iter__)))) {
987 0 : FatalError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
988 0 : return false;
989 : }
990 : // Sentinel = 'surface'
991 0 : if ((!((msg__)->ReadSentinel(iter__, 2386836878)))) {
992 0 : mozilla::ipc::SentinelReadError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
993 0 : return false;
994 : }
995 0 : return true;
996 : }
997 :
998 0 : auto PVideoDecoderManagerChild::Write(
999 : const RGBDescriptor& v__,
1000 : Message* msg__) -> void
1001 : {
1002 0 : Write((v__).size(), msg__);
1003 : // Sentinel = 'size'
1004 0 : (msg__)->WriteSentinel(931048223);
1005 0 : Write((v__).format(), msg__);
1006 : // Sentinel = 'format'
1007 0 : (msg__)->WriteSentinel(2052265543);
1008 0 : Write((v__).hasIntermediateBuffer(), msg__);
1009 : // Sentinel = 'hasIntermediateBuffer'
1010 0 : (msg__)->WriteSentinel(985857996);
1011 0 : }
1012 :
1013 0 : auto PVideoDecoderManagerChild::Read(
1014 : RGBDescriptor* v__,
1015 : const Message* msg__,
1016 : PickleIterator* iter__) -> bool
1017 : {
1018 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1019 0 : FatalError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
1020 0 : return false;
1021 : }
1022 : // Sentinel = 'size'
1023 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1024 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
1025 0 : return false;
1026 : }
1027 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
1028 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
1029 0 : return false;
1030 : }
1031 : // Sentinel = 'format'
1032 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
1033 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
1034 0 : return false;
1035 : }
1036 0 : if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
1037 0 : FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
1038 0 : return false;
1039 : }
1040 : // Sentinel = 'hasIntermediateBuffer'
1041 0 : if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
1042 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
1043 0 : return false;
1044 : }
1045 0 : return true;
1046 : }
1047 :
1048 0 : auto PVideoDecoderManagerChild::Write(
1049 : const SurfaceTextureDescriptor& v__,
1050 : Message* msg__) -> void
1051 : {
1052 0 : Write((v__).handle(), msg__);
1053 : // Sentinel = 'handle'
1054 0 : (msg__)->WriteSentinel(453975108);
1055 0 : Write((v__).size(), msg__);
1056 : // Sentinel = 'size'
1057 0 : (msg__)->WriteSentinel(931048223);
1058 0 : Write((v__).continuous(), msg__);
1059 : // Sentinel = 'continuous'
1060 0 : (msg__)->WriteSentinel(2103626571);
1061 0 : }
1062 :
1063 0 : auto PVideoDecoderManagerChild::Read(
1064 : SurfaceTextureDescriptor* v__,
1065 : const Message* msg__,
1066 : PickleIterator* iter__) -> bool
1067 : {
1068 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1069 0 : FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
1070 0 : return false;
1071 : }
1072 : // Sentinel = 'handle'
1073 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1074 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
1075 0 : return false;
1076 : }
1077 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1078 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
1079 0 : return false;
1080 : }
1081 : // Sentinel = 'size'
1082 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1083 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
1084 0 : return false;
1085 : }
1086 0 : if ((!(Read((&((v__)->continuous())), msg__, iter__)))) {
1087 0 : FatalError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
1088 0 : return false;
1089 : }
1090 : // Sentinel = 'continuous'
1091 0 : if ((!((msg__)->ReadSentinel(iter__, 2103626571)))) {
1092 0 : mozilla::ipc::SentinelReadError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
1093 0 : return false;
1094 : }
1095 0 : return true;
1096 : }
1097 :
1098 0 : auto PVideoDecoderManagerChild::Write(
1099 : const SurfaceDescriptorSharedGLTexture& v__,
1100 : Message* msg__) -> void
1101 : {
1102 0 : Write((v__).texture(), msg__);
1103 : // Sentinel = 'texture'
1104 0 : (msg__)->WriteSentinel(3654462510);
1105 0 : Write((v__).target(), msg__);
1106 : // Sentinel = 'target'
1107 0 : (msg__)->WriteSentinel(2226365285);
1108 0 : Write((v__).fence(), msg__);
1109 : // Sentinel = 'fence'
1110 0 : (msg__)->WriteSentinel(1225633926);
1111 0 : Write((v__).size(), msg__);
1112 : // Sentinel = 'size'
1113 0 : (msg__)->WriteSentinel(931048223);
1114 0 : Write((v__).hasAlpha(), msg__);
1115 : // Sentinel = 'hasAlpha'
1116 0 : (msg__)->WriteSentinel(309498444);
1117 0 : }
1118 :
1119 0 : auto PVideoDecoderManagerChild::Read(
1120 : SurfaceDescriptorSharedGLTexture* v__,
1121 : const Message* msg__,
1122 : PickleIterator* iter__) -> bool
1123 : {
1124 0 : if ((!(Read((&((v__)->texture())), msg__, iter__)))) {
1125 0 : FatalError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1126 0 : return false;
1127 : }
1128 : // Sentinel = 'texture'
1129 0 : if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
1130 0 : mozilla::ipc::SentinelReadError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1131 0 : return false;
1132 : }
1133 0 : if ((!(Read((&((v__)->target())), msg__, iter__)))) {
1134 0 : FatalError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1135 0 : return false;
1136 : }
1137 : // Sentinel = 'target'
1138 0 : if ((!((msg__)->ReadSentinel(iter__, 2226365285)))) {
1139 0 : mozilla::ipc::SentinelReadError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1140 0 : return false;
1141 : }
1142 0 : if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
1143 0 : FatalError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
1144 0 : return false;
1145 : }
1146 : // Sentinel = 'fence'
1147 0 : if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
1148 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
1149 0 : return false;
1150 : }
1151 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1152 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
1153 0 : return false;
1154 : }
1155 : // Sentinel = 'size'
1156 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1157 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
1158 0 : return false;
1159 : }
1160 0 : if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
1161 0 : FatalError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
1162 0 : return false;
1163 : }
1164 : // Sentinel = 'hasAlpha'
1165 0 : if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
1166 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
1167 0 : return false;
1168 : }
1169 0 : return true;
1170 : }
1171 :
1172 0 : auto PVideoDecoderManagerChild::Write(
1173 : const PVideoDecoderChild* v__,
1174 : Message* msg__,
1175 : bool nullable__) -> void
1176 : {
1177 : int32_t id;
1178 0 : if ((!(v__))) {
1179 0 : if ((!(nullable__))) {
1180 0 : FatalError("NULL actor value passed to non-nullable param");
1181 : }
1182 0 : id = 0;
1183 : }
1184 : else {
1185 0 : id = (v__)->Id();
1186 0 : if ((1) == (id)) {
1187 0 : FatalError("actor has been |delete|d");
1188 : }
1189 : }
1190 :
1191 0 : Write(id, msg__);
1192 0 : }
1193 :
1194 0 : auto PVideoDecoderManagerChild::Read(
1195 : PVideoDecoderChild** v__,
1196 : const Message* msg__,
1197 : PickleIterator* iter__,
1198 : bool nullable__) -> bool
1199 : {
1200 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PVideoDecoder", PVideoDecoderMsgStart);
1201 0 : if ((actor).isNothing()) {
1202 0 : return false;
1203 : }
1204 :
1205 0 : (*(v__)) = static_cast<PVideoDecoderChild*>((actor).value());
1206 0 : return true;
1207 : }
1208 :
1209 0 : auto PVideoDecoderManagerChild::Write(
1210 : const SurfaceDescriptorGPUVideo& v__,
1211 : Message* msg__) -> void
1212 : {
1213 0 : Write((v__).handle(), msg__);
1214 : // Sentinel = 'handle'
1215 0 : (msg__)->WriteSentinel(453975108);
1216 0 : }
1217 :
1218 0 : auto PVideoDecoderManagerChild::Read(
1219 : SurfaceDescriptorGPUVideo* v__,
1220 : const Message* msg__,
1221 : PickleIterator* iter__) -> bool
1222 : {
1223 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1224 0 : FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
1225 0 : return false;
1226 : }
1227 : // Sentinel = 'handle'
1228 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1229 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
1230 0 : return false;
1231 : }
1232 0 : return true;
1233 : }
1234 :
1235 0 : auto PVideoDecoderManagerChild::Write(
1236 : const SurfaceDescriptorMacIOSurface& v__,
1237 : Message* msg__) -> void
1238 : {
1239 0 : Write((v__).surfaceId(), msg__);
1240 : // Sentinel = 'surfaceId'
1241 0 : (msg__)->WriteSentinel(4108848731);
1242 0 : Write((v__).scaleFactor(), msg__);
1243 : // Sentinel = 'scaleFactor'
1244 0 : (msg__)->WriteSentinel(1184637148);
1245 0 : Write((v__).isOpaque(), msg__);
1246 : // Sentinel = 'isOpaque'
1247 0 : (msg__)->WriteSentinel(3519081617);
1248 0 : }
1249 :
1250 0 : auto PVideoDecoderManagerChild::Read(
1251 : SurfaceDescriptorMacIOSurface* v__,
1252 : const Message* msg__,
1253 : PickleIterator* iter__) -> bool
1254 : {
1255 0 : if ((!(Read((&((v__)->surfaceId())), msg__, iter__)))) {
1256 0 : FatalError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
1257 0 : return false;
1258 : }
1259 : // Sentinel = 'surfaceId'
1260 0 : if ((!((msg__)->ReadSentinel(iter__, 4108848731)))) {
1261 0 : mozilla::ipc::SentinelReadError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
1262 0 : return false;
1263 : }
1264 0 : if ((!(Read((&((v__)->scaleFactor())), msg__, iter__)))) {
1265 0 : FatalError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
1266 0 : return false;
1267 : }
1268 : // Sentinel = 'scaleFactor'
1269 0 : if ((!((msg__)->ReadSentinel(iter__, 1184637148)))) {
1270 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
1271 0 : return false;
1272 : }
1273 0 : if ((!(Read((&((v__)->isOpaque())), msg__, iter__)))) {
1274 0 : FatalError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
1275 0 : return false;
1276 : }
1277 : // Sentinel = 'isOpaque'
1278 0 : if ((!((msg__)->ReadSentinel(iter__, 3519081617)))) {
1279 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
1280 0 : return false;
1281 : }
1282 0 : return true;
1283 : }
1284 :
1285 0 : auto PVideoDecoderManagerChild::Write(
1286 : const SurfaceDescriptorD3D10& v__,
1287 : Message* msg__) -> void
1288 : {
1289 0 : Write((v__).handle(), msg__);
1290 : // Sentinel = 'handle'
1291 0 : (msg__)->WriteSentinel(453975108);
1292 0 : Write((v__).format(), msg__);
1293 : // Sentinel = 'format'
1294 0 : (msg__)->WriteSentinel(2052265543);
1295 0 : Write((v__).size(), msg__);
1296 : // Sentinel = 'size'
1297 0 : (msg__)->WriteSentinel(931048223);
1298 0 : }
1299 :
1300 0 : auto PVideoDecoderManagerChild::Read(
1301 : SurfaceDescriptorD3D10* v__,
1302 : const Message* msg__,
1303 : PickleIterator* iter__) -> bool
1304 : {
1305 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1306 0 : FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
1307 0 : return false;
1308 : }
1309 : // Sentinel = 'handle'
1310 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1311 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
1312 0 : return false;
1313 : }
1314 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
1315 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
1316 0 : return false;
1317 : }
1318 : // Sentinel = 'format'
1319 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
1320 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
1321 0 : return false;
1322 : }
1323 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1324 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
1325 0 : return false;
1326 : }
1327 : // Sentinel = 'size'
1328 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1329 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
1330 0 : return false;
1331 : }
1332 0 : return true;
1333 : }
1334 :
1335 0 : auto PVideoDecoderManagerChild::Write(
1336 : const BufferDescriptor& v__,
1337 : Message* msg__) -> void
1338 : {
1339 : typedef BufferDescriptor type__;
1340 0 : Write(int((v__).type()), msg__);
1341 : // Sentinel = 'BufferDescriptor'
1342 0 : (msg__)->WriteSentinel(764535685);
1343 :
1344 0 : switch ((v__).type()) {
1345 : case type__::TRGBDescriptor:
1346 : {
1347 0 : Write((v__).get_RGBDescriptor(), msg__);
1348 : // Sentinel = 'TRGBDescriptor'
1349 0 : (msg__)->WriteSentinel(2888062100);
1350 0 : return;
1351 : }
1352 : case type__::TYCbCrDescriptor:
1353 : {
1354 0 : Write((v__).get_YCbCrDescriptor(), msg__);
1355 : // Sentinel = 'TYCbCrDescriptor'
1356 0 : (msg__)->WriteSentinel(3533945878);
1357 0 : return;
1358 : }
1359 : default:
1360 : {
1361 0 : FatalError("unknown union type");
1362 0 : return;
1363 : }
1364 : }
1365 : }
1366 :
1367 0 : auto PVideoDecoderManagerChild::Read(
1368 : BufferDescriptor* v__,
1369 : const Message* msg__,
1370 : PickleIterator* iter__) -> bool
1371 : {
1372 : typedef BufferDescriptor type__;
1373 : int type;
1374 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1375 0 : mozilla::ipc::UnionTypeReadError("BufferDescriptor");
1376 0 : return false;
1377 : }
1378 : // Sentinel = 'BufferDescriptor'
1379 0 : if ((!((msg__)->ReadSentinel(iter__, 764535685)))) {
1380 0 : mozilla::ipc::SentinelReadError("BufferDescriptor");
1381 0 : return false;
1382 : }
1383 :
1384 0 : switch (type) {
1385 : case type__::TRGBDescriptor:
1386 : {
1387 0 : RGBDescriptor tmp = RGBDescriptor();
1388 0 : (*(v__)) = tmp;
1389 0 : if ((!(Read((&((v__)->get_RGBDescriptor())), msg__, iter__)))) {
1390 0 : FatalError("Error deserializing Union type");
1391 0 : return false;
1392 : }
1393 : // Sentinel = 'TRGBDescriptor'
1394 0 : if ((!((msg__)->ReadSentinel(iter__, 2888062100)))) {
1395 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1396 0 : return false;
1397 : }
1398 0 : return true;
1399 : }
1400 : case type__::TYCbCrDescriptor:
1401 : {
1402 0 : YCbCrDescriptor tmp = YCbCrDescriptor();
1403 0 : (*(v__)) = tmp;
1404 0 : if ((!(Read((&((v__)->get_YCbCrDescriptor())), msg__, iter__)))) {
1405 0 : FatalError("Error deserializing Union type");
1406 0 : return false;
1407 : }
1408 : // Sentinel = 'TYCbCrDescriptor'
1409 0 : if ((!((msg__)->ReadSentinel(iter__, 3533945878)))) {
1410 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1411 0 : return false;
1412 : }
1413 0 : return true;
1414 : }
1415 : default:
1416 : {
1417 0 : FatalError("unknown union type");
1418 0 : return false;
1419 : }
1420 : }
1421 : }
1422 :
1423 0 : auto PVideoDecoderManagerChild::Write(
1424 : const YCbCrDescriptor& v__,
1425 : Message* msg__) -> void
1426 : {
1427 0 : Write((v__).ySize(), msg__);
1428 : // Sentinel = 'ySize'
1429 0 : (msg__)->WriteSentinel(313512843);
1430 0 : Write((v__).cbCrSize(), msg__);
1431 : // Sentinel = 'cbCrSize'
1432 0 : (msg__)->WriteSentinel(2601117167);
1433 0 : Write((v__).yOffset(), msg__);
1434 : // Sentinel = 'yOffset'
1435 0 : (msg__)->WriteSentinel(983795183);
1436 0 : Write((v__).cbOffset(), msg__);
1437 : // Sentinel = 'cbOffset'
1438 0 : (msg__)->WriteSentinel(4197159602);
1439 0 : Write((v__).crOffset(), msg__);
1440 : // Sentinel = 'crOffset'
1441 0 : (msg__)->WriteSentinel(1739681986);
1442 0 : Write((v__).stereoMode(), msg__);
1443 : // Sentinel = 'stereoMode'
1444 0 : (msg__)->WriteSentinel(2234072623);
1445 0 : Write((v__).yUVColorSpace(), msg__);
1446 : // Sentinel = 'yUVColorSpace'
1447 0 : (msg__)->WriteSentinel(1051398544);
1448 0 : Write((v__).hasIntermediateBuffer(), msg__);
1449 : // Sentinel = 'hasIntermediateBuffer'
1450 0 : (msg__)->WriteSentinel(985857996);
1451 0 : }
1452 :
1453 0 : auto PVideoDecoderManagerChild::Read(
1454 : YCbCrDescriptor* v__,
1455 : const Message* msg__,
1456 : PickleIterator* iter__) -> bool
1457 : {
1458 0 : if ((!(Read((&((v__)->ySize())), msg__, iter__)))) {
1459 0 : FatalError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
1460 0 : return false;
1461 : }
1462 : // Sentinel = 'ySize'
1463 0 : if ((!((msg__)->ReadSentinel(iter__, 313512843)))) {
1464 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
1465 0 : return false;
1466 : }
1467 0 : if ((!(Read((&((v__)->cbCrSize())), msg__, iter__)))) {
1468 0 : FatalError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
1469 0 : return false;
1470 : }
1471 : // Sentinel = 'cbCrSize'
1472 0 : if ((!((msg__)->ReadSentinel(iter__, 2601117167)))) {
1473 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
1474 0 : return false;
1475 : }
1476 0 : if ((!(Read((&((v__)->yOffset())), msg__, iter__)))) {
1477 0 : FatalError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
1478 0 : return false;
1479 : }
1480 : // Sentinel = 'yOffset'
1481 0 : if ((!((msg__)->ReadSentinel(iter__, 983795183)))) {
1482 0 : mozilla::ipc::SentinelReadError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
1483 0 : return false;
1484 : }
1485 0 : if ((!(Read((&((v__)->cbOffset())), msg__, iter__)))) {
1486 0 : FatalError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
1487 0 : return false;
1488 : }
1489 : // Sentinel = 'cbOffset'
1490 0 : if ((!((msg__)->ReadSentinel(iter__, 4197159602)))) {
1491 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
1492 0 : return false;
1493 : }
1494 0 : if ((!(Read((&((v__)->crOffset())), msg__, iter__)))) {
1495 0 : FatalError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
1496 0 : return false;
1497 : }
1498 : // Sentinel = 'crOffset'
1499 0 : if ((!((msg__)->ReadSentinel(iter__, 1739681986)))) {
1500 0 : mozilla::ipc::SentinelReadError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
1501 0 : return false;
1502 : }
1503 0 : if ((!(Read((&((v__)->stereoMode())), msg__, iter__)))) {
1504 0 : FatalError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
1505 0 : return false;
1506 : }
1507 : // Sentinel = 'stereoMode'
1508 0 : if ((!((msg__)->ReadSentinel(iter__, 2234072623)))) {
1509 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
1510 0 : return false;
1511 : }
1512 0 : if ((!(Read((&((v__)->yUVColorSpace())), msg__, iter__)))) {
1513 0 : FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
1514 0 : return false;
1515 : }
1516 : // Sentinel = 'yUVColorSpace'
1517 0 : if ((!((msg__)->ReadSentinel(iter__, 1051398544)))) {
1518 0 : mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
1519 0 : return false;
1520 : }
1521 0 : if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
1522 0 : FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
1523 0 : return false;
1524 : }
1525 : // Sentinel = 'hasIntermediateBuffer'
1526 0 : if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
1527 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
1528 0 : return false;
1529 : }
1530 0 : return true;
1531 : }
1532 :
1533 0 : auto PVideoDecoderManagerChild::Write(
1534 : const SurfaceDescriptorFileMapping& v__,
1535 : Message* msg__) -> void
1536 : {
1537 0 : Write((v__).handle(), msg__);
1538 : // Sentinel = 'handle'
1539 0 : (msg__)->WriteSentinel(453975108);
1540 0 : Write((v__).format(), msg__);
1541 : // Sentinel = 'format'
1542 0 : (msg__)->WriteSentinel(2052265543);
1543 0 : Write((v__).size(), msg__);
1544 : // Sentinel = 'size'
1545 0 : (msg__)->WriteSentinel(931048223);
1546 0 : }
1547 :
1548 0 : auto PVideoDecoderManagerChild::Read(
1549 : SurfaceDescriptorFileMapping* v__,
1550 : const Message* msg__,
1551 : PickleIterator* iter__) -> bool
1552 : {
1553 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1554 0 : FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
1555 0 : return false;
1556 : }
1557 : // Sentinel = 'handle'
1558 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1559 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
1560 0 : return false;
1561 : }
1562 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
1563 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
1564 0 : return false;
1565 : }
1566 : // Sentinel = 'format'
1567 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
1568 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
1569 0 : return false;
1570 : }
1571 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1572 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
1573 0 : return false;
1574 : }
1575 : // Sentinel = 'size'
1576 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1577 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
1578 0 : return false;
1579 : }
1580 0 : return true;
1581 : }
1582 :
1583 0 : auto PVideoDecoderManagerChild::Write(
1584 : Shmem& v__,
1585 : Message* msg__) -> void
1586 : {
1587 0 : IPC::WriteParam(msg__, v__);
1588 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1589 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1590 0 : }
1591 :
1592 0 : auto PVideoDecoderManagerChild::Read(
1593 : Shmem* v__,
1594 : const Message* msg__,
1595 : PickleIterator* iter__) -> bool
1596 : {
1597 0 : Shmem tmp;
1598 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
1599 0 : return false;
1600 : }
1601 :
1602 0 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1603 0 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
1604 0 : if (rawmem) {
1605 0 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
1606 0 : return true;
1607 : }
1608 0 : (*(v__)) = Shmem();
1609 0 : return true;
1610 : }
1611 :
1612 :
1613 :
1614 : } // namespace dom
1615 : } // namespace mozilla
|