Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/layers/PUiCompositorControllerChild.h"
8 : #ifdef MOZ_CRASHREPORTER
9 : # include "nsXULAppAPI.h"
10 : #endif
11 :
12 :
13 : #include "nsIFile.h"
14 : #include "GeckoProfiler.h"
15 :
16 : namespace mozilla {
17 : namespace layers {
18 :
19 :
20 0 : auto PUiCompositorControllerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
21 : {
22 0 : }
23 :
24 0 : auto PUiCompositorControllerChild::ProcessingError(
25 : Result aCode,
26 : const char* aReason) -> void
27 : {
28 0 : }
29 :
30 0 : auto PUiCompositorControllerChild::ShouldContinueFromReplyTimeout() -> bool
31 : {
32 0 : return true;
33 : }
34 :
35 0 : auto PUiCompositorControllerChild::EnteredCxxStack() -> void
36 : {
37 0 : }
38 :
39 0 : auto PUiCompositorControllerChild::ExitedCxxStack() -> void
40 : {
41 0 : }
42 :
43 0 : auto PUiCompositorControllerChild::EnteredCall() -> void
44 : {
45 0 : }
46 :
47 0 : auto PUiCompositorControllerChild::ExitedCall() -> void
48 : {
49 0 : }
50 :
51 0 : MOZ_IMPLICIT PUiCompositorControllerChild::PUiCompositorControllerChild() :
52 : mozilla::ipc::IToplevelProtocol(PUiCompositorControllerMsgStart, mozilla::ipc::ChildSide),
53 : mChannel("PUiCompositorControllerChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
54 0 : mState(PUiCompositorController::__Start)
55 : {
56 0 : MOZ_COUNT_CTOR(PUiCompositorControllerChild);
57 0 : }
58 :
59 0 : PUiCompositorControllerChild::~PUiCompositorControllerChild()
60 : {
61 0 : MOZ_COUNT_DTOR(PUiCompositorControllerChild);
62 0 : }
63 :
64 0 : auto PUiCompositorControllerChild::SendPause() -> bool
65 : {
66 0 : IPC::Message* msg__ = PUiCompositorController::Msg_Pause(MSG_ROUTING_CONTROL);
67 :
68 :
69 0 : (msg__)->set_sync();
70 :
71 :
72 0 : Message reply__;
73 :
74 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
75 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
76 : }
77 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Pause", OTHER);
78 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_Pause__ID, (&(mState)));
79 :
80 : bool sendok__;
81 : {
82 : AutoProfilerTracing syncIPCTracer(
83 : "IPC",
84 0 : "PUiCompositorController::Msg_Pause");
85 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
86 : }
87 0 : if ((!(sendok__))) {
88 0 : return false;
89 : }
90 :
91 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
92 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
93 : }
94 :
95 0 : return true;
96 : }
97 :
98 0 : auto PUiCompositorControllerChild::SendResume() -> bool
99 : {
100 0 : IPC::Message* msg__ = PUiCompositorController::Msg_Resume(MSG_ROUTING_CONTROL);
101 :
102 :
103 0 : (msg__)->set_sync();
104 :
105 :
106 0 : Message reply__;
107 :
108 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
109 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
110 : }
111 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Resume", OTHER);
112 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_Resume__ID, (&(mState)));
113 :
114 : bool sendok__;
115 : {
116 : AutoProfilerTracing syncIPCTracer(
117 : "IPC",
118 0 : "PUiCompositorController::Msg_Resume");
119 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
120 : }
121 0 : if ((!(sendok__))) {
122 0 : return false;
123 : }
124 :
125 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
126 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
127 : }
128 :
129 0 : return true;
130 : }
131 :
132 0 : auto PUiCompositorControllerChild::SendResumeAndResize(
133 : const int32_t& aWidth,
134 : const int32_t& aHeight) -> bool
135 : {
136 0 : IPC::Message* msg__ = PUiCompositorController::Msg_ResumeAndResize(MSG_ROUTING_CONTROL);
137 :
138 0 : Write(aWidth, msg__);
139 : // Sentinel = 'aWidth'
140 0 : (msg__)->WriteSentinel(196646625);
141 0 : Write(aHeight, msg__);
142 : // Sentinel = 'aHeight'
143 0 : (msg__)->WriteSentinel(3588433859);
144 :
145 0 : (msg__)->set_sync();
146 :
147 :
148 0 : Message reply__;
149 :
150 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
151 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
152 : }
153 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ResumeAndResize", OTHER);
154 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_ResumeAndResize__ID, (&(mState)));
155 :
156 : bool sendok__;
157 : {
158 : AutoProfilerTracing syncIPCTracer(
159 : "IPC",
160 0 : "PUiCompositorController::Msg_ResumeAndResize");
161 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
162 : }
163 0 : if ((!(sendok__))) {
164 0 : return false;
165 : }
166 :
167 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
168 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
169 : }
170 :
171 0 : return true;
172 : }
173 :
174 0 : auto PUiCompositorControllerChild::SendInvalidateAndRender() -> bool
175 : {
176 0 : IPC::Message* msg__ = PUiCompositorController::Msg_InvalidateAndRender(MSG_ROUTING_CONTROL);
177 :
178 :
179 :
180 :
181 :
182 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
183 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
184 : }
185 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_InvalidateAndRender", OTHER);
186 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_InvalidateAndRender__ID, (&(mState)));
187 :
188 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
189 0 : return sendok__;
190 : }
191 :
192 0 : auto PUiCompositorControllerChild::SendMaxToolbarHeight(const int32_t& aHeight) -> bool
193 : {
194 0 : IPC::Message* msg__ = PUiCompositorController::Msg_MaxToolbarHeight(MSG_ROUTING_CONTROL);
195 :
196 0 : Write(aHeight, msg__);
197 : // Sentinel = 'aHeight'
198 0 : (msg__)->WriteSentinel(3588433859);
199 :
200 :
201 :
202 :
203 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
204 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
205 : }
206 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_MaxToolbarHeight", OTHER);
207 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_MaxToolbarHeight__ID, (&(mState)));
208 :
209 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
210 0 : return sendok__;
211 : }
212 :
213 0 : auto PUiCompositorControllerChild::SendPinned(
214 : const bool& aPinned,
215 : const int32_t& aReason) -> bool
216 : {
217 0 : IPC::Message* msg__ = PUiCompositorController::Msg_Pinned(MSG_ROUTING_CONTROL);
218 :
219 0 : Write(aPinned, msg__);
220 : // Sentinel = 'aPinned'
221 0 : (msg__)->WriteSentinel(1467325352);
222 0 : Write(aReason, msg__);
223 : // Sentinel = 'aReason'
224 0 : (msg__)->WriteSentinel(829905706);
225 :
226 :
227 :
228 :
229 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
230 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
231 : }
232 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_Pinned", OTHER);
233 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_Pinned__ID, (&(mState)));
234 :
235 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
236 0 : return sendok__;
237 : }
238 :
239 0 : auto PUiCompositorControllerChild::SendToolbarAnimatorMessageFromUI(const int32_t& aMessage) -> bool
240 : {
241 0 : IPC::Message* msg__ = PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI(MSG_ROUTING_CONTROL);
242 :
243 0 : Write(aMessage, msg__);
244 : // Sentinel = 'aMessage'
245 0 : (msg__)->WriteSentinel(3453110902);
246 :
247 :
248 :
249 :
250 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
251 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
252 : }
253 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI", OTHER);
254 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarAnimatorMessageFromUI__ID, (&(mState)));
255 :
256 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
257 0 : return sendok__;
258 : }
259 :
260 0 : auto PUiCompositorControllerChild::SendDefaultClearColor(const uint32_t& aColor) -> bool
261 : {
262 0 : IPC::Message* msg__ = PUiCompositorController::Msg_DefaultClearColor(MSG_ROUTING_CONTROL);
263 :
264 0 : Write(aColor, msg__);
265 : // Sentinel = 'aColor'
266 0 : (msg__)->WriteSentinel(1767069424);
267 :
268 :
269 :
270 :
271 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
272 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
273 : }
274 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_DefaultClearColor", OTHER);
275 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_DefaultClearColor__ID, (&(mState)));
276 :
277 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
278 0 : return sendok__;
279 : }
280 :
281 0 : auto PUiCompositorControllerChild::SendRequestScreenPixels() -> bool
282 : {
283 0 : IPC::Message* msg__ = PUiCompositorController::Msg_RequestScreenPixels(MSG_ROUTING_CONTROL);
284 :
285 :
286 :
287 :
288 :
289 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
290 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
291 : }
292 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_RequestScreenPixels", OTHER);
293 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_RequestScreenPixels__ID, (&(mState)));
294 :
295 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
296 0 : return sendok__;
297 : }
298 :
299 0 : auto PUiCompositorControllerChild::SendEnableLayerUpdateNotifications(const bool& aEnable) -> bool
300 : {
301 0 : IPC::Message* msg__ = PUiCompositorController::Msg_EnableLayerUpdateNotifications(MSG_ROUTING_CONTROL);
302 :
303 0 : Write(aEnable, msg__);
304 : // Sentinel = 'aEnable'
305 0 : (msg__)->WriteSentinel(163837555);
306 :
307 :
308 :
309 :
310 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
311 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
312 : }
313 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_EnableLayerUpdateNotifications", OTHER);
314 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_EnableLayerUpdateNotifications__ID, (&(mState)));
315 :
316 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
317 0 : return sendok__;
318 : }
319 :
320 0 : auto PUiCompositorControllerChild::SendToolbarPixelsToCompositor(
321 : Shmem& aMem,
322 : const ScreenIntSize& aSize) -> bool
323 : {
324 0 : IPC::Message* msg__ = PUiCompositorController::Msg_ToolbarPixelsToCompositor(MSG_ROUTING_CONTROL);
325 :
326 0 : Write(aMem, msg__);
327 : // Sentinel = 'aMem'
328 0 : (msg__)->WriteSentinel(3574578916);
329 0 : Write(aSize, msg__);
330 : // Sentinel = 'aSize'
331 0 : (msg__)->WriteSentinel(2556665555);
332 :
333 :
334 :
335 :
336 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
337 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
338 : }
339 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarPixelsToCompositor", OTHER);
340 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarPixelsToCompositor__ID, (&(mState)));
341 :
342 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
343 0 : return sendok__;
344 : }
345 :
346 0 : auto PUiCompositorControllerChild::GetIPCChannel() -> MessageChannel*
347 : {
348 0 : return (&(mChannel));
349 : }
350 :
351 0 : auto PUiCompositorControllerChild::GetIPCChannel() const -> const MessageChannel*
352 : {
353 0 : return (&(mChannel));
354 : }
355 :
356 0 : auto PUiCompositorControllerChild::RemoveManagee(
357 : int32_t aProtocolId,
358 : ProtocolBase* aListener) -> void
359 : {
360 0 : FatalError("unreached");
361 0 : return;
362 : }
363 :
364 0 : auto PUiCompositorControllerChild::OnMessageReceived(const Message& msg__) -> PUiCompositorControllerChild::Result
365 : {
366 0 : switch ((msg__).type()) {
367 : case PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor__ID:
368 : {
369 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
370 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
371 : }
372 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor", OTHER);
373 :
374 0 : PickleIterator iter__(msg__);
375 : int32_t aMessage;
376 :
377 0 : if ((!(Read((&(aMessage)), (&(msg__)), (&(iter__)))))) {
378 0 : FatalError("Error deserializing 'int32_t'");
379 0 : return MsgValueError;
380 : }
381 : // Sentinel = 'aMessage'
382 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) {
383 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
384 0 : return MsgValueError;
385 : }
386 0 : (msg__).EndRead(iter__, (msg__).type());
387 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_ToolbarAnimatorMessageFromCompositor__ID, (&(mState)));
388 0 : if ((!(RecvToolbarAnimatorMessageFromCompositor(mozilla::Move(aMessage))))) {
389 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
390 : // Error handled in mozilla::ipc::IPCResult
391 0 : return MsgProcessingError;
392 : }
393 :
394 0 : return MsgProcessed;
395 : }
396 : case PUiCompositorController::Msg_RootFrameMetrics__ID:
397 : {
398 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
399 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
400 : }
401 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_RootFrameMetrics", OTHER);
402 :
403 0 : PickleIterator iter__(msg__);
404 0 : ScreenPoint aScrollOffset;
405 0 : CSSToScreenScale aZoom;
406 :
407 0 : if ((!(Read((&(aScrollOffset)), (&(msg__)), (&(iter__)))))) {
408 0 : FatalError("Error deserializing 'ScreenPoint'");
409 0 : return MsgValueError;
410 : }
411 : // Sentinel = 'aScrollOffset'
412 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 380967954)))) {
413 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ScreenPoint'");
414 0 : return MsgValueError;
415 : }
416 0 : if ((!(Read((&(aZoom)), (&(msg__)), (&(iter__)))))) {
417 0 : FatalError("Error deserializing 'CSSToScreenScale'");
418 0 : return MsgValueError;
419 : }
420 : // Sentinel = 'aZoom'
421 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3288940929)))) {
422 0 : mozilla::ipc::SentinelReadError("Error deserializing 'CSSToScreenScale'");
423 0 : return MsgValueError;
424 : }
425 0 : (msg__).EndRead(iter__, (msg__).type());
426 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_RootFrameMetrics__ID, (&(mState)));
427 0 : if ((!(RecvRootFrameMetrics(mozilla::Move(aScrollOffset), mozilla::Move(aZoom))))) {
428 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
429 : // Error handled in mozilla::ipc::IPCResult
430 0 : return MsgProcessingError;
431 : }
432 :
433 0 : return MsgProcessed;
434 : }
435 : case PUiCompositorController::Msg_ScreenPixels__ID:
436 : {
437 0 : if (mozilla::ipc::LoggingEnabledFor("PUiCompositorControllerChild")) {
438 0 : mozilla::ipc::LogMessageForProtocol("PUiCompositorControllerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
439 : }
440 0 : AUTO_PROFILER_LABEL("PUiCompositorController::Msg_ScreenPixels", OTHER);
441 :
442 0 : PickleIterator iter__(msg__);
443 0 : Shmem aMem;
444 0 : ScreenIntSize aSize;
445 :
446 0 : if ((!(Read((&(aMem)), (&(msg__)), (&(iter__)))))) {
447 0 : FatalError("Error deserializing 'Shmem'");
448 0 : return MsgValueError;
449 : }
450 : // Sentinel = 'aMem'
451 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3574578916)))) {
452 0 : mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
453 0 : return MsgValueError;
454 : }
455 0 : if ((!(Read((&(aSize)), (&(msg__)), (&(iter__)))))) {
456 0 : FatalError("Error deserializing 'ScreenIntSize'");
457 0 : return MsgValueError;
458 : }
459 : // Sentinel = 'aSize'
460 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2556665555)))) {
461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ScreenIntSize'");
462 0 : return MsgValueError;
463 : }
464 0 : (msg__).EndRead(iter__, (msg__).type());
465 0 : PUiCompositorController::Transition(PUiCompositorController::Msg_ScreenPixels__ID, (&(mState)));
466 0 : if ((!(RecvScreenPixels(mozilla::Move(aMem), mozilla::Move(aSize))))) {
467 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
468 : // Error handled in mozilla::ipc::IPCResult
469 0 : return MsgProcessingError;
470 : }
471 :
472 0 : return MsgProcessed;
473 : }
474 : default:
475 : {
476 0 : return MsgNotKnown;
477 : }
478 : case SHMEM_CREATED_MESSAGE_TYPE:
479 : {
480 0 : if ((!(ShmemCreated(msg__)))) {
481 0 : return MsgPayloadError;
482 : }
483 0 : return MsgProcessed;
484 : }
485 : case SHMEM_DESTROYED_MESSAGE_TYPE:
486 : {
487 0 : if ((!(ShmemDestroyed(msg__)))) {
488 0 : return MsgPayloadError;
489 : }
490 0 : return MsgProcessed;
491 : }
492 : }
493 : }
494 :
495 0 : auto PUiCompositorControllerChild::OnMessageReceived(
496 : const Message& msg__,
497 : Message*& reply__) -> PUiCompositorControllerChild::Result
498 : {
499 0 : return MsgNotKnown;
500 : }
501 :
502 0 : auto PUiCompositorControllerChild::OnCallReceived(
503 : const Message& msg__,
504 : Message*& reply__) -> PUiCompositorControllerChild::Result
505 : {
506 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
507 : return MsgNotKnown;
508 : }
509 :
510 0 : auto PUiCompositorControllerChild::GetProtocolTypeId() -> int32_t
511 : {
512 0 : return PUiCompositorControllerMsgStart;
513 : }
514 :
515 0 : auto PUiCompositorControllerChild::OnChannelClose() -> void
516 : {
517 0 : DestroySubtree(NormalShutdown);
518 0 : DeallocSubtree();
519 0 : DeallocShmems();
520 0 : DeallocPUiCompositorControllerChild();
521 0 : }
522 :
523 0 : auto PUiCompositorControllerChild::OnChannelError() -> void
524 : {
525 0 : DestroySubtree(AbnormalShutdown);
526 0 : DeallocSubtree();
527 0 : DeallocShmems();
528 0 : DeallocPUiCompositorControllerChild();
529 0 : }
530 :
531 0 : auto PUiCompositorControllerChild::ProtocolName() const -> const char*
532 : {
533 0 : return "PUiCompositorControllerChild";
534 : }
535 :
536 0 : auto PUiCompositorControllerChild::DestroySubtree(ActorDestroyReason why) -> void
537 : {
538 : // Reject owning pending promises.
539 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
540 :
541 : // Finally, destroy "us".
542 0 : ActorDestroy(why);
543 0 : }
544 :
545 0 : auto PUiCompositorControllerChild::DeallocSubtree() -> void
546 : {
547 0 : }
548 :
549 0 : auto PUiCompositorControllerChild::DeallocPUiCompositorControllerChild() -> void
550 : {
551 0 : }
552 :
553 0 : auto PUiCompositorControllerChild::Write(
554 : Shmem& v__,
555 : Message* msg__) -> void
556 : {
557 0 : IPC::WriteParam(msg__, v__);
558 0 : (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
559 0 : (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
560 0 : }
561 :
562 0 : auto PUiCompositorControllerChild::Read(
563 : Shmem* v__,
564 : const Message* msg__,
565 : PickleIterator* iter__) -> bool
566 : {
567 0 : Shmem tmp;
568 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
569 0 : return false;
570 : }
571 :
572 0 : Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
573 0 : Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
574 0 : if (rawmem) {
575 0 : (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
576 0 : return true;
577 : }
578 0 : (*(v__)) = Shmem();
579 0 : return true;
580 : }
581 :
582 :
583 :
584 : } // namespace layers
585 : } // namespace mozilla
|