1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: LayerScopePacket.proto
3
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 #include "LayerScopePacket.pb.h"
6
7 #include <algorithm>
8
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
15 // @@protoc_insertion_point(includes)
16
17 namespace mozilla {
18 namespace layers {
19 namespace layerscope {
20 class FramePacketDefaultTypeInternal {
21 public:
22 ::google::protobuf::internal::ExplicitlyConstructed<FramePacket>
23 _instance;
24 } _FramePacket_default_instance_;
25 class ColorPacketDefaultTypeInternal {
26 public:
27 ::google::protobuf::internal::ExplicitlyConstructed<ColorPacket>
28 _instance;
29 } _ColorPacket_default_instance_;
30 class TexturePacket_RectDefaultTypeInternal {
31 public:
32 ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Rect>
33 _instance;
34 } _TexturePacket_Rect_default_instance_;
35 class TexturePacket_SizeDefaultTypeInternal {
36 public:
37 ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Size>
38 _instance;
39 } _TexturePacket_Size_default_instance_;
40 class TexturePacket_MatrixDefaultTypeInternal {
41 public:
42 ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Matrix>
43 _instance;
44 } _TexturePacket_Matrix_default_instance_;
45 class TexturePacket_EffectMaskDefaultTypeInternal {
46 public:
47 ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_EffectMask>
48 _instance;
49 } _TexturePacket_EffectMask_default_instance_;
50 class TexturePacketDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket>
53 _instance;
54 } _TexturePacket_default_instance_;
55 class LayersPacket_Layer_SizeDefaultTypeInternal {
56 public:
57 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Size>
58 _instance;
59 } _LayersPacket_Layer_Size_default_instance_;
60 class LayersPacket_Layer_RectDefaultTypeInternal {
61 public:
62 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Rect>
63 _instance;
64 } _LayersPacket_Layer_Rect_default_instance_;
65 class LayersPacket_Layer_RegionDefaultTypeInternal {
66 public:
67 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Region>
68 _instance;
69 } _LayersPacket_Layer_Region_default_instance_;
70 class LayersPacket_Layer_MatrixDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Matrix>
73 _instance;
74 } _LayersPacket_Layer_Matrix_default_instance_;
75 class LayersPacket_Layer_ShadowDefaultTypeInternal {
76 public:
77 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Shadow>
78 _instance;
79 } _LayersPacket_Layer_Shadow_default_instance_;
80 class LayersPacket_LayerDefaultTypeInternal {
81 public:
82 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer>
83 _instance;
84 } _LayersPacket_Layer_default_instance_;
85 class LayersPacketDefaultTypeInternal {
86 public:
87 ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket>
88 _instance;
89 } _LayersPacket_default_instance_;
90 class MetaPacketDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<MetaPacket>
93 _instance;
94 } _MetaPacket_default_instance_;
95 class DrawPacket_RectDefaultTypeInternal {
96 public:
97 ::google::protobuf::internal::ExplicitlyConstructed<DrawPacket_Rect>
98 _instance;
99 } _DrawPacket_Rect_default_instance_;
100 class DrawPacketDefaultTypeInternal {
101 public:
102 ::google::protobuf::internal::ExplicitlyConstructed<DrawPacket>
103 _instance;
104 } _DrawPacket_default_instance_;
105 class PacketDefaultTypeInternal {
106 public:
107 ::google::protobuf::internal::ExplicitlyConstructed<Packet>
108 _instance;
109 } _Packet_default_instance_;
110 class CommandPacketDefaultTypeInternal {
111 public:
112 ::google::protobuf::internal::ExplicitlyConstructed<CommandPacket>
113 _instance;
114 } _CommandPacket_default_instance_;
115
116 namespace protobuf_LayerScopePacket_2eproto {
117
118 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
119 const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
120 {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
121 };
122
123 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
124 const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
125 ::google::protobuf::internal::AuxillaryParseTableField(),
126 };
127 PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
128 TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
129 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
130 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
131 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
132 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
133 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
134 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
135 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
136 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
137 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
138 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
139 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
140 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
141 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
142 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
143 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
144 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
145 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
146 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
147 { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
148 };
149
InitDefaultsImpl()150 void TableStruct::InitDefaultsImpl() {
151 GOOGLE_PROTOBUF_VERIFY_VERSION;
152
153 ::google::protobuf::internal::InitProtobufDefaults();
154 _FramePacket_default_instance_._instance.DefaultConstruct();
155 ::google::protobuf::internal::OnShutdownDestroyMessage(
156 &_FramePacket_default_instance_);_ColorPacket_default_instance_._instance.DefaultConstruct();
157 ::google::protobuf::internal::OnShutdownDestroyMessage(
158 &_ColorPacket_default_instance_);_TexturePacket_Rect_default_instance_._instance.DefaultConstruct();
159 ::google::protobuf::internal::OnShutdownDestroyMessage(
160 &_TexturePacket_Rect_default_instance_);_TexturePacket_Size_default_instance_._instance.DefaultConstruct();
161 ::google::protobuf::internal::OnShutdownDestroyMessage(
162 &_TexturePacket_Size_default_instance_);_TexturePacket_Matrix_default_instance_._instance.DefaultConstruct();
163 ::google::protobuf::internal::OnShutdownDestroyMessage(
164 &_TexturePacket_Matrix_default_instance_);_TexturePacket_EffectMask_default_instance_._instance.DefaultConstruct();
165 ::google::protobuf::internal::OnShutdownDestroyMessage(
166 &_TexturePacket_EffectMask_default_instance_);_TexturePacket_default_instance_._instance.DefaultConstruct();
167 ::google::protobuf::internal::OnShutdownDestroyMessage(
168 &_TexturePacket_default_instance_);_LayersPacket_Layer_Size_default_instance_._instance.DefaultConstruct();
169 ::google::protobuf::internal::OnShutdownDestroyMessage(
170 &_LayersPacket_Layer_Size_default_instance_);_LayersPacket_Layer_Rect_default_instance_._instance.DefaultConstruct();
171 ::google::protobuf::internal::OnShutdownDestroyMessage(
172 &_LayersPacket_Layer_Rect_default_instance_);_LayersPacket_Layer_Region_default_instance_._instance.DefaultConstruct();
173 ::google::protobuf::internal::OnShutdownDestroyMessage(
174 &_LayersPacket_Layer_Region_default_instance_);_LayersPacket_Layer_Matrix_default_instance_._instance.DefaultConstruct();
175 ::google::protobuf::internal::OnShutdownDestroyMessage(
176 &_LayersPacket_Layer_Matrix_default_instance_);_LayersPacket_Layer_Shadow_default_instance_._instance.DefaultConstruct();
177 ::google::protobuf::internal::OnShutdownDestroyMessage(
178 &_LayersPacket_Layer_Shadow_default_instance_);_LayersPacket_Layer_default_instance_._instance.DefaultConstruct();
179 ::google::protobuf::internal::OnShutdownDestroyMessage(
180 &_LayersPacket_Layer_default_instance_);_LayersPacket_default_instance_._instance.DefaultConstruct();
181 ::google::protobuf::internal::OnShutdownDestroyMessage(
182 &_LayersPacket_default_instance_);_MetaPacket_default_instance_._instance.DefaultConstruct();
183 ::google::protobuf::internal::OnShutdownDestroyMessage(
184 &_MetaPacket_default_instance_);_DrawPacket_Rect_default_instance_._instance.DefaultConstruct();
185 ::google::protobuf::internal::OnShutdownDestroyMessage(
186 &_DrawPacket_Rect_default_instance_);_DrawPacket_default_instance_._instance.DefaultConstruct();
187 ::google::protobuf::internal::OnShutdownDestroyMessage(
188 &_DrawPacket_default_instance_);_Packet_default_instance_._instance.DefaultConstruct();
189 ::google::protobuf::internal::OnShutdownDestroyMessage(
190 &_Packet_default_instance_);_CommandPacket_default_instance_._instance.DefaultConstruct();
191 ::google::protobuf::internal::OnShutdownDestroyMessage(
192 &_CommandPacket_default_instance_);_TexturePacket_EffectMask_default_instance_._instance.get_mutable()->msize_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Size*>(
193 ::mozilla::layers::layerscope::TexturePacket_Size::internal_default_instance());
194 _TexturePacket_EffectMask_default_instance_._instance.get_mutable()->mmasktransform_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Matrix*>(
195 ::mozilla::layers::layerscope::TexturePacket_Matrix::internal_default_instance());
196 _TexturePacket_default_instance_._instance.get_mutable()->mtexturecoords_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Rect*>(
197 ::mozilla::layers::layerscope::TexturePacket_Rect::internal_default_instance());
198 _TexturePacket_default_instance_._instance.get_mutable()->mask_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(
199 ::mozilla::layers::layerscope::TexturePacket_EffectMask::internal_default_instance());
200 _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
201 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
202 _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
203 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
204 _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
205 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
206 _LayersPacket_Layer_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
207 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
208 _LayersPacket_Layer_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
209 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
210 _LayersPacket_Layer_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
211 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
212 _LayersPacket_Layer_default_instance_._instance.get_mutable()->shadow_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(
213 ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::internal_default_instance());
214 _LayersPacket_Layer_default_instance_._instance.get_mutable()->hitregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
215 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
216 _LayersPacket_Layer_default_instance_._instance.get_mutable()->dispatchregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
217 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
218 _LayersPacket_Layer_default_instance_._instance.get_mutable()->noactionregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
219 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
220 _LayersPacket_Layer_default_instance_._instance.get_mutable()->hpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
221 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
222 _LayersPacket_Layer_default_instance_._instance.get_mutable()->vpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
223 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
224 _LayersPacket_Layer_default_instance_._instance.get_mutable()->valid_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
225 ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
226 _LayersPacket_Layer_default_instance_._instance.get_mutable()->size_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(
227 ::mozilla::layers::layerscope::LayersPacket_Layer_Size::internal_default_instance());
228 _Packet_default_instance_._instance.get_mutable()->frame_ = const_cast< ::mozilla::layers::layerscope::FramePacket*>(
229 ::mozilla::layers::layerscope::FramePacket::internal_default_instance());
230 _Packet_default_instance_._instance.get_mutable()->color_ = const_cast< ::mozilla::layers::layerscope::ColorPacket*>(
231 ::mozilla::layers::layerscope::ColorPacket::internal_default_instance());
232 _Packet_default_instance_._instance.get_mutable()->texture_ = const_cast< ::mozilla::layers::layerscope::TexturePacket*>(
233 ::mozilla::layers::layerscope::TexturePacket::internal_default_instance());
234 _Packet_default_instance_._instance.get_mutable()->layers_ = const_cast< ::mozilla::layers::layerscope::LayersPacket*>(
235 ::mozilla::layers::layerscope::LayersPacket::internal_default_instance());
236 _Packet_default_instance_._instance.get_mutable()->meta_ = const_cast< ::mozilla::layers::layerscope::MetaPacket*>(
237 ::mozilla::layers::layerscope::MetaPacket::internal_default_instance());
238 _Packet_default_instance_._instance.get_mutable()->draw_ = const_cast< ::mozilla::layers::layerscope::DrawPacket*>(
239 ::mozilla::layers::layerscope::DrawPacket::internal_default_instance());
240 }
241
InitDefaults()242 void InitDefaults() {
243 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
244 ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
245 }
246 namespace {
AddDescriptorsImpl()247 void AddDescriptorsImpl() {
248 InitDefaults();
249 }
250 } // anonymous namespace
251
AddDescriptors()252 void AddDescriptors() {
253 static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
254 ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
255 }
256
257 } // namespace protobuf_LayerScopePacket_2eproto
258
TexturePacket_Filter_IsValid(int value)259 bool TexturePacket_Filter_IsValid(int value) {
260 switch (value) {
261 case 0:
262 case 1:
263 case 2:
264 return true;
265 default:
266 return false;
267 }
268 }
269
270 #if !defined(_MSC_VER) || _MSC_VER >= 1900
271 const TexturePacket_Filter TexturePacket::GOOD;
272 const TexturePacket_Filter TexturePacket::LINEAR;
273 const TexturePacket_Filter TexturePacket::POINT;
274 const TexturePacket_Filter TexturePacket::Filter_MIN;
275 const TexturePacket_Filter TexturePacket::Filter_MAX;
276 const int TexturePacket::Filter_ARRAYSIZE;
277 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
LayersPacket_Layer_LayerType_IsValid(int value)278 bool LayersPacket_Layer_LayerType_IsValid(int value) {
279 switch (value) {
280 case 0:
281 case 1:
282 case 2:
283 case 3:
284 case 4:
285 case 5:
286 case 6:
287 case 7:
288 case 8:
289 case 9:
290 case 10:
291 return true;
292 default:
293 return false;
294 }
295 }
296
297 #if !defined(_MSC_VER) || _MSC_VER >= 1900
298 const LayersPacket_Layer_LayerType LayersPacket_Layer::UnknownLayer;
299 const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerManager;
300 const LayersPacket_Layer_LayerType LayersPacket_Layer::ContainerLayer;
301 const LayersPacket_Layer_LayerType LayersPacket_Layer::PaintedLayer;
302 const LayersPacket_Layer_LayerType LayersPacket_Layer::CanvasLayer;
303 const LayersPacket_Layer_LayerType LayersPacket_Layer::ImageLayer;
304 const LayersPacket_Layer_LayerType LayersPacket_Layer::ColorLayer;
305 const LayersPacket_Layer_LayerType LayersPacket_Layer::RefLayer;
306 const LayersPacket_Layer_LayerType LayersPacket_Layer::ReadbackLayer;
307 const LayersPacket_Layer_LayerType LayersPacket_Layer::DisplayItemLayer;
308 const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MIN;
309 const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MAX;
310 const int LayersPacket_Layer::LayerType_ARRAYSIZE;
311 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
LayersPacket_Layer_ScrollingDirect_IsValid(int value)312 bool LayersPacket_Layer_ScrollingDirect_IsValid(int value) {
313 switch (value) {
314 case 1:
315 case 2:
316 return true;
317 default:
318 return false;
319 }
320 }
321
322 #if !defined(_MSC_VER) || _MSC_VER >= 1900
323 const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::VERTICAL;
324 const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::HORIZONTAL;
325 const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MIN;
326 const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MAX;
327 const int LayersPacket_Layer::ScrollingDirect_ARRAYSIZE;
328 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
LayersPacket_Layer_Filter_IsValid(int value)329 bool LayersPacket_Layer_Filter_IsValid(int value) {
330 switch (value) {
331 case 0:
332 case 1:
333 case 2:
334 case 3:
335 case 4:
336 case 5:
337 case 6:
338 case 7:
339 case 8:
340 return true;
341 default:
342 return false;
343 }
344 }
345
346 #if !defined(_MSC_VER) || _MSC_VER >= 1900
347 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_FAST;
348 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GOOD;
349 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BEST;
350 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_NEAREST;
351 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BILINEAR;
352 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GAUSSIAN;
353 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_SENTINEL;
354 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_LINEAR;
355 const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_POINT;
356 const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MIN;
357 const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MAX;
358 const int LayersPacket_Layer::Filter_ARRAYSIZE;
359 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Packet_DataType_IsValid(int value)360 bool Packet_DataType_IsValid(int value) {
361 switch (value) {
362 case 1:
363 case 2:
364 case 3:
365 case 4:
366 case 5:
367 case 6:
368 case 7:
369 return true;
370 default:
371 return false;
372 }
373 }
374
375 #if !defined(_MSC_VER) || _MSC_VER >= 1900
376 const Packet_DataType Packet::FRAMESTART;
377 const Packet_DataType Packet::FRAMEEND;
378 const Packet_DataType Packet::COLOR;
379 const Packet_DataType Packet::TEXTURE;
380 const Packet_DataType Packet::LAYERS;
381 const Packet_DataType Packet::META;
382 const Packet_DataType Packet::DRAW;
383 const Packet_DataType Packet::DataType_MIN;
384 const Packet_DataType Packet::DataType_MAX;
385 const int Packet::DataType_ARRAYSIZE;
386 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
CommandPacket_CmdType_IsValid(int value)387 bool CommandPacket_CmdType_IsValid(int value) {
388 switch (value) {
389 case 0:
390 case 1:
391 case 2:
392 return true;
393 default:
394 return false;
395 }
396 }
397
398 #if !defined(_MSC_VER) || _MSC_VER >= 1900
399 const CommandPacket_CmdType CommandPacket::NO_OP;
400 const CommandPacket_CmdType CommandPacket::LAYERS_TREE;
401 const CommandPacket_CmdType CommandPacket::LAYERS_BUFFER;
402 const CommandPacket_CmdType CommandPacket::CmdType_MIN;
403 const CommandPacket_CmdType CommandPacket::CmdType_MAX;
404 const int CommandPacket::CmdType_ARRAYSIZE;
405 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
406
407 // ===================================================================
408
409 #if !defined(_MSC_VER) || _MSC_VER >= 1900
410 const int FramePacket::kValueFieldNumber;
411 const int FramePacket::kScaleFieldNumber;
412 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
413
FramePacket()414 FramePacket::FramePacket()
415 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
416 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
417 protobuf_LayerScopePacket_2eproto::InitDefaults();
418 }
419 SharedCtor();
420 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.FramePacket)
421 }
FramePacket(const FramePacket & from)422 FramePacket::FramePacket(const FramePacket& from)
423 : ::google::protobuf::MessageLite(),
424 _internal_metadata_(NULL),
425 _has_bits_(from._has_bits_),
426 _cached_size_(0) {
427 _internal_metadata_.MergeFrom(from._internal_metadata_);
428 ::memcpy(&value_, &from.value_,
429 static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
430 reinterpret_cast<char*>(&value_)) + sizeof(scale_));
431 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.FramePacket)
432 }
433
SharedCtor()434 void FramePacket::SharedCtor() {
435 _cached_size_ = 0;
436 ::memset(&value_, 0, static_cast<size_t>(
437 reinterpret_cast<char*>(&scale_) -
438 reinterpret_cast<char*>(&value_)) + sizeof(scale_));
439 }
440
~FramePacket()441 FramePacket::~FramePacket() {
442 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.FramePacket)
443 SharedDtor();
444 }
445
SharedDtor()446 void FramePacket::SharedDtor() {
447 }
448
SetCachedSize(int size) const449 void FramePacket::SetCachedSize(int size) const {
450 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
451 _cached_size_ = size;
452 GOOGLE_SAFE_CONCURRENT_WRITES_END();
453 }
default_instance()454 const FramePacket& FramePacket::default_instance() {
455 protobuf_LayerScopePacket_2eproto::InitDefaults();
456 return *internal_default_instance();
457 }
458
New(::google::protobuf::Arena * arena) const459 FramePacket* FramePacket::New(::google::protobuf::Arena* arena) const {
460 FramePacket* n = new FramePacket;
461 if (arena != NULL) {
462 arena->Own(n);
463 }
464 return n;
465 }
466
Clear()467 void FramePacket::Clear() {
468 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.FramePacket)
469 ::google::protobuf::uint32 cached_has_bits = 0;
470 // Prevent compiler warnings about cached_has_bits being unused
471 (void) cached_has_bits;
472
473 cached_has_bits = _has_bits_[0];
474 if (cached_has_bits & 3u) {
475 ::memset(&value_, 0, static_cast<size_t>(
476 reinterpret_cast<char*>(&scale_) -
477 reinterpret_cast<char*>(&value_)) + sizeof(scale_));
478 }
479 _has_bits_.Clear();
480 _internal_metadata_.Clear();
481 }
482
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)483 bool FramePacket::MergePartialFromCodedStream(
484 ::google::protobuf::io::CodedInputStream* input) {
485 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
486 ::google::protobuf::uint32 tag;
487 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
488 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
489 &::google::protobuf::internal::InternalMetadataWithArenaLite::
490 mutable_unknown_fields));
491 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
492 &unknown_fields_string, false);
493 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.FramePacket)
494 for (;;) {
495 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
496 tag = p.first;
497 if (!p.second) goto handle_unusual;
498 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
499 // optional uint64 value = 1;
500 case 1: {
501 if (static_cast< ::google::protobuf::uint8>(tag) ==
502 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
503 set_has_value();
504 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
505 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
506 input, &value_)));
507 } else {
508 goto handle_unusual;
509 }
510 break;
511 }
512
513 // optional float scale = 2;
514 case 2: {
515 if (static_cast< ::google::protobuf::uint8>(tag) ==
516 static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
517 set_has_scale();
518 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
519 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
520 input, &scale_)));
521 } else {
522 goto handle_unusual;
523 }
524 break;
525 }
526
527 default: {
528 handle_unusual:
529 if (tag == 0) {
530 goto success;
531 }
532 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
533 input, tag, &unknown_fields_stream));
534 break;
535 }
536 }
537 }
538 success:
539 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.FramePacket)
540 return true;
541 failure:
542 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.FramePacket)
543 return false;
544 #undef DO_
545 }
546
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const547 void FramePacket::SerializeWithCachedSizes(
548 ::google::protobuf::io::CodedOutputStream* output) const {
549 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.FramePacket)
550 ::google::protobuf::uint32 cached_has_bits = 0;
551 (void) cached_has_bits;
552
553 cached_has_bits = _has_bits_[0];
554 // optional uint64 value = 1;
555 if (cached_has_bits & 0x00000001u) {
556 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(), output);
557 }
558
559 // optional float scale = 2;
560 if (cached_has_bits & 0x00000002u) {
561 ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
562 }
563
564 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
565 static_cast<int>(_internal_metadata_.unknown_fields().size()));
566 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.FramePacket)
567 }
568
ByteSizeLong() const569 size_t FramePacket::ByteSizeLong() const {
570 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.FramePacket)
571 size_t total_size = 0;
572
573 total_size += _internal_metadata_.unknown_fields().size();
574
575 if (_has_bits_[0 / 32] & 3u) {
576 // optional uint64 value = 1;
577 if (has_value()) {
578 total_size += 1 +
579 ::google::protobuf::internal::WireFormatLite::UInt64Size(
580 this->value());
581 }
582
583 // optional float scale = 2;
584 if (has_scale()) {
585 total_size += 1 + 4;
586 }
587
588 }
589 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
590 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
591 _cached_size_ = cached_size;
592 GOOGLE_SAFE_CONCURRENT_WRITES_END();
593 return total_size;
594 }
595
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)596 void FramePacket::CheckTypeAndMergeFrom(
597 const ::google::protobuf::MessageLite& from) {
598 MergeFrom(*::google::protobuf::down_cast<const FramePacket*>(&from));
599 }
600
MergeFrom(const FramePacket & from)601 void FramePacket::MergeFrom(const FramePacket& from) {
602 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.FramePacket)
603 GOOGLE_DCHECK_NE(&from, this);
604 _internal_metadata_.MergeFrom(from._internal_metadata_);
605 ::google::protobuf::uint32 cached_has_bits = 0;
606 (void) cached_has_bits;
607
608 cached_has_bits = from._has_bits_[0];
609 if (cached_has_bits & 3u) {
610 if (cached_has_bits & 0x00000001u) {
611 value_ = from.value_;
612 }
613 if (cached_has_bits & 0x00000002u) {
614 scale_ = from.scale_;
615 }
616 _has_bits_[0] |= cached_has_bits;
617 }
618 }
619
CopyFrom(const FramePacket & from)620 void FramePacket::CopyFrom(const FramePacket& from) {
621 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.FramePacket)
622 if (&from == this) return;
623 Clear();
624 MergeFrom(from);
625 }
626
IsInitialized() const627 bool FramePacket::IsInitialized() const {
628 return true;
629 }
630
Swap(FramePacket * other)631 void FramePacket::Swap(FramePacket* other) {
632 if (other == this) return;
633 InternalSwap(other);
634 }
InternalSwap(FramePacket * other)635 void FramePacket::InternalSwap(FramePacket* other) {
636 using std::swap;
637 swap(value_, other->value_);
638 swap(scale_, other->scale_);
639 swap(_has_bits_[0], other->_has_bits_[0]);
640 _internal_metadata_.Swap(&other->_internal_metadata_);
641 swap(_cached_size_, other->_cached_size_);
642 }
643
GetTypeName() const644 ::std::string FramePacket::GetTypeName() const {
645 return "mozilla.layers.layerscope.FramePacket";
646 }
647
648 #if PROTOBUF_INLINE_NOT_IN_HEADERS
649 // FramePacket
650
651 // optional uint64 value = 1;
has_value() const652 bool FramePacket::has_value() const {
653 return (_has_bits_[0] & 0x00000001u) != 0;
654 }
set_has_value()655 void FramePacket::set_has_value() {
656 _has_bits_[0] |= 0x00000001u;
657 }
clear_has_value()658 void FramePacket::clear_has_value() {
659 _has_bits_[0] &= ~0x00000001u;
660 }
clear_value()661 void FramePacket::clear_value() {
662 value_ = GOOGLE_ULONGLONG(0);
663 clear_has_value();
664 }
value() const665 ::google::protobuf::uint64 FramePacket::value() const {
666 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.value)
667 return value_;
668 }
set_value(::google::protobuf::uint64 value)669 void FramePacket::set_value(::google::protobuf::uint64 value) {
670 set_has_value();
671 value_ = value;
672 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.value)
673 }
674
675 // optional float scale = 2;
has_scale() const676 bool FramePacket::has_scale() const {
677 return (_has_bits_[0] & 0x00000002u) != 0;
678 }
set_has_scale()679 void FramePacket::set_has_scale() {
680 _has_bits_[0] |= 0x00000002u;
681 }
clear_has_scale()682 void FramePacket::clear_has_scale() {
683 _has_bits_[0] &= ~0x00000002u;
684 }
clear_scale()685 void FramePacket::clear_scale() {
686 scale_ = 0;
687 clear_has_scale();
688 }
scale() const689 float FramePacket::scale() const {
690 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.scale)
691 return scale_;
692 }
set_scale(float value)693 void FramePacket::set_scale(float value) {
694 set_has_scale();
695 scale_ = value;
696 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.scale)
697 }
698
699 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
700
701 // ===================================================================
702
703 #if !defined(_MSC_VER) || _MSC_VER >= 1900
704 const int ColorPacket::kLayerrefFieldNumber;
705 const int ColorPacket::kWidthFieldNumber;
706 const int ColorPacket::kHeightFieldNumber;
707 const int ColorPacket::kColorFieldNumber;
708 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
709
ColorPacket()710 ColorPacket::ColorPacket()
711 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
712 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
713 protobuf_LayerScopePacket_2eproto::InitDefaults();
714 }
715 SharedCtor();
716 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.ColorPacket)
717 }
ColorPacket(const ColorPacket & from)718 ColorPacket::ColorPacket(const ColorPacket& from)
719 : ::google::protobuf::MessageLite(),
720 _internal_metadata_(NULL),
721 _has_bits_(from._has_bits_),
722 _cached_size_(0) {
723 _internal_metadata_.MergeFrom(from._internal_metadata_);
724 ::memcpy(&layerref_, &from.layerref_,
725 static_cast<size_t>(reinterpret_cast<char*>(&color_) -
726 reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
727 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.ColorPacket)
728 }
729
SharedCtor()730 void ColorPacket::SharedCtor() {
731 _cached_size_ = 0;
732 ::memset(&layerref_, 0, static_cast<size_t>(
733 reinterpret_cast<char*>(&color_) -
734 reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
735 }
736
~ColorPacket()737 ColorPacket::~ColorPacket() {
738 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.ColorPacket)
739 SharedDtor();
740 }
741
SharedDtor()742 void ColorPacket::SharedDtor() {
743 }
744
SetCachedSize(int size) const745 void ColorPacket::SetCachedSize(int size) const {
746 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
747 _cached_size_ = size;
748 GOOGLE_SAFE_CONCURRENT_WRITES_END();
749 }
default_instance()750 const ColorPacket& ColorPacket::default_instance() {
751 protobuf_LayerScopePacket_2eproto::InitDefaults();
752 return *internal_default_instance();
753 }
754
New(::google::protobuf::Arena * arena) const755 ColorPacket* ColorPacket::New(::google::protobuf::Arena* arena) const {
756 ColorPacket* n = new ColorPacket;
757 if (arena != NULL) {
758 arena->Own(n);
759 }
760 return n;
761 }
762
Clear()763 void ColorPacket::Clear() {
764 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.ColorPacket)
765 ::google::protobuf::uint32 cached_has_bits = 0;
766 // Prevent compiler warnings about cached_has_bits being unused
767 (void) cached_has_bits;
768
769 cached_has_bits = _has_bits_[0];
770 if (cached_has_bits & 15u) {
771 ::memset(&layerref_, 0, static_cast<size_t>(
772 reinterpret_cast<char*>(&color_) -
773 reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
774 }
775 _has_bits_.Clear();
776 _internal_metadata_.Clear();
777 }
778
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)779 bool ColorPacket::MergePartialFromCodedStream(
780 ::google::protobuf::io::CodedInputStream* input) {
781 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
782 ::google::protobuf::uint32 tag;
783 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
784 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
785 &::google::protobuf::internal::InternalMetadataWithArenaLite::
786 mutable_unknown_fields));
787 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
788 &unknown_fields_string, false);
789 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.ColorPacket)
790 for (;;) {
791 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
792 tag = p.first;
793 if (!p.second) goto handle_unusual;
794 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
795 // required uint64 layerref = 1;
796 case 1: {
797 if (static_cast< ::google::protobuf::uint8>(tag) ==
798 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
799 set_has_layerref();
800 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
801 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
802 input, &layerref_)));
803 } else {
804 goto handle_unusual;
805 }
806 break;
807 }
808
809 // optional uint32 width = 2;
810 case 2: {
811 if (static_cast< ::google::protobuf::uint8>(tag) ==
812 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
813 set_has_width();
814 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
815 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
816 input, &width_)));
817 } else {
818 goto handle_unusual;
819 }
820 break;
821 }
822
823 // optional uint32 height = 3;
824 case 3: {
825 if (static_cast< ::google::protobuf::uint8>(tag) ==
826 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
827 set_has_height();
828 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
829 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
830 input, &height_)));
831 } else {
832 goto handle_unusual;
833 }
834 break;
835 }
836
837 // optional uint32 color = 4;
838 case 4: {
839 if (static_cast< ::google::protobuf::uint8>(tag) ==
840 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
841 set_has_color();
842 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
843 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
844 input, &color_)));
845 } else {
846 goto handle_unusual;
847 }
848 break;
849 }
850
851 default: {
852 handle_unusual:
853 if (tag == 0) {
854 goto success;
855 }
856 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
857 input, tag, &unknown_fields_stream));
858 break;
859 }
860 }
861 }
862 success:
863 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.ColorPacket)
864 return true;
865 failure:
866 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.ColorPacket)
867 return false;
868 #undef DO_
869 }
870
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const871 void ColorPacket::SerializeWithCachedSizes(
872 ::google::protobuf::io::CodedOutputStream* output) const {
873 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.ColorPacket)
874 ::google::protobuf::uint32 cached_has_bits = 0;
875 (void) cached_has_bits;
876
877 cached_has_bits = _has_bits_[0];
878 // required uint64 layerref = 1;
879 if (cached_has_bits & 0x00000001u) {
880 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output);
881 }
882
883 // optional uint32 width = 2;
884 if (cached_has_bits & 0x00000002u) {
885 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output);
886 }
887
888 // optional uint32 height = 3;
889 if (cached_has_bits & 0x00000004u) {
890 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
891 }
892
893 // optional uint32 color = 4;
894 if (cached_has_bits & 0x00000008u) {
895 ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->color(), output);
896 }
897
898 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
899 static_cast<int>(_internal_metadata_.unknown_fields().size()));
900 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.ColorPacket)
901 }
902
ByteSizeLong() const903 size_t ColorPacket::ByteSizeLong() const {
904 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.ColorPacket)
905 size_t total_size = 0;
906
907 total_size += _internal_metadata_.unknown_fields().size();
908
909 // required uint64 layerref = 1;
910 if (has_layerref()) {
911 total_size += 1 +
912 ::google::protobuf::internal::WireFormatLite::UInt64Size(
913 this->layerref());
914 }
915 if (_has_bits_[0 / 32] & 14u) {
916 // optional uint32 width = 2;
917 if (has_width()) {
918 total_size += 1 +
919 ::google::protobuf::internal::WireFormatLite::UInt32Size(
920 this->width());
921 }
922
923 // optional uint32 height = 3;
924 if (has_height()) {
925 total_size += 1 +
926 ::google::protobuf::internal::WireFormatLite::UInt32Size(
927 this->height());
928 }
929
930 // optional uint32 color = 4;
931 if (has_color()) {
932 total_size += 1 +
933 ::google::protobuf::internal::WireFormatLite::UInt32Size(
934 this->color());
935 }
936
937 }
938 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
939 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
940 _cached_size_ = cached_size;
941 GOOGLE_SAFE_CONCURRENT_WRITES_END();
942 return total_size;
943 }
944
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)945 void ColorPacket::CheckTypeAndMergeFrom(
946 const ::google::protobuf::MessageLite& from) {
947 MergeFrom(*::google::protobuf::down_cast<const ColorPacket*>(&from));
948 }
949
MergeFrom(const ColorPacket & from)950 void ColorPacket::MergeFrom(const ColorPacket& from) {
951 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.ColorPacket)
952 GOOGLE_DCHECK_NE(&from, this);
953 _internal_metadata_.MergeFrom(from._internal_metadata_);
954 ::google::protobuf::uint32 cached_has_bits = 0;
955 (void) cached_has_bits;
956
957 cached_has_bits = from._has_bits_[0];
958 if (cached_has_bits & 15u) {
959 if (cached_has_bits & 0x00000001u) {
960 layerref_ = from.layerref_;
961 }
962 if (cached_has_bits & 0x00000002u) {
963 width_ = from.width_;
964 }
965 if (cached_has_bits & 0x00000004u) {
966 height_ = from.height_;
967 }
968 if (cached_has_bits & 0x00000008u) {
969 color_ = from.color_;
970 }
971 _has_bits_[0] |= cached_has_bits;
972 }
973 }
974
CopyFrom(const ColorPacket & from)975 void ColorPacket::CopyFrom(const ColorPacket& from) {
976 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.ColorPacket)
977 if (&from == this) return;
978 Clear();
979 MergeFrom(from);
980 }
981
IsInitialized() const982 bool ColorPacket::IsInitialized() const {
983 if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
984 return true;
985 }
986
Swap(ColorPacket * other)987 void ColorPacket::Swap(ColorPacket* other) {
988 if (other == this) return;
989 InternalSwap(other);
990 }
InternalSwap(ColorPacket * other)991 void ColorPacket::InternalSwap(ColorPacket* other) {
992 using std::swap;
993 swap(layerref_, other->layerref_);
994 swap(width_, other->width_);
995 swap(height_, other->height_);
996 swap(color_, other->color_);
997 swap(_has_bits_[0], other->_has_bits_[0]);
998 _internal_metadata_.Swap(&other->_internal_metadata_);
999 swap(_cached_size_, other->_cached_size_);
1000 }
1001
GetTypeName() const1002 ::std::string ColorPacket::GetTypeName() const {
1003 return "mozilla.layers.layerscope.ColorPacket";
1004 }
1005
1006 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1007 // ColorPacket
1008
1009 // required uint64 layerref = 1;
has_layerref() const1010 bool ColorPacket::has_layerref() const {
1011 return (_has_bits_[0] & 0x00000001u) != 0;
1012 }
set_has_layerref()1013 void ColorPacket::set_has_layerref() {
1014 _has_bits_[0] |= 0x00000001u;
1015 }
clear_has_layerref()1016 void ColorPacket::clear_has_layerref() {
1017 _has_bits_[0] &= ~0x00000001u;
1018 }
clear_layerref()1019 void ColorPacket::clear_layerref() {
1020 layerref_ = GOOGLE_ULONGLONG(0);
1021 clear_has_layerref();
1022 }
layerref() const1023 ::google::protobuf::uint64 ColorPacket::layerref() const {
1024 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.layerref)
1025 return layerref_;
1026 }
set_layerref(::google::protobuf::uint64 value)1027 void ColorPacket::set_layerref(::google::protobuf::uint64 value) {
1028 set_has_layerref();
1029 layerref_ = value;
1030 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.layerref)
1031 }
1032
1033 // optional uint32 width = 2;
has_width() const1034 bool ColorPacket::has_width() const {
1035 return (_has_bits_[0] & 0x00000002u) != 0;
1036 }
set_has_width()1037 void ColorPacket::set_has_width() {
1038 _has_bits_[0] |= 0x00000002u;
1039 }
clear_has_width()1040 void ColorPacket::clear_has_width() {
1041 _has_bits_[0] &= ~0x00000002u;
1042 }
clear_width()1043 void ColorPacket::clear_width() {
1044 width_ = 0u;
1045 clear_has_width();
1046 }
width() const1047 ::google::protobuf::uint32 ColorPacket::width() const {
1048 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.width)
1049 return width_;
1050 }
set_width(::google::protobuf::uint32 value)1051 void ColorPacket::set_width(::google::protobuf::uint32 value) {
1052 set_has_width();
1053 width_ = value;
1054 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.width)
1055 }
1056
1057 // optional uint32 height = 3;
has_height() const1058 bool ColorPacket::has_height() const {
1059 return (_has_bits_[0] & 0x00000004u) != 0;
1060 }
set_has_height()1061 void ColorPacket::set_has_height() {
1062 _has_bits_[0] |= 0x00000004u;
1063 }
clear_has_height()1064 void ColorPacket::clear_has_height() {
1065 _has_bits_[0] &= ~0x00000004u;
1066 }
clear_height()1067 void ColorPacket::clear_height() {
1068 height_ = 0u;
1069 clear_has_height();
1070 }
height() const1071 ::google::protobuf::uint32 ColorPacket::height() const {
1072 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.height)
1073 return height_;
1074 }
set_height(::google::protobuf::uint32 value)1075 void ColorPacket::set_height(::google::protobuf::uint32 value) {
1076 set_has_height();
1077 height_ = value;
1078 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.height)
1079 }
1080
1081 // optional uint32 color = 4;
has_color() const1082 bool ColorPacket::has_color() const {
1083 return (_has_bits_[0] & 0x00000008u) != 0;
1084 }
set_has_color()1085 void ColorPacket::set_has_color() {
1086 _has_bits_[0] |= 0x00000008u;
1087 }
clear_has_color()1088 void ColorPacket::clear_has_color() {
1089 _has_bits_[0] &= ~0x00000008u;
1090 }
clear_color()1091 void ColorPacket::clear_color() {
1092 color_ = 0u;
1093 clear_has_color();
1094 }
color() const1095 ::google::protobuf::uint32 ColorPacket::color() const {
1096 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.color)
1097 return color_;
1098 }
set_color(::google::protobuf::uint32 value)1099 void ColorPacket::set_color(::google::protobuf::uint32 value) {
1100 set_has_color();
1101 color_ = value;
1102 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.color)
1103 }
1104
1105 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1106
1107 // ===================================================================
1108
1109 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1110 const int TexturePacket_Rect::kXFieldNumber;
1111 const int TexturePacket_Rect::kYFieldNumber;
1112 const int TexturePacket_Rect::kWFieldNumber;
1113 const int TexturePacket_Rect::kHFieldNumber;
1114 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1115
TexturePacket_Rect()1116 TexturePacket_Rect::TexturePacket_Rect()
1117 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
1118 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1119 protobuf_LayerScopePacket_2eproto::InitDefaults();
1120 }
1121 SharedCtor();
1122 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Rect)
1123 }
TexturePacket_Rect(const TexturePacket_Rect & from)1124 TexturePacket_Rect::TexturePacket_Rect(const TexturePacket_Rect& from)
1125 : ::google::protobuf::MessageLite(),
1126 _internal_metadata_(NULL),
1127 _has_bits_(from._has_bits_),
1128 _cached_size_(0) {
1129 _internal_metadata_.MergeFrom(from._internal_metadata_);
1130 ::memcpy(&x_, &from.x_,
1131 static_cast<size_t>(reinterpret_cast<char*>(&h_) -
1132 reinterpret_cast<char*>(&x_)) + sizeof(h_));
1133 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Rect)
1134 }
1135
SharedCtor()1136 void TexturePacket_Rect::SharedCtor() {
1137 _cached_size_ = 0;
1138 ::memset(&x_, 0, static_cast<size_t>(
1139 reinterpret_cast<char*>(&h_) -
1140 reinterpret_cast<char*>(&x_)) + sizeof(h_));
1141 }
1142
~TexturePacket_Rect()1143 TexturePacket_Rect::~TexturePacket_Rect() {
1144 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Rect)
1145 SharedDtor();
1146 }
1147
SharedDtor()1148 void TexturePacket_Rect::SharedDtor() {
1149 }
1150
SetCachedSize(int size) const1151 void TexturePacket_Rect::SetCachedSize(int size) const {
1152 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1153 _cached_size_ = size;
1154 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1155 }
default_instance()1156 const TexturePacket_Rect& TexturePacket_Rect::default_instance() {
1157 protobuf_LayerScopePacket_2eproto::InitDefaults();
1158 return *internal_default_instance();
1159 }
1160
New(::google::protobuf::Arena * arena) const1161 TexturePacket_Rect* TexturePacket_Rect::New(::google::protobuf::Arena* arena) const {
1162 TexturePacket_Rect* n = new TexturePacket_Rect;
1163 if (arena != NULL) {
1164 arena->Own(n);
1165 }
1166 return n;
1167 }
1168
Clear()1169 void TexturePacket_Rect::Clear() {
1170 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Rect)
1171 ::google::protobuf::uint32 cached_has_bits = 0;
1172 // Prevent compiler warnings about cached_has_bits being unused
1173 (void) cached_has_bits;
1174
1175 cached_has_bits = _has_bits_[0];
1176 if (cached_has_bits & 15u) {
1177 ::memset(&x_, 0, static_cast<size_t>(
1178 reinterpret_cast<char*>(&h_) -
1179 reinterpret_cast<char*>(&x_)) + sizeof(h_));
1180 }
1181 _has_bits_.Clear();
1182 _internal_metadata_.Clear();
1183 }
1184
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1185 bool TexturePacket_Rect::MergePartialFromCodedStream(
1186 ::google::protobuf::io::CodedInputStream* input) {
1187 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1188 ::google::protobuf::uint32 tag;
1189 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1190 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1191 &::google::protobuf::internal::InternalMetadataWithArenaLite::
1192 mutable_unknown_fields));
1193 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1194 &unknown_fields_string, false);
1195 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Rect)
1196 for (;;) {
1197 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1198 tag = p.first;
1199 if (!p.second) goto handle_unusual;
1200 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1201 // optional float x = 1;
1202 case 1: {
1203 if (static_cast< ::google::protobuf::uint8>(tag) ==
1204 static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
1205 set_has_x();
1206 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1207 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1208 input, &x_)));
1209 } else {
1210 goto handle_unusual;
1211 }
1212 break;
1213 }
1214
1215 // optional float y = 2;
1216 case 2: {
1217 if (static_cast< ::google::protobuf::uint8>(tag) ==
1218 static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
1219 set_has_y();
1220 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1221 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1222 input, &y_)));
1223 } else {
1224 goto handle_unusual;
1225 }
1226 break;
1227 }
1228
1229 // optional float w = 3;
1230 case 3: {
1231 if (static_cast< ::google::protobuf::uint8>(tag) ==
1232 static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
1233 set_has_w();
1234 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1235 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1236 input, &w_)));
1237 } else {
1238 goto handle_unusual;
1239 }
1240 break;
1241 }
1242
1243 // optional float h = 4;
1244 case 4: {
1245 if (static_cast< ::google::protobuf::uint8>(tag) ==
1246 static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
1247 set_has_h();
1248 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1249 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1250 input, &h_)));
1251 } else {
1252 goto handle_unusual;
1253 }
1254 break;
1255 }
1256
1257 default: {
1258 handle_unusual:
1259 if (tag == 0) {
1260 goto success;
1261 }
1262 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1263 input, tag, &unknown_fields_stream));
1264 break;
1265 }
1266 }
1267 }
1268 success:
1269 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Rect)
1270 return true;
1271 failure:
1272 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Rect)
1273 return false;
1274 #undef DO_
1275 }
1276
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1277 void TexturePacket_Rect::SerializeWithCachedSizes(
1278 ::google::protobuf::io::CodedOutputStream* output) const {
1279 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Rect)
1280 ::google::protobuf::uint32 cached_has_bits = 0;
1281 (void) cached_has_bits;
1282
1283 cached_has_bits = _has_bits_[0];
1284 // optional float x = 1;
1285 if (cached_has_bits & 0x00000001u) {
1286 ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
1287 }
1288
1289 // optional float y = 2;
1290 if (cached_has_bits & 0x00000002u) {
1291 ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
1292 }
1293
1294 // optional float w = 3;
1295 if (cached_has_bits & 0x00000004u) {
1296 ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output);
1297 }
1298
1299 // optional float h = 4;
1300 if (cached_has_bits & 0x00000008u) {
1301 ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output);
1302 }
1303
1304 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1305 static_cast<int>(_internal_metadata_.unknown_fields().size()));
1306 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Rect)
1307 }
1308
ByteSizeLong() const1309 size_t TexturePacket_Rect::ByteSizeLong() const {
1310 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Rect)
1311 size_t total_size = 0;
1312
1313 total_size += _internal_metadata_.unknown_fields().size();
1314
1315 if (_has_bits_[0 / 32] & 15u) {
1316 // optional float x = 1;
1317 if (has_x()) {
1318 total_size += 1 + 4;
1319 }
1320
1321 // optional float y = 2;
1322 if (has_y()) {
1323 total_size += 1 + 4;
1324 }
1325
1326 // optional float w = 3;
1327 if (has_w()) {
1328 total_size += 1 + 4;
1329 }
1330
1331 // optional float h = 4;
1332 if (has_h()) {
1333 total_size += 1 + 4;
1334 }
1335
1336 }
1337 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1338 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1339 _cached_size_ = cached_size;
1340 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1341 return total_size;
1342 }
1343
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)1344 void TexturePacket_Rect::CheckTypeAndMergeFrom(
1345 const ::google::protobuf::MessageLite& from) {
1346 MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Rect*>(&from));
1347 }
1348
MergeFrom(const TexturePacket_Rect & from)1349 void TexturePacket_Rect::MergeFrom(const TexturePacket_Rect& from) {
1350 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Rect)
1351 GOOGLE_DCHECK_NE(&from, this);
1352 _internal_metadata_.MergeFrom(from._internal_metadata_);
1353 ::google::protobuf::uint32 cached_has_bits = 0;
1354 (void) cached_has_bits;
1355
1356 cached_has_bits = from._has_bits_[0];
1357 if (cached_has_bits & 15u) {
1358 if (cached_has_bits & 0x00000001u) {
1359 x_ = from.x_;
1360 }
1361 if (cached_has_bits & 0x00000002u) {
1362 y_ = from.y_;
1363 }
1364 if (cached_has_bits & 0x00000004u) {
1365 w_ = from.w_;
1366 }
1367 if (cached_has_bits & 0x00000008u) {
1368 h_ = from.h_;
1369 }
1370 _has_bits_[0] |= cached_has_bits;
1371 }
1372 }
1373
CopyFrom(const TexturePacket_Rect & from)1374 void TexturePacket_Rect::CopyFrom(const TexturePacket_Rect& from) {
1375 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Rect)
1376 if (&from == this) return;
1377 Clear();
1378 MergeFrom(from);
1379 }
1380
IsInitialized() const1381 bool TexturePacket_Rect::IsInitialized() const {
1382 return true;
1383 }
1384
Swap(TexturePacket_Rect * other)1385 void TexturePacket_Rect::Swap(TexturePacket_Rect* other) {
1386 if (other == this) return;
1387 InternalSwap(other);
1388 }
InternalSwap(TexturePacket_Rect * other)1389 void TexturePacket_Rect::InternalSwap(TexturePacket_Rect* other) {
1390 using std::swap;
1391 swap(x_, other->x_);
1392 swap(y_, other->y_);
1393 swap(w_, other->w_);
1394 swap(h_, other->h_);
1395 swap(_has_bits_[0], other->_has_bits_[0]);
1396 _internal_metadata_.Swap(&other->_internal_metadata_);
1397 swap(_cached_size_, other->_cached_size_);
1398 }
1399
GetTypeName() const1400 ::std::string TexturePacket_Rect::GetTypeName() const {
1401 return "mozilla.layers.layerscope.TexturePacket.Rect";
1402 }
1403
1404 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1405 // TexturePacket_Rect
1406
1407 // optional float x = 1;
has_x() const1408 bool TexturePacket_Rect::has_x() const {
1409 return (_has_bits_[0] & 0x00000001u) != 0;
1410 }
set_has_x()1411 void TexturePacket_Rect::set_has_x() {
1412 _has_bits_[0] |= 0x00000001u;
1413 }
clear_has_x()1414 void TexturePacket_Rect::clear_has_x() {
1415 _has_bits_[0] &= ~0x00000001u;
1416 }
clear_x()1417 void TexturePacket_Rect::clear_x() {
1418 x_ = 0;
1419 clear_has_x();
1420 }
x() const1421 float TexturePacket_Rect::x() const {
1422 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.x)
1423 return x_;
1424 }
set_x(float value)1425 void TexturePacket_Rect::set_x(float value) {
1426 set_has_x();
1427 x_ = value;
1428 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.x)
1429 }
1430
1431 // optional float y = 2;
has_y() const1432 bool TexturePacket_Rect::has_y() const {
1433 return (_has_bits_[0] & 0x00000002u) != 0;
1434 }
set_has_y()1435 void TexturePacket_Rect::set_has_y() {
1436 _has_bits_[0] |= 0x00000002u;
1437 }
clear_has_y()1438 void TexturePacket_Rect::clear_has_y() {
1439 _has_bits_[0] &= ~0x00000002u;
1440 }
clear_y()1441 void TexturePacket_Rect::clear_y() {
1442 y_ = 0;
1443 clear_has_y();
1444 }
y() const1445 float TexturePacket_Rect::y() const {
1446 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.y)
1447 return y_;
1448 }
set_y(float value)1449 void TexturePacket_Rect::set_y(float value) {
1450 set_has_y();
1451 y_ = value;
1452 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.y)
1453 }
1454
1455 // optional float w = 3;
has_w() const1456 bool TexturePacket_Rect::has_w() const {
1457 return (_has_bits_[0] & 0x00000004u) != 0;
1458 }
set_has_w()1459 void TexturePacket_Rect::set_has_w() {
1460 _has_bits_[0] |= 0x00000004u;
1461 }
clear_has_w()1462 void TexturePacket_Rect::clear_has_w() {
1463 _has_bits_[0] &= ~0x00000004u;
1464 }
clear_w()1465 void TexturePacket_Rect::clear_w() {
1466 w_ = 0;
1467 clear_has_w();
1468 }
w() const1469 float TexturePacket_Rect::w() const {
1470 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.w)
1471 return w_;
1472 }
set_w(float value)1473 void TexturePacket_Rect::set_w(float value) {
1474 set_has_w();
1475 w_ = value;
1476 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.w)
1477 }
1478
1479 // optional float h = 4;
has_h() const1480 bool TexturePacket_Rect::has_h() const {
1481 return (_has_bits_[0] & 0x00000008u) != 0;
1482 }
set_has_h()1483 void TexturePacket_Rect::set_has_h() {
1484 _has_bits_[0] |= 0x00000008u;
1485 }
clear_has_h()1486 void TexturePacket_Rect::clear_has_h() {
1487 _has_bits_[0] &= ~0x00000008u;
1488 }
clear_h()1489 void TexturePacket_Rect::clear_h() {
1490 h_ = 0;
1491 clear_has_h();
1492 }
h() const1493 float TexturePacket_Rect::h() const {
1494 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.h)
1495 return h_;
1496 }
set_h(float value)1497 void TexturePacket_Rect::set_h(float value) {
1498 set_has_h();
1499 h_ = value;
1500 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.h)
1501 }
1502
1503 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1504
1505 // ===================================================================
1506
1507 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1508 const int TexturePacket_Size::kWFieldNumber;
1509 const int TexturePacket_Size::kHFieldNumber;
1510 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1511
TexturePacket_Size()1512 TexturePacket_Size::TexturePacket_Size()
1513 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
1514 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1515 protobuf_LayerScopePacket_2eproto::InitDefaults();
1516 }
1517 SharedCtor();
1518 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Size)
1519 }
TexturePacket_Size(const TexturePacket_Size & from)1520 TexturePacket_Size::TexturePacket_Size(const TexturePacket_Size& from)
1521 : ::google::protobuf::MessageLite(),
1522 _internal_metadata_(NULL),
1523 _has_bits_(from._has_bits_),
1524 _cached_size_(0) {
1525 _internal_metadata_.MergeFrom(from._internal_metadata_);
1526 ::memcpy(&w_, &from.w_,
1527 static_cast<size_t>(reinterpret_cast<char*>(&h_) -
1528 reinterpret_cast<char*>(&w_)) + sizeof(h_));
1529 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Size)
1530 }
1531
SharedCtor()1532 void TexturePacket_Size::SharedCtor() {
1533 _cached_size_ = 0;
1534 ::memset(&w_, 0, static_cast<size_t>(
1535 reinterpret_cast<char*>(&h_) -
1536 reinterpret_cast<char*>(&w_)) + sizeof(h_));
1537 }
1538
~TexturePacket_Size()1539 TexturePacket_Size::~TexturePacket_Size() {
1540 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Size)
1541 SharedDtor();
1542 }
1543
SharedDtor()1544 void TexturePacket_Size::SharedDtor() {
1545 }
1546
SetCachedSize(int size) const1547 void TexturePacket_Size::SetCachedSize(int size) const {
1548 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1549 _cached_size_ = size;
1550 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1551 }
default_instance()1552 const TexturePacket_Size& TexturePacket_Size::default_instance() {
1553 protobuf_LayerScopePacket_2eproto::InitDefaults();
1554 return *internal_default_instance();
1555 }
1556
New(::google::protobuf::Arena * arena) const1557 TexturePacket_Size* TexturePacket_Size::New(::google::protobuf::Arena* arena) const {
1558 TexturePacket_Size* n = new TexturePacket_Size;
1559 if (arena != NULL) {
1560 arena->Own(n);
1561 }
1562 return n;
1563 }
1564
Clear()1565 void TexturePacket_Size::Clear() {
1566 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Size)
1567 ::google::protobuf::uint32 cached_has_bits = 0;
1568 // Prevent compiler warnings about cached_has_bits being unused
1569 (void) cached_has_bits;
1570
1571 cached_has_bits = _has_bits_[0];
1572 if (cached_has_bits & 3u) {
1573 ::memset(&w_, 0, static_cast<size_t>(
1574 reinterpret_cast<char*>(&h_) -
1575 reinterpret_cast<char*>(&w_)) + sizeof(h_));
1576 }
1577 _has_bits_.Clear();
1578 _internal_metadata_.Clear();
1579 }
1580
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1581 bool TexturePacket_Size::MergePartialFromCodedStream(
1582 ::google::protobuf::io::CodedInputStream* input) {
1583 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1584 ::google::protobuf::uint32 tag;
1585 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1586 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1587 &::google::protobuf::internal::InternalMetadataWithArenaLite::
1588 mutable_unknown_fields));
1589 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1590 &unknown_fields_string, false);
1591 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Size)
1592 for (;;) {
1593 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1594 tag = p.first;
1595 if (!p.second) goto handle_unusual;
1596 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1597 // optional int32 w = 1;
1598 case 1: {
1599 if (static_cast< ::google::protobuf::uint8>(tag) ==
1600 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1601 set_has_w();
1602 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1603 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1604 input, &w_)));
1605 } else {
1606 goto handle_unusual;
1607 }
1608 break;
1609 }
1610
1611 // optional int32 h = 2;
1612 case 2: {
1613 if (static_cast< ::google::protobuf::uint8>(tag) ==
1614 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1615 set_has_h();
1616 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1617 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1618 input, &h_)));
1619 } else {
1620 goto handle_unusual;
1621 }
1622 break;
1623 }
1624
1625 default: {
1626 handle_unusual:
1627 if (tag == 0) {
1628 goto success;
1629 }
1630 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1631 input, tag, &unknown_fields_stream));
1632 break;
1633 }
1634 }
1635 }
1636 success:
1637 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Size)
1638 return true;
1639 failure:
1640 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Size)
1641 return false;
1642 #undef DO_
1643 }
1644
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1645 void TexturePacket_Size::SerializeWithCachedSizes(
1646 ::google::protobuf::io::CodedOutputStream* output) const {
1647 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Size)
1648 ::google::protobuf::uint32 cached_has_bits = 0;
1649 (void) cached_has_bits;
1650
1651 cached_has_bits = _has_bits_[0];
1652 // optional int32 w = 1;
1653 if (cached_has_bits & 0x00000001u) {
1654 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output);
1655 }
1656
1657 // optional int32 h = 2;
1658 if (cached_has_bits & 0x00000002u) {
1659 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output);
1660 }
1661
1662 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1663 static_cast<int>(_internal_metadata_.unknown_fields().size()));
1664 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Size)
1665 }
1666
ByteSizeLong() const1667 size_t TexturePacket_Size::ByteSizeLong() const {
1668 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Size)
1669 size_t total_size = 0;
1670
1671 total_size += _internal_metadata_.unknown_fields().size();
1672
1673 if (_has_bits_[0 / 32] & 3u) {
1674 // optional int32 w = 1;
1675 if (has_w()) {
1676 total_size += 1 +
1677 ::google::protobuf::internal::WireFormatLite::Int32Size(
1678 this->w());
1679 }
1680
1681 // optional int32 h = 2;
1682 if (has_h()) {
1683 total_size += 1 +
1684 ::google::protobuf::internal::WireFormatLite::Int32Size(
1685 this->h());
1686 }
1687
1688 }
1689 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1690 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1691 _cached_size_ = cached_size;
1692 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1693 return total_size;
1694 }
1695
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)1696 void TexturePacket_Size::CheckTypeAndMergeFrom(
1697 const ::google::protobuf::MessageLite& from) {
1698 MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Size*>(&from));
1699 }
1700
MergeFrom(const TexturePacket_Size & from)1701 void TexturePacket_Size::MergeFrom(const TexturePacket_Size& from) {
1702 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Size)
1703 GOOGLE_DCHECK_NE(&from, this);
1704 _internal_metadata_.MergeFrom(from._internal_metadata_);
1705 ::google::protobuf::uint32 cached_has_bits = 0;
1706 (void) cached_has_bits;
1707
1708 cached_has_bits = from._has_bits_[0];
1709 if (cached_has_bits & 3u) {
1710 if (cached_has_bits & 0x00000001u) {
1711 w_ = from.w_;
1712 }
1713 if (cached_has_bits & 0x00000002u) {
1714 h_ = from.h_;
1715 }
1716 _has_bits_[0] |= cached_has_bits;
1717 }
1718 }
1719
CopyFrom(const TexturePacket_Size & from)1720 void TexturePacket_Size::CopyFrom(const TexturePacket_Size& from) {
1721 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Size)
1722 if (&from == this) return;
1723 Clear();
1724 MergeFrom(from);
1725 }
1726
IsInitialized() const1727 bool TexturePacket_Size::IsInitialized() const {
1728 return true;
1729 }
1730
Swap(TexturePacket_Size * other)1731 void TexturePacket_Size::Swap(TexturePacket_Size* other) {
1732 if (other == this) return;
1733 InternalSwap(other);
1734 }
InternalSwap(TexturePacket_Size * other)1735 void TexturePacket_Size::InternalSwap(TexturePacket_Size* other) {
1736 using std::swap;
1737 swap(w_, other->w_);
1738 swap(h_, other->h_);
1739 swap(_has_bits_[0], other->_has_bits_[0]);
1740 _internal_metadata_.Swap(&other->_internal_metadata_);
1741 swap(_cached_size_, other->_cached_size_);
1742 }
1743
GetTypeName() const1744 ::std::string TexturePacket_Size::GetTypeName() const {
1745 return "mozilla.layers.layerscope.TexturePacket.Size";
1746 }
1747
1748 #if PROTOBUF_INLINE_NOT_IN_HEADERS
1749 // TexturePacket_Size
1750
1751 // optional int32 w = 1;
has_w() const1752 bool TexturePacket_Size::has_w() const {
1753 return (_has_bits_[0] & 0x00000001u) != 0;
1754 }
set_has_w()1755 void TexturePacket_Size::set_has_w() {
1756 _has_bits_[0] |= 0x00000001u;
1757 }
clear_has_w()1758 void TexturePacket_Size::clear_has_w() {
1759 _has_bits_[0] &= ~0x00000001u;
1760 }
clear_w()1761 void TexturePacket_Size::clear_w() {
1762 w_ = 0;
1763 clear_has_w();
1764 }
w() const1765 ::google::protobuf::int32 TexturePacket_Size::w() const {
1766 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.w)
1767 return w_;
1768 }
set_w(::google::protobuf::int32 value)1769 void TexturePacket_Size::set_w(::google::protobuf::int32 value) {
1770 set_has_w();
1771 w_ = value;
1772 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.w)
1773 }
1774
1775 // optional int32 h = 2;
has_h() const1776 bool TexturePacket_Size::has_h() const {
1777 return (_has_bits_[0] & 0x00000002u) != 0;
1778 }
set_has_h()1779 void TexturePacket_Size::set_has_h() {
1780 _has_bits_[0] |= 0x00000002u;
1781 }
clear_has_h()1782 void TexturePacket_Size::clear_has_h() {
1783 _has_bits_[0] &= ~0x00000002u;
1784 }
clear_h()1785 void TexturePacket_Size::clear_h() {
1786 h_ = 0;
1787 clear_has_h();
1788 }
h() const1789 ::google::protobuf::int32 TexturePacket_Size::h() const {
1790 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.h)
1791 return h_;
1792 }
set_h(::google::protobuf::int32 value)1793 void TexturePacket_Size::set_h(::google::protobuf::int32 value) {
1794 set_has_h();
1795 h_ = value;
1796 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.h)
1797 }
1798
1799 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1800
1801 // ===================================================================
1802
1803 #if !defined(_MSC_VER) || _MSC_VER >= 1900
1804 const int TexturePacket_Matrix::kIs2DFieldNumber;
1805 const int TexturePacket_Matrix::kIsIdFieldNumber;
1806 const int TexturePacket_Matrix::kMFieldNumber;
1807 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1808
TexturePacket_Matrix()1809 TexturePacket_Matrix::TexturePacket_Matrix()
1810 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
1811 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1812 protobuf_LayerScopePacket_2eproto::InitDefaults();
1813 }
1814 SharedCtor();
1815 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
1816 }
TexturePacket_Matrix(const TexturePacket_Matrix & from)1817 TexturePacket_Matrix::TexturePacket_Matrix(const TexturePacket_Matrix& from)
1818 : ::google::protobuf::MessageLite(),
1819 _internal_metadata_(NULL),
1820 _has_bits_(from._has_bits_),
1821 _cached_size_(0),
1822 m_(from.m_) {
1823 _internal_metadata_.MergeFrom(from._internal_metadata_);
1824 ::memcpy(&is2d_, &from.is2d_,
1825 static_cast<size_t>(reinterpret_cast<char*>(&isid_) -
1826 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
1827 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
1828 }
1829
SharedCtor()1830 void TexturePacket_Matrix::SharedCtor() {
1831 _cached_size_ = 0;
1832 ::memset(&is2d_, 0, static_cast<size_t>(
1833 reinterpret_cast<char*>(&isid_) -
1834 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
1835 }
1836
~TexturePacket_Matrix()1837 TexturePacket_Matrix::~TexturePacket_Matrix() {
1838 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Matrix)
1839 SharedDtor();
1840 }
1841
SharedDtor()1842 void TexturePacket_Matrix::SharedDtor() {
1843 }
1844
SetCachedSize(int size) const1845 void TexturePacket_Matrix::SetCachedSize(int size) const {
1846 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1847 _cached_size_ = size;
1848 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1849 }
default_instance()1850 const TexturePacket_Matrix& TexturePacket_Matrix::default_instance() {
1851 protobuf_LayerScopePacket_2eproto::InitDefaults();
1852 return *internal_default_instance();
1853 }
1854
New(::google::protobuf::Arena * arena) const1855 TexturePacket_Matrix* TexturePacket_Matrix::New(::google::protobuf::Arena* arena) const {
1856 TexturePacket_Matrix* n = new TexturePacket_Matrix;
1857 if (arena != NULL) {
1858 arena->Own(n);
1859 }
1860 return n;
1861 }
1862
Clear()1863 void TexturePacket_Matrix::Clear() {
1864 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Matrix)
1865 ::google::protobuf::uint32 cached_has_bits = 0;
1866 // Prevent compiler warnings about cached_has_bits being unused
1867 (void) cached_has_bits;
1868
1869 m_.Clear();
1870 cached_has_bits = _has_bits_[0];
1871 if (cached_has_bits & 3u) {
1872 ::memset(&is2d_, 0, static_cast<size_t>(
1873 reinterpret_cast<char*>(&isid_) -
1874 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
1875 }
1876 _has_bits_.Clear();
1877 _internal_metadata_.Clear();
1878 }
1879
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)1880 bool TexturePacket_Matrix::MergePartialFromCodedStream(
1881 ::google::protobuf::io::CodedInputStream* input) {
1882 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1883 ::google::protobuf::uint32 tag;
1884 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
1885 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
1886 &::google::protobuf::internal::InternalMetadataWithArenaLite::
1887 mutable_unknown_fields));
1888 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
1889 &unknown_fields_string, false);
1890 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Matrix)
1891 for (;;) {
1892 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1893 tag = p.first;
1894 if (!p.second) goto handle_unusual;
1895 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1896 // optional bool is2D = 1;
1897 case 1: {
1898 if (static_cast< ::google::protobuf::uint8>(tag) ==
1899 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
1900 set_has_is2d();
1901 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1902 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1903 input, &is2d_)));
1904 } else {
1905 goto handle_unusual;
1906 }
1907 break;
1908 }
1909
1910 // optional bool isId = 2;
1911 case 2: {
1912 if (static_cast< ::google::protobuf::uint8>(tag) ==
1913 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1914 set_has_isid();
1915 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1916 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1917 input, &isid_)));
1918 } else {
1919 goto handle_unusual;
1920 }
1921 break;
1922 }
1923
1924 // repeated float m = 3;
1925 case 3: {
1926 if (static_cast< ::google::protobuf::uint8>(tag) ==
1927 static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
1928 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1929 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1930 1, 29u, input, this->mutable_m())));
1931 } else if (
1932 static_cast< ::google::protobuf::uint8>(tag) ==
1933 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1934 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1935 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1936 input, this->mutable_m())));
1937 } else {
1938 goto handle_unusual;
1939 }
1940 break;
1941 }
1942
1943 default: {
1944 handle_unusual:
1945 if (tag == 0) {
1946 goto success;
1947 }
1948 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
1949 input, tag, &unknown_fields_stream));
1950 break;
1951 }
1952 }
1953 }
1954 success:
1955 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Matrix)
1956 return true;
1957 failure:
1958 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Matrix)
1959 return false;
1960 #undef DO_
1961 }
1962
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const1963 void TexturePacket_Matrix::SerializeWithCachedSizes(
1964 ::google::protobuf::io::CodedOutputStream* output) const {
1965 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Matrix)
1966 ::google::protobuf::uint32 cached_has_bits = 0;
1967 (void) cached_has_bits;
1968
1969 cached_has_bits = _has_bits_[0];
1970 // optional bool is2D = 1;
1971 if (cached_has_bits & 0x00000001u) {
1972 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output);
1973 }
1974
1975 // optional bool isId = 2;
1976 if (cached_has_bits & 0x00000002u) {
1977 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output);
1978 }
1979
1980 // repeated float m = 3;
1981 for (int i = 0, n = this->m_size(); i < n; i++) {
1982 ::google::protobuf::internal::WireFormatLite::WriteFloat(
1983 3, this->m(i), output);
1984 }
1985
1986 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
1987 static_cast<int>(_internal_metadata_.unknown_fields().size()));
1988 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Matrix)
1989 }
1990
ByteSizeLong() const1991 size_t TexturePacket_Matrix::ByteSizeLong() const {
1992 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Matrix)
1993 size_t total_size = 0;
1994
1995 total_size += _internal_metadata_.unknown_fields().size();
1996
1997 // repeated float m = 3;
1998 {
1999 unsigned int count = static_cast<unsigned int>(this->m_size());
2000 size_t data_size = 4UL * count;
2001 total_size += 1 *
2002 ::google::protobuf::internal::FromIntSize(this->m_size());
2003 total_size += data_size;
2004 }
2005
2006 if (_has_bits_[0 / 32] & 3u) {
2007 // optional bool is2D = 1;
2008 if (has_is2d()) {
2009 total_size += 1 + 1;
2010 }
2011
2012 // optional bool isId = 2;
2013 if (has_isid()) {
2014 total_size += 1 + 1;
2015 }
2016
2017 }
2018 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2019 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2020 _cached_size_ = cached_size;
2021 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2022 return total_size;
2023 }
2024
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)2025 void TexturePacket_Matrix::CheckTypeAndMergeFrom(
2026 const ::google::protobuf::MessageLite& from) {
2027 MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Matrix*>(&from));
2028 }
2029
MergeFrom(const TexturePacket_Matrix & from)2030 void TexturePacket_Matrix::MergeFrom(const TexturePacket_Matrix& from) {
2031 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Matrix)
2032 GOOGLE_DCHECK_NE(&from, this);
2033 _internal_metadata_.MergeFrom(from._internal_metadata_);
2034 ::google::protobuf::uint32 cached_has_bits = 0;
2035 (void) cached_has_bits;
2036
2037 m_.MergeFrom(from.m_);
2038 cached_has_bits = from._has_bits_[0];
2039 if (cached_has_bits & 3u) {
2040 if (cached_has_bits & 0x00000001u) {
2041 is2d_ = from.is2d_;
2042 }
2043 if (cached_has_bits & 0x00000002u) {
2044 isid_ = from.isid_;
2045 }
2046 _has_bits_[0] |= cached_has_bits;
2047 }
2048 }
2049
CopyFrom(const TexturePacket_Matrix & from)2050 void TexturePacket_Matrix::CopyFrom(const TexturePacket_Matrix& from) {
2051 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Matrix)
2052 if (&from == this) return;
2053 Clear();
2054 MergeFrom(from);
2055 }
2056
IsInitialized() const2057 bool TexturePacket_Matrix::IsInitialized() const {
2058 return true;
2059 }
2060
Swap(TexturePacket_Matrix * other)2061 void TexturePacket_Matrix::Swap(TexturePacket_Matrix* other) {
2062 if (other == this) return;
2063 InternalSwap(other);
2064 }
InternalSwap(TexturePacket_Matrix * other)2065 void TexturePacket_Matrix::InternalSwap(TexturePacket_Matrix* other) {
2066 using std::swap;
2067 m_.InternalSwap(&other->m_);
2068 swap(is2d_, other->is2d_);
2069 swap(isid_, other->isid_);
2070 swap(_has_bits_[0], other->_has_bits_[0]);
2071 _internal_metadata_.Swap(&other->_internal_metadata_);
2072 swap(_cached_size_, other->_cached_size_);
2073 }
2074
GetTypeName() const2075 ::std::string TexturePacket_Matrix::GetTypeName() const {
2076 return "mozilla.layers.layerscope.TexturePacket.Matrix";
2077 }
2078
2079 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2080 // TexturePacket_Matrix
2081
2082 // optional bool is2D = 1;
has_is2d() const2083 bool TexturePacket_Matrix::has_is2d() const {
2084 return (_has_bits_[0] & 0x00000001u) != 0;
2085 }
set_has_is2d()2086 void TexturePacket_Matrix::set_has_is2d() {
2087 _has_bits_[0] |= 0x00000001u;
2088 }
clear_has_is2d()2089 void TexturePacket_Matrix::clear_has_is2d() {
2090 _has_bits_[0] &= ~0x00000001u;
2091 }
clear_is2d()2092 void TexturePacket_Matrix::clear_is2d() {
2093 is2d_ = false;
2094 clear_has_is2d();
2095 }
is2d() const2096 bool TexturePacket_Matrix::is2d() const {
2097 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.is2D)
2098 return is2d_;
2099 }
set_is2d(bool value)2100 void TexturePacket_Matrix::set_is2d(bool value) {
2101 set_has_is2d();
2102 is2d_ = value;
2103 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.is2D)
2104 }
2105
2106 // optional bool isId = 2;
has_isid() const2107 bool TexturePacket_Matrix::has_isid() const {
2108 return (_has_bits_[0] & 0x00000002u) != 0;
2109 }
set_has_isid()2110 void TexturePacket_Matrix::set_has_isid() {
2111 _has_bits_[0] |= 0x00000002u;
2112 }
clear_has_isid()2113 void TexturePacket_Matrix::clear_has_isid() {
2114 _has_bits_[0] &= ~0x00000002u;
2115 }
clear_isid()2116 void TexturePacket_Matrix::clear_isid() {
2117 isid_ = false;
2118 clear_has_isid();
2119 }
isid() const2120 bool TexturePacket_Matrix::isid() const {
2121 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.isId)
2122 return isid_;
2123 }
set_isid(bool value)2124 void TexturePacket_Matrix::set_isid(bool value) {
2125 set_has_isid();
2126 isid_ = value;
2127 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.isId)
2128 }
2129
2130 // repeated float m = 3;
m_size() const2131 int TexturePacket_Matrix::m_size() const {
2132 return m_.size();
2133 }
clear_m()2134 void TexturePacket_Matrix::clear_m() {
2135 m_.Clear();
2136 }
m(int index) const2137 float TexturePacket_Matrix::m(int index) const {
2138 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.m)
2139 return m_.Get(index);
2140 }
set_m(int index,float value)2141 void TexturePacket_Matrix::set_m(int index, float value) {
2142 m_.Set(index, value);
2143 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.m)
2144 }
add_m(float value)2145 void TexturePacket_Matrix::add_m(float value) {
2146 m_.Add(value);
2147 // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.TexturePacket.Matrix.m)
2148 }
2149 const ::google::protobuf::RepeatedField< float >&
m() const2150 TexturePacket_Matrix::m() const {
2151 // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.TexturePacket.Matrix.m)
2152 return m_;
2153 }
2154 ::google::protobuf::RepeatedField< float >*
mutable_m()2155 TexturePacket_Matrix::mutable_m() {
2156 // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.TexturePacket.Matrix.m)
2157 return &m_;
2158 }
2159
2160 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2161
2162 // ===================================================================
2163
2164 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2165 const int TexturePacket_EffectMask::kMIs3DFieldNumber;
2166 const int TexturePacket_EffectMask::kMSizeFieldNumber;
2167 const int TexturePacket_EffectMask::kMMaskTransformFieldNumber;
2168 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2169
TexturePacket_EffectMask()2170 TexturePacket_EffectMask::TexturePacket_EffectMask()
2171 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
2172 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2173 protobuf_LayerScopePacket_2eproto::InitDefaults();
2174 }
2175 SharedCtor();
2176 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
2177 }
TexturePacket_EffectMask(const TexturePacket_EffectMask & from)2178 TexturePacket_EffectMask::TexturePacket_EffectMask(const TexturePacket_EffectMask& from)
2179 : ::google::protobuf::MessageLite(),
2180 _internal_metadata_(NULL),
2181 _has_bits_(from._has_bits_),
2182 _cached_size_(0) {
2183 _internal_metadata_.MergeFrom(from._internal_metadata_);
2184 if (from.has_msize()) {
2185 msize_ = new ::mozilla::layers::layerscope::TexturePacket_Size(*from.msize_);
2186 } else {
2187 msize_ = NULL;
2188 }
2189 if (from.has_mmasktransform()) {
2190 mmasktransform_ = new ::mozilla::layers::layerscope::TexturePacket_Matrix(*from.mmasktransform_);
2191 } else {
2192 mmasktransform_ = NULL;
2193 }
2194 mis3d_ = from.mis3d_;
2195 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
2196 }
2197
SharedCtor()2198 void TexturePacket_EffectMask::SharedCtor() {
2199 _cached_size_ = 0;
2200 ::memset(&msize_, 0, static_cast<size_t>(
2201 reinterpret_cast<char*>(&mis3d_) -
2202 reinterpret_cast<char*>(&msize_)) + sizeof(mis3d_));
2203 }
2204
~TexturePacket_EffectMask()2205 TexturePacket_EffectMask::~TexturePacket_EffectMask() {
2206 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
2207 SharedDtor();
2208 }
2209
SharedDtor()2210 void TexturePacket_EffectMask::SharedDtor() {
2211 if (this != internal_default_instance()) delete msize_;
2212 if (this != internal_default_instance()) delete mmasktransform_;
2213 }
2214
SetCachedSize(int size) const2215 void TexturePacket_EffectMask::SetCachedSize(int size) const {
2216 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2217 _cached_size_ = size;
2218 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2219 }
default_instance()2220 const TexturePacket_EffectMask& TexturePacket_EffectMask::default_instance() {
2221 protobuf_LayerScopePacket_2eproto::InitDefaults();
2222 return *internal_default_instance();
2223 }
2224
New(::google::protobuf::Arena * arena) const2225 TexturePacket_EffectMask* TexturePacket_EffectMask::New(::google::protobuf::Arena* arena) const {
2226 TexturePacket_EffectMask* n = new TexturePacket_EffectMask;
2227 if (arena != NULL) {
2228 arena->Own(n);
2229 }
2230 return n;
2231 }
2232
Clear()2233 void TexturePacket_EffectMask::Clear() {
2234 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2235 ::google::protobuf::uint32 cached_has_bits = 0;
2236 // Prevent compiler warnings about cached_has_bits being unused
2237 (void) cached_has_bits;
2238
2239 cached_has_bits = _has_bits_[0];
2240 if (cached_has_bits & 3u) {
2241 if (cached_has_bits & 0x00000001u) {
2242 GOOGLE_DCHECK(msize_ != NULL);
2243 msize_->::mozilla::layers::layerscope::TexturePacket_Size::Clear();
2244 }
2245 if (cached_has_bits & 0x00000002u) {
2246 GOOGLE_DCHECK(mmasktransform_ != NULL);
2247 mmasktransform_->::mozilla::layers::layerscope::TexturePacket_Matrix::Clear();
2248 }
2249 }
2250 mis3d_ = false;
2251 _has_bits_.Clear();
2252 _internal_metadata_.Clear();
2253 }
2254
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2255 bool TexturePacket_EffectMask::MergePartialFromCodedStream(
2256 ::google::protobuf::io::CodedInputStream* input) {
2257 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2258 ::google::protobuf::uint32 tag;
2259 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
2260 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
2261 &::google::protobuf::internal::InternalMetadataWithArenaLite::
2262 mutable_unknown_fields));
2263 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2264 &unknown_fields_string, false);
2265 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2266 for (;;) {
2267 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2268 tag = p.first;
2269 if (!p.second) goto handle_unusual;
2270 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2271 // optional bool mIs3D = 1;
2272 case 1: {
2273 if (static_cast< ::google::protobuf::uint8>(tag) ==
2274 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2275 set_has_mis3d();
2276 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2277 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2278 input, &mis3d_)));
2279 } else {
2280 goto handle_unusual;
2281 }
2282 break;
2283 }
2284
2285 // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
2286 case 2: {
2287 if (static_cast< ::google::protobuf::uint8>(tag) ==
2288 static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2289 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2290 input, mutable_msize()));
2291 } else {
2292 goto handle_unusual;
2293 }
2294 break;
2295 }
2296
2297 // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
2298 case 3: {
2299 if (static_cast< ::google::protobuf::uint8>(tag) ==
2300 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
2301 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2302 input, mutable_mmasktransform()));
2303 } else {
2304 goto handle_unusual;
2305 }
2306 break;
2307 }
2308
2309 default: {
2310 handle_unusual:
2311 if (tag == 0) {
2312 goto success;
2313 }
2314 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2315 input, tag, &unknown_fields_stream));
2316 break;
2317 }
2318 }
2319 }
2320 success:
2321 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.EffectMask)
2322 return true;
2323 failure:
2324 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.EffectMask)
2325 return false;
2326 #undef DO_
2327 }
2328
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2329 void TexturePacket_EffectMask::SerializeWithCachedSizes(
2330 ::google::protobuf::io::CodedOutputStream* output) const {
2331 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2332 ::google::protobuf::uint32 cached_has_bits = 0;
2333 (void) cached_has_bits;
2334
2335 cached_has_bits = _has_bits_[0];
2336 // optional bool mIs3D = 1;
2337 if (cached_has_bits & 0x00000004u) {
2338 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->mis3d(), output);
2339 }
2340
2341 // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
2342 if (cached_has_bits & 0x00000001u) {
2343 ::google::protobuf::internal::WireFormatLite::WriteMessage(
2344 2, *this->msize_, output);
2345 }
2346
2347 // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
2348 if (cached_has_bits & 0x00000002u) {
2349 ::google::protobuf::internal::WireFormatLite::WriteMessage(
2350 3, *this->mmasktransform_, output);
2351 }
2352
2353 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
2354 static_cast<int>(_internal_metadata_.unknown_fields().size()));
2355 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.EffectMask)
2356 }
2357
ByteSizeLong() const2358 size_t TexturePacket_EffectMask::ByteSizeLong() const {
2359 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2360 size_t total_size = 0;
2361
2362 total_size += _internal_metadata_.unknown_fields().size();
2363
2364 if (_has_bits_[0 / 32] & 7u) {
2365 // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
2366 if (has_msize()) {
2367 total_size += 1 +
2368 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2369 *this->msize_);
2370 }
2371
2372 // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
2373 if (has_mmasktransform()) {
2374 total_size += 1 +
2375 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2376 *this->mmasktransform_);
2377 }
2378
2379 // optional bool mIs3D = 1;
2380 if (has_mis3d()) {
2381 total_size += 1 + 1;
2382 }
2383
2384 }
2385 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2386 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2387 _cached_size_ = cached_size;
2388 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2389 return total_size;
2390 }
2391
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)2392 void TexturePacket_EffectMask::CheckTypeAndMergeFrom(
2393 const ::google::protobuf::MessageLite& from) {
2394 MergeFrom(*::google::protobuf::down_cast<const TexturePacket_EffectMask*>(&from));
2395 }
2396
MergeFrom(const TexturePacket_EffectMask & from)2397 void TexturePacket_EffectMask::MergeFrom(const TexturePacket_EffectMask& from) {
2398 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2399 GOOGLE_DCHECK_NE(&from, this);
2400 _internal_metadata_.MergeFrom(from._internal_metadata_);
2401 ::google::protobuf::uint32 cached_has_bits = 0;
2402 (void) cached_has_bits;
2403
2404 cached_has_bits = from._has_bits_[0];
2405 if (cached_has_bits & 7u) {
2406 if (cached_has_bits & 0x00000001u) {
2407 mutable_msize()->::mozilla::layers::layerscope::TexturePacket_Size::MergeFrom(from.msize());
2408 }
2409 if (cached_has_bits & 0x00000002u) {
2410 mutable_mmasktransform()->::mozilla::layers::layerscope::TexturePacket_Matrix::MergeFrom(from.mmasktransform());
2411 }
2412 if (cached_has_bits & 0x00000004u) {
2413 mis3d_ = from.mis3d_;
2414 }
2415 _has_bits_[0] |= cached_has_bits;
2416 }
2417 }
2418
CopyFrom(const TexturePacket_EffectMask & from)2419 void TexturePacket_EffectMask::CopyFrom(const TexturePacket_EffectMask& from) {
2420 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
2421 if (&from == this) return;
2422 Clear();
2423 MergeFrom(from);
2424 }
2425
IsInitialized() const2426 bool TexturePacket_EffectMask::IsInitialized() const {
2427 return true;
2428 }
2429
Swap(TexturePacket_EffectMask * other)2430 void TexturePacket_EffectMask::Swap(TexturePacket_EffectMask* other) {
2431 if (other == this) return;
2432 InternalSwap(other);
2433 }
InternalSwap(TexturePacket_EffectMask * other)2434 void TexturePacket_EffectMask::InternalSwap(TexturePacket_EffectMask* other) {
2435 using std::swap;
2436 swap(msize_, other->msize_);
2437 swap(mmasktransform_, other->mmasktransform_);
2438 swap(mis3d_, other->mis3d_);
2439 swap(_has_bits_[0], other->_has_bits_[0]);
2440 _internal_metadata_.Swap(&other->_internal_metadata_);
2441 swap(_cached_size_, other->_cached_size_);
2442 }
2443
GetTypeName() const2444 ::std::string TexturePacket_EffectMask::GetTypeName() const {
2445 return "mozilla.layers.layerscope.TexturePacket.EffectMask";
2446 }
2447
2448 #if PROTOBUF_INLINE_NOT_IN_HEADERS
2449 // TexturePacket_EffectMask
2450
2451 // optional bool mIs3D = 1;
has_mis3d() const2452 bool TexturePacket_EffectMask::has_mis3d() const {
2453 return (_has_bits_[0] & 0x00000004u) != 0;
2454 }
set_has_mis3d()2455 void TexturePacket_EffectMask::set_has_mis3d() {
2456 _has_bits_[0] |= 0x00000004u;
2457 }
clear_has_mis3d()2458 void TexturePacket_EffectMask::clear_has_mis3d() {
2459 _has_bits_[0] &= ~0x00000004u;
2460 }
clear_mis3d()2461 void TexturePacket_EffectMask::clear_mis3d() {
2462 mis3d_ = false;
2463 clear_has_mis3d();
2464 }
mis3d() const2465 bool TexturePacket_EffectMask::mis3d() const {
2466 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D)
2467 return mis3d_;
2468 }
set_mis3d(bool value)2469 void TexturePacket_EffectMask::set_mis3d(bool value) {
2470 set_has_mis3d();
2471 mis3d_ = value;
2472 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D)
2473 }
2474
2475 // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
has_msize() const2476 bool TexturePacket_EffectMask::has_msize() const {
2477 return (_has_bits_[0] & 0x00000001u) != 0;
2478 }
set_has_msize()2479 void TexturePacket_EffectMask::set_has_msize() {
2480 _has_bits_[0] |= 0x00000001u;
2481 }
clear_has_msize()2482 void TexturePacket_EffectMask::clear_has_msize() {
2483 _has_bits_[0] &= ~0x00000001u;
2484 }
clear_msize()2485 void TexturePacket_EffectMask::clear_msize() {
2486 if (msize_ != NULL) msize_->::mozilla::layers::layerscope::TexturePacket_Size::Clear();
2487 clear_has_msize();
2488 }
msize() const2489 const ::mozilla::layers::layerscope::TexturePacket_Size& TexturePacket_EffectMask::msize() const {
2490 const ::mozilla::layers::layerscope::TexturePacket_Size* p = msize_;
2491 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
2492 return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Size*>(
2493 &::mozilla::layers::layerscope::_TexturePacket_Size_default_instance_);
2494 }
mutable_msize()2495 ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::mutable_msize() {
2496 set_has_msize();
2497 if (msize_ == NULL) {
2498 msize_ = new ::mozilla::layers::layerscope::TexturePacket_Size;
2499 }
2500 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
2501 return msize_;
2502 }
release_msize()2503 ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::release_msize() {
2504 // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
2505 clear_has_msize();
2506 ::mozilla::layers::layerscope::TexturePacket_Size* temp = msize_;
2507 msize_ = NULL;
2508 return temp;
2509 }
set_allocated_msize(::mozilla::layers::layerscope::TexturePacket_Size * msize)2510 void TexturePacket_EffectMask::set_allocated_msize(::mozilla::layers::layerscope::TexturePacket_Size* msize) {
2511 delete msize_;
2512 msize_ = msize;
2513 if (msize) {
2514 set_has_msize();
2515 } else {
2516 clear_has_msize();
2517 }
2518 // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
2519 }
2520
2521 // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
has_mmasktransform() const2522 bool TexturePacket_EffectMask::has_mmasktransform() const {
2523 return (_has_bits_[0] & 0x00000002u) != 0;
2524 }
set_has_mmasktransform()2525 void TexturePacket_EffectMask::set_has_mmasktransform() {
2526 _has_bits_[0] |= 0x00000002u;
2527 }
clear_has_mmasktransform()2528 void TexturePacket_EffectMask::clear_has_mmasktransform() {
2529 _has_bits_[0] &= ~0x00000002u;
2530 }
clear_mmasktransform()2531 void TexturePacket_EffectMask::clear_mmasktransform() {
2532 if (mmasktransform_ != NULL) mmasktransform_->::mozilla::layers::layerscope::TexturePacket_Matrix::Clear();
2533 clear_has_mmasktransform();
2534 }
mmasktransform() const2535 const ::mozilla::layers::layerscope::TexturePacket_Matrix& TexturePacket_EffectMask::mmasktransform() const {
2536 const ::mozilla::layers::layerscope::TexturePacket_Matrix* p = mmasktransform_;
2537 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
2538 return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Matrix*>(
2539 &::mozilla::layers::layerscope::_TexturePacket_Matrix_default_instance_);
2540 }
mutable_mmasktransform()2541 ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::mutable_mmasktransform() {
2542 set_has_mmasktransform();
2543 if (mmasktransform_ == NULL) {
2544 mmasktransform_ = new ::mozilla::layers::layerscope::TexturePacket_Matrix;
2545 }
2546 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
2547 return mmasktransform_;
2548 }
release_mmasktransform()2549 ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::release_mmasktransform() {
2550 // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
2551 clear_has_mmasktransform();
2552 ::mozilla::layers::layerscope::TexturePacket_Matrix* temp = mmasktransform_;
2553 mmasktransform_ = NULL;
2554 return temp;
2555 }
set_allocated_mmasktransform(::mozilla::layers::layerscope::TexturePacket_Matrix * mmasktransform)2556 void TexturePacket_EffectMask::set_allocated_mmasktransform(::mozilla::layers::layerscope::TexturePacket_Matrix* mmasktransform) {
2557 delete mmasktransform_;
2558 mmasktransform_ = mmasktransform;
2559 if (mmasktransform) {
2560 set_has_mmasktransform();
2561 } else {
2562 clear_has_mmasktransform();
2563 }
2564 // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
2565 }
2566
2567 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
2568
2569 // ===================================================================
2570
2571 #if !defined(_MSC_VER) || _MSC_VER >= 1900
2572 const int TexturePacket::kLayerrefFieldNumber;
2573 const int TexturePacket::kWidthFieldNumber;
2574 const int TexturePacket::kHeightFieldNumber;
2575 const int TexturePacket::kStrideFieldNumber;
2576 const int TexturePacket::kNameFieldNumber;
2577 const int TexturePacket::kTargetFieldNumber;
2578 const int TexturePacket::kDataformatFieldNumber;
2579 const int TexturePacket::kGlcontextFieldNumber;
2580 const int TexturePacket::kDataFieldNumber;
2581 const int TexturePacket::kMTextureCoordsFieldNumber;
2582 const int TexturePacket::kMPremultipliedFieldNumber;
2583 const int TexturePacket::kMFilterFieldNumber;
2584 const int TexturePacket::kIsMaskFieldNumber;
2585 const int TexturePacket::kMaskFieldNumber;
2586 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2587
TexturePacket()2588 TexturePacket::TexturePacket()
2589 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
2590 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2591 protobuf_LayerScopePacket_2eproto::InitDefaults();
2592 }
2593 SharedCtor();
2594 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket)
2595 }
TexturePacket(const TexturePacket & from)2596 TexturePacket::TexturePacket(const TexturePacket& from)
2597 : ::google::protobuf::MessageLite(),
2598 _internal_metadata_(NULL),
2599 _has_bits_(from._has_bits_),
2600 _cached_size_(0) {
2601 _internal_metadata_.MergeFrom(from._internal_metadata_);
2602 data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2603 if (from.has_data()) {
2604 data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
2605 }
2606 if (from.has_mtexturecoords()) {
2607 mtexturecoords_ = new ::mozilla::layers::layerscope::TexturePacket_Rect(*from.mtexturecoords_);
2608 } else {
2609 mtexturecoords_ = NULL;
2610 }
2611 if (from.has_mask()) {
2612 mask_ = new ::mozilla::layers::layerscope::TexturePacket_EffectMask(*from.mask_);
2613 } else {
2614 mask_ = NULL;
2615 }
2616 ::memcpy(&layerref_, &from.layerref_,
2617 static_cast<size_t>(reinterpret_cast<char*>(&ismask_) -
2618 reinterpret_cast<char*>(&layerref_)) + sizeof(ismask_));
2619 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket)
2620 }
2621
SharedCtor()2622 void TexturePacket::SharedCtor() {
2623 _cached_size_ = 0;
2624 data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2625 ::memset(&mtexturecoords_, 0, static_cast<size_t>(
2626 reinterpret_cast<char*>(&ismask_) -
2627 reinterpret_cast<char*>(&mtexturecoords_)) + sizeof(ismask_));
2628 }
2629
~TexturePacket()2630 TexturePacket::~TexturePacket() {
2631 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket)
2632 SharedDtor();
2633 }
2634
SharedDtor()2635 void TexturePacket::SharedDtor() {
2636 data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2637 if (this != internal_default_instance()) delete mtexturecoords_;
2638 if (this != internal_default_instance()) delete mask_;
2639 }
2640
SetCachedSize(int size) const2641 void TexturePacket::SetCachedSize(int size) const {
2642 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2643 _cached_size_ = size;
2644 GOOGLE_SAFE_CONCURRENT_WRITES_END();
2645 }
default_instance()2646 const TexturePacket& TexturePacket::default_instance() {
2647 protobuf_LayerScopePacket_2eproto::InitDefaults();
2648 return *internal_default_instance();
2649 }
2650
New(::google::protobuf::Arena * arena) const2651 TexturePacket* TexturePacket::New(::google::protobuf::Arena* arena) const {
2652 TexturePacket* n = new TexturePacket;
2653 if (arena != NULL) {
2654 arena->Own(n);
2655 }
2656 return n;
2657 }
2658
Clear()2659 void TexturePacket::Clear() {
2660 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket)
2661 ::google::protobuf::uint32 cached_has_bits = 0;
2662 // Prevent compiler warnings about cached_has_bits being unused
2663 (void) cached_has_bits;
2664
2665 cached_has_bits = _has_bits_[0];
2666 if (cached_has_bits & 7u) {
2667 if (cached_has_bits & 0x00000001u) {
2668 GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2669 (*data_.UnsafeRawStringPointer())->clear();
2670 }
2671 if (cached_has_bits & 0x00000002u) {
2672 GOOGLE_DCHECK(mtexturecoords_ != NULL);
2673 mtexturecoords_->::mozilla::layers::layerscope::TexturePacket_Rect::Clear();
2674 }
2675 if (cached_has_bits & 0x00000004u) {
2676 GOOGLE_DCHECK(mask_ != NULL);
2677 mask_->::mozilla::layers::layerscope::TexturePacket_EffectMask::Clear();
2678 }
2679 }
2680 if (cached_has_bits & 248u) {
2681 ::memset(&layerref_, 0, static_cast<size_t>(
2682 reinterpret_cast<char*>(&name_) -
2683 reinterpret_cast<char*>(&layerref_)) + sizeof(name_));
2684 }
2685 if (cached_has_bits & 16128u) {
2686 ::memset(&target_, 0, static_cast<size_t>(
2687 reinterpret_cast<char*>(&ismask_) -
2688 reinterpret_cast<char*>(&target_)) + sizeof(ismask_));
2689 }
2690 _has_bits_.Clear();
2691 _internal_metadata_.Clear();
2692 }
2693
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)2694 bool TexturePacket::MergePartialFromCodedStream(
2695 ::google::protobuf::io::CodedInputStream* input) {
2696 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2697 ::google::protobuf::uint32 tag;
2698 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
2699 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
2700 &::google::protobuf::internal::InternalMetadataWithArenaLite::
2701 mutable_unknown_fields));
2702 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
2703 &unknown_fields_string, false);
2704 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket)
2705 for (;;) {
2706 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
2707 tag = p.first;
2708 if (!p.second) goto handle_unusual;
2709 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2710 // required uint64 layerref = 1;
2711 case 1: {
2712 if (static_cast< ::google::protobuf::uint8>(tag) ==
2713 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
2714 set_has_layerref();
2715 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2716 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2717 input, &layerref_)));
2718 } else {
2719 goto handle_unusual;
2720 }
2721 break;
2722 }
2723
2724 // optional uint32 width = 2;
2725 case 2: {
2726 if (static_cast< ::google::protobuf::uint8>(tag) ==
2727 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
2728 set_has_width();
2729 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2730 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2731 input, &width_)));
2732 } else {
2733 goto handle_unusual;
2734 }
2735 break;
2736 }
2737
2738 // optional uint32 height = 3;
2739 case 3: {
2740 if (static_cast< ::google::protobuf::uint8>(tag) ==
2741 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2742 set_has_height();
2743 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2744 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2745 input, &height_)));
2746 } else {
2747 goto handle_unusual;
2748 }
2749 break;
2750 }
2751
2752 // optional uint32 stride = 4;
2753 case 4: {
2754 if (static_cast< ::google::protobuf::uint8>(tag) ==
2755 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
2756 set_has_stride();
2757 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2758 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2759 input, &stride_)));
2760 } else {
2761 goto handle_unusual;
2762 }
2763 break;
2764 }
2765
2766 // optional uint32 name = 5;
2767 case 5: {
2768 if (static_cast< ::google::protobuf::uint8>(tag) ==
2769 static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2770 set_has_name();
2771 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2772 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2773 input, &name_)));
2774 } else {
2775 goto handle_unusual;
2776 }
2777 break;
2778 }
2779
2780 // optional uint32 target = 6;
2781 case 6: {
2782 if (static_cast< ::google::protobuf::uint8>(tag) ==
2783 static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
2784 set_has_target();
2785 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2786 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2787 input, &target_)));
2788 } else {
2789 goto handle_unusual;
2790 }
2791 break;
2792 }
2793
2794 // optional uint32 dataformat = 7;
2795 case 7: {
2796 if (static_cast< ::google::protobuf::uint8>(tag) ==
2797 static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
2798 set_has_dataformat();
2799 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2800 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2801 input, &dataformat_)));
2802 } else {
2803 goto handle_unusual;
2804 }
2805 break;
2806 }
2807
2808 // optional uint64 glcontext = 8;
2809 case 8: {
2810 if (static_cast< ::google::protobuf::uint8>(tag) ==
2811 static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
2812 set_has_glcontext();
2813 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2814 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2815 input, &glcontext_)));
2816 } else {
2817 goto handle_unusual;
2818 }
2819 break;
2820 }
2821
2822 // optional bytes data = 9;
2823 case 9: {
2824 if (static_cast< ::google::protobuf::uint8>(tag) ==
2825 static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
2826 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2827 input, this->mutable_data()));
2828 } else {
2829 goto handle_unusual;
2830 }
2831 break;
2832 }
2833
2834 // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
2835 case 10: {
2836 if (static_cast< ::google::protobuf::uint8>(tag) ==
2837 static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
2838 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2839 input, mutable_mtexturecoords()));
2840 } else {
2841 goto handle_unusual;
2842 }
2843 break;
2844 }
2845
2846 // optional bool mPremultiplied = 11;
2847 case 11: {
2848 if (static_cast< ::google::protobuf::uint8>(tag) ==
2849 static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
2850 set_has_mpremultiplied();
2851 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2852 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2853 input, &mpremultiplied_)));
2854 } else {
2855 goto handle_unusual;
2856 }
2857 break;
2858 }
2859
2860 // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
2861 case 12: {
2862 if (static_cast< ::google::protobuf::uint8>(tag) ==
2863 static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
2864 int value;
2865 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2866 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2867 input, &value)));
2868 if (::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value)) {
2869 set_mfilter(static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(value));
2870 } else {
2871 unknown_fields_stream.WriteVarint32(96u);
2872 unknown_fields_stream.WriteVarint32(
2873 static_cast< ::google::protobuf::uint32>(value));
2874 }
2875 } else {
2876 goto handle_unusual;
2877 }
2878 break;
2879 }
2880
2881 // optional bool isMask = 20;
2882 case 20: {
2883 if (static_cast< ::google::protobuf::uint8>(tag) ==
2884 static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) {
2885 set_has_ismask();
2886 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2887 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2888 input, &ismask_)));
2889 } else {
2890 goto handle_unusual;
2891 }
2892 break;
2893 }
2894
2895 // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
2896 case 21: {
2897 if (static_cast< ::google::protobuf::uint8>(tag) ==
2898 static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
2899 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2900 input, mutable_mask()));
2901 } else {
2902 goto handle_unusual;
2903 }
2904 break;
2905 }
2906
2907 default: {
2908 handle_unusual:
2909 if (tag == 0) {
2910 goto success;
2911 }
2912 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
2913 input, tag, &unknown_fields_stream));
2914 break;
2915 }
2916 }
2917 }
2918 success:
2919 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket)
2920 return true;
2921 failure:
2922 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket)
2923 return false;
2924 #undef DO_
2925 }
2926
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const2927 void TexturePacket::SerializeWithCachedSizes(
2928 ::google::protobuf::io::CodedOutputStream* output) const {
2929 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket)
2930 ::google::protobuf::uint32 cached_has_bits = 0;
2931 (void) cached_has_bits;
2932
2933 cached_has_bits = _has_bits_[0];
2934 // required uint64 layerref = 1;
2935 if (cached_has_bits & 0x00000008u) {
2936 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output);
2937 }
2938
2939 // optional uint32 width = 2;
2940 if (cached_has_bits & 0x00000010u) {
2941 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output);
2942 }
2943
2944 // optional uint32 height = 3;
2945 if (cached_has_bits & 0x00000020u) {
2946 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
2947 }
2948
2949 // optional uint32 stride = 4;
2950 if (cached_has_bits & 0x00000040u) {
2951 ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->stride(), output);
2952 }
2953
2954 // optional uint32 name = 5;
2955 if (cached_has_bits & 0x00000080u) {
2956 ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->name(), output);
2957 }
2958
2959 // optional uint32 target = 6;
2960 if (cached_has_bits & 0x00000100u) {
2961 ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->target(), output);
2962 }
2963
2964 // optional uint32 dataformat = 7;
2965 if (cached_has_bits & 0x00000200u) {
2966 ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->dataformat(), output);
2967 }
2968
2969 // optional uint64 glcontext = 8;
2970 if (cached_has_bits & 0x00000400u) {
2971 ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->glcontext(), output);
2972 }
2973
2974 // optional bytes data = 9;
2975 if (cached_has_bits & 0x00000001u) {
2976 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2977 9, this->data(), output);
2978 }
2979
2980 // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
2981 if (cached_has_bits & 0x00000002u) {
2982 ::google::protobuf::internal::WireFormatLite::WriteMessage(
2983 10, *this->mtexturecoords_, output);
2984 }
2985
2986 // optional bool mPremultiplied = 11;
2987 if (cached_has_bits & 0x00001000u) {
2988 ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->mpremultiplied(), output);
2989 }
2990
2991 // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
2992 if (cached_has_bits & 0x00000800u) {
2993 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2994 12, this->mfilter(), output);
2995 }
2996
2997 // optional bool isMask = 20;
2998 if (cached_has_bits & 0x00002000u) {
2999 ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->ismask(), output);
3000 }
3001
3002 // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
3003 if (cached_has_bits & 0x00000004u) {
3004 ::google::protobuf::internal::WireFormatLite::WriteMessage(
3005 21, *this->mask_, output);
3006 }
3007
3008 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
3009 static_cast<int>(_internal_metadata_.unknown_fields().size()));
3010 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket)
3011 }
3012
ByteSizeLong() const3013 size_t TexturePacket::ByteSizeLong() const {
3014 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket)
3015 size_t total_size = 0;
3016
3017 total_size += _internal_metadata_.unknown_fields().size();
3018
3019 // required uint64 layerref = 1;
3020 if (has_layerref()) {
3021 total_size += 1 +
3022 ::google::protobuf::internal::WireFormatLite::UInt64Size(
3023 this->layerref());
3024 }
3025 if (_has_bits_[0 / 32] & 7u) {
3026 // optional bytes data = 9;
3027 if (has_data()) {
3028 total_size += 1 +
3029 ::google::protobuf::internal::WireFormatLite::BytesSize(
3030 this->data());
3031 }
3032
3033 // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
3034 if (has_mtexturecoords()) {
3035 total_size += 1 +
3036 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3037 *this->mtexturecoords_);
3038 }
3039
3040 // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
3041 if (has_mask()) {
3042 total_size += 2 +
3043 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3044 *this->mask_);
3045 }
3046
3047 }
3048 if (_has_bits_[0 / 32] & 240u) {
3049 // optional uint32 width = 2;
3050 if (has_width()) {
3051 total_size += 1 +
3052 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3053 this->width());
3054 }
3055
3056 // optional uint32 height = 3;
3057 if (has_height()) {
3058 total_size += 1 +
3059 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3060 this->height());
3061 }
3062
3063 // optional uint32 stride = 4;
3064 if (has_stride()) {
3065 total_size += 1 +
3066 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3067 this->stride());
3068 }
3069
3070 // optional uint32 name = 5;
3071 if (has_name()) {
3072 total_size += 1 +
3073 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3074 this->name());
3075 }
3076
3077 }
3078 if (_has_bits_[8 / 32] & 16128u) {
3079 // optional uint32 target = 6;
3080 if (has_target()) {
3081 total_size += 1 +
3082 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3083 this->target());
3084 }
3085
3086 // optional uint32 dataformat = 7;
3087 if (has_dataformat()) {
3088 total_size += 1 +
3089 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3090 this->dataformat());
3091 }
3092
3093 // optional uint64 glcontext = 8;
3094 if (has_glcontext()) {
3095 total_size += 1 +
3096 ::google::protobuf::internal::WireFormatLite::UInt64Size(
3097 this->glcontext());
3098 }
3099
3100 // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
3101 if (has_mfilter()) {
3102 total_size += 1 +
3103 ::google::protobuf::internal::WireFormatLite::EnumSize(this->mfilter());
3104 }
3105
3106 // optional bool mPremultiplied = 11;
3107 if (has_mpremultiplied()) {
3108 total_size += 1 + 1;
3109 }
3110
3111 // optional bool isMask = 20;
3112 if (has_ismask()) {
3113 total_size += 2 + 1;
3114 }
3115
3116 }
3117 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3118 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3119 _cached_size_ = cached_size;
3120 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3121 return total_size;
3122 }
3123
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)3124 void TexturePacket::CheckTypeAndMergeFrom(
3125 const ::google::protobuf::MessageLite& from) {
3126 MergeFrom(*::google::protobuf::down_cast<const TexturePacket*>(&from));
3127 }
3128
MergeFrom(const TexturePacket & from)3129 void TexturePacket::MergeFrom(const TexturePacket& from) {
3130 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket)
3131 GOOGLE_DCHECK_NE(&from, this);
3132 _internal_metadata_.MergeFrom(from._internal_metadata_);
3133 ::google::protobuf::uint32 cached_has_bits = 0;
3134 (void) cached_has_bits;
3135
3136 cached_has_bits = from._has_bits_[0];
3137 if (cached_has_bits & 255u) {
3138 if (cached_has_bits & 0x00000001u) {
3139 set_has_data();
3140 data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_);
3141 }
3142 if (cached_has_bits & 0x00000002u) {
3143 mutable_mtexturecoords()->::mozilla::layers::layerscope::TexturePacket_Rect::MergeFrom(from.mtexturecoords());
3144 }
3145 if (cached_has_bits & 0x00000004u) {
3146 mutable_mask()->::mozilla::layers::layerscope::TexturePacket_EffectMask::MergeFrom(from.mask());
3147 }
3148 if (cached_has_bits & 0x00000008u) {
3149 layerref_ = from.layerref_;
3150 }
3151 if (cached_has_bits & 0x00000010u) {
3152 width_ = from.width_;
3153 }
3154 if (cached_has_bits & 0x00000020u) {
3155 height_ = from.height_;
3156 }
3157 if (cached_has_bits & 0x00000040u) {
3158 stride_ = from.stride_;
3159 }
3160 if (cached_has_bits & 0x00000080u) {
3161 name_ = from.name_;
3162 }
3163 _has_bits_[0] |= cached_has_bits;
3164 }
3165 if (cached_has_bits & 16128u) {
3166 if (cached_has_bits & 0x00000100u) {
3167 target_ = from.target_;
3168 }
3169 if (cached_has_bits & 0x00000200u) {
3170 dataformat_ = from.dataformat_;
3171 }
3172 if (cached_has_bits & 0x00000400u) {
3173 glcontext_ = from.glcontext_;
3174 }
3175 if (cached_has_bits & 0x00000800u) {
3176 mfilter_ = from.mfilter_;
3177 }
3178 if (cached_has_bits & 0x00001000u) {
3179 mpremultiplied_ = from.mpremultiplied_;
3180 }
3181 if (cached_has_bits & 0x00002000u) {
3182 ismask_ = from.ismask_;
3183 }
3184 _has_bits_[0] |= cached_has_bits;
3185 }
3186 }
3187
CopyFrom(const TexturePacket & from)3188 void TexturePacket::CopyFrom(const TexturePacket& from) {
3189 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket)
3190 if (&from == this) return;
3191 Clear();
3192 MergeFrom(from);
3193 }
3194
IsInitialized() const3195 bool TexturePacket::IsInitialized() const {
3196 if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
3197 return true;
3198 }
3199
Swap(TexturePacket * other)3200 void TexturePacket::Swap(TexturePacket* other) {
3201 if (other == this) return;
3202 InternalSwap(other);
3203 }
InternalSwap(TexturePacket * other)3204 void TexturePacket::InternalSwap(TexturePacket* other) {
3205 using std::swap;
3206 data_.Swap(&other->data_);
3207 swap(mtexturecoords_, other->mtexturecoords_);
3208 swap(mask_, other->mask_);
3209 swap(layerref_, other->layerref_);
3210 swap(width_, other->width_);
3211 swap(height_, other->height_);
3212 swap(stride_, other->stride_);
3213 swap(name_, other->name_);
3214 swap(target_, other->target_);
3215 swap(dataformat_, other->dataformat_);
3216 swap(glcontext_, other->glcontext_);
3217 swap(mfilter_, other->mfilter_);
3218 swap(mpremultiplied_, other->mpremultiplied_);
3219 swap(ismask_, other->ismask_);
3220 swap(_has_bits_[0], other->_has_bits_[0]);
3221 _internal_metadata_.Swap(&other->_internal_metadata_);
3222 swap(_cached_size_, other->_cached_size_);
3223 }
3224
GetTypeName() const3225 ::std::string TexturePacket::GetTypeName() const {
3226 return "mozilla.layers.layerscope.TexturePacket";
3227 }
3228
3229 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3230 // TexturePacket
3231
3232 // required uint64 layerref = 1;
has_layerref() const3233 bool TexturePacket::has_layerref() const {
3234 return (_has_bits_[0] & 0x00000008u) != 0;
3235 }
set_has_layerref()3236 void TexturePacket::set_has_layerref() {
3237 _has_bits_[0] |= 0x00000008u;
3238 }
clear_has_layerref()3239 void TexturePacket::clear_has_layerref() {
3240 _has_bits_[0] &= ~0x00000008u;
3241 }
clear_layerref()3242 void TexturePacket::clear_layerref() {
3243 layerref_ = GOOGLE_ULONGLONG(0);
3244 clear_has_layerref();
3245 }
layerref() const3246 ::google::protobuf::uint64 TexturePacket::layerref() const {
3247 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.layerref)
3248 return layerref_;
3249 }
set_layerref(::google::protobuf::uint64 value)3250 void TexturePacket::set_layerref(::google::protobuf::uint64 value) {
3251 set_has_layerref();
3252 layerref_ = value;
3253 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.layerref)
3254 }
3255
3256 // optional uint32 width = 2;
has_width() const3257 bool TexturePacket::has_width() const {
3258 return (_has_bits_[0] & 0x00000010u) != 0;
3259 }
set_has_width()3260 void TexturePacket::set_has_width() {
3261 _has_bits_[0] |= 0x00000010u;
3262 }
clear_has_width()3263 void TexturePacket::clear_has_width() {
3264 _has_bits_[0] &= ~0x00000010u;
3265 }
clear_width()3266 void TexturePacket::clear_width() {
3267 width_ = 0u;
3268 clear_has_width();
3269 }
width() const3270 ::google::protobuf::uint32 TexturePacket::width() const {
3271 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.width)
3272 return width_;
3273 }
set_width(::google::protobuf::uint32 value)3274 void TexturePacket::set_width(::google::protobuf::uint32 value) {
3275 set_has_width();
3276 width_ = value;
3277 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.width)
3278 }
3279
3280 // optional uint32 height = 3;
has_height() const3281 bool TexturePacket::has_height() const {
3282 return (_has_bits_[0] & 0x00000020u) != 0;
3283 }
set_has_height()3284 void TexturePacket::set_has_height() {
3285 _has_bits_[0] |= 0x00000020u;
3286 }
clear_has_height()3287 void TexturePacket::clear_has_height() {
3288 _has_bits_[0] &= ~0x00000020u;
3289 }
clear_height()3290 void TexturePacket::clear_height() {
3291 height_ = 0u;
3292 clear_has_height();
3293 }
height() const3294 ::google::protobuf::uint32 TexturePacket::height() const {
3295 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.height)
3296 return height_;
3297 }
set_height(::google::protobuf::uint32 value)3298 void TexturePacket::set_height(::google::protobuf::uint32 value) {
3299 set_has_height();
3300 height_ = value;
3301 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.height)
3302 }
3303
3304 // optional uint32 stride = 4;
has_stride() const3305 bool TexturePacket::has_stride() const {
3306 return (_has_bits_[0] & 0x00000040u) != 0;
3307 }
set_has_stride()3308 void TexturePacket::set_has_stride() {
3309 _has_bits_[0] |= 0x00000040u;
3310 }
clear_has_stride()3311 void TexturePacket::clear_has_stride() {
3312 _has_bits_[0] &= ~0x00000040u;
3313 }
clear_stride()3314 void TexturePacket::clear_stride() {
3315 stride_ = 0u;
3316 clear_has_stride();
3317 }
stride() const3318 ::google::protobuf::uint32 TexturePacket::stride() const {
3319 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.stride)
3320 return stride_;
3321 }
set_stride(::google::protobuf::uint32 value)3322 void TexturePacket::set_stride(::google::protobuf::uint32 value) {
3323 set_has_stride();
3324 stride_ = value;
3325 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.stride)
3326 }
3327
3328 // optional uint32 name = 5;
has_name() const3329 bool TexturePacket::has_name() const {
3330 return (_has_bits_[0] & 0x00000080u) != 0;
3331 }
set_has_name()3332 void TexturePacket::set_has_name() {
3333 _has_bits_[0] |= 0x00000080u;
3334 }
clear_has_name()3335 void TexturePacket::clear_has_name() {
3336 _has_bits_[0] &= ~0x00000080u;
3337 }
clear_name()3338 void TexturePacket::clear_name() {
3339 name_ = 0u;
3340 clear_has_name();
3341 }
name() const3342 ::google::protobuf::uint32 TexturePacket::name() const {
3343 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.name)
3344 return name_;
3345 }
set_name(::google::protobuf::uint32 value)3346 void TexturePacket::set_name(::google::protobuf::uint32 value) {
3347 set_has_name();
3348 name_ = value;
3349 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.name)
3350 }
3351
3352 // optional uint32 target = 6;
has_target() const3353 bool TexturePacket::has_target() const {
3354 return (_has_bits_[0] & 0x00000100u) != 0;
3355 }
set_has_target()3356 void TexturePacket::set_has_target() {
3357 _has_bits_[0] |= 0x00000100u;
3358 }
clear_has_target()3359 void TexturePacket::clear_has_target() {
3360 _has_bits_[0] &= ~0x00000100u;
3361 }
clear_target()3362 void TexturePacket::clear_target() {
3363 target_ = 0u;
3364 clear_has_target();
3365 }
target() const3366 ::google::protobuf::uint32 TexturePacket::target() const {
3367 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.target)
3368 return target_;
3369 }
set_target(::google::protobuf::uint32 value)3370 void TexturePacket::set_target(::google::protobuf::uint32 value) {
3371 set_has_target();
3372 target_ = value;
3373 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.target)
3374 }
3375
3376 // optional uint32 dataformat = 7;
has_dataformat() const3377 bool TexturePacket::has_dataformat() const {
3378 return (_has_bits_[0] & 0x00000200u) != 0;
3379 }
set_has_dataformat()3380 void TexturePacket::set_has_dataformat() {
3381 _has_bits_[0] |= 0x00000200u;
3382 }
clear_has_dataformat()3383 void TexturePacket::clear_has_dataformat() {
3384 _has_bits_[0] &= ~0x00000200u;
3385 }
clear_dataformat()3386 void TexturePacket::clear_dataformat() {
3387 dataformat_ = 0u;
3388 clear_has_dataformat();
3389 }
dataformat() const3390 ::google::protobuf::uint32 TexturePacket::dataformat() const {
3391 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.dataformat)
3392 return dataformat_;
3393 }
set_dataformat(::google::protobuf::uint32 value)3394 void TexturePacket::set_dataformat(::google::protobuf::uint32 value) {
3395 set_has_dataformat();
3396 dataformat_ = value;
3397 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.dataformat)
3398 }
3399
3400 // optional uint64 glcontext = 8;
has_glcontext() const3401 bool TexturePacket::has_glcontext() const {
3402 return (_has_bits_[0] & 0x00000400u) != 0;
3403 }
set_has_glcontext()3404 void TexturePacket::set_has_glcontext() {
3405 _has_bits_[0] |= 0x00000400u;
3406 }
clear_has_glcontext()3407 void TexturePacket::clear_has_glcontext() {
3408 _has_bits_[0] &= ~0x00000400u;
3409 }
clear_glcontext()3410 void TexturePacket::clear_glcontext() {
3411 glcontext_ = GOOGLE_ULONGLONG(0);
3412 clear_has_glcontext();
3413 }
glcontext() const3414 ::google::protobuf::uint64 TexturePacket::glcontext() const {
3415 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.glcontext)
3416 return glcontext_;
3417 }
set_glcontext(::google::protobuf::uint64 value)3418 void TexturePacket::set_glcontext(::google::protobuf::uint64 value) {
3419 set_has_glcontext();
3420 glcontext_ = value;
3421 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.glcontext)
3422 }
3423
3424 // optional bytes data = 9;
has_data() const3425 bool TexturePacket::has_data() const {
3426 return (_has_bits_[0] & 0x00000001u) != 0;
3427 }
set_has_data()3428 void TexturePacket::set_has_data() {
3429 _has_bits_[0] |= 0x00000001u;
3430 }
clear_has_data()3431 void TexturePacket::clear_has_data() {
3432 _has_bits_[0] &= ~0x00000001u;
3433 }
clear_data()3434 void TexturePacket::clear_data() {
3435 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3436 clear_has_data();
3437 }
data() const3438 const ::std::string& TexturePacket::data() const {
3439 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.data)
3440 return data_.GetNoArena();
3441 }
set_data(const::std::string & value)3442 void TexturePacket::set_data(const ::std::string& value) {
3443 set_has_data();
3444 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3445 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.data)
3446 }
3447 #if LANG_CXX11
set_data(::std::string && value)3448 void TexturePacket::set_data(::std::string&& value) {
3449 set_has_data();
3450 data_.SetNoArena(
3451 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3452 // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.TexturePacket.data)
3453 }
3454 #endif
set_data(const char * value)3455 void TexturePacket::set_data(const char* value) {
3456 GOOGLE_DCHECK(value != NULL);
3457 set_has_data();
3458 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3459 // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.TexturePacket.data)
3460 }
set_data(const void * value,size_t size)3461 void TexturePacket::set_data(const void* value, size_t size) {
3462 set_has_data();
3463 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3464 ::std::string(reinterpret_cast<const char*>(value), size));
3465 // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.TexturePacket.data)
3466 }
mutable_data()3467 ::std::string* TexturePacket::mutable_data() {
3468 set_has_data();
3469 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.data)
3470 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3471 }
release_data()3472 ::std::string* TexturePacket::release_data() {
3473 // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.data)
3474 clear_has_data();
3475 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3476 }
set_allocated_data(::std::string * data)3477 void TexturePacket::set_allocated_data(::std::string* data) {
3478 if (data != NULL) {
3479 set_has_data();
3480 } else {
3481 clear_has_data();
3482 }
3483 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
3484 // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.data)
3485 }
3486
3487 // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
has_mtexturecoords() const3488 bool TexturePacket::has_mtexturecoords() const {
3489 return (_has_bits_[0] & 0x00000002u) != 0;
3490 }
set_has_mtexturecoords()3491 void TexturePacket::set_has_mtexturecoords() {
3492 _has_bits_[0] |= 0x00000002u;
3493 }
clear_has_mtexturecoords()3494 void TexturePacket::clear_has_mtexturecoords() {
3495 _has_bits_[0] &= ~0x00000002u;
3496 }
clear_mtexturecoords()3497 void TexturePacket::clear_mtexturecoords() {
3498 if (mtexturecoords_ != NULL) mtexturecoords_->::mozilla::layers::layerscope::TexturePacket_Rect::Clear();
3499 clear_has_mtexturecoords();
3500 }
mtexturecoords() const3501 const ::mozilla::layers::layerscope::TexturePacket_Rect& TexturePacket::mtexturecoords() const {
3502 const ::mozilla::layers::layerscope::TexturePacket_Rect* p = mtexturecoords_;
3503 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
3504 return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Rect*>(
3505 &::mozilla::layers::layerscope::_TexturePacket_Rect_default_instance_);
3506 }
mutable_mtexturecoords()3507 ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::mutable_mtexturecoords() {
3508 set_has_mtexturecoords();
3509 if (mtexturecoords_ == NULL) {
3510 mtexturecoords_ = new ::mozilla::layers::layerscope::TexturePacket_Rect;
3511 }
3512 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
3513 return mtexturecoords_;
3514 }
release_mtexturecoords()3515 ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::release_mtexturecoords() {
3516 // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
3517 clear_has_mtexturecoords();
3518 ::mozilla::layers::layerscope::TexturePacket_Rect* temp = mtexturecoords_;
3519 mtexturecoords_ = NULL;
3520 return temp;
3521 }
set_allocated_mtexturecoords(::mozilla::layers::layerscope::TexturePacket_Rect * mtexturecoords)3522 void TexturePacket::set_allocated_mtexturecoords(::mozilla::layers::layerscope::TexturePacket_Rect* mtexturecoords) {
3523 delete mtexturecoords_;
3524 mtexturecoords_ = mtexturecoords;
3525 if (mtexturecoords) {
3526 set_has_mtexturecoords();
3527 } else {
3528 clear_has_mtexturecoords();
3529 }
3530 // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
3531 }
3532
3533 // optional bool mPremultiplied = 11;
has_mpremultiplied() const3534 bool TexturePacket::has_mpremultiplied() const {
3535 return (_has_bits_[0] & 0x00001000u) != 0;
3536 }
set_has_mpremultiplied()3537 void TexturePacket::set_has_mpremultiplied() {
3538 _has_bits_[0] |= 0x00001000u;
3539 }
clear_has_mpremultiplied()3540 void TexturePacket::clear_has_mpremultiplied() {
3541 _has_bits_[0] &= ~0x00001000u;
3542 }
clear_mpremultiplied()3543 void TexturePacket::clear_mpremultiplied() {
3544 mpremultiplied_ = false;
3545 clear_has_mpremultiplied();
3546 }
mpremultiplied() const3547 bool TexturePacket::mpremultiplied() const {
3548 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mPremultiplied)
3549 return mpremultiplied_;
3550 }
set_mpremultiplied(bool value)3551 void TexturePacket::set_mpremultiplied(bool value) {
3552 set_has_mpremultiplied();
3553 mpremultiplied_ = value;
3554 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mPremultiplied)
3555 }
3556
3557 // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
has_mfilter() const3558 bool TexturePacket::has_mfilter() const {
3559 return (_has_bits_[0] & 0x00000800u) != 0;
3560 }
set_has_mfilter()3561 void TexturePacket::set_has_mfilter() {
3562 _has_bits_[0] |= 0x00000800u;
3563 }
clear_has_mfilter()3564 void TexturePacket::clear_has_mfilter() {
3565 _has_bits_[0] &= ~0x00000800u;
3566 }
clear_mfilter()3567 void TexturePacket::clear_mfilter() {
3568 mfilter_ = 0;
3569 clear_has_mfilter();
3570 }
mfilter() const3571 ::mozilla::layers::layerscope::TexturePacket_Filter TexturePacket::mfilter() const {
3572 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mFilter)
3573 return static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(mfilter_);
3574 }
set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value)3575 void TexturePacket::set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value) {
3576 assert(::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value));
3577 set_has_mfilter();
3578 mfilter_ = value;
3579 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mFilter)
3580 }
3581
3582 // optional bool isMask = 20;
has_ismask() const3583 bool TexturePacket::has_ismask() const {
3584 return (_has_bits_[0] & 0x00002000u) != 0;
3585 }
set_has_ismask()3586 void TexturePacket::set_has_ismask() {
3587 _has_bits_[0] |= 0x00002000u;
3588 }
clear_has_ismask()3589 void TexturePacket::clear_has_ismask() {
3590 _has_bits_[0] &= ~0x00002000u;
3591 }
clear_ismask()3592 void TexturePacket::clear_ismask() {
3593 ismask_ = false;
3594 clear_has_ismask();
3595 }
ismask() const3596 bool TexturePacket::ismask() const {
3597 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.isMask)
3598 return ismask_;
3599 }
set_ismask(bool value)3600 void TexturePacket::set_ismask(bool value) {
3601 set_has_ismask();
3602 ismask_ = value;
3603 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.isMask)
3604 }
3605
3606 // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
has_mask() const3607 bool TexturePacket::has_mask() const {
3608 return (_has_bits_[0] & 0x00000004u) != 0;
3609 }
set_has_mask()3610 void TexturePacket::set_has_mask() {
3611 _has_bits_[0] |= 0x00000004u;
3612 }
clear_has_mask()3613 void TexturePacket::clear_has_mask() {
3614 _has_bits_[0] &= ~0x00000004u;
3615 }
clear_mask()3616 void TexturePacket::clear_mask() {
3617 if (mask_ != NULL) mask_->::mozilla::layers::layerscope::TexturePacket_EffectMask::Clear();
3618 clear_has_mask();
3619 }
mask() const3620 const ::mozilla::layers::layerscope::TexturePacket_EffectMask& TexturePacket::mask() const {
3621 const ::mozilla::layers::layerscope::TexturePacket_EffectMask* p = mask_;
3622 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mask)
3623 return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(
3624 &::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_);
3625 }
mutable_mask()3626 ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::mutable_mask() {
3627 set_has_mask();
3628 if (mask_ == NULL) {
3629 mask_ = new ::mozilla::layers::layerscope::TexturePacket_EffectMask;
3630 }
3631 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mask)
3632 return mask_;
3633 }
release_mask()3634 ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::release_mask() {
3635 // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mask)
3636 clear_has_mask();
3637 ::mozilla::layers::layerscope::TexturePacket_EffectMask* temp = mask_;
3638 mask_ = NULL;
3639 return temp;
3640 }
set_allocated_mask(::mozilla::layers::layerscope::TexturePacket_EffectMask * mask)3641 void TexturePacket::set_allocated_mask(::mozilla::layers::layerscope::TexturePacket_EffectMask* mask) {
3642 delete mask_;
3643 mask_ = mask;
3644 if (mask) {
3645 set_has_mask();
3646 } else {
3647 clear_has_mask();
3648 }
3649 // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mask)
3650 }
3651
3652 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3653
3654 // ===================================================================
3655
3656 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3657 const int LayersPacket_Layer_Size::kWFieldNumber;
3658 const int LayersPacket_Layer_Size::kHFieldNumber;
3659 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3660
LayersPacket_Layer_Size()3661 LayersPacket_Layer_Size::LayersPacket_Layer_Size()
3662 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
3663 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3664 protobuf_LayerScopePacket_2eproto::InitDefaults();
3665 }
3666 SharedCtor();
3667 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3668 }
LayersPacket_Layer_Size(const LayersPacket_Layer_Size & from)3669 LayersPacket_Layer_Size::LayersPacket_Layer_Size(const LayersPacket_Layer_Size& from)
3670 : ::google::protobuf::MessageLite(),
3671 _internal_metadata_(NULL),
3672 _has_bits_(from._has_bits_),
3673 _cached_size_(0) {
3674 _internal_metadata_.MergeFrom(from._internal_metadata_);
3675 ::memcpy(&w_, &from.w_,
3676 static_cast<size_t>(reinterpret_cast<char*>(&h_) -
3677 reinterpret_cast<char*>(&w_)) + sizeof(h_));
3678 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3679 }
3680
SharedCtor()3681 void LayersPacket_Layer_Size::SharedCtor() {
3682 _cached_size_ = 0;
3683 ::memset(&w_, 0, static_cast<size_t>(
3684 reinterpret_cast<char*>(&h_) -
3685 reinterpret_cast<char*>(&w_)) + sizeof(h_));
3686 }
3687
~LayersPacket_Layer_Size()3688 LayersPacket_Layer_Size::~LayersPacket_Layer_Size() {
3689 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3690 SharedDtor();
3691 }
3692
SharedDtor()3693 void LayersPacket_Layer_Size::SharedDtor() {
3694 }
3695
SetCachedSize(int size) const3696 void LayersPacket_Layer_Size::SetCachedSize(int size) const {
3697 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3698 _cached_size_ = size;
3699 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3700 }
default_instance()3701 const LayersPacket_Layer_Size& LayersPacket_Layer_Size::default_instance() {
3702 protobuf_LayerScopePacket_2eproto::InitDefaults();
3703 return *internal_default_instance();
3704 }
3705
New(::google::protobuf::Arena * arena) const3706 LayersPacket_Layer_Size* LayersPacket_Layer_Size::New(::google::protobuf::Arena* arena) const {
3707 LayersPacket_Layer_Size* n = new LayersPacket_Layer_Size;
3708 if (arena != NULL) {
3709 arena->Own(n);
3710 }
3711 return n;
3712 }
3713
Clear()3714 void LayersPacket_Layer_Size::Clear() {
3715 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3716 ::google::protobuf::uint32 cached_has_bits = 0;
3717 // Prevent compiler warnings about cached_has_bits being unused
3718 (void) cached_has_bits;
3719
3720 cached_has_bits = _has_bits_[0];
3721 if (cached_has_bits & 3u) {
3722 ::memset(&w_, 0, static_cast<size_t>(
3723 reinterpret_cast<char*>(&h_) -
3724 reinterpret_cast<char*>(&w_)) + sizeof(h_));
3725 }
3726 _has_bits_.Clear();
3727 _internal_metadata_.Clear();
3728 }
3729
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)3730 bool LayersPacket_Layer_Size::MergePartialFromCodedStream(
3731 ::google::protobuf::io::CodedInputStream* input) {
3732 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3733 ::google::protobuf::uint32 tag;
3734 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
3735 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
3736 &::google::protobuf::internal::InternalMetadataWithArenaLite::
3737 mutable_unknown_fields));
3738 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
3739 &unknown_fields_string, false);
3740 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3741 for (;;) {
3742 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3743 tag = p.first;
3744 if (!p.second) goto handle_unusual;
3745 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3746 // optional int32 w = 1;
3747 case 1: {
3748 if (static_cast< ::google::protobuf::uint8>(tag) ==
3749 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3750 set_has_w();
3751 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3752 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3753 input, &w_)));
3754 } else {
3755 goto handle_unusual;
3756 }
3757 break;
3758 }
3759
3760 // optional int32 h = 2;
3761 case 2: {
3762 if (static_cast< ::google::protobuf::uint8>(tag) ==
3763 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3764 set_has_h();
3765 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3766 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3767 input, &h_)));
3768 } else {
3769 goto handle_unusual;
3770 }
3771 break;
3772 }
3773
3774 default: {
3775 handle_unusual:
3776 if (tag == 0) {
3777 goto success;
3778 }
3779 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
3780 input, tag, &unknown_fields_stream));
3781 break;
3782 }
3783 }
3784 }
3785 success:
3786 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3787 return true;
3788 failure:
3789 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3790 return false;
3791 #undef DO_
3792 }
3793
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const3794 void LayersPacket_Layer_Size::SerializeWithCachedSizes(
3795 ::google::protobuf::io::CodedOutputStream* output) const {
3796 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3797 ::google::protobuf::uint32 cached_has_bits = 0;
3798 (void) cached_has_bits;
3799
3800 cached_has_bits = _has_bits_[0];
3801 // optional int32 w = 1;
3802 if (cached_has_bits & 0x00000001u) {
3803 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output);
3804 }
3805
3806 // optional int32 h = 2;
3807 if (cached_has_bits & 0x00000002u) {
3808 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output);
3809 }
3810
3811 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
3812 static_cast<int>(_internal_metadata_.unknown_fields().size()));
3813 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3814 }
3815
ByteSizeLong() const3816 size_t LayersPacket_Layer_Size::ByteSizeLong() const {
3817 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3818 size_t total_size = 0;
3819
3820 total_size += _internal_metadata_.unknown_fields().size();
3821
3822 if (_has_bits_[0 / 32] & 3u) {
3823 // optional int32 w = 1;
3824 if (has_w()) {
3825 total_size += 1 +
3826 ::google::protobuf::internal::WireFormatLite::Int32Size(
3827 this->w());
3828 }
3829
3830 // optional int32 h = 2;
3831 if (has_h()) {
3832 total_size += 1 +
3833 ::google::protobuf::internal::WireFormatLite::Int32Size(
3834 this->h());
3835 }
3836
3837 }
3838 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3839 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3840 _cached_size_ = cached_size;
3841 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3842 return total_size;
3843 }
3844
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)3845 void LayersPacket_Layer_Size::CheckTypeAndMergeFrom(
3846 const ::google::protobuf::MessageLite& from) {
3847 MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Size*>(&from));
3848 }
3849
MergeFrom(const LayersPacket_Layer_Size & from)3850 void LayersPacket_Layer_Size::MergeFrom(const LayersPacket_Layer_Size& from) {
3851 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3852 GOOGLE_DCHECK_NE(&from, this);
3853 _internal_metadata_.MergeFrom(from._internal_metadata_);
3854 ::google::protobuf::uint32 cached_has_bits = 0;
3855 (void) cached_has_bits;
3856
3857 cached_has_bits = from._has_bits_[0];
3858 if (cached_has_bits & 3u) {
3859 if (cached_has_bits & 0x00000001u) {
3860 w_ = from.w_;
3861 }
3862 if (cached_has_bits & 0x00000002u) {
3863 h_ = from.h_;
3864 }
3865 _has_bits_[0] |= cached_has_bits;
3866 }
3867 }
3868
CopyFrom(const LayersPacket_Layer_Size & from)3869 void LayersPacket_Layer_Size::CopyFrom(const LayersPacket_Layer_Size& from) {
3870 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
3871 if (&from == this) return;
3872 Clear();
3873 MergeFrom(from);
3874 }
3875
IsInitialized() const3876 bool LayersPacket_Layer_Size::IsInitialized() const {
3877 return true;
3878 }
3879
Swap(LayersPacket_Layer_Size * other)3880 void LayersPacket_Layer_Size::Swap(LayersPacket_Layer_Size* other) {
3881 if (other == this) return;
3882 InternalSwap(other);
3883 }
InternalSwap(LayersPacket_Layer_Size * other)3884 void LayersPacket_Layer_Size::InternalSwap(LayersPacket_Layer_Size* other) {
3885 using std::swap;
3886 swap(w_, other->w_);
3887 swap(h_, other->h_);
3888 swap(_has_bits_[0], other->_has_bits_[0]);
3889 _internal_metadata_.Swap(&other->_internal_metadata_);
3890 swap(_cached_size_, other->_cached_size_);
3891 }
3892
GetTypeName() const3893 ::std::string LayersPacket_Layer_Size::GetTypeName() const {
3894 return "mozilla.layers.layerscope.LayersPacket.Layer.Size";
3895 }
3896
3897 #if PROTOBUF_INLINE_NOT_IN_HEADERS
3898 // LayersPacket_Layer_Size
3899
3900 // optional int32 w = 1;
has_w() const3901 bool LayersPacket_Layer_Size::has_w() const {
3902 return (_has_bits_[0] & 0x00000001u) != 0;
3903 }
set_has_w()3904 void LayersPacket_Layer_Size::set_has_w() {
3905 _has_bits_[0] |= 0x00000001u;
3906 }
clear_has_w()3907 void LayersPacket_Layer_Size::clear_has_w() {
3908 _has_bits_[0] &= ~0x00000001u;
3909 }
clear_w()3910 void LayersPacket_Layer_Size::clear_w() {
3911 w_ = 0;
3912 clear_has_w();
3913 }
w() const3914 ::google::protobuf::int32 LayersPacket_Layer_Size::w() const {
3915 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.w)
3916 return w_;
3917 }
set_w(::google::protobuf::int32 value)3918 void LayersPacket_Layer_Size::set_w(::google::protobuf::int32 value) {
3919 set_has_w();
3920 w_ = value;
3921 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.w)
3922 }
3923
3924 // optional int32 h = 2;
has_h() const3925 bool LayersPacket_Layer_Size::has_h() const {
3926 return (_has_bits_[0] & 0x00000002u) != 0;
3927 }
set_has_h()3928 void LayersPacket_Layer_Size::set_has_h() {
3929 _has_bits_[0] |= 0x00000002u;
3930 }
clear_has_h()3931 void LayersPacket_Layer_Size::clear_has_h() {
3932 _has_bits_[0] &= ~0x00000002u;
3933 }
clear_h()3934 void LayersPacket_Layer_Size::clear_h() {
3935 h_ = 0;
3936 clear_has_h();
3937 }
h() const3938 ::google::protobuf::int32 LayersPacket_Layer_Size::h() const {
3939 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.h)
3940 return h_;
3941 }
set_h(::google::protobuf::int32 value)3942 void LayersPacket_Layer_Size::set_h(::google::protobuf::int32 value) {
3943 set_has_h();
3944 h_ = value;
3945 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.h)
3946 }
3947
3948 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
3949
3950 // ===================================================================
3951
3952 #if !defined(_MSC_VER) || _MSC_VER >= 1900
3953 const int LayersPacket_Layer_Rect::kXFieldNumber;
3954 const int LayersPacket_Layer_Rect::kYFieldNumber;
3955 const int LayersPacket_Layer_Rect::kWFieldNumber;
3956 const int LayersPacket_Layer_Rect::kHFieldNumber;
3957 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3958
LayersPacket_Layer_Rect()3959 LayersPacket_Layer_Rect::LayersPacket_Layer_Rect()
3960 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
3961 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3962 protobuf_LayerScopePacket_2eproto::InitDefaults();
3963 }
3964 SharedCtor();
3965 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
3966 }
LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect & from)3967 LayersPacket_Layer_Rect::LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect& from)
3968 : ::google::protobuf::MessageLite(),
3969 _internal_metadata_(NULL),
3970 _has_bits_(from._has_bits_),
3971 _cached_size_(0) {
3972 _internal_metadata_.MergeFrom(from._internal_metadata_);
3973 ::memcpy(&x_, &from.x_,
3974 static_cast<size_t>(reinterpret_cast<char*>(&h_) -
3975 reinterpret_cast<char*>(&x_)) + sizeof(h_));
3976 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
3977 }
3978
SharedCtor()3979 void LayersPacket_Layer_Rect::SharedCtor() {
3980 _cached_size_ = 0;
3981 ::memset(&x_, 0, static_cast<size_t>(
3982 reinterpret_cast<char*>(&h_) -
3983 reinterpret_cast<char*>(&x_)) + sizeof(h_));
3984 }
3985
~LayersPacket_Layer_Rect()3986 LayersPacket_Layer_Rect::~LayersPacket_Layer_Rect() {
3987 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
3988 SharedDtor();
3989 }
3990
SharedDtor()3991 void LayersPacket_Layer_Rect::SharedDtor() {
3992 }
3993
SetCachedSize(int size) const3994 void LayersPacket_Layer_Rect::SetCachedSize(int size) const {
3995 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3996 _cached_size_ = size;
3997 GOOGLE_SAFE_CONCURRENT_WRITES_END();
3998 }
default_instance()3999 const LayersPacket_Layer_Rect& LayersPacket_Layer_Rect::default_instance() {
4000 protobuf_LayerScopePacket_2eproto::InitDefaults();
4001 return *internal_default_instance();
4002 }
4003
New(::google::protobuf::Arena * arena) const4004 LayersPacket_Layer_Rect* LayersPacket_Layer_Rect::New(::google::protobuf::Arena* arena) const {
4005 LayersPacket_Layer_Rect* n = new LayersPacket_Layer_Rect;
4006 if (arena != NULL) {
4007 arena->Own(n);
4008 }
4009 return n;
4010 }
4011
Clear()4012 void LayersPacket_Layer_Rect::Clear() {
4013 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4014 ::google::protobuf::uint32 cached_has_bits = 0;
4015 // Prevent compiler warnings about cached_has_bits being unused
4016 (void) cached_has_bits;
4017
4018 cached_has_bits = _has_bits_[0];
4019 if (cached_has_bits & 15u) {
4020 ::memset(&x_, 0, static_cast<size_t>(
4021 reinterpret_cast<char*>(&h_) -
4022 reinterpret_cast<char*>(&x_)) + sizeof(h_));
4023 }
4024 _has_bits_.Clear();
4025 _internal_metadata_.Clear();
4026 }
4027
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4028 bool LayersPacket_Layer_Rect::MergePartialFromCodedStream(
4029 ::google::protobuf::io::CodedInputStream* input) {
4030 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4031 ::google::protobuf::uint32 tag;
4032 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
4033 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
4034 &::google::protobuf::internal::InternalMetadataWithArenaLite::
4035 mutable_unknown_fields));
4036 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4037 &unknown_fields_string, false);
4038 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4039 for (;;) {
4040 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4041 tag = p.first;
4042 if (!p.second) goto handle_unusual;
4043 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4044 // optional int32 x = 1;
4045 case 1: {
4046 if (static_cast< ::google::protobuf::uint8>(tag) ==
4047 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4048 set_has_x();
4049 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4050 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4051 input, &x_)));
4052 } else {
4053 goto handle_unusual;
4054 }
4055 break;
4056 }
4057
4058 // optional int32 y = 2;
4059 case 2: {
4060 if (static_cast< ::google::protobuf::uint8>(tag) ==
4061 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4062 set_has_y();
4063 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4064 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4065 input, &y_)));
4066 } else {
4067 goto handle_unusual;
4068 }
4069 break;
4070 }
4071
4072 // optional int32 w = 3;
4073 case 3: {
4074 if (static_cast< ::google::protobuf::uint8>(tag) ==
4075 static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
4076 set_has_w();
4077 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4078 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4079 input, &w_)));
4080 } else {
4081 goto handle_unusual;
4082 }
4083 break;
4084 }
4085
4086 // optional int32 h = 4;
4087 case 4: {
4088 if (static_cast< ::google::protobuf::uint8>(tag) ==
4089 static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
4090 set_has_h();
4091 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4092 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
4093 input, &h_)));
4094 } else {
4095 goto handle_unusual;
4096 }
4097 break;
4098 }
4099
4100 default: {
4101 handle_unusual:
4102 if (tag == 0) {
4103 goto success;
4104 }
4105 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4106 input, tag, &unknown_fields_stream));
4107 break;
4108 }
4109 }
4110 }
4111 success:
4112 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4113 return true;
4114 failure:
4115 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4116 return false;
4117 #undef DO_
4118 }
4119
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4120 void LayersPacket_Layer_Rect::SerializeWithCachedSizes(
4121 ::google::protobuf::io::CodedOutputStream* output) const {
4122 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4123 ::google::protobuf::uint32 cached_has_bits = 0;
4124 (void) cached_has_bits;
4125
4126 cached_has_bits = _has_bits_[0];
4127 // optional int32 x = 1;
4128 if (cached_has_bits & 0x00000001u) {
4129 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->x(), output);
4130 }
4131
4132 // optional int32 y = 2;
4133 if (cached_has_bits & 0x00000002u) {
4134 ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->y(), output);
4135 }
4136
4137 // optional int32 w = 3;
4138 if (cached_has_bits & 0x00000004u) {
4139 ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->w(), output);
4140 }
4141
4142 // optional int32 h = 4;
4143 if (cached_has_bits & 0x00000008u) {
4144 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->h(), output);
4145 }
4146
4147 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
4148 static_cast<int>(_internal_metadata_.unknown_fields().size()));
4149 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4150 }
4151
ByteSizeLong() const4152 size_t LayersPacket_Layer_Rect::ByteSizeLong() const {
4153 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4154 size_t total_size = 0;
4155
4156 total_size += _internal_metadata_.unknown_fields().size();
4157
4158 if (_has_bits_[0 / 32] & 15u) {
4159 // optional int32 x = 1;
4160 if (has_x()) {
4161 total_size += 1 +
4162 ::google::protobuf::internal::WireFormatLite::Int32Size(
4163 this->x());
4164 }
4165
4166 // optional int32 y = 2;
4167 if (has_y()) {
4168 total_size += 1 +
4169 ::google::protobuf::internal::WireFormatLite::Int32Size(
4170 this->y());
4171 }
4172
4173 // optional int32 w = 3;
4174 if (has_w()) {
4175 total_size += 1 +
4176 ::google::protobuf::internal::WireFormatLite::Int32Size(
4177 this->w());
4178 }
4179
4180 // optional int32 h = 4;
4181 if (has_h()) {
4182 total_size += 1 +
4183 ::google::protobuf::internal::WireFormatLite::Int32Size(
4184 this->h());
4185 }
4186
4187 }
4188 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4189 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4190 _cached_size_ = cached_size;
4191 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4192 return total_size;
4193 }
4194
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)4195 void LayersPacket_Layer_Rect::CheckTypeAndMergeFrom(
4196 const ::google::protobuf::MessageLite& from) {
4197 MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Rect*>(&from));
4198 }
4199
MergeFrom(const LayersPacket_Layer_Rect & from)4200 void LayersPacket_Layer_Rect::MergeFrom(const LayersPacket_Layer_Rect& from) {
4201 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4202 GOOGLE_DCHECK_NE(&from, this);
4203 _internal_metadata_.MergeFrom(from._internal_metadata_);
4204 ::google::protobuf::uint32 cached_has_bits = 0;
4205 (void) cached_has_bits;
4206
4207 cached_has_bits = from._has_bits_[0];
4208 if (cached_has_bits & 15u) {
4209 if (cached_has_bits & 0x00000001u) {
4210 x_ = from.x_;
4211 }
4212 if (cached_has_bits & 0x00000002u) {
4213 y_ = from.y_;
4214 }
4215 if (cached_has_bits & 0x00000004u) {
4216 w_ = from.w_;
4217 }
4218 if (cached_has_bits & 0x00000008u) {
4219 h_ = from.h_;
4220 }
4221 _has_bits_[0] |= cached_has_bits;
4222 }
4223 }
4224
CopyFrom(const LayersPacket_Layer_Rect & from)4225 void LayersPacket_Layer_Rect::CopyFrom(const LayersPacket_Layer_Rect& from) {
4226 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
4227 if (&from == this) return;
4228 Clear();
4229 MergeFrom(from);
4230 }
4231
IsInitialized() const4232 bool LayersPacket_Layer_Rect::IsInitialized() const {
4233 return true;
4234 }
4235
Swap(LayersPacket_Layer_Rect * other)4236 void LayersPacket_Layer_Rect::Swap(LayersPacket_Layer_Rect* other) {
4237 if (other == this) return;
4238 InternalSwap(other);
4239 }
InternalSwap(LayersPacket_Layer_Rect * other)4240 void LayersPacket_Layer_Rect::InternalSwap(LayersPacket_Layer_Rect* other) {
4241 using std::swap;
4242 swap(x_, other->x_);
4243 swap(y_, other->y_);
4244 swap(w_, other->w_);
4245 swap(h_, other->h_);
4246 swap(_has_bits_[0], other->_has_bits_[0]);
4247 _internal_metadata_.Swap(&other->_internal_metadata_);
4248 swap(_cached_size_, other->_cached_size_);
4249 }
4250
GetTypeName() const4251 ::std::string LayersPacket_Layer_Rect::GetTypeName() const {
4252 return "mozilla.layers.layerscope.LayersPacket.Layer.Rect";
4253 }
4254
4255 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4256 // LayersPacket_Layer_Rect
4257
4258 // optional int32 x = 1;
has_x() const4259 bool LayersPacket_Layer_Rect::has_x() const {
4260 return (_has_bits_[0] & 0x00000001u) != 0;
4261 }
set_has_x()4262 void LayersPacket_Layer_Rect::set_has_x() {
4263 _has_bits_[0] |= 0x00000001u;
4264 }
clear_has_x()4265 void LayersPacket_Layer_Rect::clear_has_x() {
4266 _has_bits_[0] &= ~0x00000001u;
4267 }
clear_x()4268 void LayersPacket_Layer_Rect::clear_x() {
4269 x_ = 0;
4270 clear_has_x();
4271 }
x() const4272 ::google::protobuf::int32 LayersPacket_Layer_Rect::x() const {
4273 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x)
4274 return x_;
4275 }
set_x(::google::protobuf::int32 value)4276 void LayersPacket_Layer_Rect::set_x(::google::protobuf::int32 value) {
4277 set_has_x();
4278 x_ = value;
4279 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x)
4280 }
4281
4282 // optional int32 y = 2;
has_y() const4283 bool LayersPacket_Layer_Rect::has_y() const {
4284 return (_has_bits_[0] & 0x00000002u) != 0;
4285 }
set_has_y()4286 void LayersPacket_Layer_Rect::set_has_y() {
4287 _has_bits_[0] |= 0x00000002u;
4288 }
clear_has_y()4289 void LayersPacket_Layer_Rect::clear_has_y() {
4290 _has_bits_[0] &= ~0x00000002u;
4291 }
clear_y()4292 void LayersPacket_Layer_Rect::clear_y() {
4293 y_ = 0;
4294 clear_has_y();
4295 }
y() const4296 ::google::protobuf::int32 LayersPacket_Layer_Rect::y() const {
4297 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y)
4298 return y_;
4299 }
set_y(::google::protobuf::int32 value)4300 void LayersPacket_Layer_Rect::set_y(::google::protobuf::int32 value) {
4301 set_has_y();
4302 y_ = value;
4303 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y)
4304 }
4305
4306 // optional int32 w = 3;
has_w() const4307 bool LayersPacket_Layer_Rect::has_w() const {
4308 return (_has_bits_[0] & 0x00000004u) != 0;
4309 }
set_has_w()4310 void LayersPacket_Layer_Rect::set_has_w() {
4311 _has_bits_[0] |= 0x00000004u;
4312 }
clear_has_w()4313 void LayersPacket_Layer_Rect::clear_has_w() {
4314 _has_bits_[0] &= ~0x00000004u;
4315 }
clear_w()4316 void LayersPacket_Layer_Rect::clear_w() {
4317 w_ = 0;
4318 clear_has_w();
4319 }
w() const4320 ::google::protobuf::int32 LayersPacket_Layer_Rect::w() const {
4321 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w)
4322 return w_;
4323 }
set_w(::google::protobuf::int32 value)4324 void LayersPacket_Layer_Rect::set_w(::google::protobuf::int32 value) {
4325 set_has_w();
4326 w_ = value;
4327 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w)
4328 }
4329
4330 // optional int32 h = 4;
has_h() const4331 bool LayersPacket_Layer_Rect::has_h() const {
4332 return (_has_bits_[0] & 0x00000008u) != 0;
4333 }
set_has_h()4334 void LayersPacket_Layer_Rect::set_has_h() {
4335 _has_bits_[0] |= 0x00000008u;
4336 }
clear_has_h()4337 void LayersPacket_Layer_Rect::clear_has_h() {
4338 _has_bits_[0] &= ~0x00000008u;
4339 }
clear_h()4340 void LayersPacket_Layer_Rect::clear_h() {
4341 h_ = 0;
4342 clear_has_h();
4343 }
h() const4344 ::google::protobuf::int32 LayersPacket_Layer_Rect::h() const {
4345 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h)
4346 return h_;
4347 }
set_h(::google::protobuf::int32 value)4348 void LayersPacket_Layer_Rect::set_h(::google::protobuf::int32 value) {
4349 set_has_h();
4350 h_ = value;
4351 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h)
4352 }
4353
4354 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4355
4356 // ===================================================================
4357
4358 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4359 const int LayersPacket_Layer_Region::kRFieldNumber;
4360 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4361
LayersPacket_Layer_Region()4362 LayersPacket_Layer_Region::LayersPacket_Layer_Region()
4363 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
4364 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4365 protobuf_LayerScopePacket_2eproto::InitDefaults();
4366 }
4367 SharedCtor();
4368 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4369 }
LayersPacket_Layer_Region(const LayersPacket_Layer_Region & from)4370 LayersPacket_Layer_Region::LayersPacket_Layer_Region(const LayersPacket_Layer_Region& from)
4371 : ::google::protobuf::MessageLite(),
4372 _internal_metadata_(NULL),
4373 _has_bits_(from._has_bits_),
4374 _cached_size_(0),
4375 r_(from.r_) {
4376 _internal_metadata_.MergeFrom(from._internal_metadata_);
4377 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4378 }
4379
SharedCtor()4380 void LayersPacket_Layer_Region::SharedCtor() {
4381 _cached_size_ = 0;
4382 }
4383
~LayersPacket_Layer_Region()4384 LayersPacket_Layer_Region::~LayersPacket_Layer_Region() {
4385 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4386 SharedDtor();
4387 }
4388
SharedDtor()4389 void LayersPacket_Layer_Region::SharedDtor() {
4390 }
4391
SetCachedSize(int size) const4392 void LayersPacket_Layer_Region::SetCachedSize(int size) const {
4393 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4394 _cached_size_ = size;
4395 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4396 }
default_instance()4397 const LayersPacket_Layer_Region& LayersPacket_Layer_Region::default_instance() {
4398 protobuf_LayerScopePacket_2eproto::InitDefaults();
4399 return *internal_default_instance();
4400 }
4401
New(::google::protobuf::Arena * arena) const4402 LayersPacket_Layer_Region* LayersPacket_Layer_Region::New(::google::protobuf::Arena* arena) const {
4403 LayersPacket_Layer_Region* n = new LayersPacket_Layer_Region;
4404 if (arena != NULL) {
4405 arena->Own(n);
4406 }
4407 return n;
4408 }
4409
Clear()4410 void LayersPacket_Layer_Region::Clear() {
4411 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4412 ::google::protobuf::uint32 cached_has_bits = 0;
4413 // Prevent compiler warnings about cached_has_bits being unused
4414 (void) cached_has_bits;
4415
4416 r_.Clear();
4417 _has_bits_.Clear();
4418 _internal_metadata_.Clear();
4419 }
4420
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4421 bool LayersPacket_Layer_Region::MergePartialFromCodedStream(
4422 ::google::protobuf::io::CodedInputStream* input) {
4423 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4424 ::google::protobuf::uint32 tag;
4425 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
4426 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
4427 &::google::protobuf::internal::InternalMetadataWithArenaLite::
4428 mutable_unknown_fields));
4429 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4430 &unknown_fields_string, false);
4431 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4432 for (;;) {
4433 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4434 tag = p.first;
4435 if (!p.second) goto handle_unusual;
4436 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4437 // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
4438 case 1: {
4439 if (static_cast< ::google::protobuf::uint8>(tag) ==
4440 static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4441 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4442 input, add_r()));
4443 } else {
4444 goto handle_unusual;
4445 }
4446 break;
4447 }
4448
4449 default: {
4450 handle_unusual:
4451 if (tag == 0) {
4452 goto success;
4453 }
4454 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4455 input, tag, &unknown_fields_stream));
4456 break;
4457 }
4458 }
4459 }
4460 success:
4461 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4462 return true;
4463 failure:
4464 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4465 return false;
4466 #undef DO_
4467 }
4468
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4469 void LayersPacket_Layer_Region::SerializeWithCachedSizes(
4470 ::google::protobuf::io::CodedOutputStream* output) const {
4471 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4472 ::google::protobuf::uint32 cached_has_bits = 0;
4473 (void) cached_has_bits;
4474
4475 // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
4476 for (unsigned int i = 0,
4477 n = static_cast<unsigned int>(this->r_size()); i < n; i++) {
4478 ::google::protobuf::internal::WireFormatLite::WriteMessage(
4479 1, this->r(static_cast<int>(i)), output);
4480 }
4481
4482 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
4483 static_cast<int>(_internal_metadata_.unknown_fields().size()));
4484 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4485 }
4486
ByteSizeLong() const4487 size_t LayersPacket_Layer_Region::ByteSizeLong() const {
4488 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4489 size_t total_size = 0;
4490
4491 total_size += _internal_metadata_.unknown_fields().size();
4492
4493 // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
4494 {
4495 unsigned int count = static_cast<unsigned int>(this->r_size());
4496 total_size += 1UL * count;
4497 for (unsigned int i = 0; i < count; i++) {
4498 total_size +=
4499 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4500 this->r(static_cast<int>(i)));
4501 }
4502 }
4503
4504 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4505 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4506 _cached_size_ = cached_size;
4507 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4508 return total_size;
4509 }
4510
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)4511 void LayersPacket_Layer_Region::CheckTypeAndMergeFrom(
4512 const ::google::protobuf::MessageLite& from) {
4513 MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Region*>(&from));
4514 }
4515
MergeFrom(const LayersPacket_Layer_Region & from)4516 void LayersPacket_Layer_Region::MergeFrom(const LayersPacket_Layer_Region& from) {
4517 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4518 GOOGLE_DCHECK_NE(&from, this);
4519 _internal_metadata_.MergeFrom(from._internal_metadata_);
4520 ::google::protobuf::uint32 cached_has_bits = 0;
4521 (void) cached_has_bits;
4522
4523 r_.MergeFrom(from.r_);
4524 }
4525
CopyFrom(const LayersPacket_Layer_Region & from)4526 void LayersPacket_Layer_Region::CopyFrom(const LayersPacket_Layer_Region& from) {
4527 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
4528 if (&from == this) return;
4529 Clear();
4530 MergeFrom(from);
4531 }
4532
IsInitialized() const4533 bool LayersPacket_Layer_Region::IsInitialized() const {
4534 return true;
4535 }
4536
Swap(LayersPacket_Layer_Region * other)4537 void LayersPacket_Layer_Region::Swap(LayersPacket_Layer_Region* other) {
4538 if (other == this) return;
4539 InternalSwap(other);
4540 }
InternalSwap(LayersPacket_Layer_Region * other)4541 void LayersPacket_Layer_Region::InternalSwap(LayersPacket_Layer_Region* other) {
4542 using std::swap;
4543 r_.InternalSwap(&other->r_);
4544 swap(_has_bits_[0], other->_has_bits_[0]);
4545 _internal_metadata_.Swap(&other->_internal_metadata_);
4546 swap(_cached_size_, other->_cached_size_);
4547 }
4548
GetTypeName() const4549 ::std::string LayersPacket_Layer_Region::GetTypeName() const {
4550 return "mozilla.layers.layerscope.LayersPacket.Layer.Region";
4551 }
4552
4553 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4554 // LayersPacket_Layer_Region
4555
4556 // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
r_size() const4557 int LayersPacket_Layer_Region::r_size() const {
4558 return r_.size();
4559 }
clear_r()4560 void LayersPacket_Layer_Region::clear_r() {
4561 r_.Clear();
4562 }
r(int index) const4563 const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Region::r(int index) const {
4564 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
4565 return r_.Get(index);
4566 }
mutable_r(int index)4567 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::mutable_r(int index) {
4568 // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
4569 return r_.Mutable(index);
4570 }
add_r()4571 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::add_r() {
4572 // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
4573 return r_.Add();
4574 }
4575 ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >*
mutable_r()4576 LayersPacket_Layer_Region::mutable_r() {
4577 // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
4578 return &r_;
4579 }
4580 const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >&
r() const4581 LayersPacket_Layer_Region::r() const {
4582 // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
4583 return r_;
4584 }
4585
4586 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
4587
4588 // ===================================================================
4589
4590 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4591 const int LayersPacket_Layer_Matrix::kIs2DFieldNumber;
4592 const int LayersPacket_Layer_Matrix::kIsIdFieldNumber;
4593 const int LayersPacket_Layer_Matrix::kMFieldNumber;
4594 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4595
LayersPacket_Layer_Matrix()4596 LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix()
4597 : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
4598 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4599 protobuf_LayerScopePacket_2eproto::InitDefaults();
4600 }
4601 SharedCtor();
4602 // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4603 }
LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix & from)4604 LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix& from)
4605 : ::google::protobuf::MessageLite(),
4606 _internal_metadata_(NULL),
4607 _has_bits_(from._has_bits_),
4608 _cached_size_(0),
4609 m_(from.m_) {
4610 _internal_metadata_.MergeFrom(from._internal_metadata_);
4611 ::memcpy(&is2d_, &from.is2d_,
4612 static_cast<size_t>(reinterpret_cast<char*>(&isid_) -
4613 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
4614 // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4615 }
4616
SharedCtor()4617 void LayersPacket_Layer_Matrix::SharedCtor() {
4618 _cached_size_ = 0;
4619 ::memset(&is2d_, 0, static_cast<size_t>(
4620 reinterpret_cast<char*>(&isid_) -
4621 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
4622 }
4623
~LayersPacket_Layer_Matrix()4624 LayersPacket_Layer_Matrix::~LayersPacket_Layer_Matrix() {
4625 // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4626 SharedDtor();
4627 }
4628
SharedDtor()4629 void LayersPacket_Layer_Matrix::SharedDtor() {
4630 }
4631
SetCachedSize(int size) const4632 void LayersPacket_Layer_Matrix::SetCachedSize(int size) const {
4633 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4634 _cached_size_ = size;
4635 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4636 }
default_instance()4637 const LayersPacket_Layer_Matrix& LayersPacket_Layer_Matrix::default_instance() {
4638 protobuf_LayerScopePacket_2eproto::InitDefaults();
4639 return *internal_default_instance();
4640 }
4641
New(::google::protobuf::Arena * arena) const4642 LayersPacket_Layer_Matrix* LayersPacket_Layer_Matrix::New(::google::protobuf::Arena* arena) const {
4643 LayersPacket_Layer_Matrix* n = new LayersPacket_Layer_Matrix;
4644 if (arena != NULL) {
4645 arena->Own(n);
4646 }
4647 return n;
4648 }
4649
Clear()4650 void LayersPacket_Layer_Matrix::Clear() {
4651 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4652 ::google::protobuf::uint32 cached_has_bits = 0;
4653 // Prevent compiler warnings about cached_has_bits being unused
4654 (void) cached_has_bits;
4655
4656 m_.Clear();
4657 cached_has_bits = _has_bits_[0];
4658 if (cached_has_bits & 3u) {
4659 ::memset(&is2d_, 0, static_cast<size_t>(
4660 reinterpret_cast<char*>(&isid_) -
4661 reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
4662 }
4663 _has_bits_.Clear();
4664 _internal_metadata_.Clear();
4665 }
4666
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)4667 bool LayersPacket_Layer_Matrix::MergePartialFromCodedStream(
4668 ::google::protobuf::io::CodedInputStream* input) {
4669 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4670 ::google::protobuf::uint32 tag;
4671 ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
4672 ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
4673 &::google::protobuf::internal::InternalMetadataWithArenaLite::
4674 mutable_unknown_fields));
4675 ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
4676 &unknown_fields_string, false);
4677 // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4678 for (;;) {
4679 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4680 tag = p.first;
4681 if (!p.second) goto handle_unusual;
4682 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4683 // optional bool is2D = 1;
4684 case 1: {
4685 if (static_cast< ::google::protobuf::uint8>(tag) ==
4686 static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4687 set_has_is2d();
4688 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4689 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4690 input, &is2d_)));
4691 } else {
4692 goto handle_unusual;
4693 }
4694 break;
4695 }
4696
4697 // optional bool isId = 2;
4698 case 2: {
4699 if (static_cast< ::google::protobuf::uint8>(tag) ==
4700 static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4701 set_has_isid();
4702 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4703 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4704 input, &isid_)));
4705 } else {
4706 goto handle_unusual;
4707 }
4708 break;
4709 }
4710
4711 // repeated float m = 3;
4712 case 3: {
4713 if (static_cast< ::google::protobuf::uint8>(tag) ==
4714 static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
4715 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
4716 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
4717 1, 29u, input, this->mutable_m())));
4718 } else if (
4719 static_cast< ::google::protobuf::uint8>(tag) ==
4720 static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4721 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
4722 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
4723 input, this->mutable_m())));
4724 } else {
4725 goto handle_unusual;
4726 }
4727 break;
4728 }
4729
4730 default: {
4731 handle_unusual:
4732 if (tag == 0) {
4733 goto success;
4734 }
4735 DO_(::google::protobuf::internal::WireFormatLite::SkipField(
4736 input, tag, &unknown_fields_stream));
4737 break;
4738 }
4739 }
4740 }
4741 success:
4742 // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4743 return true;
4744 failure:
4745 // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4746 return false;
4747 #undef DO_
4748 }
4749
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const4750 void LayersPacket_Layer_Matrix::SerializeWithCachedSizes(
4751 ::google::protobuf::io::CodedOutputStream* output) const {
4752 // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4753 ::google::protobuf::uint32 cached_has_bits = 0;
4754 (void) cached_has_bits;
4755
4756 cached_has_bits = _has_bits_[0];
4757 // optional bool is2D = 1;
4758 if (cached_has_bits & 0x00000001u) {
4759 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output);
4760 }
4761
4762 // optional bool isId = 2;
4763 if (cached_has_bits & 0x00000002u) {
4764 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output);
4765 }
4766
4767 // repeated float m = 3;
4768 for (int i = 0, n = this->m_size(); i < n; i++) {
4769 ::google::protobuf::internal::WireFormatLite::WriteFloat(
4770 3, this->m(i), output);
4771 }
4772
4773 output->WriteRaw(_internal_metadata_.unknown_fields().data(),
4774 static_cast<int>(_internal_metadata_.unknown_fields().size()));
4775 // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4776 }
4777
ByteSizeLong() const4778 size_t LayersPacket_Layer_Matrix::ByteSizeLong() const {
4779 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4780 size_t total_size = 0;
4781
4782 total_size += _internal_metadata_.unknown_fields().size();
4783
4784 // repeated float m = 3;
4785 {
4786 unsigned int count = static_cast<unsigned int>(this->m_size());
4787 size_t data_size = 4UL * count;
4788 total_size += 1 *
4789 ::google::protobuf::internal::FromIntSize(this->m_size());
4790 total_size += data_size;
4791 }
4792
4793 if (_has_bits_[0 / 32] & 3u) {
4794 // optional bool is2D = 1;
4795 if (has_is2d()) {
4796 total_size += 1 + 1;
4797 }
4798
4799 // optional bool isId = 2;
4800 if (has_isid()) {
4801 total_size += 1 + 1;
4802 }
4803
4804 }
4805 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4806 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4807 _cached_size_ = cached_size;
4808 GOOGLE_SAFE_CONCURRENT_WRITES_END();
4809 return total_size;
4810 }
4811
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)4812 void LayersPacket_Layer_Matrix::CheckTypeAndMergeFrom(
4813 const ::google::protobuf::MessageLite& from) {
4814 MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Matrix*>(&from));
4815 }
4816
MergeFrom(const LayersPacket_Layer_Matrix & from)4817 void LayersPacket_Layer_Matrix::MergeFrom(const LayersPacket_Layer_Matrix& from) {
4818 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4819 GOOGLE_DCHECK_NE(&from, this);
4820 _internal_metadata_.MergeFrom(from._internal_metadata_);
4821 ::google::protobuf::uint32 cached_has_bits = 0;
4822 (void) cached_has_bits;
4823
4824 m_.MergeFrom(from.m_);
4825 cached_has_bits = from._has_bits_[0];
4826 if (cached_has_bits & 3u) {
4827 if (cached_has_bits & 0x00000001u) {
4828 is2d_ = from.is2d_;
4829 }
4830 if (cached_has_bits & 0x00000002u) {
4831 isid_ = from.isid_;
4832 }
4833 _has_bits_[0] |= cached_has_bits;
4834 }
4835 }
4836
CopyFrom(const LayersPacket_Layer_Matrix & from)4837 void LayersPacket_Layer_Matrix::CopyFrom(const LayersPacket_Layer_Matrix& from) {
4838 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
4839 if (&from == this) return;
4840 Clear();
4841 MergeFrom(from);
4842 }
4843
IsInitialized() const4844 bool LayersPacket_Layer_Matrix::IsInitialized() const {
4845 return true;
4846 }
4847
Swap(LayersPacket_Layer_Matrix * other)4848 void LayersPacket_Layer_Matrix::Swap(LayersPacket_Layer_Matrix* other) {
4849 if (other == this) return;
4850 InternalSwap(other);
4851 }
InternalSwap(LayersPacket_Layer_Matrix * other)4852 void LayersPacket_Layer_Matrix::InternalSwap(LayersPacket_Layer_Matrix* other) {
4853 using std::swap;
4854 m_.InternalSwap(&other->m_);
4855 swap(is2d_, other->is2d_);
4856 swap(isid_, other->isid_);
4857 swap(_has_bits_[0], other->_has_bits_[0]);
4858 _internal_metadata_.Swap(&other->_internal_metadata_);
4859 swap(_cached_size_, other->_cached_size_);
4860 }
4861
GetTypeName() const4862 ::std::string LayersPacket_Layer_Matrix::GetTypeName() const {
4863 return "mozilla.layers.layerscope.LayersPacket.Layer.Matrix";
4864 }
4865
4866 #if PROTOBUF_INLINE_NOT_IN_HEADERS
4867 // LayersPacket_Layer_Matrix
4868
4869 // optional bool is2D = 1;
has_is2d() const4870 bool LayersPacket_Layer_Matrix::has_is2d() const {
4871 return (_has_bits_[0] & 0x00000001u) != 0;
4872 }
set_has_is2d()4873 void LayersPacket_Layer_Matrix::set_has_is2d() {
4874 _has_bits_[0] |= 0x00000001u;
4875 }
clear_has_is2d()4876 void LayersPacket_Layer_Matrix::clear_has_is2d() {
4877 _has_bits_[0] &= ~0x00000001u;
4878 }
clear_is2d()4879 void LayersPacket_Layer_Matrix::clear_is2d() {
4880 is2d_ = false;
4881 clear_has_is2d();
4882 }
is2d() const4883 bool LayersPacket_Layer_Matrix::is2d() const {
4884 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D)
4885 return is2d_;
4886 }
set_is2d(bool value)4887 void LayersPacket_Layer_Matrix::set_is2d(bool value) {
4888 set_has_is2d();
4889 is2d_ = value;
4890 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D)
4891 }
4892
4893 // optional bool isId = 2;
has_isid() const4894 bool LayersPacket_Layer_Matrix::has_isid() const {
4895 return (_has_bits_[0] & 0x00000002u) != 0;
4896 }
set_has_isid()4897 void LayersPacket_Layer_Matrix::set_has_isid() {
4898 _has_bits_[0] |= 0x00000002u;
4899 }
clear_has_isid()4900 void LayersPacket_Layer_Matrix::clear_has_isid() {
4901 _has_bits_[0] &= ~0x00000002u;
4902 }
clear_isid()4903 void LayersPacket_Layer_Matrix::clear_isid() {
4904 isid_ = false;
4905 clear_has_isid();
4906 }
isid() const4907 bool LayersPacket_Layer_Matrix::isid() const {
4908 // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId)
4909 return isid_;
4910 }
set_isid(bool value)4911 void LayersPacket_Layer_Matrix::set_isid(bool value) {
4912 set_has_isid();
4913 isid_ = value;
4914 // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId)
4915 }
4916
4917 // repeated float m = 3;
m_size() const4918 int LayersPacket_Layer_Matrix::m_size() const {
4919 return m_.size();
4920 }
clear_m()4921