Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/gfx/PVRManagerChild.h"
8 : #include "gfxVR.h"
9 : #ifdef MOZ_CRASHREPORTER
10 : # include "nsXULAppAPI.h"
11 : #endif
12 :
13 : #include "mozilla/layers/PTextureChild.h"
14 : #include "mozilla/gfx/PVRLayerChild.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 : namespace gfx {
21 :
22 :
23 0 : auto PVRManagerChild::Recv__delete__() -> mozilla::ipc::IPCResult
24 : {
25 0 : return IPC_OK();
26 : }
27 :
28 0 : auto PVRManagerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
29 : {
30 0 : }
31 :
32 0 : auto PVRManagerChild::ProcessingError(
33 : Result aCode,
34 : const char* aReason) -> void
35 : {
36 0 : }
37 :
38 0 : auto PVRManagerChild::ShouldContinueFromReplyTimeout() -> bool
39 : {
40 0 : return true;
41 : }
42 :
43 0 : auto PVRManagerChild::EnteredCxxStack() -> void
44 : {
45 0 : }
46 :
47 0 : auto PVRManagerChild::ExitedCxxStack() -> void
48 : {
49 0 : }
50 :
51 0 : auto PVRManagerChild::EnteredCall() -> void
52 : {
53 0 : }
54 :
55 0 : auto PVRManagerChild::ExitedCall() -> void
56 : {
57 0 : }
58 :
59 3 : MOZ_IMPLICIT PVRManagerChild::PVRManagerChild() :
60 : mozilla::ipc::IToplevelProtocol(PVRManagerMsgStart, mozilla::ipc::ChildSide),
61 : mChannel("PVRManagerChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
62 3 : mState(PVRManager::__Start)
63 : {
64 3 : MOZ_COUNT_CTOR(PVRManagerChild);
65 3 : }
66 :
67 0 : PVRManagerChild::~PVRManagerChild()
68 : {
69 0 : MOZ_COUNT_DTOR(PVRManagerChild);
70 0 : }
71 :
72 0 : auto PVRManagerChild::ManagedPTextureChild(nsTArray<PTextureChild*>& aArr) const -> void
73 : {
74 0 : (mManagedPTextureChild).ToArray(aArr);
75 0 : }
76 :
77 0 : auto PVRManagerChild::ManagedPTextureChild() const -> const ManagedContainer<PTextureChild>&
78 : {
79 0 : return mManagedPTextureChild;
80 : }
81 :
82 0 : auto PVRManagerChild::ManagedPVRLayerChild(nsTArray<PVRLayerChild*>& aArr) const -> void
83 : {
84 0 : (mManagedPVRLayerChild).ToArray(aArr);
85 0 : }
86 :
87 0 : auto PVRManagerChild::ManagedPVRLayerChild() const -> const ManagedContainer<PVRLayerChild>&
88 : {
89 0 : return mManagedPVRLayerChild;
90 : }
91 :
92 0 : auto PVRManagerChild::SendPTextureConstructor(
93 : const SurfaceDescriptor& aSharedData,
94 : const LayersBackend& aBackend,
95 : const TextureFlags& aTextureFlags,
96 : const uint64_t& aSerial) -> PTextureChild*
97 : {
98 0 : return SendPTextureConstructor(AllocPTextureChild(aSharedData, aBackend, aTextureFlags, aSerial), aSharedData, aBackend, aTextureFlags, aSerial);
99 : }
100 :
101 0 : auto PVRManagerChild::SendPTextureConstructor(
102 : PTextureChild* actor,
103 : const SurfaceDescriptor& aSharedData,
104 : const LayersBackend& aBackend,
105 : const TextureFlags& aTextureFlags,
106 : const uint64_t& aSerial) -> PTextureChild*
107 : {
108 0 : if ((!(actor))) {
109 0 : NS_WARNING("Error constructing actor PTextureChild");
110 0 : return nullptr;
111 : }
112 0 : (actor)->SetManager(this);
113 0 : Register(actor);
114 0 : (actor)->SetIPCChannel(GetIPCChannel());
115 0 : (mManagedPTextureChild).PutEntry(actor);
116 0 : (actor)->mState = mozilla::layers::PTexture::__Start;
117 :
118 0 : IPC::Message* msg__ = PVRManager::Msg_PTextureConstructor(MSG_ROUTING_CONTROL);
119 :
120 0 : Write(actor, msg__, false);
121 : // Sentinel = 'actor'
122 0 : (msg__)->WriteSentinel(875202478);
123 0 : Write(aSharedData, msg__);
124 : // Sentinel = 'aSharedData'
125 0 : (msg__)->WriteSentinel(3013593029);
126 0 : Write(aBackend, msg__);
127 : // Sentinel = 'aBackend'
128 0 : (msg__)->WriteSentinel(2878499283);
129 0 : Write(aTextureFlags, msg__);
130 : // Sentinel = 'aTextureFlags'
131 0 : (msg__)->WriteSentinel(3005687826);
132 0 : Write(aSerial, msg__);
133 : // Sentinel = 'aSerial'
134 0 : (msg__)->WriteSentinel(1247987114);
135 :
136 0 : (msg__)->set_constructor();
137 :
138 :
139 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
140 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
141 : }
142 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_PTextureConstructor", OTHER);
143 0 : PVRManager::Transition(PVRManager::Msg_PTextureConstructor__ID, (&(mState)));
144 :
145 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
146 0 : if ((!(sendok__))) {
147 0 : FatalError("constructor for actor failed");
148 0 : return nullptr;
149 : }
150 0 : return actor;
151 : }
152 :
153 0 : auto PVRManagerChild::SendPVRLayerConstructor(
154 : const uint32_t& aDisplayID,
155 : const float& aLeftEyeX,
156 : const float& aLeftEyeY,
157 : const float& aLeftEyeWidth,
158 : const float& aLeftEyeHeight,
159 : const float& aRightEyeX,
160 : const float& aRightEyeY,
161 : const float& aRightEyeWidth,
162 : const float& aRightEyeHeight,
163 : const uint32_t& aGroup) -> PVRLayerChild*
164 : {
165 0 : return SendPVRLayerConstructor(AllocPVRLayerChild(aDisplayID, aLeftEyeX, aLeftEyeY, aLeftEyeWidth, aLeftEyeHeight, aRightEyeX, aRightEyeY, aRightEyeWidth, aRightEyeHeight, aGroup), aDisplayID, aLeftEyeX, aLeftEyeY, aLeftEyeWidth, aLeftEyeHeight, aRightEyeX, aRightEyeY, aRightEyeWidth, aRightEyeHeight, aGroup);
166 : }
167 :
168 0 : auto PVRManagerChild::SendPVRLayerConstructor(
169 : PVRLayerChild* actor,
170 : const uint32_t& aDisplayID,
171 : const float& aLeftEyeX,
172 : const float& aLeftEyeY,
173 : const float& aLeftEyeWidth,
174 : const float& aLeftEyeHeight,
175 : const float& aRightEyeX,
176 : const float& aRightEyeY,
177 : const float& aRightEyeWidth,
178 : const float& aRightEyeHeight,
179 : const uint32_t& aGroup) -> PVRLayerChild*
180 : {
181 0 : if ((!(actor))) {
182 0 : NS_WARNING("Error constructing actor PVRLayerChild");
183 0 : return nullptr;
184 : }
185 0 : (actor)->SetManager(this);
186 0 : Register(actor);
187 0 : (actor)->SetIPCChannel(GetIPCChannel());
188 0 : (mManagedPVRLayerChild).PutEntry(actor);
189 0 : (actor)->mState = mozilla::gfx::PVRLayer::__Start;
190 :
191 0 : IPC::Message* msg__ = PVRManager::Msg_PVRLayerConstructor(MSG_ROUTING_CONTROL);
192 :
193 0 : Write(actor, msg__, false);
194 : // Sentinel = 'actor'
195 0 : (msg__)->WriteSentinel(875202478);
196 0 : Write(aDisplayID, msg__);
197 : // Sentinel = 'aDisplayID'
198 0 : (msg__)->WriteSentinel(2139184880);
199 0 : Write(aLeftEyeX, msg__);
200 : // Sentinel = 'aLeftEyeX'
201 0 : (msg__)->WriteSentinel(2446933466);
202 0 : Write(aLeftEyeY, msg__);
203 : // Sentinel = 'aLeftEyeY'
204 0 : (msg__)->WriteSentinel(2446933467);
205 0 : Write(aLeftEyeWidth, msg__);
206 : // Sentinel = 'aLeftEyeWidth'
207 0 : (msg__)->WriteSentinel(3161986242);
208 0 : Write(aLeftEyeHeight, msg__);
209 : // Sentinel = 'aLeftEyeHeight'
210 0 : (msg__)->WriteSentinel(3521652706);
211 0 : Write(aRightEyeX, msg__);
212 : // Sentinel = 'aRightEyeX'
213 0 : (msg__)->WriteSentinel(1817577882);
214 0 : Write(aRightEyeY, msg__);
215 : // Sentinel = 'aRightEyeY'
216 0 : (msg__)->WriteSentinel(1817577883);
217 0 : Write(aRightEyeWidth, msg__);
218 : // Sentinel = 'aRightEyeWidth'
219 0 : (msg__)->WriteSentinel(65324402);
220 0 : Write(aRightEyeHeight, msg__);
221 : // Sentinel = 'aRightEyeHeight'
222 0 : (msg__)->WriteSentinel(1578021086);
223 0 : Write(aGroup, msg__);
224 : // Sentinel = 'aGroup'
225 0 : (msg__)->WriteSentinel(1323513608);
226 :
227 0 : (msg__)->set_constructor();
228 :
229 :
230 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
231 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
232 : }
233 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_PVRLayerConstructor", OTHER);
234 0 : PVRManager::Transition(PVRManager::Msg_PVRLayerConstructor__ID, (&(mState)));
235 :
236 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
237 0 : if ((!(sendok__))) {
238 0 : FatalError("constructor for actor failed");
239 0 : return nullptr;
240 : }
241 0 : return actor;
242 : }
243 :
244 0 : auto PVRManagerChild::SendRefreshDisplays() -> bool
245 : {
246 0 : IPC::Message* msg__ = PVRManager::Msg_RefreshDisplays(MSG_ROUTING_CONTROL);
247 :
248 :
249 :
250 :
251 :
252 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
253 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
254 : }
255 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_RefreshDisplays", OTHER);
256 0 : PVRManager::Transition(PVRManager::Msg_RefreshDisplays__ID, (&(mState)));
257 :
258 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
259 0 : return sendok__;
260 : }
261 :
262 0 : auto PVRManagerChild::SendResetSensor(const uint32_t& aDisplayID) -> bool
263 : {
264 0 : IPC::Message* msg__ = PVRManager::Msg_ResetSensor(MSG_ROUTING_CONTROL);
265 :
266 0 : Write(aDisplayID, msg__);
267 : // Sentinel = 'aDisplayID'
268 0 : (msg__)->WriteSentinel(2139184880);
269 :
270 :
271 :
272 :
273 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
274 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
275 : }
276 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ResetSensor", OTHER);
277 0 : PVRManager::Transition(PVRManager::Msg_ResetSensor__ID, (&(mState)));
278 :
279 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
280 0 : return sendok__;
281 : }
282 :
283 0 : auto PVRManagerChild::SendSetGroupMask(
284 : const uint32_t& aDisplayID,
285 : const uint32_t& aGroupMask) -> bool
286 : {
287 0 : IPC::Message* msg__ = PVRManager::Msg_SetGroupMask(MSG_ROUTING_CONTROL);
288 :
289 0 : Write(aDisplayID, msg__);
290 : // Sentinel = 'aDisplayID'
291 0 : (msg__)->WriteSentinel(2139184880);
292 0 : Write(aGroupMask, msg__);
293 : // Sentinel = 'aGroupMask'
294 0 : (msg__)->WriteSentinel(4157390796);
295 :
296 :
297 :
298 :
299 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
300 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
301 : }
302 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_SetGroupMask", OTHER);
303 0 : PVRManager::Transition(PVRManager::Msg_SetGroupMask__ID, (&(mState)));
304 :
305 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
306 0 : return sendok__;
307 : }
308 :
309 0 : auto PVRManagerChild::SendSetHaveEventListener(const bool& aHaveEventListener) -> bool
310 : {
311 0 : IPC::Message* msg__ = PVRManager::Msg_SetHaveEventListener(MSG_ROUTING_CONTROL);
312 :
313 0 : Write(aHaveEventListener, msg__);
314 : // Sentinel = 'aHaveEventListener'
315 0 : (msg__)->WriteSentinel(3921043303);
316 :
317 :
318 :
319 :
320 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
321 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
322 : }
323 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_SetHaveEventListener", OTHER);
324 0 : PVRManager::Transition(PVRManager::Msg_SetHaveEventListener__ID, (&(mState)));
325 :
326 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
327 0 : return sendok__;
328 : }
329 :
330 0 : auto PVRManagerChild::SendControllerListenerAdded() -> bool
331 : {
332 0 : IPC::Message* msg__ = PVRManager::Msg_ControllerListenerAdded(MSG_ROUTING_CONTROL);
333 :
334 :
335 :
336 :
337 :
338 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
339 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
340 : }
341 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ControllerListenerAdded", OTHER);
342 0 : PVRManager::Transition(PVRManager::Msg_ControllerListenerAdded__ID, (&(mState)));
343 :
344 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
345 0 : return sendok__;
346 : }
347 :
348 0 : auto PVRManagerChild::SendControllerListenerRemoved() -> bool
349 : {
350 0 : IPC::Message* msg__ = PVRManager::Msg_ControllerListenerRemoved(MSG_ROUTING_CONTROL);
351 :
352 :
353 :
354 :
355 :
356 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
357 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
358 : }
359 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ControllerListenerRemoved", OTHER);
360 0 : PVRManager::Transition(PVRManager::Msg_ControllerListenerRemoved__ID, (&(mState)));
361 :
362 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
363 0 : return sendok__;
364 : }
365 :
366 0 : auto PVRManagerChild::SendVibrateHaptic(
367 : const uint32_t& aControllerIdx,
368 : const uint32_t& aHapticIndex,
369 : const double& aIntensity,
370 : const double& aDuration,
371 : const uint32_t& aPromiseID) -> bool
372 : {
373 0 : IPC::Message* msg__ = PVRManager::Msg_VibrateHaptic(MSG_ROUTING_CONTROL);
374 :
375 0 : Write(aControllerIdx, msg__);
376 : // Sentinel = 'aControllerIdx'
377 0 : (msg__)->WriteSentinel(1525026068);
378 0 : Write(aHapticIndex, msg__);
379 : // Sentinel = 'aHapticIndex'
380 0 : (msg__)->WriteSentinel(3997306204);
381 0 : Write(aIntensity, msg__);
382 : // Sentinel = 'aIntensity'
383 0 : (msg__)->WriteSentinel(701797642);
384 0 : Write(aDuration, msg__);
385 : // Sentinel = 'aDuration'
386 0 : (msg__)->WriteSentinel(3213285508);
387 0 : Write(aPromiseID, msg__);
388 : // Sentinel = 'aPromiseID'
389 0 : (msg__)->WriteSentinel(1396174117);
390 :
391 :
392 :
393 :
394 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
395 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
396 : }
397 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_VibrateHaptic", OTHER);
398 0 : PVRManager::Transition(PVRManager::Msg_VibrateHaptic__ID, (&(mState)));
399 :
400 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
401 0 : return sendok__;
402 : }
403 :
404 0 : auto PVRManagerChild::SendStopVibrateHaptic(const uint32_t& aControllerIdx) -> bool
405 : {
406 0 : IPC::Message* msg__ = PVRManager::Msg_StopVibrateHaptic(MSG_ROUTING_CONTROL);
407 :
408 0 : Write(aControllerIdx, msg__);
409 : // Sentinel = 'aControllerIdx'
410 0 : (msg__)->WriteSentinel(1525026068);
411 :
412 :
413 :
414 :
415 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
416 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
417 : }
418 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_StopVibrateHaptic", OTHER);
419 0 : PVRManager::Transition(PVRManager::Msg_StopVibrateHaptic__ID, (&(mState)));
420 :
421 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
422 0 : return sendok__;
423 : }
424 :
425 0 : auto PVRManagerChild::SendCreateVRTestSystem() -> bool
426 : {
427 0 : IPC::Message* msg__ = PVRManager::Msg_CreateVRTestSystem(MSG_ROUTING_CONTROL);
428 :
429 :
430 :
431 :
432 :
433 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
434 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
435 : }
436 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRTestSystem", OTHER);
437 0 : PVRManager::Transition(PVRManager::Msg_CreateVRTestSystem__ID, (&(mState)));
438 :
439 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
440 0 : return sendok__;
441 : }
442 :
443 0 : auto PVRManagerChild::SendCreateVRServiceTestDisplay(
444 : const nsCString& aID,
445 : const uint32_t& aPromiseID) -> bool
446 : {
447 0 : IPC::Message* msg__ = PVRManager::Msg_CreateVRServiceTestDisplay(MSG_ROUTING_CONTROL);
448 :
449 0 : Write(aID, msg__);
450 : // Sentinel = 'aID'
451 0 : (msg__)->WriteSentinel(2735041849);
452 0 : Write(aPromiseID, msg__);
453 : // Sentinel = 'aPromiseID'
454 0 : (msg__)->WriteSentinel(1396174117);
455 :
456 :
457 :
458 :
459 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
460 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
461 : }
462 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRServiceTestDisplay", OTHER);
463 0 : PVRManager::Transition(PVRManager::Msg_CreateVRServiceTestDisplay__ID, (&(mState)));
464 :
465 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
466 0 : return sendok__;
467 : }
468 :
469 0 : auto PVRManagerChild::SendCreateVRServiceTestController(
470 : const nsCString& aID,
471 : const uint32_t& aPromiseID) -> bool
472 : {
473 0 : IPC::Message* msg__ = PVRManager::Msg_CreateVRServiceTestController(MSG_ROUTING_CONTROL);
474 :
475 0 : Write(aID, msg__);
476 : // Sentinel = 'aID'
477 0 : (msg__)->WriteSentinel(2735041849);
478 0 : Write(aPromiseID, msg__);
479 : // Sentinel = 'aPromiseID'
480 0 : (msg__)->WriteSentinel(1396174117);
481 :
482 :
483 :
484 :
485 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
486 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
487 : }
488 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_CreateVRServiceTestController", OTHER);
489 0 : PVRManager::Transition(PVRManager::Msg_CreateVRServiceTestController__ID, (&(mState)));
490 :
491 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
492 0 : return sendok__;
493 : }
494 :
495 0 : auto PVRManagerChild::SendSetDisplayInfoToMockDisplay(
496 : const uint32_t& aDeviceID,
497 : const VRDisplayInfo& aDisplayInfo) -> bool
498 : {
499 0 : IPC::Message* msg__ = PVRManager::Msg_SetDisplayInfoToMockDisplay(MSG_ROUTING_CONTROL);
500 :
501 0 : Write(aDeviceID, msg__);
502 : // Sentinel = 'aDeviceID'
503 0 : (msg__)->WriteSentinel(1963457757);
504 0 : Write(aDisplayInfo, msg__);
505 : // Sentinel = 'aDisplayInfo'
506 0 : (msg__)->WriteSentinel(2651062689);
507 :
508 :
509 :
510 :
511 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
512 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
513 : }
514 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_SetDisplayInfoToMockDisplay", OTHER);
515 0 : PVRManager::Transition(PVRManager::Msg_SetDisplayInfoToMockDisplay__ID, (&(mState)));
516 :
517 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
518 0 : return sendok__;
519 : }
520 :
521 0 : auto PVRManagerChild::SendSetSensorStateToMockDisplay(
522 : const uint32_t& aDeviceID,
523 : const VRHMDSensorState& aSensorState) -> bool
524 : {
525 0 : IPC::Message* msg__ = PVRManager::Msg_SetSensorStateToMockDisplay(MSG_ROUTING_CONTROL);
526 :
527 0 : Write(aDeviceID, msg__);
528 : // Sentinel = 'aDeviceID'
529 0 : (msg__)->WriteSentinel(1963457757);
530 0 : Write(aSensorState, msg__);
531 : // Sentinel = 'aSensorState'
532 0 : (msg__)->WriteSentinel(3074518118);
533 :
534 :
535 :
536 :
537 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
538 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
539 : }
540 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_SetSensorStateToMockDisplay", OTHER);
541 0 : PVRManager::Transition(PVRManager::Msg_SetSensorStateToMockDisplay__ID, (&(mState)));
542 :
543 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
544 0 : return sendok__;
545 : }
546 :
547 0 : auto PVRManagerChild::SendNewButtonEventToMockController(
548 : const uint32_t& aDeviceID,
549 : const long& aButton,
550 : const bool& aPressed) -> bool
551 : {
552 0 : IPC::Message* msg__ = PVRManager::Msg_NewButtonEventToMockController(MSG_ROUTING_CONTROL);
553 :
554 0 : Write(aDeviceID, msg__);
555 : // Sentinel = 'aDeviceID'
556 0 : (msg__)->WriteSentinel(1963457757);
557 0 : Write(aButton, msg__);
558 : // Sentinel = 'aButton'
559 0 : (msg__)->WriteSentinel(1126532398);
560 0 : Write(aPressed, msg__);
561 : // Sentinel = 'aPressed'
562 0 : (msg__)->WriteSentinel(511193633);
563 :
564 :
565 :
566 :
567 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
568 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
569 : }
570 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_NewButtonEventToMockController", OTHER);
571 0 : PVRManager::Transition(PVRManager::Msg_NewButtonEventToMockController__ID, (&(mState)));
572 :
573 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
574 0 : return sendok__;
575 : }
576 :
577 0 : auto PVRManagerChild::SendNewAxisMoveEventToMockController(
578 : const uint32_t& aDeviceID,
579 : const long& aAxis,
580 : const double& aValue) -> bool
581 : {
582 0 : IPC::Message* msg__ = PVRManager::Msg_NewAxisMoveEventToMockController(MSG_ROUTING_CONTROL);
583 :
584 0 : Write(aDeviceID, msg__);
585 : // Sentinel = 'aDeviceID'
586 0 : (msg__)->WriteSentinel(1963457757);
587 0 : Write(aAxis, msg__);
588 : // Sentinel = 'aAxis'
589 0 : (msg__)->WriteSentinel(1730285743);
590 0 : Write(aValue, msg__);
591 : // Sentinel = 'aValue'
592 0 : (msg__)->WriteSentinel(2522186438);
593 :
594 :
595 :
596 :
597 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
598 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
599 : }
600 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_NewAxisMoveEventToMockController", OTHER);
601 0 : PVRManager::Transition(PVRManager::Msg_NewAxisMoveEventToMockController__ID, (&(mState)));
602 :
603 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
604 0 : return sendok__;
605 : }
606 :
607 0 : auto PVRManagerChild::SendNewPoseMoveToMockController(
608 : const uint32_t& aDeviceID,
609 : const GamepadPoseState& aPose) -> bool
610 : {
611 0 : IPC::Message* msg__ = PVRManager::Msg_NewPoseMoveToMockController(MSG_ROUTING_CONTROL);
612 :
613 0 : Write(aDeviceID, msg__);
614 : // Sentinel = 'aDeviceID'
615 0 : (msg__)->WriteSentinel(1963457757);
616 0 : Write(aPose, msg__);
617 : // Sentinel = 'aPose'
618 0 : (msg__)->WriteSentinel(2231333587);
619 :
620 :
621 :
622 :
623 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
624 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
625 : }
626 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_NewPoseMoveToMockController", OTHER);
627 0 : PVRManager::Transition(PVRManager::Msg_NewPoseMoveToMockController__ID, (&(mState)));
628 :
629 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
630 0 : return sendok__;
631 : }
632 :
633 3 : auto PVRManagerChild::GetIPCChannel() -> MessageChannel*
634 : {
635 3 : return (&(mChannel));
636 : }
637 :
638 0 : auto PVRManagerChild::GetIPCChannel() const -> const MessageChannel*
639 : {
640 0 : return (&(mChannel));
641 : }
642 :
643 0 : auto PVRManagerChild::RemoveManagee(
644 : int32_t aProtocolId,
645 : ProtocolBase* aListener) -> void
646 : {
647 0 : switch (aProtocolId) {
648 : case PTextureMsgStart:
649 : {
650 0 : PTextureChild* actor = static_cast<PTextureChild*>(aListener);
651 0 : auto& container = mManagedPTextureChild;
652 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
653 :
654 0 : (container).RemoveEntry(actor);
655 0 : DeallocPTextureChild(actor);
656 0 : return;
657 : }
658 : case PVRLayerMsgStart:
659 : {
660 0 : PVRLayerChild* actor = static_cast<PVRLayerChild*>(aListener);
661 0 : auto& container = mManagedPVRLayerChild;
662 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
663 :
664 0 : (container).RemoveEntry(actor);
665 0 : DeallocPVRLayerChild(actor);
666 0 : return;
667 : }
668 : default:
669 : {
670 0 : FatalError("unreached");
671 0 : return;
672 : }
673 : }
674 : }
675 :
676 0 : auto PVRManagerChild::OnMessageReceived(const Message& msg__) -> PVRManagerChild::Result
677 : {
678 0 : int32_t route__ = (msg__).routing_id();
679 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
680 0 : ChannelListener* routed__ = Lookup(route__);
681 0 : if ((!(routed__))) {
682 0 : return MsgRouteError;
683 : }
684 0 : return (routed__)->OnMessageReceived(msg__);
685 : }
686 :
687 0 : switch ((msg__).type()) {
688 : case PVRManager::Reply_PTextureConstructor__ID:
689 : {
690 0 : return MsgProcessed;
691 : }
692 : case PVRManager::Reply_PVRLayerConstructor__ID:
693 : {
694 0 : return MsgProcessed;
695 : }
696 : case PVRManager::Msg_ParentAsyncMessages__ID:
697 : {
698 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
699 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
700 : }
701 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ParentAsyncMessages", OTHER);
702 :
703 0 : PickleIterator iter__(msg__);
704 0 : nsTArray<AsyncParentMessageData> aMessages;
705 :
706 0 : if ((!(Read((&(aMessages)), (&(msg__)), (&(iter__)))))) {
707 0 : FatalError("Error deserializing 'nsTArray'");
708 0 : return MsgValueError;
709 : }
710 : // Sentinel = 'aMessages'
711 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1923086976)))) {
712 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
713 0 : return MsgValueError;
714 : }
715 0 : (msg__).EndRead(iter__, (msg__).type());
716 0 : PVRManager::Transition(PVRManager::Msg_ParentAsyncMessages__ID, (&(mState)));
717 0 : if ((!(RecvParentAsyncMessages(mozilla::Move(aMessages))))) {
718 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
719 : // Error handled in mozilla::ipc::IPCResult
720 0 : return MsgProcessingError;
721 : }
722 :
723 0 : return MsgProcessed;
724 : }
725 : case PVRManager::Msg_UpdateDisplayInfo__ID:
726 : {
727 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
728 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
729 : }
730 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_UpdateDisplayInfo", OTHER);
731 :
732 0 : PickleIterator iter__(msg__);
733 0 : nsTArray<VRDisplayInfo> aDisplayUpdates;
734 :
735 0 : if ((!(Read((&(aDisplayUpdates)), (&(msg__)), (&(iter__)))))) {
736 0 : FatalError("Error deserializing 'nsTArray'");
737 0 : return MsgValueError;
738 : }
739 : // Sentinel = 'aDisplayUpdates'
740 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4278158622)))) {
741 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
742 0 : return MsgValueError;
743 : }
744 0 : (msg__).EndRead(iter__, (msg__).type());
745 0 : PVRManager::Transition(PVRManager::Msg_UpdateDisplayInfo__ID, (&(mState)));
746 0 : if ((!(RecvUpdateDisplayInfo(mozilla::Move(aDisplayUpdates))))) {
747 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
748 : // Error handled in mozilla::ipc::IPCResult
749 0 : return MsgProcessingError;
750 : }
751 :
752 0 : return MsgProcessed;
753 : }
754 : case PVRManager::Msg_DispatchSubmitFrameResult__ID:
755 : {
756 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
757 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
758 : }
759 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_DispatchSubmitFrameResult", OTHER);
760 :
761 0 : PickleIterator iter__(msg__);
762 : uint32_t aDisplayID;
763 0 : VRSubmitFrameResultInfo aResult;
764 :
765 0 : if ((!(Read((&(aDisplayID)), (&(msg__)), (&(iter__)))))) {
766 0 : FatalError("Error deserializing 'uint32_t'");
767 0 : return MsgValueError;
768 : }
769 : // Sentinel = 'aDisplayID'
770 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2139184880)))) {
771 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
772 0 : return MsgValueError;
773 : }
774 0 : if ((!(Read((&(aResult)), (&(msg__)), (&(iter__)))))) {
775 0 : FatalError("Error deserializing 'VRSubmitFrameResultInfo'");
776 0 : return MsgValueError;
777 : }
778 : // Sentinel = 'aResult'
779 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3888726089)))) {
780 0 : mozilla::ipc::SentinelReadError("Error deserializing 'VRSubmitFrameResultInfo'");
781 0 : return MsgValueError;
782 : }
783 0 : (msg__).EndRead(iter__, (msg__).type());
784 0 : PVRManager::Transition(PVRManager::Msg_DispatchSubmitFrameResult__ID, (&(mState)));
785 0 : if ((!(RecvDispatchSubmitFrameResult(mozilla::Move(aDisplayID), mozilla::Move(aResult))))) {
786 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
787 : // Error handled in mozilla::ipc::IPCResult
788 0 : return MsgProcessingError;
789 : }
790 :
791 0 : return MsgProcessed;
792 : }
793 : case PVRManager::Msg_GamepadUpdate__ID:
794 : {
795 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
796 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
797 : }
798 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_GamepadUpdate", OTHER);
799 :
800 0 : PickleIterator iter__(msg__);
801 0 : GamepadChangeEvent aGamepadEvent;
802 :
803 0 : if ((!(Read((&(aGamepadEvent)), (&(msg__)), (&(iter__)))))) {
804 0 : FatalError("Error deserializing 'GamepadChangeEvent'");
805 0 : return MsgValueError;
806 : }
807 : // Sentinel = 'aGamepadEvent'
808 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1167032459)))) {
809 0 : mozilla::ipc::SentinelReadError("Error deserializing 'GamepadChangeEvent'");
810 0 : return MsgValueError;
811 : }
812 0 : (msg__).EndRead(iter__, (msg__).type());
813 0 : PVRManager::Transition(PVRManager::Msg_GamepadUpdate__ID, (&(mState)));
814 0 : if ((!(RecvGamepadUpdate(mozilla::Move(aGamepadEvent))))) {
815 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
816 : // Error handled in mozilla::ipc::IPCResult
817 0 : return MsgProcessingError;
818 : }
819 :
820 0 : return MsgProcessed;
821 : }
822 : case PVRManager::Msg_ReplyGamepadVibrateHaptic__ID:
823 : {
824 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
825 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
826 : }
827 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyGamepadVibrateHaptic", OTHER);
828 :
829 0 : PickleIterator iter__(msg__);
830 : uint32_t aPromiseID;
831 :
832 0 : if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
833 0 : FatalError("Error deserializing 'uint32_t'");
834 0 : return MsgValueError;
835 : }
836 : // Sentinel = 'aPromiseID'
837 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
838 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
839 0 : return MsgValueError;
840 : }
841 0 : (msg__).EndRead(iter__, (msg__).type());
842 0 : PVRManager::Transition(PVRManager::Msg_ReplyGamepadVibrateHaptic__ID, (&(mState)));
843 0 : if ((!(RecvReplyGamepadVibrateHaptic(mozilla::Move(aPromiseID))))) {
844 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
845 : // Error handled in mozilla::ipc::IPCResult
846 0 : return MsgProcessingError;
847 : }
848 :
849 0 : return MsgProcessed;
850 : }
851 : case PVRManager::Msg_ReplyCreateVRServiceTestDisplay__ID:
852 : {
853 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
854 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
855 : }
856 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyCreateVRServiceTestDisplay", OTHER);
857 :
858 0 : PickleIterator iter__(msg__);
859 0 : nsCString aID;
860 : uint32_t aPromiseID;
861 : uint32_t aDeviceID;
862 :
863 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
864 0 : FatalError("Error deserializing 'nsCString'");
865 0 : return MsgValueError;
866 : }
867 : // Sentinel = 'aID'
868 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
870 0 : return MsgValueError;
871 : }
872 0 : if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
873 0 : FatalError("Error deserializing 'uint32_t'");
874 0 : return MsgValueError;
875 : }
876 : // Sentinel = 'aPromiseID'
877 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
879 0 : return MsgValueError;
880 : }
881 0 : if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
882 0 : FatalError("Error deserializing 'uint32_t'");
883 0 : return MsgValueError;
884 : }
885 : // Sentinel = 'aDeviceID'
886 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
888 0 : return MsgValueError;
889 : }
890 0 : (msg__).EndRead(iter__, (msg__).type());
891 0 : PVRManager::Transition(PVRManager::Msg_ReplyCreateVRServiceTestDisplay__ID, (&(mState)));
892 0 : if ((!(RecvReplyCreateVRServiceTestDisplay(mozilla::Move(aID), mozilla::Move(aPromiseID), mozilla::Move(aDeviceID))))) {
893 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
894 : // Error handled in mozilla::ipc::IPCResult
895 0 : return MsgProcessingError;
896 : }
897 :
898 0 : return MsgProcessed;
899 : }
900 : case PVRManager::Msg_ReplyCreateVRServiceTestController__ID:
901 : {
902 0 : if (mozilla::ipc::LoggingEnabledFor("PVRManagerChild")) {
903 0 : mozilla::ipc::LogMessageForProtocol("PVRManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
904 : }
905 0 : AUTO_PROFILER_LABEL("PVRManager::Msg_ReplyCreateVRServiceTestController", OTHER);
906 :
907 0 : PickleIterator iter__(msg__);
908 0 : nsCString aID;
909 : uint32_t aPromiseID;
910 : uint32_t aDeviceID;
911 :
912 0 : if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
913 0 : FatalError("Error deserializing 'nsCString'");
914 0 : return MsgValueError;
915 : }
916 : // Sentinel = 'aID'
917 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
918 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
919 0 : return MsgValueError;
920 : }
921 0 : if ((!(Read((&(aPromiseID)), (&(msg__)), (&(iter__)))))) {
922 0 : FatalError("Error deserializing 'uint32_t'");
923 0 : return MsgValueError;
924 : }
925 : // Sentinel = 'aPromiseID'
926 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396174117)))) {
927 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
928 0 : return MsgValueError;
929 : }
930 0 : if ((!(Read((&(aDeviceID)), (&(msg__)), (&(iter__)))))) {
931 0 : FatalError("Error deserializing 'uint32_t'");
932 0 : return MsgValueError;
933 : }
934 : // Sentinel = 'aDeviceID'
935 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1963457757)))) {
936 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
937 0 : return MsgValueError;
938 : }
939 0 : (msg__).EndRead(iter__, (msg__).type());
940 0 : PVRManager::Transition(PVRManager::Msg_ReplyCreateVRServiceTestController__ID, (&(mState)));
941 0 : if ((!(RecvReplyCreateVRServiceTestController(mozilla::Move(aID), mozilla::Move(aPromiseID), mozilla::Move(aDeviceID))))) {
942 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
943 : // Error handled in mozilla::ipc::IPCResult
944 0 : return MsgProcessingError;
945 : }
946 :
947 0 : return MsgProcessed;
948 : }
949 : default:
950 : {
951 0 : return MsgNotKnown;
952 : }
953 : case SHMEM_CREATED_MESSAGE_TYPE:
954 : {
955 0 : if ((!(ShmemCreated(msg__)))) {
956 0 : return MsgPayloadError;
957 : }
958 0 : return MsgProcessed;
959 : }
960 : case SHMEM_DESTROYED_MESSAGE_TYPE:
961 : {
962 0 : if ((!(ShmemDestroyed(msg__)))) {
963 0 : return MsgPayloadError;
964 : }
965 0 : return MsgProcessed;
966 : }
967 : }
968 : }
969 :
970 0 : auto PVRManagerChild::OnMessageReceived(
971 : const Message& msg__,
972 : Message*& reply__) -> PVRManagerChild::Result
973 : {
974 0 : int32_t route__ = (msg__).routing_id();
975 0 : if ((MSG_ROUTING_CONTROL) != (route__)) {
976 0 : ChannelListener* routed__ = Lookup(route__);
977 0 : if ((!(routed__))) {
978 0 : return MsgRouteError;
979 : }
980 0 : return (routed__)->OnMessageReceived(msg__, reply__);
981 : }
982 :
983 0 : return MsgNotKnown;
984 : }
985 :
986 0 : auto PVRManagerChild::OnCallReceived(
987 : const Message& msg__,
988 : Message*& reply__) -> PVRManagerChild::Result
989 : {
990 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
991 : return MsgNotKnown;
992 : }
993 :
994 0 : auto PVRManagerChild::GetProtocolTypeId() -> int32_t
995 : {
996 0 : return PVRManagerMsgStart;
997 : }
998 :
999 0 : auto PVRManagerChild::OnChannelClose() -> void
1000 : {
1001 0 : DestroySubtree(NormalShutdown);
1002 0 : DeallocSubtree();
1003 0 : DeallocShmems();
1004 0 : DeallocPVRManagerChild();
1005 0 : }
1006 :
1007 0 : auto PVRManagerChild::OnChannelError() -> void
1008 : {
1009 0 : DestroySubtree(AbnormalShutdown);
1010 0 : DeallocSubtree();
1011 0 : DeallocShmems();
1012 0 : DeallocPVRManagerChild();
1013 0 : }
1014 :
1015 0 : auto PVRManagerChild::ProtocolName() const -> const char*
1016 : {
1017 0 : return "PVRManagerChild";
1018 : }
1019 :
1020 0 : auto PVRManagerChild::DestroySubtree(ActorDestroyReason why) -> void
1021 : {
1022 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
1023 :
1024 : {
1025 : // Recursively shutting down PTexture kids
1026 0 : nsTArray<PTextureChild*> kids;
1027 : // Accumulate kids into a stable structure to iterate over
1028 0 : ManagedPTextureChild(kids);
1029 0 : for (auto& kid : kids) {
1030 : // Guarding against a child removing a sibling from the list during the iteration.
1031 0 : if ((mManagedPTextureChild).Contains(kid)) {
1032 0 : (kid)->DestroySubtree(subtreewhy);
1033 : }
1034 : }
1035 : }
1036 : {
1037 : // Recursively shutting down PVRLayer kids
1038 0 : nsTArray<PVRLayerChild*> kids;
1039 : // Accumulate kids into a stable structure to iterate over
1040 0 : ManagedPVRLayerChild(kids);
1041 0 : for (auto& kid : kids) {
1042 : // Guarding against a child removing a sibling from the list during the iteration.
1043 0 : if ((mManagedPVRLayerChild).Contains(kid)) {
1044 0 : (kid)->DestroySubtree(subtreewhy);
1045 : }
1046 : }
1047 : }
1048 :
1049 : // Reject owning pending promises.
1050 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
1051 :
1052 : // Finally, destroy "us".
1053 0 : ActorDestroy(why);
1054 0 : }
1055 :
1056 0 : auto PVRManagerChild::DeallocSubtree() -> void
1057 : {
1058 : {
1059 : // Recursively deleting PTexture kids
1060 0 : for (auto iter = (mManagedPTextureChild).Iter(); (!((iter).Done())); (iter).Next()) {
1061 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1062 : }
1063 :
1064 0 : for (auto iter = (mManagedPTextureChild).Iter(); (!((iter).Done())); (iter).Next()) {
1065 0 : DeallocPTextureChild(((iter).Get())->GetKey());
1066 : }
1067 0 : (mManagedPTextureChild).Clear();
1068 : }
1069 : {
1070 : // Recursively deleting PVRLayer kids
1071 0 : for (auto iter = (mManagedPVRLayerChild).Iter(); (!((iter).Done())); (iter).Next()) {
1072 0 : (((iter).Get())->GetKey())->DeallocSubtree();
1073 : }
1074 :
1075 0 : for (auto iter = (mManagedPVRLayerChild).Iter(); (!((iter).Done())); (iter).Next()) {
1076 0 : DeallocPVRLayerChild(((iter).Get())->GetKey());
1077 : }
1078 0 : (mManagedPVRLayerChild).Clear();
1079 : }
1080 0 : }
1081 :
1082 0 : auto PVRManagerChild::DeallocPVRManagerChild() -> void
1083 : {
1084 0 : }
1085 :
1086 0 : auto PVRManagerChild::Write(
1087 : const SurfaceDescriptor& v__,
1088 : Message* msg__) -> void
1089 : {
1090 : typedef SurfaceDescriptor type__;
1091 0 : Write(int((v__).type()), msg__);
1092 : // Sentinel = 'SurfaceDescriptor'
1093 0 : (msg__)->WriteSentinel(1058499359);
1094 :
1095 0 : switch ((v__).type()) {
1096 : case type__::TSurfaceDescriptorBuffer:
1097 : {
1098 0 : Write((v__).get_SurfaceDescriptorBuffer(), msg__);
1099 : // Sentinel = 'TSurfaceDescriptorBuffer'
1100 0 : (msg__)->WriteSentinel(2202696360);
1101 0 : return;
1102 : }
1103 : case type__::TSurfaceDescriptorDIB:
1104 : {
1105 0 : Write((v__).get_SurfaceDescriptorDIB(), msg__);
1106 : // Sentinel = 'TSurfaceDescriptorDIB'
1107 0 : (msg__)->WriteSentinel(998410538);
1108 0 : return;
1109 : }
1110 : case type__::TSurfaceDescriptorD3D10:
1111 : {
1112 0 : Write((v__).get_SurfaceDescriptorD3D10(), msg__);
1113 : // Sentinel = 'TSurfaceDescriptorD3D10'
1114 0 : (msg__)->WriteSentinel(2753564567);
1115 0 : return;
1116 : }
1117 : case type__::TSurfaceDescriptorFileMapping:
1118 : {
1119 0 : Write((v__).get_SurfaceDescriptorFileMapping(), msg__);
1120 : // Sentinel = 'TSurfaceDescriptorFileMapping'
1121 0 : (msg__)->WriteSentinel(722196935);
1122 0 : return;
1123 : }
1124 : case type__::TSurfaceDescriptorDXGIYCbCr:
1125 : {
1126 0 : Write((v__).get_SurfaceDescriptorDXGIYCbCr(), msg__);
1127 : // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
1128 0 : (msg__)->WriteSentinel(3061212892);
1129 0 : return;
1130 : }
1131 : case type__::TSurfaceDescriptorX11:
1132 : {
1133 0 : Write((v__).get_SurfaceDescriptorX11(), msg__);
1134 : // Sentinel = 'TSurfaceDescriptorX11'
1135 0 : (msg__)->WriteSentinel(3923930613);
1136 0 : return;
1137 : }
1138 : case type__::TSurfaceTextureDescriptor:
1139 : {
1140 0 : Write((v__).get_SurfaceTextureDescriptor(), msg__);
1141 : // Sentinel = 'TSurfaceTextureDescriptor'
1142 0 : (msg__)->WriteSentinel(2253946800);
1143 0 : return;
1144 : }
1145 : case type__::TEGLImageDescriptor:
1146 : {
1147 0 : Write((v__).get_EGLImageDescriptor(), msg__);
1148 : // Sentinel = 'TEGLImageDescriptor'
1149 0 : (msg__)->WriteSentinel(2680446099);
1150 0 : return;
1151 : }
1152 : case type__::TSurfaceDescriptorMacIOSurface:
1153 : {
1154 0 : Write((v__).get_SurfaceDescriptorMacIOSurface(), msg__);
1155 : // Sentinel = 'TSurfaceDescriptorMacIOSurface'
1156 0 : (msg__)->WriteSentinel(4267688786);
1157 0 : return;
1158 : }
1159 : case type__::TSurfaceDescriptorSharedGLTexture:
1160 : {
1161 0 : Write((v__).get_SurfaceDescriptorSharedGLTexture(), msg__);
1162 : // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
1163 0 : (msg__)->WriteSentinel(4169514976);
1164 0 : return;
1165 : }
1166 : case type__::TSurfaceDescriptorGPUVideo:
1167 : {
1168 0 : Write((v__).get_SurfaceDescriptorGPUVideo(), msg__);
1169 : // Sentinel = 'TSurfaceDescriptorGPUVideo'
1170 0 : (msg__)->WriteSentinel(2406892431);
1171 0 : return;
1172 : }
1173 : case type__::Tnull_t:
1174 : {
1175 0 : Write((v__).get_null_t(), msg__);
1176 : // Sentinel = 'Tnull_t'
1177 0 : (msg__)->WriteSentinel(3731137201);
1178 0 : return;
1179 : }
1180 : default:
1181 : {
1182 0 : FatalError("unknown union type");
1183 0 : return;
1184 : }
1185 : }
1186 : }
1187 :
1188 0 : auto PVRManagerChild::Read(
1189 : SurfaceDescriptor* v__,
1190 : const Message* msg__,
1191 : PickleIterator* iter__) -> bool
1192 : {
1193 : typedef SurfaceDescriptor type__;
1194 : int type;
1195 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1196 0 : mozilla::ipc::UnionTypeReadError("SurfaceDescriptor");
1197 0 : return false;
1198 : }
1199 : // Sentinel = 'SurfaceDescriptor'
1200 0 : if ((!((msg__)->ReadSentinel(iter__, 1058499359)))) {
1201 0 : mozilla::ipc::SentinelReadError("SurfaceDescriptor");
1202 0 : return false;
1203 : }
1204 :
1205 0 : switch (type) {
1206 : case type__::TSurfaceDescriptorBuffer:
1207 : {
1208 0 : SurfaceDescriptorBuffer tmp = SurfaceDescriptorBuffer();
1209 0 : (*(v__)) = tmp;
1210 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorBuffer())), msg__, iter__)))) {
1211 0 : FatalError("Error deserializing Union type");
1212 0 : return false;
1213 : }
1214 : // Sentinel = 'TSurfaceDescriptorBuffer'
1215 0 : if ((!((msg__)->ReadSentinel(iter__, 2202696360)))) {
1216 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1217 0 : return false;
1218 : }
1219 0 : return true;
1220 : }
1221 : case type__::TSurfaceDescriptorDIB:
1222 : {
1223 0 : SurfaceDescriptorDIB tmp = SurfaceDescriptorDIB();
1224 0 : (*(v__)) = tmp;
1225 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorDIB())), msg__, iter__)))) {
1226 0 : FatalError("Error deserializing Union type");
1227 0 : return false;
1228 : }
1229 : // Sentinel = 'TSurfaceDescriptorDIB'
1230 0 : if ((!((msg__)->ReadSentinel(iter__, 998410538)))) {
1231 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1232 0 : return false;
1233 : }
1234 0 : return true;
1235 : }
1236 : case type__::TSurfaceDescriptorD3D10:
1237 : {
1238 0 : SurfaceDescriptorD3D10 tmp = SurfaceDescriptorD3D10();
1239 0 : (*(v__)) = tmp;
1240 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorD3D10())), msg__, iter__)))) {
1241 0 : FatalError("Error deserializing Union type");
1242 0 : return false;
1243 : }
1244 : // Sentinel = 'TSurfaceDescriptorD3D10'
1245 0 : if ((!((msg__)->ReadSentinel(iter__, 2753564567)))) {
1246 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1247 0 : return false;
1248 : }
1249 0 : return true;
1250 : }
1251 : case type__::TSurfaceDescriptorFileMapping:
1252 : {
1253 0 : SurfaceDescriptorFileMapping tmp = SurfaceDescriptorFileMapping();
1254 0 : (*(v__)) = tmp;
1255 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorFileMapping())), msg__, iter__)))) {
1256 0 : FatalError("Error deserializing Union type");
1257 0 : return false;
1258 : }
1259 : // Sentinel = 'TSurfaceDescriptorFileMapping'
1260 0 : if ((!((msg__)->ReadSentinel(iter__, 722196935)))) {
1261 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1262 0 : return false;
1263 : }
1264 0 : return true;
1265 : }
1266 : case type__::TSurfaceDescriptorDXGIYCbCr:
1267 : {
1268 0 : SurfaceDescriptorDXGIYCbCr tmp = SurfaceDescriptorDXGIYCbCr();
1269 0 : (*(v__)) = tmp;
1270 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorDXGIYCbCr())), msg__, iter__)))) {
1271 0 : FatalError("Error deserializing Union type");
1272 0 : return false;
1273 : }
1274 : // Sentinel = 'TSurfaceDescriptorDXGIYCbCr'
1275 0 : if ((!((msg__)->ReadSentinel(iter__, 3061212892)))) {
1276 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1277 0 : return false;
1278 : }
1279 0 : return true;
1280 : }
1281 : case type__::TSurfaceDescriptorX11:
1282 : {
1283 0 : SurfaceDescriptorX11 tmp = SurfaceDescriptorX11();
1284 0 : (*(v__)) = tmp;
1285 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorX11())), msg__, iter__)))) {
1286 0 : FatalError("Error deserializing Union type");
1287 0 : return false;
1288 : }
1289 : // Sentinel = 'TSurfaceDescriptorX11'
1290 0 : if ((!((msg__)->ReadSentinel(iter__, 3923930613)))) {
1291 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1292 0 : return false;
1293 : }
1294 0 : return true;
1295 : }
1296 : case type__::TSurfaceTextureDescriptor:
1297 : {
1298 0 : SurfaceTextureDescriptor tmp = SurfaceTextureDescriptor();
1299 0 : (*(v__)) = tmp;
1300 0 : if ((!(Read((&((v__)->get_SurfaceTextureDescriptor())), msg__, iter__)))) {
1301 0 : FatalError("Error deserializing Union type");
1302 0 : return false;
1303 : }
1304 : // Sentinel = 'TSurfaceTextureDescriptor'
1305 0 : if ((!((msg__)->ReadSentinel(iter__, 2253946800)))) {
1306 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1307 0 : return false;
1308 : }
1309 0 : return true;
1310 : }
1311 : case type__::TEGLImageDescriptor:
1312 : {
1313 0 : EGLImageDescriptor tmp = EGLImageDescriptor();
1314 0 : (*(v__)) = tmp;
1315 0 : if ((!(Read((&((v__)->get_EGLImageDescriptor())), msg__, iter__)))) {
1316 0 : FatalError("Error deserializing Union type");
1317 0 : return false;
1318 : }
1319 : // Sentinel = 'TEGLImageDescriptor'
1320 0 : if ((!((msg__)->ReadSentinel(iter__, 2680446099)))) {
1321 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1322 0 : return false;
1323 : }
1324 0 : return true;
1325 : }
1326 : case type__::TSurfaceDescriptorMacIOSurface:
1327 : {
1328 0 : SurfaceDescriptorMacIOSurface tmp = SurfaceDescriptorMacIOSurface();
1329 0 : (*(v__)) = tmp;
1330 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorMacIOSurface())), msg__, iter__)))) {
1331 0 : FatalError("Error deserializing Union type");
1332 0 : return false;
1333 : }
1334 : // Sentinel = 'TSurfaceDescriptorMacIOSurface'
1335 0 : if ((!((msg__)->ReadSentinel(iter__, 4267688786)))) {
1336 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1337 0 : return false;
1338 : }
1339 0 : return true;
1340 : }
1341 : case type__::TSurfaceDescriptorSharedGLTexture:
1342 : {
1343 0 : SurfaceDescriptorSharedGLTexture tmp = SurfaceDescriptorSharedGLTexture();
1344 0 : (*(v__)) = tmp;
1345 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorSharedGLTexture())), msg__, iter__)))) {
1346 0 : FatalError("Error deserializing Union type");
1347 0 : return false;
1348 : }
1349 : // Sentinel = 'TSurfaceDescriptorSharedGLTexture'
1350 0 : if ((!((msg__)->ReadSentinel(iter__, 4169514976)))) {
1351 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1352 0 : return false;
1353 : }
1354 0 : return true;
1355 : }
1356 : case type__::TSurfaceDescriptorGPUVideo:
1357 : {
1358 0 : SurfaceDescriptorGPUVideo tmp = SurfaceDescriptorGPUVideo();
1359 0 : (*(v__)) = tmp;
1360 0 : if ((!(Read((&((v__)->get_SurfaceDescriptorGPUVideo())), msg__, iter__)))) {
1361 0 : FatalError("Error deserializing Union type");
1362 0 : return false;
1363 : }
1364 : // Sentinel = 'TSurfaceDescriptorGPUVideo'
1365 0 : if ((!((msg__)->ReadSentinel(iter__, 2406892431)))) {
1366 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1367 0 : return false;
1368 : }
1369 0 : return true;
1370 : }
1371 : case type__::Tnull_t:
1372 : {
1373 : null_t tmp = null_t();
1374 0 : (*(v__)) = tmp;
1375 0 : if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
1376 0 : FatalError("Error deserializing Union type");
1377 0 : return false;
1378 : }
1379 : // Sentinel = 'Tnull_t'
1380 0 : if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
1381 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1382 0 : return false;
1383 : }
1384 0 : return true;
1385 : }
1386 : default:
1387 : {
1388 0 : FatalError("unknown union type");
1389 0 : return false;
1390 : }
1391 : }
1392 : }
1393 :
1394 0 : auto PVRManagerChild::Write(
1395 : const SurfaceDescriptorMacIOSurface& v__,
1396 : Message* msg__) -> void
1397 : {
1398 0 : Write((v__).surfaceId(), msg__);
1399 : // Sentinel = 'surfaceId'
1400 0 : (msg__)->WriteSentinel(4108848731);
1401 0 : Write((v__).scaleFactor(), msg__);
1402 : // Sentinel = 'scaleFactor'
1403 0 : (msg__)->WriteSentinel(1184637148);
1404 0 : Write((v__).isOpaque(), msg__);
1405 : // Sentinel = 'isOpaque'
1406 0 : (msg__)->WriteSentinel(3519081617);
1407 0 : }
1408 :
1409 0 : auto PVRManagerChild::Read(
1410 : SurfaceDescriptorMacIOSurface* v__,
1411 : const Message* msg__,
1412 : PickleIterator* iter__) -> bool
1413 : {
1414 0 : if ((!(Read((&((v__)->surfaceId())), msg__, iter__)))) {
1415 0 : FatalError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
1416 0 : return false;
1417 : }
1418 : // Sentinel = 'surfaceId'
1419 0 : if ((!((msg__)->ReadSentinel(iter__, 4108848731)))) {
1420 0 : mozilla::ipc::SentinelReadError("Error deserializing 'surfaceId' (uint32_t) member of 'SurfaceDescriptorMacIOSurface'");
1421 0 : return false;
1422 : }
1423 0 : if ((!(Read((&((v__)->scaleFactor())), msg__, iter__)))) {
1424 0 : FatalError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
1425 0 : return false;
1426 : }
1427 : // Sentinel = 'scaleFactor'
1428 0 : if ((!((msg__)->ReadSentinel(iter__, 1184637148)))) {
1429 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scaleFactor' (double) member of 'SurfaceDescriptorMacIOSurface'");
1430 0 : return false;
1431 : }
1432 0 : if ((!(Read((&((v__)->isOpaque())), msg__, iter__)))) {
1433 0 : FatalError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
1434 0 : return false;
1435 : }
1436 : // Sentinel = 'isOpaque'
1437 0 : if ((!((msg__)->ReadSentinel(iter__, 3519081617)))) {
1438 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isOpaque' (bool) member of 'SurfaceDescriptorMacIOSurface'");
1439 0 : return false;
1440 : }
1441 0 : return true;
1442 : }
1443 :
1444 0 : auto PVRManagerChild::Write(
1445 : const GamepadHandInformation& v__,
1446 : Message* msg__) -> void
1447 : {
1448 0 : Write((v__).index(), msg__);
1449 : // Sentinel = 'index'
1450 0 : (msg__)->WriteSentinel(2111871137);
1451 0 : Write((v__).service_type(), msg__);
1452 : // Sentinel = 'service_type'
1453 0 : (msg__)->WriteSentinel(269243832);
1454 0 : Write((v__).hand(), msg__);
1455 : // Sentinel = 'hand'
1456 0 : (msg__)->WriteSentinel(2604541391);
1457 0 : }
1458 :
1459 0 : auto PVRManagerChild::Read(
1460 : GamepadHandInformation* v__,
1461 : const Message* msg__,
1462 : PickleIterator* iter__) -> bool
1463 : {
1464 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
1465 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadHandInformation'");
1466 0 : return false;
1467 : }
1468 : // Sentinel = 'index'
1469 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
1470 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadHandInformation'");
1471 0 : return false;
1472 : }
1473 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
1474 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadHandInformation'");
1475 0 : return false;
1476 : }
1477 : // Sentinel = 'service_type'
1478 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
1479 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadHandInformation'");
1480 0 : return false;
1481 : }
1482 0 : if ((!(Read((&((v__)->hand())), msg__, iter__)))) {
1483 0 : FatalError("Error deserializing 'hand' (GamepadHand) member of 'GamepadHandInformation'");
1484 0 : return false;
1485 : }
1486 : // Sentinel = 'hand'
1487 0 : if ((!((msg__)->ReadSentinel(iter__, 2604541391)))) {
1488 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hand' (GamepadHand) member of 'GamepadHandInformation'");
1489 0 : return false;
1490 : }
1491 0 : return true;
1492 : }
1493 :
1494 0 : auto PVRManagerChild::Write(
1495 : const YCbCrDescriptor& v__,
1496 : Message* msg__) -> void
1497 : {
1498 0 : Write((v__).ySize(), msg__);
1499 : // Sentinel = 'ySize'
1500 0 : (msg__)->WriteSentinel(313512843);
1501 0 : Write((v__).cbCrSize(), msg__);
1502 : // Sentinel = 'cbCrSize'
1503 0 : (msg__)->WriteSentinel(2601117167);
1504 0 : Write((v__).yOffset(), msg__);
1505 : // Sentinel = 'yOffset'
1506 0 : (msg__)->WriteSentinel(983795183);
1507 0 : Write((v__).cbOffset(), msg__);
1508 : // Sentinel = 'cbOffset'
1509 0 : (msg__)->WriteSentinel(4197159602);
1510 0 : Write((v__).crOffset(), msg__);
1511 : // Sentinel = 'crOffset'
1512 0 : (msg__)->WriteSentinel(1739681986);
1513 0 : Write((v__).stereoMode(), msg__);
1514 : // Sentinel = 'stereoMode'
1515 0 : (msg__)->WriteSentinel(2234072623);
1516 0 : Write((v__).yUVColorSpace(), msg__);
1517 : // Sentinel = 'yUVColorSpace'
1518 0 : (msg__)->WriteSentinel(1051398544);
1519 0 : Write((v__).hasIntermediateBuffer(), msg__);
1520 : // Sentinel = 'hasIntermediateBuffer'
1521 0 : (msg__)->WriteSentinel(985857996);
1522 0 : }
1523 :
1524 0 : auto PVRManagerChild::Read(
1525 : YCbCrDescriptor* v__,
1526 : const Message* msg__,
1527 : PickleIterator* iter__) -> bool
1528 : {
1529 0 : if ((!(Read((&((v__)->ySize())), msg__, iter__)))) {
1530 0 : FatalError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
1531 0 : return false;
1532 : }
1533 : // Sentinel = 'ySize'
1534 0 : if ((!((msg__)->ReadSentinel(iter__, 313512843)))) {
1535 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ySize' (IntSize) member of 'YCbCrDescriptor'");
1536 0 : return false;
1537 : }
1538 0 : if ((!(Read((&((v__)->cbCrSize())), msg__, iter__)))) {
1539 0 : FatalError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
1540 0 : return false;
1541 : }
1542 : // Sentinel = 'cbCrSize'
1543 0 : if ((!((msg__)->ReadSentinel(iter__, 2601117167)))) {
1544 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cbCrSize' (IntSize) member of 'YCbCrDescriptor'");
1545 0 : return false;
1546 : }
1547 0 : if ((!(Read((&((v__)->yOffset())), msg__, iter__)))) {
1548 0 : FatalError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
1549 0 : return false;
1550 : }
1551 : // Sentinel = 'yOffset'
1552 0 : if ((!((msg__)->ReadSentinel(iter__, 983795183)))) {
1553 0 : mozilla::ipc::SentinelReadError("Error deserializing 'yOffset' (uint32_t) member of 'YCbCrDescriptor'");
1554 0 : return false;
1555 : }
1556 0 : if ((!(Read((&((v__)->cbOffset())), msg__, iter__)))) {
1557 0 : FatalError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
1558 0 : return false;
1559 : }
1560 : // Sentinel = 'cbOffset'
1561 0 : if ((!((msg__)->ReadSentinel(iter__, 4197159602)))) {
1562 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cbOffset' (uint32_t) member of 'YCbCrDescriptor'");
1563 0 : return false;
1564 : }
1565 0 : if ((!(Read((&((v__)->crOffset())), msg__, iter__)))) {
1566 0 : FatalError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
1567 0 : return false;
1568 : }
1569 : // Sentinel = 'crOffset'
1570 0 : if ((!((msg__)->ReadSentinel(iter__, 1739681986)))) {
1571 0 : mozilla::ipc::SentinelReadError("Error deserializing 'crOffset' (uint32_t) member of 'YCbCrDescriptor'");
1572 0 : return false;
1573 : }
1574 0 : if ((!(Read((&((v__)->stereoMode())), msg__, iter__)))) {
1575 0 : FatalError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
1576 0 : return false;
1577 : }
1578 : // Sentinel = 'stereoMode'
1579 0 : if ((!((msg__)->ReadSentinel(iter__, 2234072623)))) {
1580 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stereoMode' (StereoMode) member of 'YCbCrDescriptor'");
1581 0 : return false;
1582 : }
1583 0 : if ((!(Read((&((v__)->yUVColorSpace())), msg__, iter__)))) {
1584 0 : FatalError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
1585 0 : return false;
1586 : }
1587 : // Sentinel = 'yUVColorSpace'
1588 0 : if ((!((msg__)->ReadSentinel(iter__, 1051398544)))) {
1589 0 : mozilla::ipc::SentinelReadError("Error deserializing 'yUVColorSpace' (YUVColorSpace) member of 'YCbCrDescriptor'");
1590 0 : return false;
1591 : }
1592 0 : if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
1593 0 : FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
1594 0 : return false;
1595 : }
1596 : // Sentinel = 'hasIntermediateBuffer'
1597 0 : if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
1598 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'YCbCrDescriptor'");
1599 0 : return false;
1600 : }
1601 0 : return true;
1602 : }
1603 :
1604 0 : auto PVRManagerChild::Write(
1605 : Shmem& v__,
1606 : Message* msg__) -> void
1607 : {
1608 0 : IPC::WriteParam(msg__, v__);
1609 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1610 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1611 0 : }
1612 :
1613 0 : auto PVRManagerChild::Read(
1614 : Shmem* v__,
1615 : const Message* msg__,
1616 : PickleIterator* iter__) -> bool
1617 : {
1618 0 : Shmem tmp;
1619 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
1620 0 : return false;
1621 : }
1622 :
1623 0 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
1624 0 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
1625 0 : if (rawmem) {
1626 0 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
1627 0 : return true;
1628 : }
1629 0 : (*(v__)) = Shmem();
1630 0 : return true;
1631 : }
1632 :
1633 0 : auto PVRManagerChild::Write(
1634 : const AsyncParentMessageData& v__,
1635 : Message* msg__) -> void
1636 : {
1637 : typedef AsyncParentMessageData type__;
1638 0 : Write(int((v__).type()), msg__);
1639 : // Sentinel = 'AsyncParentMessageData'
1640 0 : (msg__)->WriteSentinel(3809282103);
1641 :
1642 0 : switch ((v__).type()) {
1643 : case type__::TOpNotifyNotUsed:
1644 : {
1645 0 : Write((v__).get_OpNotifyNotUsed(), msg__);
1646 : // Sentinel = 'TOpNotifyNotUsed'
1647 0 : (msg__)->WriteSentinel(2920493638);
1648 0 : return;
1649 : }
1650 : default:
1651 : {
1652 0 : FatalError("unknown union type");
1653 0 : return;
1654 : }
1655 : }
1656 : }
1657 :
1658 0 : auto PVRManagerChild::Read(
1659 : AsyncParentMessageData* v__,
1660 : const Message* msg__,
1661 : PickleIterator* iter__) -> bool
1662 : {
1663 : typedef AsyncParentMessageData type__;
1664 : int type;
1665 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1666 0 : mozilla::ipc::UnionTypeReadError("AsyncParentMessageData");
1667 0 : return false;
1668 : }
1669 : // Sentinel = 'AsyncParentMessageData'
1670 0 : if ((!((msg__)->ReadSentinel(iter__, 3809282103)))) {
1671 0 : mozilla::ipc::SentinelReadError("AsyncParentMessageData");
1672 0 : return false;
1673 : }
1674 :
1675 0 : switch (type) {
1676 : case type__::TOpNotifyNotUsed:
1677 : {
1678 0 : OpNotifyNotUsed tmp = OpNotifyNotUsed();
1679 0 : (*(v__)) = tmp;
1680 0 : if ((!(Read((&((v__)->get_OpNotifyNotUsed())), msg__, iter__)))) {
1681 0 : FatalError("Error deserializing Union type");
1682 0 : return false;
1683 : }
1684 : // Sentinel = 'TOpNotifyNotUsed'
1685 0 : if ((!((msg__)->ReadSentinel(iter__, 2920493638)))) {
1686 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1687 0 : return false;
1688 : }
1689 0 : return true;
1690 : }
1691 : default:
1692 : {
1693 0 : FatalError("unknown union type");
1694 0 : return false;
1695 : }
1696 : }
1697 : }
1698 :
1699 0 : auto PVRManagerChild::Write(
1700 : const SurfaceDescriptorBuffer& v__,
1701 : Message* msg__) -> void
1702 : {
1703 0 : Write((v__).desc(), msg__);
1704 : // Sentinel = 'desc'
1705 0 : (msg__)->WriteSentinel(3761872479);
1706 0 : Write((v__).data(), msg__);
1707 : // Sentinel = 'data'
1708 0 : (msg__)->WriteSentinel(843352540);
1709 0 : }
1710 :
1711 0 : auto PVRManagerChild::Read(
1712 : SurfaceDescriptorBuffer* v__,
1713 : const Message* msg__,
1714 : PickleIterator* iter__) -> bool
1715 : {
1716 0 : if ((!(Read((&((v__)->desc())), msg__, iter__)))) {
1717 0 : FatalError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
1718 0 : return false;
1719 : }
1720 : // Sentinel = 'desc'
1721 0 : if ((!((msg__)->ReadSentinel(iter__, 3761872479)))) {
1722 0 : mozilla::ipc::SentinelReadError("Error deserializing 'desc' (BufferDescriptor) member of 'SurfaceDescriptorBuffer'");
1723 0 : return false;
1724 : }
1725 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
1726 0 : FatalError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
1727 0 : return false;
1728 : }
1729 : // Sentinel = 'data'
1730 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
1731 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (MemoryOrShmem) member of 'SurfaceDescriptorBuffer'");
1732 0 : return false;
1733 : }
1734 0 : return true;
1735 : }
1736 :
1737 0 : auto PVRManagerChild::Write(
1738 : const SurfaceDescriptorSharedGLTexture& v__,
1739 : Message* msg__) -> void
1740 : {
1741 0 : Write((v__).texture(), msg__);
1742 : // Sentinel = 'texture'
1743 0 : (msg__)->WriteSentinel(3654462510);
1744 0 : Write((v__).target(), msg__);
1745 : // Sentinel = 'target'
1746 0 : (msg__)->WriteSentinel(2226365285);
1747 0 : Write((v__).fence(), msg__);
1748 : // Sentinel = 'fence'
1749 0 : (msg__)->WriteSentinel(1225633926);
1750 0 : Write((v__).size(), msg__);
1751 : // Sentinel = 'size'
1752 0 : (msg__)->WriteSentinel(931048223);
1753 0 : Write((v__).hasAlpha(), msg__);
1754 : // Sentinel = 'hasAlpha'
1755 0 : (msg__)->WriteSentinel(309498444);
1756 0 : }
1757 :
1758 0 : auto PVRManagerChild::Read(
1759 : SurfaceDescriptorSharedGLTexture* v__,
1760 : const Message* msg__,
1761 : PickleIterator* iter__) -> bool
1762 : {
1763 0 : if ((!(Read((&((v__)->texture())), msg__, iter__)))) {
1764 0 : FatalError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1765 0 : return false;
1766 : }
1767 : // Sentinel = 'texture'
1768 0 : if ((!((msg__)->ReadSentinel(iter__, 3654462510)))) {
1769 0 : mozilla::ipc::SentinelReadError("Error deserializing 'texture' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1770 0 : return false;
1771 : }
1772 0 : if ((!(Read((&((v__)->target())), msg__, iter__)))) {
1773 0 : FatalError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1774 0 : return false;
1775 : }
1776 : // Sentinel = 'target'
1777 0 : if ((!((msg__)->ReadSentinel(iter__, 2226365285)))) {
1778 0 : mozilla::ipc::SentinelReadError("Error deserializing 'target' (uint32_t) member of 'SurfaceDescriptorSharedGLTexture'");
1779 0 : return false;
1780 : }
1781 0 : if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
1782 0 : FatalError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
1783 0 : return false;
1784 : }
1785 : // Sentinel = 'fence'
1786 0 : if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
1787 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'SurfaceDescriptorSharedGLTexture'");
1788 0 : return false;
1789 : }
1790 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1791 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
1792 0 : return false;
1793 : }
1794 : // Sentinel = 'size'
1795 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1796 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorSharedGLTexture'");
1797 0 : return false;
1798 : }
1799 0 : if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
1800 0 : FatalError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
1801 0 : return false;
1802 : }
1803 : // Sentinel = 'hasAlpha'
1804 0 : if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
1805 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'SurfaceDescriptorSharedGLTexture'");
1806 0 : return false;
1807 : }
1808 0 : return true;
1809 : }
1810 :
1811 0 : auto PVRManagerChild::Write(
1812 : const SurfaceDescriptorGPUVideo& v__,
1813 : Message* msg__) -> void
1814 : {
1815 0 : Write((v__).handle(), msg__);
1816 : // Sentinel = 'handle'
1817 0 : (msg__)->WriteSentinel(453975108);
1818 0 : }
1819 :
1820 0 : auto PVRManagerChild::Read(
1821 : SurfaceDescriptorGPUVideo* v__,
1822 : const Message* msg__,
1823 : PickleIterator* iter__) -> bool
1824 : {
1825 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1826 0 : FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
1827 0 : return false;
1828 : }
1829 : // Sentinel = 'handle'
1830 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1831 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceDescriptorGPUVideo'");
1832 0 : return false;
1833 : }
1834 0 : return true;
1835 : }
1836 :
1837 0 : auto PVRManagerChild::Write(
1838 : const SurfaceDescriptorD3D10& v__,
1839 : Message* msg__) -> void
1840 : {
1841 0 : Write((v__).handle(), msg__);
1842 : // Sentinel = 'handle'
1843 0 : (msg__)->WriteSentinel(453975108);
1844 0 : Write((v__).format(), msg__);
1845 : // Sentinel = 'format'
1846 0 : (msg__)->WriteSentinel(2052265543);
1847 0 : Write((v__).size(), msg__);
1848 : // Sentinel = 'size'
1849 0 : (msg__)->WriteSentinel(931048223);
1850 0 : }
1851 :
1852 0 : auto PVRManagerChild::Read(
1853 : SurfaceDescriptorD3D10* v__,
1854 : const Message* msg__,
1855 : PickleIterator* iter__) -> bool
1856 : {
1857 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
1858 0 : FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
1859 0 : return false;
1860 : }
1861 : // Sentinel = 'handle'
1862 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
1863 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorD3D10'");
1864 0 : return false;
1865 : }
1866 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
1867 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
1868 0 : return false;
1869 : }
1870 : // Sentinel = 'format'
1871 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
1872 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorD3D10'");
1873 0 : return false;
1874 : }
1875 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1876 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
1877 0 : return false;
1878 : }
1879 : // Sentinel = 'size'
1880 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1881 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorD3D10'");
1882 0 : return false;
1883 : }
1884 0 : return true;
1885 : }
1886 :
1887 0 : auto PVRManagerChild::Write(
1888 : const GamepadRemoved& v__,
1889 : Message* msg__) -> void
1890 : {
1891 0 : Write((v__).index(), msg__);
1892 : // Sentinel = 'index'
1893 0 : (msg__)->WriteSentinel(2111871137);
1894 0 : Write((v__).service_type(), msg__);
1895 : // Sentinel = 'service_type'
1896 0 : (msg__)->WriteSentinel(269243832);
1897 0 : }
1898 :
1899 0 : auto PVRManagerChild::Read(
1900 : GamepadRemoved* v__,
1901 : const Message* msg__,
1902 : PickleIterator* iter__) -> bool
1903 : {
1904 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
1905 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadRemoved'");
1906 0 : return false;
1907 : }
1908 : // Sentinel = 'index'
1909 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
1910 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadRemoved'");
1911 0 : return false;
1912 : }
1913 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
1914 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadRemoved'");
1915 0 : return false;
1916 : }
1917 : // Sentinel = 'service_type'
1918 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
1919 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadRemoved'");
1920 0 : return false;
1921 : }
1922 0 : return true;
1923 : }
1924 :
1925 0 : auto PVRManagerChild::Write(
1926 : const nsTArray<AsyncParentMessageData>& v__,
1927 : Message* msg__) -> void
1928 : {
1929 0 : uint32_t length = (v__).Length();
1930 0 : Write(length, msg__);
1931 : // Sentinel = ('length', 'AsyncParentMessageData[]')
1932 0 : (msg__)->WriteSentinel(3866187970);
1933 :
1934 0 : for (auto& elem : v__) {
1935 0 : Write(elem, msg__);
1936 : // Sentinel = 'AsyncParentMessageData[]'
1937 0 : (msg__)->WriteSentinel(4194735789);
1938 : }
1939 0 : }
1940 :
1941 0 : auto PVRManagerChild::Read(
1942 : nsTArray<AsyncParentMessageData>* v__,
1943 : const Message* msg__,
1944 : PickleIterator* iter__) -> bool
1945 : {
1946 0 : nsTArray<AsyncParentMessageData> fa;
1947 : uint32_t length;
1948 0 : if ((!(Read((&(length)), msg__, iter__)))) {
1949 0 : mozilla::ipc::ArrayLengthReadError("AsyncParentMessageData[]");
1950 0 : return false;
1951 : }
1952 : // Sentinel = ('length', 'AsyncParentMessageData[]')
1953 0 : if ((!((msg__)->ReadSentinel(iter__, 3866187970)))) {
1954 0 : mozilla::ipc::SentinelReadError("AsyncParentMessageData[]");
1955 0 : return false;
1956 : }
1957 :
1958 0 : AsyncParentMessageData* elems = (fa).AppendElements(length);
1959 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
1960 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
1961 0 : FatalError("Error deserializing 'AsyncParentMessageData[i]'");
1962 0 : return false;
1963 : }
1964 : // Sentinel = 'AsyncParentMessageData[]'
1965 0 : if ((!((msg__)->ReadSentinel(iter__, 4194735789)))) {
1966 0 : mozilla::ipc::SentinelReadError("Error deserializing 'AsyncParentMessageData[i]'");
1967 0 : return false;
1968 : }
1969 : }
1970 0 : (v__)->SwapElements(fa);
1971 0 : return true;
1972 : }
1973 :
1974 0 : auto PVRManagerChild::Write(
1975 : const OpNotifyNotUsed& v__,
1976 : Message* msg__) -> void
1977 : {
1978 0 : Write((v__).TextureId(), msg__);
1979 : // Sentinel = 'TextureId'
1980 0 : (msg__)->WriteSentinel(2545498075);
1981 0 : Write((v__).fwdTransactionId(), msg__);
1982 : // Sentinel = 'fwdTransactionId'
1983 0 : (msg__)->WriteSentinel(2023976742);
1984 0 : }
1985 :
1986 0 : auto PVRManagerChild::Read(
1987 : OpNotifyNotUsed* v__,
1988 : const Message* msg__,
1989 : PickleIterator* iter__) -> bool
1990 : {
1991 0 : if ((!(Read((&((v__)->TextureId())), msg__, iter__)))) {
1992 0 : FatalError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
1993 0 : return false;
1994 : }
1995 : // Sentinel = 'TextureId'
1996 0 : if ((!((msg__)->ReadSentinel(iter__, 2545498075)))) {
1997 0 : mozilla::ipc::SentinelReadError("Error deserializing 'TextureId' (uint64_t) member of 'OpNotifyNotUsed'");
1998 0 : return false;
1999 : }
2000 0 : if ((!(Read((&((v__)->fwdTransactionId())), msg__, iter__)))) {
2001 0 : FatalError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
2002 0 : return false;
2003 : }
2004 : // Sentinel = 'fwdTransactionId'
2005 0 : if ((!((msg__)->ReadSentinel(iter__, 2023976742)))) {
2006 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fwdTransactionId' (uint64_t) member of 'OpNotifyNotUsed'");
2007 0 : return false;
2008 : }
2009 0 : return true;
2010 : }
2011 :
2012 0 : auto PVRManagerChild::Write(
2013 : const SurfaceDescriptorFileMapping& v__,
2014 : Message* msg__) -> void
2015 : {
2016 0 : Write((v__).handle(), msg__);
2017 : // Sentinel = 'handle'
2018 0 : (msg__)->WriteSentinel(453975108);
2019 0 : Write((v__).format(), msg__);
2020 : // Sentinel = 'format'
2021 0 : (msg__)->WriteSentinel(2052265543);
2022 0 : Write((v__).size(), msg__);
2023 : // Sentinel = 'size'
2024 0 : (msg__)->WriteSentinel(931048223);
2025 0 : }
2026 :
2027 0 : auto PVRManagerChild::Read(
2028 : SurfaceDescriptorFileMapping* v__,
2029 : const Message* msg__,
2030 : PickleIterator* iter__) -> bool
2031 : {
2032 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
2033 0 : FatalError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
2034 0 : return false;
2035 : }
2036 : // Sentinel = 'handle'
2037 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
2038 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (WindowsHandle) member of 'SurfaceDescriptorFileMapping'");
2039 0 : return false;
2040 : }
2041 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
2042 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
2043 0 : return false;
2044 : }
2045 : // Sentinel = 'format'
2046 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
2047 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'SurfaceDescriptorFileMapping'");
2048 0 : return false;
2049 : }
2050 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2051 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
2052 0 : return false;
2053 : }
2054 : // Sentinel = 'size'
2055 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2056 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorFileMapping'");
2057 0 : return false;
2058 : }
2059 0 : return true;
2060 : }
2061 :
2062 0 : auto PVRManagerChild::Write(
2063 : const SurfaceDescriptorDIB& v__,
2064 : Message* msg__) -> void
2065 : {
2066 0 : Write((v__).surface(), msg__);
2067 : // Sentinel = 'surface'
2068 0 : (msg__)->WriteSentinel(2386836878);
2069 0 : }
2070 :
2071 0 : auto PVRManagerChild::Read(
2072 : SurfaceDescriptorDIB* v__,
2073 : const Message* msg__,
2074 : PickleIterator* iter__) -> bool
2075 : {
2076 0 : if ((!(Read((&((v__)->surface())), msg__, iter__)))) {
2077 0 : FatalError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
2078 0 : return false;
2079 : }
2080 : // Sentinel = 'surface'
2081 0 : if ((!((msg__)->ReadSentinel(iter__, 2386836878)))) {
2082 0 : mozilla::ipc::SentinelReadError("Error deserializing 'surface' (uintptr_t) member of 'SurfaceDescriptorDIB'");
2083 0 : return false;
2084 : }
2085 0 : return true;
2086 : }
2087 :
2088 0 : auto PVRManagerChild::Write(
2089 : const GamepadAxisInformation& v__,
2090 : Message* msg__) -> void
2091 : {
2092 0 : Write((v__).index(), msg__);
2093 : // Sentinel = 'index'
2094 0 : (msg__)->WriteSentinel(2111871137);
2095 0 : Write((v__).service_type(), msg__);
2096 : // Sentinel = 'service_type'
2097 0 : (msg__)->WriteSentinel(269243832);
2098 0 : Write((v__).axis(), msg__);
2099 : // Sentinel = 'axis'
2100 0 : (msg__)->WriteSentinel(102928799);
2101 0 : Write((v__).value(), msg__);
2102 : // Sentinel = 'value'
2103 0 : (msg__)->WriteSentinel(3456818542);
2104 0 : }
2105 :
2106 0 : auto PVRManagerChild::Read(
2107 : GamepadAxisInformation* v__,
2108 : const Message* msg__,
2109 : PickleIterator* iter__) -> bool
2110 : {
2111 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
2112 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadAxisInformation'");
2113 0 : return false;
2114 : }
2115 : // Sentinel = 'index'
2116 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
2117 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadAxisInformation'");
2118 0 : return false;
2119 : }
2120 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
2121 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAxisInformation'");
2122 0 : return false;
2123 : }
2124 : // Sentinel = 'service_type'
2125 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
2126 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAxisInformation'");
2127 0 : return false;
2128 : }
2129 0 : if ((!(Read((&((v__)->axis())), msg__, iter__)))) {
2130 0 : FatalError("Error deserializing 'axis' (uint32_t) member of 'GamepadAxisInformation'");
2131 0 : return false;
2132 : }
2133 : // Sentinel = 'axis'
2134 0 : if ((!((msg__)->ReadSentinel(iter__, 102928799)))) {
2135 0 : mozilla::ipc::SentinelReadError("Error deserializing 'axis' (uint32_t) member of 'GamepadAxisInformation'");
2136 0 : return false;
2137 : }
2138 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2139 0 : FatalError("Error deserializing 'value' (double) member of 'GamepadAxisInformation'");
2140 0 : return false;
2141 : }
2142 : // Sentinel = 'value'
2143 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2144 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (double) member of 'GamepadAxisInformation'");
2145 0 : return false;
2146 : }
2147 0 : return true;
2148 : }
2149 :
2150 0 : auto PVRManagerChild::Write(
2151 : const GamepadAdded& v__,
2152 : Message* msg__) -> void
2153 : {
2154 0 : Write((v__).id(), msg__);
2155 : // Sentinel = 'id'
2156 0 : (msg__)->WriteSentinel(2794505629);
2157 0 : Write((v__).index(), msg__);
2158 : // Sentinel = 'index'
2159 0 : (msg__)->WriteSentinel(2111871137);
2160 0 : Write((v__).mapping(), msg__);
2161 : // Sentinel = 'mapping'
2162 0 : (msg__)->WriteSentinel(601526733);
2163 0 : Write((v__).hand(), msg__);
2164 : // Sentinel = 'hand'
2165 0 : (msg__)->WriteSentinel(2604541391);
2166 0 : Write((v__).service_type(), msg__);
2167 : // Sentinel = 'service_type'
2168 0 : (msg__)->WriteSentinel(269243832);
2169 0 : Write((v__).num_buttons(), msg__);
2170 : // Sentinel = 'num_buttons'
2171 0 : (msg__)->WriteSentinel(1841626033);
2172 0 : Write((v__).num_axes(), msg__);
2173 : // Sentinel = 'num_axes'
2174 0 : (msg__)->WriteSentinel(2550850632);
2175 0 : Write((v__).num_haptics(), msg__);
2176 : // Sentinel = 'num_haptics'
2177 0 : (msg__)->WriteSentinel(3094951386);
2178 0 : }
2179 :
2180 0 : auto PVRManagerChild::Read(
2181 : GamepadAdded* v__,
2182 : const Message* msg__,
2183 : PickleIterator* iter__) -> bool
2184 : {
2185 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
2186 0 : FatalError("Error deserializing 'id' (nsString) member of 'GamepadAdded'");
2187 0 : return false;
2188 : }
2189 : // Sentinel = 'id'
2190 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
2191 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsString) member of 'GamepadAdded'");
2192 0 : return false;
2193 : }
2194 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
2195 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadAdded'");
2196 0 : return false;
2197 : }
2198 : // Sentinel = 'index'
2199 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
2200 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadAdded'");
2201 0 : return false;
2202 : }
2203 0 : if ((!(Read((&((v__)->mapping())), msg__, iter__)))) {
2204 0 : FatalError("Error deserializing 'mapping' (GamepadMappingType) member of 'GamepadAdded'");
2205 0 : return false;
2206 : }
2207 : // Sentinel = 'mapping'
2208 0 : if ((!((msg__)->ReadSentinel(iter__, 601526733)))) {
2209 0 : mozilla::ipc::SentinelReadError("Error deserializing 'mapping' (GamepadMappingType) member of 'GamepadAdded'");
2210 0 : return false;
2211 : }
2212 0 : if ((!(Read((&((v__)->hand())), msg__, iter__)))) {
2213 0 : FatalError("Error deserializing 'hand' (GamepadHand) member of 'GamepadAdded'");
2214 0 : return false;
2215 : }
2216 : // Sentinel = 'hand'
2217 0 : if ((!((msg__)->ReadSentinel(iter__, 2604541391)))) {
2218 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hand' (GamepadHand) member of 'GamepadAdded'");
2219 0 : return false;
2220 : }
2221 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
2222 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAdded'");
2223 0 : return false;
2224 : }
2225 : // Sentinel = 'service_type'
2226 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
2227 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadAdded'");
2228 0 : return false;
2229 : }
2230 0 : if ((!(Read((&((v__)->num_buttons())), msg__, iter__)))) {
2231 0 : FatalError("Error deserializing 'num_buttons' (uint32_t) member of 'GamepadAdded'");
2232 0 : return false;
2233 : }
2234 : // Sentinel = 'num_buttons'
2235 0 : if ((!((msg__)->ReadSentinel(iter__, 1841626033)))) {
2236 0 : mozilla::ipc::SentinelReadError("Error deserializing 'num_buttons' (uint32_t) member of 'GamepadAdded'");
2237 0 : return false;
2238 : }
2239 0 : if ((!(Read((&((v__)->num_axes())), msg__, iter__)))) {
2240 0 : FatalError("Error deserializing 'num_axes' (uint32_t) member of 'GamepadAdded'");
2241 0 : return false;
2242 : }
2243 : // Sentinel = 'num_axes'
2244 0 : if ((!((msg__)->ReadSentinel(iter__, 2550850632)))) {
2245 0 : mozilla::ipc::SentinelReadError("Error deserializing 'num_axes' (uint32_t) member of 'GamepadAdded'");
2246 0 : return false;
2247 : }
2248 0 : if ((!(Read((&((v__)->num_haptics())), msg__, iter__)))) {
2249 0 : FatalError("Error deserializing 'num_haptics' (uint32_t) member of 'GamepadAdded'");
2250 0 : return false;
2251 : }
2252 : // Sentinel = 'num_haptics'
2253 0 : if ((!((msg__)->ReadSentinel(iter__, 3094951386)))) {
2254 0 : mozilla::ipc::SentinelReadError("Error deserializing 'num_haptics' (uint32_t) member of 'GamepadAdded'");
2255 0 : return false;
2256 : }
2257 0 : return true;
2258 : }
2259 :
2260 0 : auto PVRManagerChild::Write(
2261 : const GamepadPoseInformation& v__,
2262 : Message* msg__) -> void
2263 : {
2264 0 : Write((v__).index(), msg__);
2265 : // Sentinel = 'index'
2266 0 : (msg__)->WriteSentinel(2111871137);
2267 0 : Write((v__).service_type(), msg__);
2268 : // Sentinel = 'service_type'
2269 0 : (msg__)->WriteSentinel(269243832);
2270 0 : Write((v__).pose_state(), msg__);
2271 : // Sentinel = 'pose_state'
2272 0 : (msg__)->WriteSentinel(489216835);
2273 0 : }
2274 :
2275 0 : auto PVRManagerChild::Read(
2276 : GamepadPoseInformation* v__,
2277 : const Message* msg__,
2278 : PickleIterator* iter__) -> bool
2279 : {
2280 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
2281 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadPoseInformation'");
2282 0 : return false;
2283 : }
2284 : // Sentinel = 'index'
2285 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
2286 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadPoseInformation'");
2287 0 : return false;
2288 : }
2289 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
2290 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadPoseInformation'");
2291 0 : return false;
2292 : }
2293 : // Sentinel = 'service_type'
2294 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
2295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadPoseInformation'");
2296 0 : return false;
2297 : }
2298 0 : if ((!(Read((&((v__)->pose_state())), msg__, iter__)))) {
2299 0 : FatalError("Error deserializing 'pose_state' (GamepadPoseState) member of 'GamepadPoseInformation'");
2300 0 : return false;
2301 : }
2302 : // Sentinel = 'pose_state'
2303 0 : if ((!((msg__)->ReadSentinel(iter__, 489216835)))) {
2304 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pose_state' (GamepadPoseState) member of 'GamepadPoseInformation'");
2305 0 : return false;
2306 : }
2307 0 : return true;
2308 : }
2309 :
2310 0 : auto PVRManagerChild::Write(
2311 : const EGLImageDescriptor& v__,
2312 : Message* msg__) -> void
2313 : {
2314 0 : Write((v__).image(), msg__);
2315 : // Sentinel = 'image'
2316 0 : (msg__)->WriteSentinel(103190282);
2317 0 : Write((v__).fence(), msg__);
2318 : // Sentinel = 'fence'
2319 0 : (msg__)->WriteSentinel(1225633926);
2320 0 : Write((v__).size(), msg__);
2321 : // Sentinel = 'size'
2322 0 : (msg__)->WriteSentinel(931048223);
2323 0 : Write((v__).hasAlpha(), msg__);
2324 : // Sentinel = 'hasAlpha'
2325 0 : (msg__)->WriteSentinel(309498444);
2326 0 : }
2327 :
2328 0 : auto PVRManagerChild::Read(
2329 : EGLImageDescriptor* v__,
2330 : const Message* msg__,
2331 : PickleIterator* iter__) -> bool
2332 : {
2333 0 : if ((!(Read((&((v__)->image())), msg__, iter__)))) {
2334 0 : FatalError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
2335 0 : return false;
2336 : }
2337 : // Sentinel = 'image'
2338 0 : if ((!((msg__)->ReadSentinel(iter__, 103190282)))) {
2339 0 : mozilla::ipc::SentinelReadError("Error deserializing 'image' (uintptr_t) member of 'EGLImageDescriptor'");
2340 0 : return false;
2341 : }
2342 0 : if ((!(Read((&((v__)->fence())), msg__, iter__)))) {
2343 0 : FatalError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
2344 0 : return false;
2345 : }
2346 : // Sentinel = 'fence'
2347 0 : if ((!((msg__)->ReadSentinel(iter__, 1225633926)))) {
2348 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fence' (uintptr_t) member of 'EGLImageDescriptor'");
2349 0 : return false;
2350 : }
2351 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2352 0 : FatalError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
2353 0 : return false;
2354 : }
2355 : // Sentinel = 'size'
2356 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2357 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'EGLImageDescriptor'");
2358 0 : return false;
2359 : }
2360 0 : if ((!(Read((&((v__)->hasAlpha())), msg__, iter__)))) {
2361 0 : FatalError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
2362 0 : return false;
2363 : }
2364 : // Sentinel = 'hasAlpha'
2365 0 : if ((!((msg__)->ReadSentinel(iter__, 309498444)))) {
2366 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasAlpha' (bool) member of 'EGLImageDescriptor'");
2367 0 : return false;
2368 : }
2369 0 : return true;
2370 : }
2371 :
2372 0 : auto PVRManagerChild::Write(
2373 : const RGBDescriptor& v__,
2374 : Message* msg__) -> void
2375 : {
2376 0 : Write((v__).size(), msg__);
2377 : // Sentinel = 'size'
2378 0 : (msg__)->WriteSentinel(931048223);
2379 0 : Write((v__).format(), msg__);
2380 : // Sentinel = 'format'
2381 0 : (msg__)->WriteSentinel(2052265543);
2382 0 : Write((v__).hasIntermediateBuffer(), msg__);
2383 : // Sentinel = 'hasIntermediateBuffer'
2384 0 : (msg__)->WriteSentinel(985857996);
2385 0 : }
2386 :
2387 0 : auto PVRManagerChild::Read(
2388 : RGBDescriptor* v__,
2389 : const Message* msg__,
2390 : PickleIterator* iter__) -> bool
2391 : {
2392 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2393 0 : FatalError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
2394 0 : return false;
2395 : }
2396 : // Sentinel = 'size'
2397 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2398 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'RGBDescriptor'");
2399 0 : return false;
2400 : }
2401 0 : if ((!(Read((&((v__)->format())), msg__, iter__)))) {
2402 0 : FatalError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
2403 0 : return false;
2404 : }
2405 : // Sentinel = 'format'
2406 0 : if ((!((msg__)->ReadSentinel(iter__, 2052265543)))) {
2407 0 : mozilla::ipc::SentinelReadError("Error deserializing 'format' (SurfaceFormat) member of 'RGBDescriptor'");
2408 0 : return false;
2409 : }
2410 0 : if ((!(Read((&((v__)->hasIntermediateBuffer())), msg__, iter__)))) {
2411 0 : FatalError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
2412 0 : return false;
2413 : }
2414 : // Sentinel = 'hasIntermediateBuffer'
2415 0 : if ((!((msg__)->ReadSentinel(iter__, 985857996)))) {
2416 0 : mozilla::ipc::SentinelReadError("Error deserializing 'hasIntermediateBuffer' (bool) member of 'RGBDescriptor'");
2417 0 : return false;
2418 : }
2419 0 : return true;
2420 : }
2421 :
2422 0 : auto PVRManagerChild::Write(
2423 : const SurfaceDescriptorDXGIYCbCr& v__,
2424 : Message* msg__) -> void
2425 : {
2426 0 : Write((v__).handleY(), msg__);
2427 : // Sentinel = 'handleY'
2428 0 : (msg__)->WriteSentinel(2719705368);
2429 0 : Write((v__).handleCb(), msg__);
2430 : // Sentinel = 'handleCb'
2431 0 : (msg__)->WriteSentinel(2777335333);
2432 0 : Write((v__).handleCr(), msg__);
2433 : // Sentinel = 'handleCr'
2434 0 : (msg__)->WriteSentinel(2777335349);
2435 0 : Write((v__).size(), msg__);
2436 : // Sentinel = 'size'
2437 0 : (msg__)->WriteSentinel(931048223);
2438 0 : Write((v__).sizeY(), msg__);
2439 : // Sentinel = 'sizeY'
2440 0 : (msg__)->WriteSentinel(886619725);
2441 0 : Write((v__).sizeCbCr(), msg__);
2442 : // Sentinel = 'sizeCbCr'
2443 0 : (msg__)->WriteSentinel(2196484423);
2444 0 : }
2445 :
2446 0 : auto PVRManagerChild::Read(
2447 : SurfaceDescriptorDXGIYCbCr* v__,
2448 : const Message* msg__,
2449 : PickleIterator* iter__) -> bool
2450 : {
2451 0 : if ((!(Read((&((v__)->handleY())), msg__, iter__)))) {
2452 0 : FatalError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2453 0 : return false;
2454 : }
2455 : // Sentinel = 'handleY'
2456 0 : if ((!((msg__)->ReadSentinel(iter__, 2719705368)))) {
2457 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleY' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2458 0 : return false;
2459 : }
2460 0 : if ((!(Read((&((v__)->handleCb())), msg__, iter__)))) {
2461 0 : FatalError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2462 0 : return false;
2463 : }
2464 : // Sentinel = 'handleCb'
2465 0 : if ((!((msg__)->ReadSentinel(iter__, 2777335333)))) {
2466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleCb' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2467 0 : return false;
2468 : }
2469 0 : if ((!(Read((&((v__)->handleCr())), msg__, iter__)))) {
2470 0 : FatalError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2471 0 : return false;
2472 : }
2473 : // Sentinel = 'handleCr'
2474 0 : if ((!((msg__)->ReadSentinel(iter__, 2777335349)))) {
2475 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handleCr' (WindowsHandle) member of 'SurfaceDescriptorDXGIYCbCr'");
2476 0 : return false;
2477 : }
2478 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2479 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2480 0 : return false;
2481 : }
2482 : // Sentinel = 'size'
2483 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2484 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2485 0 : return false;
2486 : }
2487 0 : if ((!(Read((&((v__)->sizeY())), msg__, iter__)))) {
2488 0 : FatalError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2489 0 : return false;
2490 : }
2491 : // Sentinel = 'sizeY'
2492 0 : if ((!((msg__)->ReadSentinel(iter__, 886619725)))) {
2493 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sizeY' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2494 0 : return false;
2495 : }
2496 0 : if ((!(Read((&((v__)->sizeCbCr())), msg__, iter__)))) {
2497 0 : FatalError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2498 0 : return false;
2499 : }
2500 : // Sentinel = 'sizeCbCr'
2501 0 : if ((!((msg__)->ReadSentinel(iter__, 2196484423)))) {
2502 0 : mozilla::ipc::SentinelReadError("Error deserializing 'sizeCbCr' (IntSize) member of 'SurfaceDescriptorDXGIYCbCr'");
2503 0 : return false;
2504 : }
2505 0 : return true;
2506 : }
2507 :
2508 0 : auto PVRManagerChild::Write(
2509 : const MemoryOrShmem& v__,
2510 : Message* msg__) -> void
2511 : {
2512 : typedef MemoryOrShmem type__;
2513 0 : Write(int((v__).type()), msg__);
2514 : // Sentinel = 'MemoryOrShmem'
2515 0 : (msg__)->WriteSentinel(3227621763);
2516 :
2517 0 : switch ((v__).type()) {
2518 : case type__::Tuintptr_t:
2519 : {
2520 0 : Write((v__).get_uintptr_t(), msg__);
2521 : // Sentinel = 'Tuintptr_t'
2522 0 : (msg__)->WriteSentinel(3218141805);
2523 0 : return;
2524 : }
2525 : case type__::TShmem:
2526 : {
2527 0 : Write((v__).get_Shmem(), msg__);
2528 : // Sentinel = 'TShmem'
2529 0 : (msg__)->WriteSentinel(3517971266);
2530 0 : return;
2531 : }
2532 : default:
2533 : {
2534 0 : FatalError("unknown union type");
2535 0 : return;
2536 : }
2537 : }
2538 : }
2539 :
2540 0 : auto PVRManagerChild::Read(
2541 : MemoryOrShmem* v__,
2542 : const Message* msg__,
2543 : PickleIterator* iter__) -> bool
2544 : {
2545 : typedef MemoryOrShmem type__;
2546 : int type;
2547 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2548 0 : mozilla::ipc::UnionTypeReadError("MemoryOrShmem");
2549 0 : return false;
2550 : }
2551 : // Sentinel = 'MemoryOrShmem'
2552 0 : if ((!((msg__)->ReadSentinel(iter__, 3227621763)))) {
2553 0 : mozilla::ipc::SentinelReadError("MemoryOrShmem");
2554 0 : return false;
2555 : }
2556 :
2557 0 : switch (type) {
2558 : case type__::Tuintptr_t:
2559 : {
2560 0 : uintptr_t tmp = uintptr_t();
2561 0 : (*(v__)) = tmp;
2562 0 : if ((!(Read((&((v__)->get_uintptr_t())), msg__, iter__)))) {
2563 0 : FatalError("Error deserializing Union type");
2564 0 : return false;
2565 : }
2566 : // Sentinel = 'Tuintptr_t'
2567 0 : if ((!((msg__)->ReadSentinel(iter__, 3218141805)))) {
2568 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2569 0 : return false;
2570 : }
2571 0 : return true;
2572 : }
2573 : case type__::TShmem:
2574 : {
2575 0 : Shmem tmp = Shmem();
2576 0 : (*(v__)) = tmp;
2577 0 : if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
2578 0 : FatalError("Error deserializing Union type");
2579 0 : return false;
2580 : }
2581 : // Sentinel = 'TShmem'
2582 0 : if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
2583 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2584 0 : return false;
2585 : }
2586 0 : return true;
2587 : }
2588 : default:
2589 : {
2590 0 : FatalError("unknown union type");
2591 0 : return false;
2592 : }
2593 : }
2594 : }
2595 :
2596 0 : auto PVRManagerChild::Write(
2597 : const GamepadButtonInformation& v__,
2598 : Message* msg__) -> void
2599 : {
2600 0 : Write((v__).index(), msg__);
2601 : // Sentinel = 'index'
2602 0 : (msg__)->WriteSentinel(2111871137);
2603 0 : Write((v__).service_type(), msg__);
2604 : // Sentinel = 'service_type'
2605 0 : (msg__)->WriteSentinel(269243832);
2606 0 : Write((v__).button(), msg__);
2607 : // Sentinel = 'button'
2608 0 : (msg__)->WriteSentinel(1861990506);
2609 0 : Write((v__).value(), msg__);
2610 : // Sentinel = 'value'
2611 0 : (msg__)->WriteSentinel(3456818542);
2612 0 : Write((v__).pressed(), msg__);
2613 : // Sentinel = 'pressed'
2614 0 : (msg__)->WriteSentinel(2165052789);
2615 0 : Write((v__).touched(), msg__);
2616 : // Sentinel = 'touched'
2617 0 : (msg__)->WriteSentinel(1674937397);
2618 0 : }
2619 :
2620 0 : auto PVRManagerChild::Read(
2621 : GamepadButtonInformation* v__,
2622 : const Message* msg__,
2623 : PickleIterator* iter__) -> bool
2624 : {
2625 0 : if ((!(Read((&((v__)->index())), msg__, iter__)))) {
2626 0 : FatalError("Error deserializing 'index' (uint32_t) member of 'GamepadButtonInformation'");
2627 0 : return false;
2628 : }
2629 : // Sentinel = 'index'
2630 0 : if ((!((msg__)->ReadSentinel(iter__, 2111871137)))) {
2631 0 : mozilla::ipc::SentinelReadError("Error deserializing 'index' (uint32_t) member of 'GamepadButtonInformation'");
2632 0 : return false;
2633 : }
2634 0 : if ((!(Read((&((v__)->service_type())), msg__, iter__)))) {
2635 0 : FatalError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadButtonInformation'");
2636 0 : return false;
2637 : }
2638 : // Sentinel = 'service_type'
2639 0 : if ((!((msg__)->ReadSentinel(iter__, 269243832)))) {
2640 0 : mozilla::ipc::SentinelReadError("Error deserializing 'service_type' (GamepadServiceType) member of 'GamepadButtonInformation'");
2641 0 : return false;
2642 : }
2643 0 : if ((!(Read((&((v__)->button())), msg__, iter__)))) {
2644 0 : FatalError("Error deserializing 'button' (uint32_t) member of 'GamepadButtonInformation'");
2645 0 : return false;
2646 : }
2647 : // Sentinel = 'button'
2648 0 : if ((!((msg__)->ReadSentinel(iter__, 1861990506)))) {
2649 0 : mozilla::ipc::SentinelReadError("Error deserializing 'button' (uint32_t) member of 'GamepadButtonInformation'");
2650 0 : return false;
2651 : }
2652 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2653 0 : FatalError("Error deserializing 'value' (double) member of 'GamepadButtonInformation'");
2654 0 : return false;
2655 : }
2656 : // Sentinel = 'value'
2657 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2658 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (double) member of 'GamepadButtonInformation'");
2659 0 : return false;
2660 : }
2661 0 : if ((!(Read((&((v__)->pressed())), msg__, iter__)))) {
2662 0 : FatalError("Error deserializing 'pressed' (bool) member of 'GamepadButtonInformation'");
2663 0 : return false;
2664 : }
2665 : // Sentinel = 'pressed'
2666 0 : if ((!((msg__)->ReadSentinel(iter__, 2165052789)))) {
2667 0 : mozilla::ipc::SentinelReadError("Error deserializing 'pressed' (bool) member of 'GamepadButtonInformation'");
2668 0 : return false;
2669 : }
2670 0 : if ((!(Read((&((v__)->touched())), msg__, iter__)))) {
2671 0 : FatalError("Error deserializing 'touched' (bool) member of 'GamepadButtonInformation'");
2672 0 : return false;
2673 : }
2674 : // Sentinel = 'touched'
2675 0 : if ((!((msg__)->ReadSentinel(iter__, 1674937397)))) {
2676 0 : mozilla::ipc::SentinelReadError("Error deserializing 'touched' (bool) member of 'GamepadButtonInformation'");
2677 0 : return false;
2678 : }
2679 0 : return true;
2680 : }
2681 :
2682 0 : auto PVRManagerChild::Write(
2683 : const PVRLayerChild* v__,
2684 : Message* msg__,
2685 : bool nullable__) -> void
2686 : {
2687 : int32_t id;
2688 0 : if ((!(v__))) {
2689 0 : if ((!(nullable__))) {
2690 0 : FatalError("NULL actor value passed to non-nullable param");
2691 : }
2692 0 : id = 0;
2693 : }
2694 : else {
2695 0 : id = (v__)->Id();
2696 0 : if ((1) == (id)) {
2697 0 : FatalError("actor has been |delete|d");
2698 : }
2699 : }
2700 :
2701 0 : Write(id, msg__);
2702 0 : }
2703 :
2704 0 : auto PVRManagerChild::Read(
2705 : PVRLayerChild** v__,
2706 : const Message* msg__,
2707 : PickleIterator* iter__,
2708 : bool nullable__) -> bool
2709 : {
2710 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PVRLayer", PVRLayerMsgStart);
2711 0 : if ((actor).isNothing()) {
2712 0 : return false;
2713 : }
2714 :
2715 0 : (*(v__)) = static_cast<PVRLayerChild*>((actor).value());
2716 0 : return true;
2717 : }
2718 :
2719 0 : auto PVRManagerChild::Write(
2720 : const SurfaceTextureDescriptor& v__,
2721 : Message* msg__) -> void
2722 : {
2723 0 : Write((v__).handle(), msg__);
2724 : // Sentinel = 'handle'
2725 0 : (msg__)->WriteSentinel(453975108);
2726 0 : Write((v__).size(), msg__);
2727 : // Sentinel = 'size'
2728 0 : (msg__)->WriteSentinel(931048223);
2729 0 : Write((v__).continuous(), msg__);
2730 : // Sentinel = 'continuous'
2731 0 : (msg__)->WriteSentinel(2103626571);
2732 0 : }
2733 :
2734 0 : auto PVRManagerChild::Read(
2735 : SurfaceTextureDescriptor* v__,
2736 : const Message* msg__,
2737 : PickleIterator* iter__) -> bool
2738 : {
2739 0 : if ((!(Read((&((v__)->handle())), msg__, iter__)))) {
2740 0 : FatalError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
2741 0 : return false;
2742 : }
2743 : // Sentinel = 'handle'
2744 0 : if ((!((msg__)->ReadSentinel(iter__, 453975108)))) {
2745 0 : mozilla::ipc::SentinelReadError("Error deserializing 'handle' (uint64_t) member of 'SurfaceTextureDescriptor'");
2746 0 : return false;
2747 : }
2748 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
2749 0 : FatalError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
2750 0 : return false;
2751 : }
2752 : // Sentinel = 'size'
2753 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
2754 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (IntSize) member of 'SurfaceTextureDescriptor'");
2755 0 : return false;
2756 : }
2757 0 : if ((!(Read((&((v__)->continuous())), msg__, iter__)))) {
2758 0 : FatalError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
2759 0 : return false;
2760 : }
2761 : // Sentinel = 'continuous'
2762 0 : if ((!((msg__)->ReadSentinel(iter__, 2103626571)))) {
2763 0 : mozilla::ipc::SentinelReadError("Error deserializing 'continuous' (bool) member of 'SurfaceTextureDescriptor'");
2764 0 : return false;
2765 : }
2766 0 : return true;
2767 : }
2768 :
2769 0 : auto PVRManagerChild::Write(
2770 : const GamepadChangeEvent& v__,
2771 : Message* msg__) -> void
2772 : {
2773 : typedef GamepadChangeEvent type__;
2774 0 : Write(int((v__).type()), msg__);
2775 : // Sentinel = 'GamepadChangeEvent'
2776 0 : (msg__)->WriteSentinel(1813664741);
2777 :
2778 0 : switch ((v__).type()) {
2779 : case type__::TGamepadAdded:
2780 : {
2781 0 : Write((v__).get_GamepadAdded(), msg__);
2782 : // Sentinel = 'TGamepadAdded'
2783 0 : (msg__)->WriteSentinel(1626343004);
2784 0 : return;
2785 : }
2786 : case type__::TGamepadRemoved:
2787 : {
2788 0 : Write((v__).get_GamepadRemoved(), msg__);
2789 : // Sentinel = 'TGamepadRemoved'
2790 0 : (msg__)->WriteSentinel(1094065728);
2791 0 : return;
2792 : }
2793 : case type__::TGamepadAxisInformation:
2794 : {
2795 0 : Write((v__).get_GamepadAxisInformation(), msg__);
2796 : // Sentinel = 'TGamepadAxisInformation'
2797 0 : (msg__)->WriteSentinel(3997305323);
2798 0 : return;
2799 : }
2800 : case type__::TGamepadButtonInformation:
2801 : {
2802 0 : Write((v__).get_GamepadButtonInformation(), msg__);
2803 : // Sentinel = 'TGamepadButtonInformation'
2804 0 : (msg__)->WriteSentinel(3941722656);
2805 0 : return;
2806 : }
2807 : case type__::TGamepadPoseInformation:
2808 : {
2809 0 : Write((v__).get_GamepadPoseInformation(), msg__);
2810 : // Sentinel = 'TGamepadPoseInformation'
2811 0 : (msg__)->WriteSentinel(1875822095);
2812 0 : return;
2813 : }
2814 : case type__::TGamepadHandInformation:
2815 : {
2816 0 : Write((v__).get_GamepadHandInformation(), msg__);
2817 : // Sentinel = 'TGamepadHandInformation'
2818 0 : (msg__)->WriteSentinel(393042503);
2819 0 : return;
2820 : }
2821 : default:
2822 : {
2823 0 : FatalError("unknown union type");
2824 0 : return;
2825 : }
2826 : }
2827 : }
2828 :
2829 0 : auto PVRManagerChild::Read(
2830 : GamepadChangeEvent* v__,
2831 : const Message* msg__,
2832 : PickleIterator* iter__) -> bool
2833 : {
2834 : typedef GamepadChangeEvent type__;
2835 : int type;
2836 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2837 0 : mozilla::ipc::UnionTypeReadError("GamepadChangeEvent");
2838 0 : return false;
2839 : }
2840 : // Sentinel = 'GamepadChangeEvent'
2841 0 : if ((!((msg__)->ReadSentinel(iter__, 1813664741)))) {
2842 0 : mozilla::ipc::SentinelReadError("GamepadChangeEvent");
2843 0 : return false;
2844 : }
2845 :
2846 0 : switch (type) {
2847 : case type__::TGamepadAdded:
2848 : {
2849 0 : GamepadAdded tmp = GamepadAdded();
2850 0 : (*(v__)) = tmp;
2851 0 : if ((!(Read((&((v__)->get_GamepadAdded())), msg__, iter__)))) {
2852 0 : FatalError("Error deserializing Union type");
2853 0 : return false;
2854 : }
2855 : // Sentinel = 'TGamepadAdded'
2856 0 : if ((!((msg__)->ReadSentinel(iter__, 1626343004)))) {
2857 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2858 0 : return false;
2859 : }
2860 0 : return true;
2861 : }
2862 : case type__::TGamepadRemoved:
2863 : {
2864 0 : GamepadRemoved tmp = GamepadRemoved();
2865 0 : (*(v__)) = tmp;
2866 0 : if ((!(Read((&((v__)->get_GamepadRemoved())), msg__, iter__)))) {
2867 0 : FatalError("Error deserializing Union type");
2868 0 : return false;
2869 : }
2870 : // Sentinel = 'TGamepadRemoved'
2871 0 : if ((!((msg__)->ReadSentinel(iter__, 1094065728)))) {
2872 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2873 0 : return false;
2874 : }
2875 0 : return true;
2876 : }
2877 : case type__::TGamepadAxisInformation:
2878 : {
2879 0 : GamepadAxisInformation tmp = GamepadAxisInformation();
2880 0 : (*(v__)) = tmp;
2881 0 : if ((!(Read((&((v__)->get_GamepadAxisInformation())), msg__, iter__)))) {
2882 0 : FatalError("Error deserializing Union type");
2883 0 : return false;
2884 : }
2885 : // Sentinel = 'TGamepadAxisInformation'
2886 0 : if ((!((msg__)->ReadSentinel(iter__, 3997305323)))) {
2887 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2888 0 : return false;
2889 : }
2890 0 : return true;
2891 : }
2892 : case type__::TGamepadButtonInformation:
2893 : {
2894 0 : GamepadButtonInformation tmp = GamepadButtonInformation();
2895 0 : (*(v__)) = tmp;
2896 0 : if ((!(Read((&((v__)->get_GamepadButtonInformation())), msg__, iter__)))) {
2897 0 : FatalError("Error deserializing Union type");
2898 0 : return false;
2899 : }
2900 : // Sentinel = 'TGamepadButtonInformation'
2901 0 : if ((!((msg__)->ReadSentinel(iter__, 3941722656)))) {
2902 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2903 0 : return false;
2904 : }
2905 0 : return true;
2906 : }
2907 : case type__::TGamepadPoseInformation:
2908 : {
2909 0 : GamepadPoseInformation tmp = GamepadPoseInformation();
2910 0 : (*(v__)) = tmp;
2911 0 : if ((!(Read((&((v__)->get_GamepadPoseInformation())), msg__, iter__)))) {
2912 0 : FatalError("Error deserializing Union type");
2913 0 : return false;
2914 : }
2915 : // Sentinel = 'TGamepadPoseInformation'
2916 0 : if ((!((msg__)->ReadSentinel(iter__, 1875822095)))) {
2917 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2918 0 : return false;
2919 : }
2920 0 : return true;
2921 : }
2922 : case type__::TGamepadHandInformation:
2923 : {
2924 0 : GamepadHandInformation tmp = GamepadHandInformation();
2925 0 : (*(v__)) = tmp;
2926 0 : if ((!(Read((&((v__)->get_GamepadHandInformation())), msg__, iter__)))) {
2927 0 : FatalError("Error deserializing Union type");
2928 0 : return false;
2929 : }
2930 : // Sentinel = 'TGamepadHandInformation'
2931 0 : if ((!((msg__)->ReadSentinel(iter__, 393042503)))) {
2932 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2933 0 : return false;
2934 : }
2935 0 : return true;
2936 : }
2937 : default:
2938 : {
2939 0 : FatalError("unknown union type");
2940 0 : return false;
2941 : }
2942 : }
2943 : }
2944 :
2945 0 : auto PVRManagerChild::Write(
2946 : const BufferDescriptor& v__,
2947 : Message* msg__) -> void
2948 : {
2949 : typedef BufferDescriptor type__;
2950 0 : Write(int((v__).type()), msg__);
2951 : // Sentinel = 'BufferDescriptor'
2952 0 : (msg__)->WriteSentinel(764535685);
2953 :
2954 0 : switch ((v__).type()) {
2955 : case type__::TRGBDescriptor:
2956 : {
2957 0 : Write((v__).get_RGBDescriptor(), msg__);
2958 : // Sentinel = 'TRGBDescriptor'
2959 0 : (msg__)->WriteSentinel(2888062100);
2960 0 : return;
2961 : }
2962 : case type__::TYCbCrDescriptor:
2963 : {
2964 0 : Write((v__).get_YCbCrDescriptor(), msg__);
2965 : // Sentinel = 'TYCbCrDescriptor'
2966 0 : (msg__)->WriteSentinel(3533945878);
2967 0 : return;
2968 : }
2969 : default:
2970 : {
2971 0 : FatalError("unknown union type");
2972 0 : return;
2973 : }
2974 : }
2975 : }
2976 :
2977 0 : auto PVRManagerChild::Read(
2978 : BufferDescriptor* v__,
2979 : const Message* msg__,
2980 : PickleIterator* iter__) -> bool
2981 : {
2982 : typedef BufferDescriptor type__;
2983 : int type;
2984 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2985 0 : mozilla::ipc::UnionTypeReadError("BufferDescriptor");
2986 0 : return false;
2987 : }
2988 : // Sentinel = 'BufferDescriptor'
2989 0 : if ((!((msg__)->ReadSentinel(iter__, 764535685)))) {
2990 0 : mozilla::ipc::SentinelReadError("BufferDescriptor");
2991 0 : return false;
2992 : }
2993 :
2994 0 : switch (type) {
2995 : case type__::TRGBDescriptor:
2996 : {
2997 0 : RGBDescriptor tmp = RGBDescriptor();
2998 0 : (*(v__)) = tmp;
2999 0 : if ((!(Read((&((v__)->get_RGBDescriptor())), msg__, iter__)))) {
3000 0 : FatalError("Error deserializing Union type");
3001 0 : return false;
3002 : }
3003 : // Sentinel = 'TRGBDescriptor'
3004 0 : if ((!((msg__)->ReadSentinel(iter__, 2888062100)))) {
3005 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3006 0 : return false;
3007 : }
3008 0 : return true;
3009 : }
3010 : case type__::TYCbCrDescriptor:
3011 : {
3012 0 : YCbCrDescriptor tmp = YCbCrDescriptor();
3013 0 : (*(v__)) = tmp;
3014 0 : if ((!(Read((&((v__)->get_YCbCrDescriptor())), msg__, iter__)))) {
3015 0 : FatalError("Error deserializing Union type");
3016 0 : return false;
3017 : }
3018 : // Sentinel = 'TYCbCrDescriptor'
3019 0 : if ((!((msg__)->ReadSentinel(iter__, 3533945878)))) {
3020 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3021 0 : return false;
3022 : }
3023 0 : return true;
3024 : }
3025 : default:
3026 : {
3027 0 : FatalError("unknown union type");
3028 0 : return false;
3029 : }
3030 : }
3031 : }
3032 :
3033 0 : auto PVRManagerChild::Write(
3034 : const PTextureChild* v__,
3035 : Message* msg__,
3036 : bool nullable__) -> void
3037 : {
3038 : int32_t id;
3039 0 : if ((!(v__))) {
3040 0 : if ((!(nullable__))) {
3041 0 : FatalError("NULL actor value passed to non-nullable param");
3042 : }
3043 0 : id = 0;
3044 : }
3045 : else {
3046 0 : id = (v__)->Id();
3047 0 : if ((1) == (id)) {
3048 0 : FatalError("actor has been |delete|d");
3049 : }
3050 : }
3051 :
3052 0 : Write(id, msg__);
3053 0 : }
3054 :
3055 0 : auto PVRManagerChild::Read(
3056 : PTextureChild** v__,
3057 : const Message* msg__,
3058 : PickleIterator* iter__,
3059 : bool nullable__) -> bool
3060 : {
3061 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PTexture", PTextureMsgStart);
3062 0 : if ((actor).isNothing()) {
3063 0 : return false;
3064 : }
3065 :
3066 0 : (*(v__)) = static_cast<PTextureChild*>((actor).value());
3067 0 : return true;
3068 : }
3069 :
3070 :
3071 :
3072 : } // namespace gfx
3073 : } // namespace mozilla
|