/work/obj-fuzz/ipc/ipdl/PLayerTransactionParent.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/layers/PLayerTransactionParent.h" |
8 | | #include "FrameMetrics.h" |
9 | | #include "ipc/IPCMessageUtils.h" |
10 | | #include "mozilla/layers/APZTestData.h" |
11 | | #include "mozilla/layers/CompositorTypes.h" |
12 | | |
13 | | #include "mozilla/layers/PCompositorBridgeParent.h" |
14 | | #include "mozilla/layout/PRenderFrameParent.h" |
15 | | #include "mozilla/layers/PTextureParent.h" |
16 | | |
17 | | #include "nsIFile.h" |
18 | | #include "GeckoProfiler.h" |
19 | | |
20 | | namespace mozilla { |
21 | | namespace layers { |
22 | | |
23 | | |
24 | | auto PLayerTransactionParent::ActorDestroy(ActorDestroyReason aWhy) -> void |
25 | 0 | { |
26 | 0 | } |
27 | | |
28 | | MOZ_IMPLICIT PLayerTransactionParent::PLayerTransactionParent() : |
29 | | mozilla::ipc::IProtocol(mozilla::ipc::ParentSide), |
30 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
31 | 0 | { |
32 | 0 | MOZ_COUNT_CTOR(PLayerTransactionParent); |
33 | 0 | } |
34 | | |
35 | | PLayerTransactionParent::~PLayerTransactionParent() |
36 | 0 | { |
37 | 0 | MOZ_COUNT_DTOR(PLayerTransactionParent); |
38 | 0 | } |
39 | | |
40 | | auto PLayerTransactionParent::Manager() const -> PCompositorBridgeParent* |
41 | 0 | { |
42 | 0 | return static_cast<PCompositorBridgeParent*>(IProtocol::Manager()); |
43 | 0 | } |
44 | | |
45 | | auto PLayerTransactionParent::Send__delete__(PLayerTransactionParent* actor) -> bool |
46 | 0 | { |
47 | 0 | if ((!(actor))) { |
48 | 0 | return false; |
49 | 0 | } |
50 | 0 | |
51 | 0 | IPC::Message* msg__ = PLayerTransaction::Msg___delete__((actor)->Id()); |
52 | 0 |
|
53 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
54 | 0 | WriteIPDLParam(msg__, actor, actor); |
55 | 0 | // Sentinel = 'actor' |
56 | 0 | (msg__)->WriteSentinel(875202478); |
57 | 0 |
|
58 | 0 |
|
59 | 0 |
|
60 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
61 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
62 | 0 | } |
63 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg___delete__", OTHER); |
64 | 0 | if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) { |
65 | 0 | mozilla::ipc::LogicError("Transition error"); |
66 | 0 | } |
67 | 0 |
|
68 | 0 | bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__); |
69 | 0 |
|
70 | 0 | IProtocol* mgr = (actor)->Manager(); |
71 | 0 | (actor)->DestroySubtree(Deletion); |
72 | 0 | (actor)->DeallocSubtree(); |
73 | 0 | (mgr)->RemoveManagee(PLayerTransactionMsgStart, actor); |
74 | 0 | return sendok__; |
75 | 0 | } |
76 | | |
77 | | auto PLayerTransactionParent::RemoveManagee( |
78 | | int32_t aProtocolId, |
79 | | IProtocol* aListener) -> void |
80 | 0 | { |
81 | 0 | FatalError("unreached"); |
82 | 0 | return; |
83 | 0 | } |
84 | | |
85 | | auto PLayerTransactionParent::OnMessageReceived(const Message& msg__) -> PLayerTransactionParent::Result |
86 | 0 | { |
87 | 0 | switch ((msg__).type()) { |
88 | 0 | case PLayerTransaction::Msg_Update__ID: |
89 | 0 | { |
90 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
91 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
92 | 0 | } |
93 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_Update", OTHER); |
94 | 0 |
|
95 | 0 | PickleIterator iter__(msg__); |
96 | 0 | TransactionInfo txn; |
97 | 0 |
|
98 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(txn)))))) { |
99 | 0 | FatalError("Error deserializing 'TransactionInfo'"); |
100 | 0 | return MsgValueError; |
101 | 0 | } |
102 | 0 | // Sentinel = 'txn' |
103 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 316309761)))) { |
104 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TransactionInfo'"); |
105 | 0 | return MsgValueError; |
106 | 0 | } |
107 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
108 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
109 | 0 | FatalError("Transition error"); |
110 | 0 | return MsgValueError; |
111 | 0 | } |
112 | 0 | if ((!(RecvUpdate(txn)))) { |
113 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
114 | 0 | // Error handled in mozilla::ipc::IPCResult |
115 | 0 | return MsgProcessingError; |
116 | 0 | } |
117 | 0 | |
118 | 0 | return MsgProcessed; |
119 | 0 | } |
120 | 0 | case PLayerTransaction::Msg_PaintTime__ID: |
121 | 0 | { |
122 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
123 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
124 | 0 | } |
125 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_PaintTime", OTHER); |
126 | 0 |
|
127 | 0 | PickleIterator iter__(msg__); |
128 | 0 | TransactionId id; |
129 | 0 | TimeDuration paintTime; |
130 | 0 |
|
131 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
132 | 0 | FatalError("Error deserializing 'TransactionId'"); |
133 | 0 | return MsgValueError; |
134 | 0 | } |
135 | 0 | // Sentinel = 'id' |
136 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
137 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TransactionId'"); |
138 | 0 | return MsgValueError; |
139 | 0 | } |
140 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(paintTime)))))) { |
141 | 0 | FatalError("Error deserializing 'TimeDuration'"); |
142 | 0 | return MsgValueError; |
143 | 0 | } |
144 | 0 | // Sentinel = 'paintTime' |
145 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2185917910)))) { |
146 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TimeDuration'"); |
147 | 0 | return MsgValueError; |
148 | 0 | } |
149 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
150 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
151 | 0 | FatalError("Transition error"); |
152 | 0 | return MsgValueError; |
153 | 0 | } |
154 | 0 | if ((!(RecvPaintTime(id, paintTime)))) { |
155 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
156 | 0 | // Error handled in mozilla::ipc::IPCResult |
157 | 0 | return MsgProcessingError; |
158 | 0 | } |
159 | 0 | |
160 | 0 | return MsgProcessed; |
161 | 0 | } |
162 | 0 | case PLayerTransaction::Msg_SetLayersObserverEpoch__ID: |
163 | 0 | { |
164 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
165 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
166 | 0 | } |
167 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetLayersObserverEpoch", OTHER); |
168 | 0 |
|
169 | 0 | PickleIterator iter__(msg__); |
170 | 0 | LayersObserverEpoch aChildEpoch; |
171 | 0 |
|
172 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aChildEpoch)))))) { |
173 | 0 | FatalError("Error deserializing 'LayersObserverEpoch'"); |
174 | 0 | return MsgValueError; |
175 | 0 | } |
176 | 0 | // Sentinel = 'aChildEpoch' |
177 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 206106979)))) { |
178 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayersObserverEpoch'"); |
179 | 0 | return MsgValueError; |
180 | 0 | } |
181 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
182 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
183 | 0 | FatalError("Transition error"); |
184 | 0 | return MsgValueError; |
185 | 0 | } |
186 | 0 | if ((!(RecvSetLayersObserverEpoch(aChildEpoch)))) { |
187 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
188 | 0 | // Error handled in mozilla::ipc::IPCResult |
189 | 0 | return MsgProcessingError; |
190 | 0 | } |
191 | 0 | |
192 | 0 | return MsgProcessed; |
193 | 0 | } |
194 | 0 | case PLayerTransaction::Msg_NewCompositable__ID: |
195 | 0 | { |
196 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
197 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
198 | 0 | } |
199 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_NewCompositable", OTHER); |
200 | 0 |
|
201 | 0 | PickleIterator iter__(msg__); |
202 | 0 | CompositableHandle handle; |
203 | 0 | TextureInfo info; |
204 | 0 |
|
205 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle)))))) { |
206 | 0 | FatalError("Error deserializing 'CompositableHandle'"); |
207 | 0 | return MsgValueError; |
208 | 0 | } |
209 | 0 | // Sentinel = 'handle' |
210 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 453975108)))) { |
211 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CompositableHandle'"); |
212 | 0 | return MsgValueError; |
213 | 0 | } |
214 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(info)))))) { |
215 | 0 | FatalError("Error deserializing 'TextureInfo'"); |
216 | 0 | return MsgValueError; |
217 | 0 | } |
218 | 0 | // Sentinel = 'info' |
219 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3750868832)))) { |
220 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TextureInfo'"); |
221 | 0 | return MsgValueError; |
222 | 0 | } |
223 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
224 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
225 | 0 | FatalError("Transition error"); |
226 | 0 | return MsgValueError; |
227 | 0 | } |
228 | 0 | if ((!(RecvNewCompositable(handle, info)))) { |
229 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
230 | 0 | // Error handled in mozilla::ipc::IPCResult |
231 | 0 | return MsgProcessingError; |
232 | 0 | } |
233 | 0 | |
234 | 0 | return MsgProcessed; |
235 | 0 | } |
236 | 0 | case PLayerTransaction::Msg_ReleaseLayer__ID: |
237 | 0 | { |
238 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
239 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
240 | 0 | } |
241 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ReleaseLayer", OTHER); |
242 | 0 |
|
243 | 0 | PickleIterator iter__(msg__); |
244 | 0 | LayerHandle layer; |
245 | 0 |
|
246 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(layer)))))) { |
247 | 0 | FatalError("Error deserializing 'LayerHandle'"); |
248 | 0 | return MsgValueError; |
249 | 0 | } |
250 | 0 | // Sentinel = 'layer' |
251 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1899167106)))) { |
252 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayerHandle'"); |
253 | 0 | return MsgValueError; |
254 | 0 | } |
255 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
256 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
257 | 0 | FatalError("Transition error"); |
258 | 0 | return MsgValueError; |
259 | 0 | } |
260 | 0 | if ((!(RecvReleaseLayer(layer)))) { |
261 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
262 | 0 | // Error handled in mozilla::ipc::IPCResult |
263 | 0 | return MsgProcessingError; |
264 | 0 | } |
265 | 0 | |
266 | 0 | return MsgProcessed; |
267 | 0 | } |
268 | 0 | case PLayerTransaction::Msg_ReleaseCompositable__ID: |
269 | 0 | { |
270 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
271 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
272 | 0 | } |
273 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ReleaseCompositable", OTHER); |
274 | 0 |
|
275 | 0 | PickleIterator iter__(msg__); |
276 | 0 | CompositableHandle compositable; |
277 | 0 |
|
278 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(compositable)))))) { |
279 | 0 | FatalError("Error deserializing 'CompositableHandle'"); |
280 | 0 | return MsgValueError; |
281 | 0 | } |
282 | 0 | // Sentinel = 'compositable' |
283 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4031958248)))) { |
284 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CompositableHandle'"); |
285 | 0 | return MsgValueError; |
286 | 0 | } |
287 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
288 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
289 | 0 | FatalError("Transition error"); |
290 | 0 | return MsgValueError; |
291 | 0 | } |
292 | 0 | if ((!(RecvReleaseCompositable(compositable)))) { |
293 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
294 | 0 | // Error handled in mozilla::ipc::IPCResult |
295 | 0 | return MsgProcessingError; |
296 | 0 | } |
297 | 0 | |
298 | 0 | return MsgProcessed; |
299 | 0 | } |
300 | 0 | case PLayerTransaction::Msg_SetConfirmedTargetAPZC__ID: |
301 | 0 | { |
302 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
303 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
304 | 0 | } |
305 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetConfirmedTargetAPZC", OTHER); |
306 | 0 |
|
307 | 0 | PickleIterator iter__(msg__); |
308 | 0 | uint64_t aInputBlockId; |
309 | 0 | nsTArray<ScrollableLayerGuid> aTargets; |
310 | 0 |
|
311 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aInputBlockId)))))) { |
312 | 0 | FatalError("Error deserializing 'uint64_t'"); |
313 | 0 | return MsgValueError; |
314 | 0 | } |
315 | 0 | // Sentinel = 'aInputBlockId' |
316 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3003300100)))) { |
317 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
318 | 0 | return MsgValueError; |
319 | 0 | } |
320 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTargets)))))) { |
321 | 0 | FatalError("Error deserializing 'nsTArray'"); |
322 | 0 | return MsgValueError; |
323 | 0 | } |
324 | 0 | // Sentinel = 'aTargets' |
325 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1782943901)))) { |
326 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
327 | 0 | return MsgValueError; |
328 | 0 | } |
329 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
330 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
331 | 0 | FatalError("Transition error"); |
332 | 0 | return MsgValueError; |
333 | 0 | } |
334 | 0 | if ((!(RecvSetConfirmedTargetAPZC(aInputBlockId, std::move(aTargets))))) { |
335 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
336 | 0 | // Error handled in mozilla::ipc::IPCResult |
337 | 0 | return MsgProcessingError; |
338 | 0 | } |
339 | 0 | |
340 | 0 | return MsgProcessed; |
341 | 0 | } |
342 | 0 | case PLayerTransaction::Msg_FlushApzRepaints__ID: |
343 | 0 | { |
344 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
345 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
346 | 0 | } |
347 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_FlushApzRepaints", OTHER); |
348 | 0 |
|
349 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
350 | 0 | FatalError("Transition error"); |
351 | 0 | return MsgValueError; |
352 | 0 | } |
353 | 0 | if ((!(RecvFlushApzRepaints()))) { |
354 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
355 | 0 | // Error handled in mozilla::ipc::IPCResult |
356 | 0 | return MsgProcessingError; |
357 | 0 | } |
358 | 0 | |
359 | 0 | return MsgProcessed; |
360 | 0 | } |
361 | 0 | case PLayerTransaction::Msg_ClearCachedResources__ID: |
362 | 0 | { |
363 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
364 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
365 | 0 | } |
366 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ClearCachedResources", OTHER); |
367 | 0 |
|
368 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
369 | 0 | FatalError("Transition error"); |
370 | 0 | return MsgValueError; |
371 | 0 | } |
372 | 0 | if ((!(RecvClearCachedResources()))) { |
373 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
374 | 0 | // Error handled in mozilla::ipc::IPCResult |
375 | 0 | return MsgProcessingError; |
376 | 0 | } |
377 | 0 | |
378 | 0 | return MsgProcessed; |
379 | 0 | } |
380 | 0 | case PLayerTransaction::Msg_ScheduleComposite__ID: |
381 | 0 | { |
382 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
383 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
384 | 0 | } |
385 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ScheduleComposite", OTHER); |
386 | 0 |
|
387 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
388 | 0 | FatalError("Transition error"); |
389 | 0 | return MsgValueError; |
390 | 0 | } |
391 | 0 | if ((!(RecvScheduleComposite()))) { |
392 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
393 | 0 | // Error handled in mozilla::ipc::IPCResult |
394 | 0 | return MsgProcessingError; |
395 | 0 | } |
396 | 0 | |
397 | 0 | return MsgProcessed; |
398 | 0 | } |
399 | 0 | case PLayerTransaction::Msg_RecordPaintTimes__ID: |
400 | 0 | { |
401 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
402 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
403 | 0 | } |
404 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_RecordPaintTimes", OTHER); |
405 | 0 |
|
406 | 0 | PickleIterator iter__(msg__); |
407 | 0 | PaintTiming timing; |
408 | 0 |
|
409 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(timing)))))) { |
410 | 0 | FatalError("Error deserializing 'PaintTiming'"); |
411 | 0 | return MsgValueError; |
412 | 0 | } |
413 | 0 | // Sentinel = 'timing' |
414 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3852786776)))) { |
415 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PaintTiming'"); |
416 | 0 | return MsgValueError; |
417 | 0 | } |
418 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
419 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
420 | 0 | FatalError("Transition error"); |
421 | 0 | return MsgValueError; |
422 | 0 | } |
423 | 0 | if ((!(RecvRecordPaintTimes(timing)))) { |
424 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
425 | 0 | // Error handled in mozilla::ipc::IPCResult |
426 | 0 | return MsgProcessingError; |
427 | 0 | } |
428 | 0 | |
429 | 0 | return MsgProcessed; |
430 | 0 | } |
431 | 0 | case PLayerTransaction::Msg_Shutdown__ID: |
432 | 0 | { |
433 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
434 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
435 | 0 | } |
436 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_Shutdown", OTHER); |
437 | 0 |
|
438 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
439 | 0 | FatalError("Transition error"); |
440 | 0 | return MsgValueError; |
441 | 0 | } |
442 | 0 | if ((!(RecvShutdown()))) { |
443 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
444 | 0 | // Error handled in mozilla::ipc::IPCResult |
445 | 0 | return MsgProcessingError; |
446 | 0 | } |
447 | 0 | |
448 | 0 | return MsgProcessed; |
449 | 0 | } |
450 | 0 | case PLayerTransaction::Reply___delete____ID: |
451 | 0 | { |
452 | 0 | return MsgProcessed; |
453 | 0 | } |
454 | 0 | default: |
455 | 0 | { |
456 | 0 | return MsgNotKnown; |
457 | 0 | } |
458 | 0 | } |
459 | 0 | } |
460 | | |
461 | | auto PLayerTransactionParent::OnMessageReceived( |
462 | | const Message& msg__, |
463 | | Message*& reply__) -> PLayerTransactionParent::Result |
464 | 0 | { |
465 | 0 | switch ((msg__).type()) { |
466 | 0 | case PLayerTransaction::Msg_SetTestSampleTime__ID: |
467 | 0 | { |
468 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
469 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
470 | 0 | } |
471 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetTestSampleTime", OTHER); |
472 | 0 |
|
473 | 0 | PickleIterator iter__(msg__); |
474 | 0 | TimeStamp sampleTime; |
475 | 0 |
|
476 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sampleTime)))))) { |
477 | 0 | FatalError("Error deserializing 'TimeStamp'"); |
478 | 0 | return MsgValueError; |
479 | 0 | } |
480 | 0 | // Sentinel = 'sampleTime' |
481 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2958171755)))) { |
482 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TimeStamp'"); |
483 | 0 | return MsgValueError; |
484 | 0 | } |
485 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
486 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
487 | 0 | FatalError("Transition error"); |
488 | 0 | return MsgValueError; |
489 | 0 | } |
490 | 0 | int32_t id__ = Id(); |
491 | 0 | if ((!(RecvSetTestSampleTime(sampleTime)))) { |
492 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
493 | 0 | // Error handled in mozilla::ipc::IPCResult |
494 | 0 | return MsgProcessingError; |
495 | 0 | } |
496 | 0 | |
497 | 0 | reply__ = PLayerTransaction::Reply_SetTestSampleTime(id__); |
498 | 0 |
|
499 | 0 |
|
500 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
501 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
502 | 0 | } |
503 | 0 | return MsgProcessed; |
504 | 0 | } |
505 | 0 | case PLayerTransaction::Msg_LeaveTestMode__ID: |
506 | 0 | { |
507 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
508 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
509 | 0 | } |
510 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_LeaveTestMode", OTHER); |
511 | 0 |
|
512 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
513 | 0 | FatalError("Transition error"); |
514 | 0 | return MsgValueError; |
515 | 0 | } |
516 | 0 | int32_t id__ = Id(); |
517 | 0 | if ((!(RecvLeaveTestMode()))) { |
518 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
519 | 0 | // Error handled in mozilla::ipc::IPCResult |
520 | 0 | return MsgProcessingError; |
521 | 0 | } |
522 | 0 | |
523 | 0 | reply__ = PLayerTransaction::Reply_LeaveTestMode(id__); |
524 | 0 |
|
525 | 0 |
|
526 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
527 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
528 | 0 | } |
529 | 0 | return MsgProcessed; |
530 | 0 | } |
531 | 0 | case PLayerTransaction::Msg_GetAnimationValue__ID: |
532 | 0 | { |
533 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
534 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
535 | 0 | } |
536 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetAnimationValue", OTHER); |
537 | 0 |
|
538 | 0 | PickleIterator iter__(msg__); |
539 | 0 | uint64_t aCompositorAnimationId; |
540 | 0 |
|
541 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCompositorAnimationId)))))) { |
542 | 0 | FatalError("Error deserializing 'uint64_t'"); |
543 | 0 | return MsgValueError; |
544 | 0 | } |
545 | 0 | // Sentinel = 'aCompositorAnimationId' |
546 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2017409677)))) { |
547 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
548 | 0 | return MsgValueError; |
549 | 0 | } |
550 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
551 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
552 | 0 | FatalError("Transition error"); |
553 | 0 | return MsgValueError; |
554 | 0 | } |
555 | 0 | int32_t id__ = Id(); |
556 | 0 | OMTAValue value; |
557 | 0 | if ((!(RecvGetAnimationValue(aCompositorAnimationId, (&(value)))))) { |
558 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
559 | 0 | // Error handled in mozilla::ipc::IPCResult |
560 | 0 | return MsgProcessingError; |
561 | 0 | } |
562 | 0 | |
563 | 0 | reply__ = PLayerTransaction::Reply_GetAnimationValue(id__); |
564 | 0 |
|
565 | 0 | WriteIPDLParam(reply__, this, value); |
566 | 0 | // Sentinel = 'value' |
567 | 0 | (reply__)->WriteSentinel(3456818542); |
568 | 0 |
|
569 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
570 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
571 | 0 | } |
572 | 0 | return MsgProcessed; |
573 | 0 | } |
574 | 0 | case PLayerTransaction::Msg_GetTransform__ID: |
575 | 0 | { |
576 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
577 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
578 | 0 | } |
579 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetTransform", OTHER); |
580 | 0 |
|
581 | 0 | PickleIterator iter__(msg__); |
582 | 0 | LayerHandle layer; |
583 | 0 |
|
584 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(layer)))))) { |
585 | 0 | FatalError("Error deserializing 'LayerHandle'"); |
586 | 0 | return MsgValueError; |
587 | 0 | } |
588 | 0 | // Sentinel = 'layer' |
589 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1899167106)))) { |
590 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayerHandle'"); |
591 | 0 | return MsgValueError; |
592 | 0 | } |
593 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
594 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
595 | 0 | FatalError("Transition error"); |
596 | 0 | return MsgValueError; |
597 | 0 | } |
598 | 0 | int32_t id__ = Id(); |
599 | 0 | MaybeTransform transform; |
600 | 0 | if ((!(RecvGetTransform(layer, (&(transform)))))) { |
601 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
602 | 0 | // Error handled in mozilla::ipc::IPCResult |
603 | 0 | return MsgProcessingError; |
604 | 0 | } |
605 | 0 | |
606 | 0 | reply__ = PLayerTransaction::Reply_GetTransform(id__); |
607 | 0 |
|
608 | 0 | WriteIPDLParam(reply__, this, transform); |
609 | 0 | // Sentinel = 'transform' |
610 | 0 | (reply__)->WriteSentinel(69691181); |
611 | 0 |
|
612 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
613 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
614 | 0 | } |
615 | 0 | return MsgProcessed; |
616 | 0 | } |
617 | 0 | case PLayerTransaction::Msg_SetAsyncScrollOffset__ID: |
618 | 0 | { |
619 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
620 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
621 | 0 | } |
622 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetAsyncScrollOffset", OTHER); |
623 | 0 |
|
624 | 0 | PickleIterator iter__(msg__); |
625 | 0 | ViewID id; |
626 | 0 | float x; |
627 | 0 | float y; |
628 | 0 |
|
629 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
630 | 0 | FatalError("Error deserializing 'ViewID'"); |
631 | 0 | return MsgValueError; |
632 | 0 | } |
633 | 0 | // Sentinel = 'id' |
634 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
635 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ViewID'"); |
636 | 0 | return MsgValueError; |
637 | 0 | } |
638 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(x)))))) { |
639 | 0 | FatalError("Error deserializing 'float'"); |
640 | 0 | return MsgValueError; |
641 | 0 | } |
642 | 0 | // Sentinel = 'x' |
643 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2475144313)))) { |
644 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'float'"); |
645 | 0 | return MsgValueError; |
646 | 0 | } |
647 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(y)))))) { |
648 | 0 | FatalError("Error deserializing 'float'"); |
649 | 0 | return MsgValueError; |
650 | 0 | } |
651 | 0 | // Sentinel = 'y' |
652 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2603144696)))) { |
653 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'float'"); |
654 | 0 | return MsgValueError; |
655 | 0 | } |
656 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
657 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
658 | 0 | FatalError("Transition error"); |
659 | 0 | return MsgValueError; |
660 | 0 | } |
661 | 0 | int32_t id__ = Id(); |
662 | 0 | if ((!(RecvSetAsyncScrollOffset(id, x, y)))) { |
663 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
664 | 0 | // Error handled in mozilla::ipc::IPCResult |
665 | 0 | return MsgProcessingError; |
666 | 0 | } |
667 | 0 | |
668 | 0 | reply__ = PLayerTransaction::Reply_SetAsyncScrollOffset(id__); |
669 | 0 |
|
670 | 0 |
|
671 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
672 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
673 | 0 | } |
674 | 0 | return MsgProcessed; |
675 | 0 | } |
676 | 0 | case PLayerTransaction::Msg_SetAsyncZoom__ID: |
677 | 0 | { |
678 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
679 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
680 | 0 | } |
681 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_SetAsyncZoom", OTHER); |
682 | 0 |
|
683 | 0 | PickleIterator iter__(msg__); |
684 | 0 | ViewID id; |
685 | 0 | float zoom; |
686 | 0 |
|
687 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
688 | 0 | FatalError("Error deserializing 'ViewID'"); |
689 | 0 | return MsgValueError; |
690 | 0 | } |
691 | 0 | // Sentinel = 'id' |
692 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
693 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ViewID'"); |
694 | 0 | return MsgValueError; |
695 | 0 | } |
696 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(zoom)))))) { |
697 | 0 | FatalError("Error deserializing 'float'"); |
698 | 0 | return MsgValueError; |
699 | 0 | } |
700 | 0 | // Sentinel = 'zoom' |
701 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1680696941)))) { |
702 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'float'"); |
703 | 0 | return MsgValueError; |
704 | 0 | } |
705 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
706 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
707 | 0 | FatalError("Transition error"); |
708 | 0 | return MsgValueError; |
709 | 0 | } |
710 | 0 | int32_t id__ = Id(); |
711 | 0 | if ((!(RecvSetAsyncZoom(id, zoom)))) { |
712 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
713 | 0 | // Error handled in mozilla::ipc::IPCResult |
714 | 0 | return MsgProcessingError; |
715 | 0 | } |
716 | 0 | |
717 | 0 | reply__ = PLayerTransaction::Reply_SetAsyncZoom(id__); |
718 | 0 |
|
719 | 0 |
|
720 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
721 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
722 | 0 | } |
723 | 0 | return MsgProcessed; |
724 | 0 | } |
725 | 0 | case PLayerTransaction::Msg_GetAPZTestData__ID: |
726 | 0 | { |
727 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
728 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
729 | 0 | } |
730 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetAPZTestData", OTHER); |
731 | 0 |
|
732 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
733 | 0 | FatalError("Transition error"); |
734 | 0 | return MsgValueError; |
735 | 0 | } |
736 | 0 | int32_t id__ = Id(); |
737 | 0 | APZTestData data; |
738 | 0 | if ((!(RecvGetAPZTestData((&(data)))))) { |
739 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
740 | 0 | // Error handled in mozilla::ipc::IPCResult |
741 | 0 | return MsgProcessingError; |
742 | 0 | } |
743 | 0 | |
744 | 0 | reply__ = PLayerTransaction::Reply_GetAPZTestData(id__); |
745 | 0 |
|
746 | 0 | WriteIPDLParam(reply__, this, data); |
747 | 0 | // Sentinel = 'data' |
748 | 0 | (reply__)->WriteSentinel(843352540); |
749 | 0 |
|
750 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
751 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
752 | 0 | } |
753 | 0 | return MsgProcessed; |
754 | 0 | } |
755 | 0 | case PLayerTransaction::Msg_RequestProperty__ID: |
756 | 0 | { |
757 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
758 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
759 | 0 | } |
760 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_RequestProperty", OTHER); |
761 | 0 |
|
762 | 0 | PickleIterator iter__(msg__); |
763 | 0 | nsString property; |
764 | 0 |
|
765 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(property)))))) { |
766 | 0 | FatalError("Error deserializing 'nsString'"); |
767 | 0 | return MsgValueError; |
768 | 0 | } |
769 | 0 | // Sentinel = 'property' |
770 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1482237307)))) { |
771 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
772 | 0 | return MsgValueError; |
773 | 0 | } |
774 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
775 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
776 | 0 | FatalError("Transition error"); |
777 | 0 | return MsgValueError; |
778 | 0 | } |
779 | 0 | int32_t id__ = Id(); |
780 | 0 | float value; |
781 | 0 | if ((!(RecvRequestProperty(property, (&(value)))))) { |
782 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
783 | 0 | // Error handled in mozilla::ipc::IPCResult |
784 | 0 | return MsgProcessingError; |
785 | 0 | } |
786 | 0 | |
787 | 0 | reply__ = PLayerTransaction::Reply_RequestProperty(id__); |
788 | 0 |
|
789 | 0 | WriteIPDLParam(reply__, this, value); |
790 | 0 | // Sentinel = 'value' |
791 | 0 | (reply__)->WriteSentinel(3456818542); |
792 | 0 |
|
793 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
794 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
795 | 0 | } |
796 | 0 | return MsgProcessed; |
797 | 0 | } |
798 | 0 | case PLayerTransaction::Msg_GetTextureFactoryIdentifier__ID: |
799 | 0 | { |
800 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
801 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
802 | 0 | } |
803 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_GetTextureFactoryIdentifier", OTHER); |
804 | 0 |
|
805 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
806 | 0 | FatalError("Transition error"); |
807 | 0 | return MsgValueError; |
808 | 0 | } |
809 | 0 | int32_t id__ = Id(); |
810 | 0 | TextureFactoryIdentifier aIdentifier; |
811 | 0 | if ((!(RecvGetTextureFactoryIdentifier((&(aIdentifier)))))) { |
812 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
813 | 0 | // Error handled in mozilla::ipc::IPCResult |
814 | 0 | return MsgProcessingError; |
815 | 0 | } |
816 | 0 | |
817 | 0 | reply__ = PLayerTransaction::Reply_GetTextureFactoryIdentifier(id__); |
818 | 0 |
|
819 | 0 | WriteIPDLParam(reply__, this, aIdentifier); |
820 | 0 | // Sentinel = 'aIdentifier' |
821 | 0 | (reply__)->WriteSentinel(3975378435); |
822 | 0 |
|
823 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
824 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
825 | 0 | } |
826 | 0 | return MsgProcessed; |
827 | 0 | } |
828 | 0 | case PLayerTransaction::Msg_ShutdownSync__ID: |
829 | 0 | { |
830 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
831 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
832 | 0 | } |
833 | 0 | AUTO_PROFILER_LABEL("PLayerTransaction::Msg_ShutdownSync", OTHER); |
834 | 0 |
|
835 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
836 | 0 | FatalError("Transition error"); |
837 | 0 | return MsgValueError; |
838 | 0 | } |
839 | 0 | int32_t id__ = Id(); |
840 | 0 | if ((!(RecvShutdownSync()))) { |
841 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
842 | 0 | // Error handled in mozilla::ipc::IPCResult |
843 | 0 | return MsgProcessingError; |
844 | 0 | } |
845 | 0 | |
846 | 0 | reply__ = PLayerTransaction::Reply_ShutdownSync(id__); |
847 | 0 |
|
848 | 0 |
|
849 | 0 | if (mozilla::ipc::LoggingEnabledFor("PLayerTransactionParent")) { |
850 | 0 | mozilla::ipc::LogMessageForProtocol("PLayerTransactionParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
851 | 0 | } |
852 | 0 | return MsgProcessed; |
853 | 0 | } |
854 | 0 | default: |
855 | 0 | { |
856 | 0 | return MsgNotKnown; |
857 | 0 | } |
858 | 0 | } |
859 | 0 | } |
860 | | |
861 | | auto PLayerTransactionParent::OnCallReceived( |
862 | | const Message& msg__, |
863 | | Message*& reply__) -> PLayerTransactionParent::Result |
864 | 0 | { |
865 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
866 | 0 | return MsgNotKnown; |
867 | 0 | } |
868 | | |
869 | | auto PLayerTransactionParent::GetProtocolTypeId() -> int32_t |
870 | 0 | { |
871 | 0 | return PLayerTransactionMsgStart; |
872 | 0 | } |
873 | | |
874 | | auto PLayerTransactionParent::DestroySubtree(ActorDestroyReason why) -> void |
875 | 0 | { |
876 | 0 | // Unregister from our manager. |
877 | 0 | Unregister(Id()); |
878 | 0 |
|
879 | 0 | // Reject owning pending responses. |
880 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
881 | 0 |
|
882 | 0 | // Finally, destroy "us". |
883 | 0 | ActorDestroy(why); |
884 | 0 | } |
885 | | |
886 | | auto PLayerTransactionParent::DeallocSubtree() -> void |
887 | 0 | { |
888 | 0 | } |
889 | | |
890 | | |
891 | | |
892 | | } // namespace layers |
893 | | } // namespace mozilla |
894 | | namespace mozilla { |
895 | | namespace ipc { |
896 | | auto IPDLParamTraits<mozilla::layers::PLayerTransactionParent>::Write( |
897 | | IPC::Message* aMsg, |
898 | | mozilla::ipc::IProtocol* aActor, |
899 | | const paramType& aVar) -> void |
900 | 0 | { |
901 | 0 | int32_t id; |
902 | 0 | if ((!(aVar))) { |
903 | 0 | id = 0; |
904 | 0 | } |
905 | 0 | else { |
906 | 0 | id = (aVar)->Id(); |
907 | 0 | if ((1) == (id)) { |
908 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
909 | 0 | } |
910 | 0 | } |
911 | 0 | WriteIPDLParam(aMsg, aActor, id); |
912 | 0 | } |
913 | | |
914 | | auto IPDLParamTraits<mozilla::layers::PLayerTransactionParent>::Read( |
915 | | const IPC::Message* aMsg, |
916 | | PickleIterator* aIter, |
917 | | mozilla::ipc::IProtocol* aActor, |
918 | | paramType* aVar) -> bool |
919 | 0 | { |
920 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PLayerTransaction", PLayerTransactionMsgStart); |
921 | 0 | if ((actor).isNothing()) { |
922 | 0 | return false; |
923 | 0 | } |
924 | 0 | |
925 | 0 | (*(aVar)) = static_cast<mozilla::layers::PLayerTransactionParent*>((actor).value()); |
926 | 0 | return true; |
927 | 0 | } |
928 | | |
929 | | } // namespace ipc |
930 | | } // namespace mozilla |