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 void LayersPacket_Layer_Matrix::clear_m() {
4922   m_.Clear();
4923 }
m(int index) const4924 float LayersPacket_Layer_Matrix::m(int index) const {
4925   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
4926   return m_.Get(index);
4927 }
set_m(int index,float value)4928 void LayersPacket_Layer_Matrix::set_m(int index, float value) {
4929   m_.Set(index, value);
4930   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
4931 }
add_m(float value)4932 void LayersPacket_Layer_Matrix::add_m(float value) {
4933   m_.Add(value);
4934   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
4935 }
4936 const ::google::protobuf::RepeatedField< float >&
m() const4937 LayersPacket_Layer_Matrix::m() const {
4938   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
4939   return m_;
4940 }
4941 ::google::protobuf::RepeatedField< float >*
mutable_m()4942 LayersPacket_Layer_Matrix::mutable_m() {
4943   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
4944   return &m_;
4945 }
4946 
4947 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
4948 
4949 // ===================================================================
4950 
4951 #if !defined(_MSC_VER) || _MSC_VER >= 1900
4952 const int LayersPacket_Layer_Shadow::kClipFieldNumber;
4953 const int LayersPacket_Layer_Shadow::kTransformFieldNumber;
4954 const int LayersPacket_Layer_Shadow::kVRegionFieldNumber;
4955 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4956 
LayersPacket_Layer_Shadow()4957 LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow()
4958   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
4959   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4960     protobuf_LayerScopePacket_2eproto::InitDefaults();
4961   }
4962   SharedCtor();
4963   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
4964 }
LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow & from)4965 LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow& from)
4966   : ::google::protobuf::MessageLite(),
4967       _internal_metadata_(NULL),
4968       _has_bits_(from._has_bits_),
4969       _cached_size_(0) {
4970   _internal_metadata_.MergeFrom(from._internal_metadata_);
4971   if (from.has_clip()) {
4972     clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_);
4973   } else {
4974     clip_ = NULL;
4975   }
4976   if (from.has_transform()) {
4977     transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_);
4978   } else {
4979     transform_ = NULL;
4980   }
4981   if (from.has_vregion()) {
4982     vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_);
4983   } else {
4984     vregion_ = NULL;
4985   }
4986   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
4987 }
4988 
SharedCtor()4989 void LayersPacket_Layer_Shadow::SharedCtor() {
4990   _cached_size_ = 0;
4991   ::memset(&clip_, 0, static_cast<size_t>(
4992       reinterpret_cast<char*>(&vregion_) -
4993       reinterpret_cast<char*>(&clip_)) + sizeof(vregion_));
4994 }
4995 
~LayersPacket_Layer_Shadow()4996 LayersPacket_Layer_Shadow::~LayersPacket_Layer_Shadow() {
4997   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
4998   SharedDtor();
4999 }
5000 
SharedDtor()5001 void LayersPacket_Layer_Shadow::SharedDtor() {
5002   if (this != internal_default_instance()) delete clip_;
5003   if (this != internal_default_instance()) delete transform_;
5004   if (this != internal_default_instance()) delete vregion_;
5005 }
5006 
SetCachedSize(int size) const5007 void LayersPacket_Layer_Shadow::SetCachedSize(int size) const {
5008   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5009   _cached_size_ = size;
5010   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5011 }
default_instance()5012 const LayersPacket_Layer_Shadow& LayersPacket_Layer_Shadow::default_instance() {
5013   protobuf_LayerScopePacket_2eproto::InitDefaults();
5014   return *internal_default_instance();
5015 }
5016 
New(::google::protobuf::Arena * arena) const5017 LayersPacket_Layer_Shadow* LayersPacket_Layer_Shadow::New(::google::protobuf::Arena* arena) const {
5018   LayersPacket_Layer_Shadow* n = new LayersPacket_Layer_Shadow;
5019   if (arena != NULL) {
5020     arena->Own(n);
5021   }
5022   return n;
5023 }
5024 
Clear()5025 void LayersPacket_Layer_Shadow::Clear() {
5026 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5027   ::google::protobuf::uint32 cached_has_bits = 0;
5028   // Prevent compiler warnings about cached_has_bits being unused
5029   (void) cached_has_bits;
5030 
5031   cached_has_bits = _has_bits_[0];
5032   if (cached_has_bits & 7u) {
5033     if (cached_has_bits & 0x00000001u) {
5034       GOOGLE_DCHECK(clip_ != NULL);
5035       clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
5036     }
5037     if (cached_has_bits & 0x00000002u) {
5038       GOOGLE_DCHECK(transform_ != NULL);
5039       transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
5040     }
5041     if (cached_has_bits & 0x00000004u) {
5042       GOOGLE_DCHECK(vregion_ != NULL);
5043       vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5044     }
5045   }
5046   _has_bits_.Clear();
5047   _internal_metadata_.Clear();
5048 }
5049 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5050 bool LayersPacket_Layer_Shadow::MergePartialFromCodedStream(
5051     ::google::protobuf::io::CodedInputStream* input) {
5052 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5053   ::google::protobuf::uint32 tag;
5054   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
5055       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
5056           &::google::protobuf::internal::InternalMetadataWithArenaLite::
5057               mutable_unknown_fields));
5058   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5059       &unknown_fields_string, false);
5060   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5061   for (;;) {
5062     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5063     tag = p.first;
5064     if (!p.second) goto handle_unusual;
5065     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5066       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
5067       case 1: {
5068         if (static_cast< ::google::protobuf::uint8>(tag) ==
5069             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5070           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5071                input, mutable_clip()));
5072         } else {
5073           goto handle_unusual;
5074         }
5075         break;
5076       }
5077 
5078       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
5079       case 2: {
5080         if (static_cast< ::google::protobuf::uint8>(tag) ==
5081             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5082           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5083                input, mutable_transform()));
5084         } else {
5085           goto handle_unusual;
5086         }
5087         break;
5088       }
5089 
5090       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
5091       case 3: {
5092         if (static_cast< ::google::protobuf::uint8>(tag) ==
5093             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5094           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5095                input, mutable_vregion()));
5096         } else {
5097           goto handle_unusual;
5098         }
5099         break;
5100       }
5101 
5102       default: {
5103       handle_unusual:
5104         if (tag == 0) {
5105           goto success;
5106         }
5107         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5108             input, tag, &unknown_fields_stream));
5109         break;
5110       }
5111     }
5112   }
5113 success:
5114   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5115   return true;
5116 failure:
5117   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5118   return false;
5119 #undef DO_
5120 }
5121 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5122 void LayersPacket_Layer_Shadow::SerializeWithCachedSizes(
5123     ::google::protobuf::io::CodedOutputStream* output) const {
5124   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5125   ::google::protobuf::uint32 cached_has_bits = 0;
5126   (void) cached_has_bits;
5127 
5128   cached_has_bits = _has_bits_[0];
5129   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
5130   if (cached_has_bits & 0x00000001u) {
5131     ::google::protobuf::internal::WireFormatLite::WriteMessage(
5132       1, *this->clip_, output);
5133   }
5134 
5135   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
5136   if (cached_has_bits & 0x00000002u) {
5137     ::google::protobuf::internal::WireFormatLite::WriteMessage(
5138       2, *this->transform_, output);
5139   }
5140 
5141   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
5142   if (cached_has_bits & 0x00000004u) {
5143     ::google::protobuf::internal::WireFormatLite::WriteMessage(
5144       3, *this->vregion_, output);
5145   }
5146 
5147   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
5148                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
5149   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5150 }
5151 
ByteSizeLong() const5152 size_t LayersPacket_Layer_Shadow::ByteSizeLong() const {
5153 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5154   size_t total_size = 0;
5155 
5156   total_size += _internal_metadata_.unknown_fields().size();
5157 
5158   if (_has_bits_[0 / 32] & 7u) {
5159     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
5160     if (has_clip()) {
5161       total_size += 1 +
5162         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5163           *this->clip_);
5164     }
5165 
5166     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
5167     if (has_transform()) {
5168       total_size += 1 +
5169         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5170           *this->transform_);
5171     }
5172 
5173     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
5174     if (has_vregion()) {
5175       total_size += 1 +
5176         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5177           *this->vregion_);
5178     }
5179 
5180   }
5181   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5182   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5183   _cached_size_ = cached_size;
5184   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5185   return total_size;
5186 }
5187 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)5188 void LayersPacket_Layer_Shadow::CheckTypeAndMergeFrom(
5189     const ::google::protobuf::MessageLite& from) {
5190   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Shadow*>(&from));
5191 }
5192 
MergeFrom(const LayersPacket_Layer_Shadow & from)5193 void LayersPacket_Layer_Shadow::MergeFrom(const LayersPacket_Layer_Shadow& from) {
5194 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5195   GOOGLE_DCHECK_NE(&from, this);
5196   _internal_metadata_.MergeFrom(from._internal_metadata_);
5197   ::google::protobuf::uint32 cached_has_bits = 0;
5198   (void) cached_has_bits;
5199 
5200   cached_has_bits = from._has_bits_[0];
5201   if (cached_has_bits & 7u) {
5202     if (cached_has_bits & 0x00000001u) {
5203       mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip());
5204     }
5205     if (cached_has_bits & 0x00000002u) {
5206       mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform());
5207     }
5208     if (cached_has_bits & 0x00000004u) {
5209       mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion());
5210     }
5211   }
5212 }
5213 
CopyFrom(const LayersPacket_Layer_Shadow & from)5214 void LayersPacket_Layer_Shadow::CopyFrom(const LayersPacket_Layer_Shadow& from) {
5215 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
5216   if (&from == this) return;
5217   Clear();
5218   MergeFrom(from);
5219 }
5220 
IsInitialized() const5221 bool LayersPacket_Layer_Shadow::IsInitialized() const {
5222   return true;
5223 }
5224 
Swap(LayersPacket_Layer_Shadow * other)5225 void LayersPacket_Layer_Shadow::Swap(LayersPacket_Layer_Shadow* other) {
5226   if (other == this) return;
5227   InternalSwap(other);
5228 }
InternalSwap(LayersPacket_Layer_Shadow * other)5229 void LayersPacket_Layer_Shadow::InternalSwap(LayersPacket_Layer_Shadow* other) {
5230   using std::swap;
5231   swap(clip_, other->clip_);
5232   swap(transform_, other->transform_);
5233   swap(vregion_, other->vregion_);
5234   swap(_has_bits_[0], other->_has_bits_[0]);
5235   _internal_metadata_.Swap(&other->_internal_metadata_);
5236   swap(_cached_size_, other->_cached_size_);
5237 }
5238 
GetTypeName() const5239 ::std::string LayersPacket_Layer_Shadow::GetTypeName() const {
5240   return "mozilla.layers.layerscope.LayersPacket.Layer.Shadow";
5241 }
5242 
5243 #if PROTOBUF_INLINE_NOT_IN_HEADERS
5244 // LayersPacket_Layer_Shadow
5245 
5246 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
has_clip() const5247 bool LayersPacket_Layer_Shadow::has_clip() const {
5248   return (_has_bits_[0] & 0x00000001u) != 0;
5249 }
set_has_clip()5250 void LayersPacket_Layer_Shadow::set_has_clip() {
5251   _has_bits_[0] |= 0x00000001u;
5252 }
clear_has_clip()5253 void LayersPacket_Layer_Shadow::clear_has_clip() {
5254   _has_bits_[0] &= ~0x00000001u;
5255 }
clear_clip()5256 void LayersPacket_Layer_Shadow::clear_clip() {
5257   if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
5258   clear_has_clip();
5259 }
clip() const5260 const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Shadow::clip() const {
5261   const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_;
5262   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
5263   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
5264       &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_);
5265 }
mutable_clip()5266 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::mutable_clip() {
5267   set_has_clip();
5268   if (clip_ == NULL) {
5269     clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect;
5270   }
5271   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
5272   return clip_;
5273 }
release_clip()5274 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::release_clip() {
5275   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
5276   clear_has_clip();
5277   ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_;
5278   clip_ = NULL;
5279   return temp;
5280 }
set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect * clip)5281 void LayersPacket_Layer_Shadow::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) {
5282   delete clip_;
5283   clip_ = clip;
5284   if (clip) {
5285     set_has_clip();
5286   } else {
5287     clear_has_clip();
5288   }
5289   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
5290 }
5291 
5292 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
has_transform() const5293 bool LayersPacket_Layer_Shadow::has_transform() const {
5294   return (_has_bits_[0] & 0x00000002u) != 0;
5295 }
set_has_transform()5296 void LayersPacket_Layer_Shadow::set_has_transform() {
5297   _has_bits_[0] |= 0x00000002u;
5298 }
clear_has_transform()5299 void LayersPacket_Layer_Shadow::clear_has_transform() {
5300   _has_bits_[0] &= ~0x00000002u;
5301 }
clear_transform()5302 void LayersPacket_Layer_Shadow::clear_transform() {
5303   if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
5304   clear_has_transform();
5305 }
transform() const5306 const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer_Shadow::transform() const {
5307   const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_;
5308   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
5309   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
5310       &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_);
5311 }
mutable_transform()5312 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::mutable_transform() {
5313   set_has_transform();
5314   if (transform_ == NULL) {
5315     transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix;
5316   }
5317   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
5318   return transform_;
5319 }
release_transform()5320 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::release_transform() {
5321   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
5322   clear_has_transform();
5323   ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_;
5324   transform_ = NULL;
5325   return temp;
5326 }
set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix * transform)5327 void LayersPacket_Layer_Shadow::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) {
5328   delete transform_;
5329   transform_ = transform;
5330   if (transform) {
5331     set_has_transform();
5332   } else {
5333     clear_has_transform();
5334   }
5335   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
5336 }
5337 
5338 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
has_vregion() const5339 bool LayersPacket_Layer_Shadow::has_vregion() const {
5340   return (_has_bits_[0] & 0x00000004u) != 0;
5341 }
set_has_vregion()5342 void LayersPacket_Layer_Shadow::set_has_vregion() {
5343   _has_bits_[0] |= 0x00000004u;
5344 }
clear_has_vregion()5345 void LayersPacket_Layer_Shadow::clear_has_vregion() {
5346   _has_bits_[0] &= ~0x00000004u;
5347 }
clear_vregion()5348 void LayersPacket_Layer_Shadow::clear_vregion() {
5349   if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5350   clear_has_vregion();
5351 }
vregion() const5352 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer_Shadow::vregion() const {
5353   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_;
5354   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
5355   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
5356       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
5357 }
mutable_vregion()5358 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::mutable_vregion() {
5359   set_has_vregion();
5360   if (vregion_ == NULL) {
5361     vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
5362   }
5363   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
5364   return vregion_;
5365 }
release_vregion()5366 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::release_vregion() {
5367   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
5368   clear_has_vregion();
5369   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_;
5370   vregion_ = NULL;
5371   return temp;
5372 }
set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * vregion)5373 void LayersPacket_Layer_Shadow::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) {
5374   delete vregion_;
5375   vregion_ = vregion;
5376   if (vregion) {
5377     set_has_vregion();
5378   } else {
5379     clear_has_vregion();
5380   }
5381   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
5382 }
5383 
5384 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
5385 
5386 // ===================================================================
5387 
5388 #if !defined(_MSC_VER) || _MSC_VER >= 1900
5389 const int LayersPacket_Layer::kTypeFieldNumber;
5390 const int LayersPacket_Layer::kPtrFieldNumber;
5391 const int LayersPacket_Layer::kParentPtrFieldNumber;
5392 const int LayersPacket_Layer::kClipFieldNumber;
5393 const int LayersPacket_Layer::kTransformFieldNumber;
5394 const int LayersPacket_Layer::kVRegionFieldNumber;
5395 const int LayersPacket_Layer::kShadowFieldNumber;
5396 const int LayersPacket_Layer::kOpacityFieldNumber;
5397 const int LayersPacket_Layer::kCOpaqueFieldNumber;
5398 const int LayersPacket_Layer::kCAlphaFieldNumber;
5399 const int LayersPacket_Layer::kDirectFieldNumber;
5400 const int LayersPacket_Layer::kBarIDFieldNumber;
5401 const int LayersPacket_Layer::kMaskFieldNumber;
5402 const int LayersPacket_Layer::kHitRegionFieldNumber;
5403 const int LayersPacket_Layer::kDispatchRegionFieldNumber;
5404 const int LayersPacket_Layer::kNoActionRegionFieldNumber;
5405 const int LayersPacket_Layer::kHPanRegionFieldNumber;
5406 const int LayersPacket_Layer::kVPanRegionFieldNumber;
5407 const int LayersPacket_Layer::kValidFieldNumber;
5408 const int LayersPacket_Layer::kColorFieldNumber;
5409 const int LayersPacket_Layer::kFilterFieldNumber;
5410 const int LayersPacket_Layer::kRefIDFieldNumber;
5411 const int LayersPacket_Layer::kSizeFieldNumber;
5412 const int LayersPacket_Layer::kDisplayListLogLengthFieldNumber;
5413 const int LayersPacket_Layer::kDisplayListLogFieldNumber;
5414 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5415 
LayersPacket_Layer()5416 LayersPacket_Layer::LayersPacket_Layer()
5417   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
5418   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5419     protobuf_LayerScopePacket_2eproto::InitDefaults();
5420   }
5421   SharedCtor();
5422   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer)
5423 }
LayersPacket_Layer(const LayersPacket_Layer & from)5424 LayersPacket_Layer::LayersPacket_Layer(const LayersPacket_Layer& from)
5425   : ::google::protobuf::MessageLite(),
5426       _internal_metadata_(NULL),
5427       _has_bits_(from._has_bits_),
5428       _cached_size_(0) {
5429   _internal_metadata_.MergeFrom(from._internal_metadata_);
5430   displaylistlog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5431   if (from.has_displaylistlog()) {
5432     displaylistlog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_);
5433   }
5434   if (from.has_clip()) {
5435     clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_);
5436   } else {
5437     clip_ = NULL;
5438   }
5439   if (from.has_transform()) {
5440     transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_);
5441   } else {
5442     transform_ = NULL;
5443   }
5444   if (from.has_vregion()) {
5445     vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_);
5446   } else {
5447     vregion_ = NULL;
5448   }
5449   if (from.has_shadow()) {
5450     shadow_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow(*from.shadow_);
5451   } else {
5452     shadow_ = NULL;
5453   }
5454   if (from.has_hitregion()) {
5455     hitregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hitregion_);
5456   } else {
5457     hitregion_ = NULL;
5458   }
5459   if (from.has_dispatchregion()) {
5460     dispatchregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.dispatchregion_);
5461   } else {
5462     dispatchregion_ = NULL;
5463   }
5464   if (from.has_noactionregion()) {
5465     noactionregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.noactionregion_);
5466   } else {
5467     noactionregion_ = NULL;
5468   }
5469   if (from.has_hpanregion()) {
5470     hpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hpanregion_);
5471   } else {
5472     hpanregion_ = NULL;
5473   }
5474   if (from.has_vpanregion()) {
5475     vpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vpanregion_);
5476   } else {
5477     vpanregion_ = NULL;
5478   }
5479   if (from.has_valid()) {
5480     valid_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.valid_);
5481   } else {
5482     valid_ = NULL;
5483   }
5484   if (from.has_size()) {
5485     size_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Size(*from.size_);
5486   } else {
5487     size_ = NULL;
5488   }
5489   ::memcpy(&ptr_, &from.ptr_,
5490     static_cast<size_t>(reinterpret_cast<char*>(&direct_) -
5491     reinterpret_cast<char*>(&ptr_)) + sizeof(direct_));
5492   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer)
5493 }
5494 
SharedCtor()5495 void LayersPacket_Layer::SharedCtor() {
5496   _cached_size_ = 0;
5497   displaylistlog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5498   ::memset(&clip_, 0, static_cast<size_t>(
5499       reinterpret_cast<char*>(&displaylistloglength_) -
5500       reinterpret_cast<char*>(&clip_)) + sizeof(displaylistloglength_));
5501   direct_ = 1;
5502 }
5503 
~LayersPacket_Layer()5504 LayersPacket_Layer::~LayersPacket_Layer() {
5505   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer)
5506   SharedDtor();
5507 }
5508 
SharedDtor()5509 void LayersPacket_Layer::SharedDtor() {
5510   displaylistlog_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5511   if (this != internal_default_instance()) delete clip_;
5512   if (this != internal_default_instance()) delete transform_;
5513   if (this != internal_default_instance()) delete vregion_;
5514   if (this != internal_default_instance()) delete shadow_;
5515   if (this != internal_default_instance()) delete hitregion_;
5516   if (this != internal_default_instance()) delete dispatchregion_;
5517   if (this != internal_default_instance()) delete noactionregion_;
5518   if (this != internal_default_instance()) delete hpanregion_;
5519   if (this != internal_default_instance()) delete vpanregion_;
5520   if (this != internal_default_instance()) delete valid_;
5521   if (this != internal_default_instance()) delete size_;
5522 }
5523 
SetCachedSize(int size) const5524 void LayersPacket_Layer::SetCachedSize(int size) const {
5525   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5526   _cached_size_ = size;
5527   GOOGLE_SAFE_CONCURRENT_WRITES_END();
5528 }
default_instance()5529 const LayersPacket_Layer& LayersPacket_Layer::default_instance() {
5530   protobuf_LayerScopePacket_2eproto::InitDefaults();
5531   return *internal_default_instance();
5532 }
5533 
New(::google::protobuf::Arena * arena) const5534 LayersPacket_Layer* LayersPacket_Layer::New(::google::protobuf::Arena* arena) const {
5535   LayersPacket_Layer* n = new LayersPacket_Layer;
5536   if (arena != NULL) {
5537     arena->Own(n);
5538   }
5539   return n;
5540 }
5541 
Clear()5542 void LayersPacket_Layer::Clear() {
5543 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer)
5544   ::google::protobuf::uint32 cached_has_bits = 0;
5545   // Prevent compiler warnings about cached_has_bits being unused
5546   (void) cached_has_bits;
5547 
5548   cached_has_bits = _has_bits_[0];
5549   if (cached_has_bits & 255u) {
5550     if (cached_has_bits & 0x00000001u) {
5551       GOOGLE_DCHECK(!displaylistlog_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5552       (*displaylistlog_.UnsafeRawStringPointer())->clear();
5553     }
5554     if (cached_has_bits & 0x00000002u) {
5555       GOOGLE_DCHECK(clip_ != NULL);
5556       clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
5557     }
5558     if (cached_has_bits & 0x00000004u) {
5559       GOOGLE_DCHECK(transform_ != NULL);
5560       transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
5561     }
5562     if (cached_has_bits & 0x00000008u) {
5563       GOOGLE_DCHECK(vregion_ != NULL);
5564       vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5565     }
5566     if (cached_has_bits & 0x00000010u) {
5567       GOOGLE_DCHECK(shadow_ != NULL);
5568       shadow_->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::Clear();
5569     }
5570     if (cached_has_bits & 0x00000020u) {
5571       GOOGLE_DCHECK(hitregion_ != NULL);
5572       hitregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5573     }
5574     if (cached_has_bits & 0x00000040u) {
5575       GOOGLE_DCHECK(dispatchregion_ != NULL);
5576       dispatchregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5577     }
5578     if (cached_has_bits & 0x00000080u) {
5579       GOOGLE_DCHECK(noactionregion_ != NULL);
5580       noactionregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5581     }
5582   }
5583   if (cached_has_bits & 3840u) {
5584     if (cached_has_bits & 0x00000100u) {
5585       GOOGLE_DCHECK(hpanregion_ != NULL);
5586       hpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5587     }
5588     if (cached_has_bits & 0x00000200u) {
5589       GOOGLE_DCHECK(vpanregion_ != NULL);
5590       vpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5591     }
5592     if (cached_has_bits & 0x00000400u) {
5593       GOOGLE_DCHECK(valid_ != NULL);
5594       valid_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
5595     }
5596     if (cached_has_bits & 0x00000800u) {
5597       GOOGLE_DCHECK(size_ != NULL);
5598       size_->::mozilla::layers::layerscope::LayersPacket_Layer_Size::Clear();
5599     }
5600   }
5601   if (cached_has_bits & 61440u) {
5602     ::memset(&ptr_, 0, static_cast<size_t>(
5603         reinterpret_cast<char*>(&opacity_) -
5604         reinterpret_cast<char*>(&ptr_)) + sizeof(opacity_));
5605   }
5606   if (cached_has_bits & 16711680u) {
5607     ::memset(&barid_, 0, static_cast<size_t>(
5608         reinterpret_cast<char*>(&displaylistloglength_) -
5609         reinterpret_cast<char*>(&barid_)) + sizeof(displaylistloglength_));
5610   }
5611   direct_ = 1;
5612   _has_bits_.Clear();
5613   _internal_metadata_.Clear();
5614 }
5615 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)5616 bool LayersPacket_Layer::MergePartialFromCodedStream(
5617     ::google::protobuf::io::CodedInputStream* input) {
5618 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5619   ::google::protobuf::uint32 tag;
5620   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
5621       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
5622           &::google::protobuf::internal::InternalMetadataWithArenaLite::
5623               mutable_unknown_fields));
5624   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
5625       &unknown_fields_string, false);
5626   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer)
5627   for (;;) {
5628     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5629     tag = p.first;
5630     if (!p.second) goto handle_unusual;
5631     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5632       // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
5633       case 1: {
5634         if (static_cast< ::google::protobuf::uint8>(tag) ==
5635             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5636           int value;
5637           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5638                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5639                  input, &value)));
5640           if (::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value)) {
5641             set_type(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(value));
5642           } else {
5643             unknown_fields_stream.WriteVarint32(8u);
5644             unknown_fields_stream.WriteVarint32(
5645                 static_cast< ::google::protobuf::uint32>(value));
5646           }
5647         } else {
5648           goto handle_unusual;
5649         }
5650         break;
5651       }
5652 
5653       // required uint64 ptr = 2;
5654       case 2: {
5655         if (static_cast< ::google::protobuf::uint8>(tag) ==
5656             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5657           set_has_ptr();
5658           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5659                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5660                  input, &ptr_)));
5661         } else {
5662           goto handle_unusual;
5663         }
5664         break;
5665       }
5666 
5667       // required uint64 parentPtr = 3;
5668       case 3: {
5669         if (static_cast< ::google::protobuf::uint8>(tag) ==
5670             static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5671           set_has_parentptr();
5672           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5673                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5674                  input, &parentptr_)));
5675         } else {
5676           goto handle_unusual;
5677         }
5678         break;
5679       }
5680 
5681       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
5682       case 10: {
5683         if (static_cast< ::google::protobuf::uint8>(tag) ==
5684             static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
5685           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5686                input, mutable_clip()));
5687         } else {
5688           goto handle_unusual;
5689         }
5690         break;
5691       }
5692 
5693       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
5694       case 11: {
5695         if (static_cast< ::google::protobuf::uint8>(tag) ==
5696             static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
5697           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5698                input, mutable_transform()));
5699         } else {
5700           goto handle_unusual;
5701         }
5702         break;
5703       }
5704 
5705       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
5706       case 12: {
5707         if (static_cast< ::google::protobuf::uint8>(tag) ==
5708             static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
5709           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5710                input, mutable_vregion()));
5711         } else {
5712           goto handle_unusual;
5713         }
5714         break;
5715       }
5716 
5717       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
5718       case 13: {
5719         if (static_cast< ::google::protobuf::uint8>(tag) ==
5720             static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
5721           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5722                input, mutable_shadow()));
5723         } else {
5724           goto handle_unusual;
5725         }
5726         break;
5727       }
5728 
5729       // optional float opacity = 14;
5730       case 14: {
5731         if (static_cast< ::google::protobuf::uint8>(tag) ==
5732             static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
5733           set_has_opacity();
5734           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5735                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
5736                  input, &opacity_)));
5737         } else {
5738           goto handle_unusual;
5739         }
5740         break;
5741       }
5742 
5743       // optional bool cOpaque = 15;
5744       case 15: {
5745         if (static_cast< ::google::protobuf::uint8>(tag) ==
5746             static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
5747           set_has_copaque();
5748           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5749                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5750                  input, &copaque_)));
5751         } else {
5752           goto handle_unusual;
5753         }
5754         break;
5755       }
5756 
5757       // optional bool cAlpha = 16;
5758       case 16: {
5759         if (static_cast< ::google::protobuf::uint8>(tag) ==
5760             static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
5761           set_has_calpha();
5762           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5763                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5764                  input, &calpha_)));
5765         } else {
5766           goto handle_unusual;
5767         }
5768         break;
5769       }
5770 
5771       // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
5772       case 17: {
5773         if (static_cast< ::google::protobuf::uint8>(tag) ==
5774             static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) {
5775           int value;
5776           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5777                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5778                  input, &value)));
5779           if (::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value)) {
5780             set_direct(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(value));
5781           } else {
5782             unknown_fields_stream.WriteVarint32(136u);
5783             unknown_fields_stream.WriteVarint32(
5784                 static_cast< ::google::protobuf::uint32>(value));
5785           }
5786         } else {
5787           goto handle_unusual;
5788         }
5789         break;
5790       }
5791 
5792       // optional uint64 barID = 18;
5793       case 18: {
5794         if (static_cast< ::google::protobuf::uint8>(tag) ==
5795             static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) {
5796           set_has_barid();
5797           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5798                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5799                  input, &barid_)));
5800         } else {
5801           goto handle_unusual;
5802         }
5803         break;
5804       }
5805 
5806       // optional uint64 mask = 19;
5807       case 19: {
5808         if (static_cast< ::google::protobuf::uint8>(tag) ==
5809             static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) {
5810           set_has_mask();
5811           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5812                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5813                  input, &mask_)));
5814         } else {
5815           goto handle_unusual;
5816         }
5817         break;
5818       }
5819 
5820       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
5821       case 20: {
5822         if (static_cast< ::google::protobuf::uint8>(tag) ==
5823             static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) {
5824           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5825                input, mutable_hitregion()));
5826         } else {
5827           goto handle_unusual;
5828         }
5829         break;
5830       }
5831 
5832       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
5833       case 21: {
5834         if (static_cast< ::google::protobuf::uint8>(tag) ==
5835             static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) {
5836           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5837                input, mutable_dispatchregion()));
5838         } else {
5839           goto handle_unusual;
5840         }
5841         break;
5842       }
5843 
5844       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
5845       case 22: {
5846         if (static_cast< ::google::protobuf::uint8>(tag) ==
5847             static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) {
5848           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5849                input, mutable_noactionregion()));
5850         } else {
5851           goto handle_unusual;
5852         }
5853         break;
5854       }
5855 
5856       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
5857       case 23: {
5858         if (static_cast< ::google::protobuf::uint8>(tag) ==
5859             static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) {
5860           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5861                input, mutable_hpanregion()));
5862         } else {
5863           goto handle_unusual;
5864         }
5865         break;
5866       }
5867 
5868       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
5869       case 24: {
5870         if (static_cast< ::google::protobuf::uint8>(tag) ==
5871             static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
5872           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5873                input, mutable_vpanregion()));
5874         } else {
5875           goto handle_unusual;
5876         }
5877         break;
5878       }
5879 
5880       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
5881       case 100: {
5882         if (static_cast< ::google::protobuf::uint8>(tag) ==
5883             static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) {
5884           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5885                input, mutable_valid()));
5886         } else {
5887           goto handle_unusual;
5888         }
5889         break;
5890       }
5891 
5892       // optional uint32 color = 101;
5893       case 101: {
5894         if (static_cast< ::google::protobuf::uint8>(tag) ==
5895             static_cast< ::google::protobuf::uint8>(40u /* 808 & 0xFF */)) {
5896           set_has_color();
5897           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5898                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5899                  input, &color_)));
5900         } else {
5901           goto handle_unusual;
5902         }
5903         break;
5904       }
5905 
5906       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
5907       case 102: {
5908         if (static_cast< ::google::protobuf::uint8>(tag) ==
5909             static_cast< ::google::protobuf::uint8>(48u /* 816 & 0xFF */)) {
5910           int value;
5911           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5912                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5913                  input, &value)));
5914           if (::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value)) {
5915             set_filter(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(value));
5916           } else {
5917             unknown_fields_stream.WriteVarint32(816u);
5918             unknown_fields_stream.WriteVarint32(
5919                 static_cast< ::google::protobuf::uint32>(value));
5920           }
5921         } else {
5922           goto handle_unusual;
5923         }
5924         break;
5925       }
5926 
5927       // optional uint64 refID = 103;
5928       case 103: {
5929         if (static_cast< ::google::protobuf::uint8>(tag) ==
5930             static_cast< ::google::protobuf::uint8>(56u /* 824 & 0xFF */)) {
5931           set_has_refid();
5932           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5933                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5934                  input, &refid_)));
5935         } else {
5936           goto handle_unusual;
5937         }
5938         break;
5939       }
5940 
5941       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
5942       case 104: {
5943         if (static_cast< ::google::protobuf::uint8>(tag) ==
5944             static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) {
5945           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5946                input, mutable_size()));
5947         } else {
5948           goto handle_unusual;
5949         }
5950         break;
5951       }
5952 
5953       // optional uint32 displayListLogLength = 105;
5954       case 105: {
5955         if (static_cast< ::google::protobuf::uint8>(tag) ==
5956             static_cast< ::google::protobuf::uint8>(72u /* 840 & 0xFF */)) {
5957           set_has_displaylistloglength();
5958           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5959                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5960                  input, &displaylistloglength_)));
5961         } else {
5962           goto handle_unusual;
5963         }
5964         break;
5965       }
5966 
5967       // optional bytes displayListLog = 106;
5968       case 106: {
5969         if (static_cast< ::google::protobuf::uint8>(tag) ==
5970             static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) {
5971           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5972                 input, this->mutable_displaylistlog()));
5973         } else {
5974           goto handle_unusual;
5975         }
5976         break;
5977       }
5978 
5979       default: {
5980       handle_unusual:
5981         if (tag == 0) {
5982           goto success;
5983         }
5984         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
5985             input, tag, &unknown_fields_stream));
5986         break;
5987       }
5988     }
5989   }
5990 success:
5991   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer)
5992   return true;
5993 failure:
5994   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer)
5995   return false;
5996 #undef DO_
5997 }
5998 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const5999 void LayersPacket_Layer::SerializeWithCachedSizes(
6000     ::google::protobuf::io::CodedOutputStream* output) const {
6001   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer)
6002   ::google::protobuf::uint32 cached_has_bits = 0;
6003   (void) cached_has_bits;
6004 
6005   cached_has_bits = _has_bits_[0];
6006   // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
6007   if (cached_has_bits & 0x00004000u) {
6008     ::google::protobuf::internal::WireFormatLite::WriteEnum(
6009       1, this->type(), output);
6010   }
6011 
6012   // required uint64 ptr = 2;
6013   if (cached_has_bits & 0x00001000u) {
6014     ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ptr(), output);
6015   }
6016 
6017   // required uint64 parentPtr = 3;
6018   if (cached_has_bits & 0x00002000u) {
6019     ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->parentptr(), output);
6020   }
6021 
6022   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
6023   if (cached_has_bits & 0x00000002u) {
6024     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6025       10, *this->clip_, output);
6026   }
6027 
6028   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
6029   if (cached_has_bits & 0x00000004u) {
6030     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6031       11, *this->transform_, output);
6032   }
6033 
6034   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
6035   if (cached_has_bits & 0x00000008u) {
6036     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6037       12, *this->vregion_, output);
6038   }
6039 
6040   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
6041   if (cached_has_bits & 0x00000010u) {
6042     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6043       13, *this->shadow_, output);
6044   }
6045 
6046   // optional float opacity = 14;
6047   if (cached_has_bits & 0x00008000u) {
6048     ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->opacity(), output);
6049   }
6050 
6051   // optional bool cOpaque = 15;
6052   if (cached_has_bits & 0x00040000u) {
6053     ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->copaque(), output);
6054   }
6055 
6056   // optional bool cAlpha = 16;
6057   if (cached_has_bits & 0x00080000u) {
6058     ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->calpha(), output);
6059   }
6060 
6061   // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
6062   if (cached_has_bits & 0x01000000u) {
6063     ::google::protobuf::internal::WireFormatLite::WriteEnum(
6064       17, this->direct(), output);
6065   }
6066 
6067   // optional uint64 barID = 18;
6068   if (cached_has_bits & 0x00010000u) {
6069     ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->barid(), output);
6070   }
6071 
6072   // optional uint64 mask = 19;
6073   if (cached_has_bits & 0x00020000u) {
6074     ::google::protobuf::internal::WireFormatLite::WriteUInt64(19, this->mask(), output);
6075   }
6076 
6077   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
6078   if (cached_has_bits & 0x00000020u) {
6079     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6080       20, *this->hitregion_, output);
6081   }
6082 
6083   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
6084   if (cached_has_bits & 0x00000040u) {
6085     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6086       21, *this->dispatchregion_, output);
6087   }
6088 
6089   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
6090   if (cached_has_bits & 0x00000080u) {
6091     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6092       22, *this->noactionregion_, output);
6093   }
6094 
6095   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
6096   if (cached_has_bits & 0x00000100u) {
6097     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6098       23, *this->hpanregion_, output);
6099   }
6100 
6101   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
6102   if (cached_has_bits & 0x00000200u) {
6103     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6104       24, *this->vpanregion_, output);
6105   }
6106 
6107   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
6108   if (cached_has_bits & 0x00000400u) {
6109     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6110       100, *this->valid_, output);
6111   }
6112 
6113   // optional uint32 color = 101;
6114   if (cached_has_bits & 0x00100000u) {
6115     ::google::protobuf::internal::WireFormatLite::WriteUInt32(101, this->color(), output);
6116   }
6117 
6118   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
6119   if (cached_has_bits & 0x00400000u) {
6120     ::google::protobuf::internal::WireFormatLite::WriteEnum(
6121       102, this->filter(), output);
6122   }
6123 
6124   // optional uint64 refID = 103;
6125   if (cached_has_bits & 0x00200000u) {
6126     ::google::protobuf::internal::WireFormatLite::WriteUInt64(103, this->refid(), output);
6127   }
6128 
6129   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
6130   if (cached_has_bits & 0x00000800u) {
6131     ::google::protobuf::internal::WireFormatLite::WriteMessage(
6132       104, *this->size_, output);
6133   }
6134 
6135   // optional uint32 displayListLogLength = 105;
6136   if (cached_has_bits & 0x00800000u) {
6137     ::google::protobuf::internal::WireFormatLite::WriteUInt32(105, this->displaylistloglength(), output);
6138   }
6139 
6140   // optional bytes displayListLog = 106;
6141   if (cached_has_bits & 0x00000001u) {
6142     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
6143       106, this->displaylistlog(), output);
6144   }
6145 
6146   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
6147                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
6148   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer)
6149 }
6150 
RequiredFieldsByteSizeFallback() const6151 size_t LayersPacket_Layer::RequiredFieldsByteSizeFallback() const {
6152 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.LayersPacket.Layer)
6153   size_t total_size = 0;
6154 
6155   if (has_ptr()) {
6156     // required uint64 ptr = 2;
6157     total_size += 1 +
6158       ::google::protobuf::internal::WireFormatLite::UInt64Size(
6159         this->ptr());
6160   }
6161 
6162   if (has_parentptr()) {
6163     // required uint64 parentPtr = 3;
6164     total_size += 1 +
6165       ::google::protobuf::internal::WireFormatLite::UInt64Size(
6166         this->parentptr());
6167   }
6168 
6169   if (has_type()) {
6170     // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
6171     total_size += 1 +
6172       ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6173   }
6174 
6175   return total_size;
6176 }
ByteSizeLong() const6177 size_t LayersPacket_Layer::ByteSizeLong() const {
6178 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer)
6179   size_t total_size = 0;
6180 
6181   total_size += _internal_metadata_.unknown_fields().size();
6182 
6183   if (((_has_bits_[0] & 0x00007000) ^ 0x00007000) == 0) {  // All required fields are present.
6184     // required uint64 ptr = 2;
6185     total_size += 1 +
6186       ::google::protobuf::internal::WireFormatLite::UInt64Size(
6187         this->ptr());
6188 
6189     // required uint64 parentPtr = 3;
6190     total_size += 1 +
6191       ::google::protobuf::internal::WireFormatLite::UInt64Size(
6192         this->parentptr());
6193 
6194     // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
6195     total_size += 1 +
6196       ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
6197 
6198   } else {
6199     total_size += RequiredFieldsByteSizeFallback();
6200   }
6201   if (_has_bits_[0 / 32] & 255u) {
6202     // optional bytes displayListLog = 106;
6203     if (has_displaylistlog()) {
6204       total_size += 2 +
6205         ::google::protobuf::internal::WireFormatLite::BytesSize(
6206           this->displaylistlog());
6207     }
6208 
6209     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
6210     if (has_clip()) {
6211       total_size += 1 +
6212         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6213           *this->clip_);
6214     }
6215 
6216     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
6217     if (has_transform()) {
6218       total_size += 1 +
6219         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6220           *this->transform_);
6221     }
6222 
6223     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
6224     if (has_vregion()) {
6225       total_size += 1 +
6226         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6227           *this->vregion_);
6228     }
6229 
6230     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
6231     if (has_shadow()) {
6232       total_size += 1 +
6233         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6234           *this->shadow_);
6235     }
6236 
6237     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
6238     if (has_hitregion()) {
6239       total_size += 2 +
6240         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6241           *this->hitregion_);
6242     }
6243 
6244     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
6245     if (has_dispatchregion()) {
6246       total_size += 2 +
6247         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6248           *this->dispatchregion_);
6249     }
6250 
6251     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
6252     if (has_noactionregion()) {
6253       total_size += 2 +
6254         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6255           *this->noactionregion_);
6256     }
6257 
6258   }
6259   if (_has_bits_[8 / 32] & 3840u) {
6260     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
6261     if (has_hpanregion()) {
6262       total_size += 2 +
6263         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6264           *this->hpanregion_);
6265     }
6266 
6267     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
6268     if (has_vpanregion()) {
6269       total_size += 2 +
6270         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6271           *this->vpanregion_);
6272     }
6273 
6274     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
6275     if (has_valid()) {
6276       total_size += 2 +
6277         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6278           *this->valid_);
6279     }
6280 
6281     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
6282     if (has_size()) {
6283       total_size += 2 +
6284         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6285           *this->size_);
6286     }
6287 
6288   }
6289   // optional float opacity = 14;
6290   if (has_opacity()) {
6291     total_size += 1 + 4;
6292   }
6293 
6294   if (_has_bits_[16 / 32] & 16711680u) {
6295     // optional uint64 barID = 18;
6296     if (has_barid()) {
6297       total_size += 2 +
6298         ::google::protobuf::internal::WireFormatLite::UInt64Size(
6299           this->barid());
6300     }
6301 
6302     // optional uint64 mask = 19;
6303     if (has_mask()) {
6304       total_size += 2 +
6305         ::google::protobuf::internal::WireFormatLite::UInt64Size(
6306           this->mask());
6307     }
6308 
6309     // optional bool cOpaque = 15;
6310     if (has_copaque()) {
6311       total_size += 1 + 1;
6312     }
6313 
6314     // optional bool cAlpha = 16;
6315     if (has_calpha()) {
6316       total_size += 2 + 1;
6317     }
6318 
6319     // optional uint32 color = 101;
6320     if (has_color()) {
6321       total_size += 2 +
6322         ::google::protobuf::internal::WireFormatLite::UInt32Size(
6323           this->color());
6324     }
6325 
6326     // optional uint64 refID = 103;
6327     if (has_refid()) {
6328       total_size += 2 +
6329         ::google::protobuf::internal::WireFormatLite::UInt64Size(
6330           this->refid());
6331     }
6332 
6333     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
6334     if (has_filter()) {
6335       total_size += 2 +
6336         ::google::protobuf::internal::WireFormatLite::EnumSize(this->filter());
6337     }
6338 
6339     // optional uint32 displayListLogLength = 105;
6340     if (has_displaylistloglength()) {
6341       total_size += 2 +
6342         ::google::protobuf::internal::WireFormatLite::UInt32Size(
6343           this->displaylistloglength());
6344     }
6345 
6346   }
6347   // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
6348   if (has_direct()) {
6349     total_size += 2 +
6350       ::google::protobuf::internal::WireFormatLite::EnumSize(this->direct());
6351   }
6352 
6353   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6354   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6355   _cached_size_ = cached_size;
6356   GOOGLE_SAFE_CONCURRENT_WRITES_END();
6357   return total_size;
6358 }
6359 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)6360 void LayersPacket_Layer::CheckTypeAndMergeFrom(
6361     const ::google::protobuf::MessageLite& from) {
6362   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer*>(&from));
6363 }
6364 
MergeFrom(const LayersPacket_Layer & from)6365 void LayersPacket_Layer::MergeFrom(const LayersPacket_Layer& from) {
6366 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer)
6367   GOOGLE_DCHECK_NE(&from, this);
6368   _internal_metadata_.MergeFrom(from._internal_metadata_);
6369   ::google::protobuf::uint32 cached_has_bits = 0;
6370   (void) cached_has_bits;
6371 
6372   cached_has_bits = from._has_bits_[0];
6373   if (cached_has_bits & 255u) {
6374     if (cached_has_bits & 0x00000001u) {
6375       set_has_displaylistlog();
6376       displaylistlog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_);
6377     }
6378     if (cached_has_bits & 0x00000002u) {
6379       mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip());
6380     }
6381     if (cached_has_bits & 0x00000004u) {
6382       mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform());
6383     }
6384     if (cached_has_bits & 0x00000008u) {
6385       mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion());
6386     }
6387     if (cached_has_bits & 0x00000010u) {
6388       mutable_shadow()->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::MergeFrom(from.shadow());
6389     }
6390     if (cached_has_bits & 0x00000020u) {
6391       mutable_hitregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hitregion());
6392     }
6393     if (cached_has_bits & 0x00000040u) {
6394       mutable_dispatchregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.dispatchregion());
6395     }
6396     if (cached_has_bits & 0x00000080u) {
6397       mutable_noactionregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.noactionregion());
6398     }
6399   }
6400   if (cached_has_bits & 65280u) {
6401     if (cached_has_bits & 0x00000100u) {
6402       mutable_hpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hpanregion());
6403     }
6404     if (cached_has_bits & 0x00000200u) {
6405       mutable_vpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vpanregion());
6406     }
6407     if (cached_has_bits & 0x00000400u) {
6408       mutable_valid()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.valid());
6409     }
6410     if (cached_has_bits & 0x00000800u) {
6411       mutable_size()->::mozilla::layers::layerscope::LayersPacket_Layer_Size::MergeFrom(from.size());
6412     }
6413     if (cached_has_bits & 0x00001000u) {
6414       ptr_ = from.ptr_;
6415     }
6416     if (cached_has_bits & 0x00002000u) {
6417       parentptr_ = from.parentptr_;
6418     }
6419     if (cached_has_bits & 0x00004000u) {
6420       type_ = from.type_;
6421     }
6422     if (cached_has_bits & 0x00008000u) {
6423       opacity_ = from.opacity_;
6424     }
6425     _has_bits_[0] |= cached_has_bits;
6426   }
6427   if (cached_has_bits & 16711680u) {
6428     if (cached_has_bits & 0x00010000u) {
6429       barid_ = from.barid_;
6430     }
6431     if (cached_has_bits & 0x00020000u) {
6432       mask_ = from.mask_;
6433     }
6434     if (cached_has_bits & 0x00040000u) {
6435       copaque_ = from.copaque_;
6436     }
6437     if (cached_has_bits & 0x00080000u) {
6438       calpha_ = from.calpha_;
6439     }
6440     if (cached_has_bits & 0x00100000u) {
6441       color_ = from.color_;
6442     }
6443     if (cached_has_bits & 0x00200000u) {
6444       refid_ = from.refid_;
6445     }
6446     if (cached_has_bits & 0x00400000u) {
6447       filter_ = from.filter_;
6448     }
6449     if (cached_has_bits & 0x00800000u) {
6450       displaylistloglength_ = from.displaylistloglength_;
6451     }
6452     _has_bits_[0] |= cached_has_bits;
6453   }
6454   if (cached_has_bits & 0x01000000u) {
6455     set_direct(from.direct());
6456   }
6457 }
6458 
CopyFrom(const LayersPacket_Layer & from)6459 void LayersPacket_Layer::CopyFrom(const LayersPacket_Layer& from) {
6460 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer)
6461   if (&from == this) return;
6462   Clear();
6463   MergeFrom(from);
6464 }
6465 
IsInitialized() const6466 bool LayersPacket_Layer::IsInitialized() const {
6467   if ((_has_bits_[0] & 0x00007000) != 0x00007000) return false;
6468   return true;
6469 }
6470 
Swap(LayersPacket_Layer * other)6471 void LayersPacket_Layer::Swap(LayersPacket_Layer* other) {
6472   if (other == this) return;
6473   InternalSwap(other);
6474 }
InternalSwap(LayersPacket_Layer * other)6475 void LayersPacket_Layer::InternalSwap(LayersPacket_Layer* other) {
6476   using std::swap;
6477   displaylistlog_.Swap(&other->displaylistlog_);
6478   swap(clip_, other->clip_);
6479   swap(transform_, other->transform_);
6480   swap(vregion_, other->vregion_);
6481   swap(shadow_, other->shadow_);
6482   swap(hitregion_, other->hitregion_);
6483   swap(dispatchregion_, other->dispatchregion_);
6484   swap(noactionregion_, other->noactionregion_);
6485   swap(hpanregion_, other->hpanregion_);
6486   swap(vpanregion_, other->vpanregion_);
6487   swap(valid_, other->valid_);
6488   swap(size_, other->size_);
6489   swap(ptr_, other->ptr_);
6490   swap(parentptr_, other->parentptr_);
6491   swap(type_, other->type_);
6492   swap(opacity_, other->opacity_);
6493   swap(barid_, other->barid_);
6494   swap(mask_, other->mask_);
6495   swap(copaque_, other->copaque_);
6496   swap(calpha_, other->calpha_);
6497   swap(color_, other->color_);
6498   swap(refid_, other->refid_);
6499   swap(filter_, other->filter_);
6500   swap(displaylistloglength_, other->displaylistloglength_);
6501   swap(direct_, other->direct_);
6502   swap(_has_bits_[0], other->_has_bits_[0]);
6503   _internal_metadata_.Swap(&other->_internal_metadata_);
6504   swap(_cached_size_, other->_cached_size_);
6505 }
6506 
GetTypeName() const6507 ::std::string LayersPacket_Layer::GetTypeName() const {
6508   return "mozilla.layers.layerscope.LayersPacket.Layer";
6509 }
6510 
6511 #if PROTOBUF_INLINE_NOT_IN_HEADERS
6512 // LayersPacket_Layer
6513 
6514 // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
has_type() const6515 bool LayersPacket_Layer::has_type() const {
6516   return (_has_bits_[0] & 0x00004000u) != 0;
6517 }
set_has_type()6518 void LayersPacket_Layer::set_has_type() {
6519   _has_bits_[0] |= 0x00004000u;
6520 }
clear_has_type()6521 void LayersPacket_Layer::clear_has_type() {
6522   _has_bits_[0] &= ~0x00004000u;
6523 }
clear_type()6524 void LayersPacket_Layer::clear_type() {
6525   type_ = 0;
6526   clear_has_type();
6527 }
type() const6528 ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType LayersPacket_Layer::type() const {
6529   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.type)
6530   return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(type_);
6531 }
set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value)6532 void LayersPacket_Layer::set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value) {
6533   assert(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value));
6534   set_has_type();
6535   type_ = value;
6536   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.type)
6537 }
6538 
6539 // required uint64 ptr = 2;
has_ptr() const6540 bool LayersPacket_Layer::has_ptr() const {
6541   return (_has_bits_[0] & 0x00001000u) != 0;
6542 }
set_has_ptr()6543 void LayersPacket_Layer::set_has_ptr() {
6544   _has_bits_[0] |= 0x00001000u;
6545 }
clear_has_ptr()6546 void LayersPacket_Layer::clear_has_ptr() {
6547   _has_bits_[0] &= ~0x00001000u;
6548 }
clear_ptr()6549 void LayersPacket_Layer::clear_ptr() {
6550   ptr_ = GOOGLE_ULONGLONG(0);
6551   clear_has_ptr();
6552 }
ptr() const6553 ::google::protobuf::uint64 LayersPacket_Layer::ptr() const {
6554   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.ptr)
6555   return ptr_;
6556 }
set_ptr(::google::protobuf::uint64 value)6557 void LayersPacket_Layer::set_ptr(::google::protobuf::uint64 value) {
6558   set_has_ptr();
6559   ptr_ = value;
6560   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.ptr)
6561 }
6562 
6563 // required uint64 parentPtr = 3;
has_parentptr() const6564 bool LayersPacket_Layer::has_parentptr() const {
6565   return (_has_bits_[0] & 0x00002000u) != 0;
6566 }
set_has_parentptr()6567 void LayersPacket_Layer::set_has_parentptr() {
6568   _has_bits_[0] |= 0x00002000u;
6569 }
clear_has_parentptr()6570 void LayersPacket_Layer::clear_has_parentptr() {
6571   _has_bits_[0] &= ~0x00002000u;
6572 }
clear_parentptr()6573 void LayersPacket_Layer::clear_parentptr() {
6574   parentptr_ = GOOGLE_ULONGLONG(0);
6575   clear_has_parentptr();
6576 }
parentptr() const6577 ::google::protobuf::uint64 LayersPacket_Layer::parentptr() const {
6578   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr)
6579   return parentptr_;
6580 }
set_parentptr(::google::protobuf::uint64 value)6581 void LayersPacket_Layer::set_parentptr(::google::protobuf::uint64 value) {
6582   set_has_parentptr();
6583   parentptr_ = value;
6584   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr)
6585 }
6586 
6587 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
has_clip() const6588 bool LayersPacket_Layer::has_clip() const {
6589   return (_has_bits_[0] & 0x00000002u) != 0;
6590 }
set_has_clip()6591 void LayersPacket_Layer::set_has_clip() {
6592   _has_bits_[0] |= 0x00000002u;
6593 }
clear_has_clip()6594 void LayersPacket_Layer::clear_has_clip() {
6595   _has_bits_[0] &= ~0x00000002u;
6596 }
clear_clip()6597 void LayersPacket_Layer::clear_clip() {
6598   if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
6599   clear_has_clip();
6600 }
clip() const6601 const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer::clip() const {
6602   const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_;
6603   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.clip)
6604   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
6605       &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_);
6606 }
mutable_clip()6607 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::mutable_clip() {
6608   set_has_clip();
6609   if (clip_ == NULL) {
6610     clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect;
6611   }
6612   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.clip)
6613   return clip_;
6614 }
release_clip()6615 ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::release_clip() {
6616   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.clip)
6617   clear_has_clip();
6618   ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_;
6619   clip_ = NULL;
6620   return temp;
6621 }
set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect * clip)6622 void LayersPacket_Layer::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) {
6623   delete clip_;
6624   clip_ = clip;
6625   if (clip) {
6626     set_has_clip();
6627   } else {
6628     clear_has_clip();
6629   }
6630   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.clip)
6631 }
6632 
6633 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
has_transform() const6634 bool LayersPacket_Layer::has_transform() const {
6635   return (_has_bits_[0] & 0x00000004u) != 0;
6636 }
set_has_transform()6637 void LayersPacket_Layer::set_has_transform() {
6638   _has_bits_[0] |= 0x00000004u;
6639 }
clear_has_transform()6640 void LayersPacket_Layer::clear_has_transform() {
6641   _has_bits_[0] &= ~0x00000004u;
6642 }
clear_transform()6643 void LayersPacket_Layer::clear_transform() {
6644   if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
6645   clear_has_transform();
6646 }
transform() const6647 const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer::transform() const {
6648   const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_;
6649   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.transform)
6650   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
6651       &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_);
6652 }
mutable_transform()6653 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::mutable_transform() {
6654   set_has_transform();
6655   if (transform_ == NULL) {
6656     transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix;
6657   }
6658   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.transform)
6659   return transform_;
6660 }
release_transform()6661 ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::release_transform() {
6662   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.transform)
6663   clear_has_transform();
6664   ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_;
6665   transform_ = NULL;
6666   return temp;
6667 }
set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix * transform)6668 void LayersPacket_Layer::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) {
6669   delete transform_;
6670   transform_ = transform;
6671   if (transform) {
6672     set_has_transform();
6673   } else {
6674     clear_has_transform();
6675   }
6676   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.transform)
6677 }
6678 
6679 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
has_vregion() const6680 bool LayersPacket_Layer::has_vregion() const {
6681   return (_has_bits_[0] & 0x00000008u) != 0;
6682 }
set_has_vregion()6683 void LayersPacket_Layer::set_has_vregion() {
6684   _has_bits_[0] |= 0x00000008u;
6685 }
clear_has_vregion()6686 void LayersPacket_Layer::clear_has_vregion() {
6687   _has_bits_[0] &= ~0x00000008u;
6688 }
clear_vregion()6689 void LayersPacket_Layer::clear_vregion() {
6690   if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
6691   clear_has_vregion();
6692 }
vregion() const6693 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vregion() const {
6694   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_;
6695   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
6696   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
6697       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
6698 }
mutable_vregion()6699 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vregion() {
6700   set_has_vregion();
6701   if (vregion_ == NULL) {
6702     vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
6703   }
6704   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
6705   return vregion_;
6706 }
release_vregion()6707 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vregion() {
6708   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
6709   clear_has_vregion();
6710   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_;
6711   vregion_ = NULL;
6712   return temp;
6713 }
set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * vregion)6714 void LayersPacket_Layer::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) {
6715   delete vregion_;
6716   vregion_ = vregion;
6717   if (vregion) {
6718     set_has_vregion();
6719   } else {
6720     clear_has_vregion();
6721   }
6722   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
6723 }
6724 
6725 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
has_shadow() const6726 bool LayersPacket_Layer::has_shadow() const {
6727   return (_has_bits_[0] & 0x00000010u) != 0;
6728 }
set_has_shadow()6729 void LayersPacket_Layer::set_has_shadow() {
6730   _has_bits_[0] |= 0x00000010u;
6731 }
clear_has_shadow()6732 void LayersPacket_Layer::clear_has_shadow() {
6733   _has_bits_[0] &= ~0x00000010u;
6734 }
clear_shadow()6735 void LayersPacket_Layer::clear_shadow() {
6736   if (shadow_ != NULL) shadow_->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::Clear();
6737   clear_has_shadow();
6738 }
shadow() const6739 const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& LayersPacket_Layer::shadow() const {
6740   const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* p = shadow_;
6741   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
6742   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(
6743       &::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_);
6744 }
mutable_shadow()6745 ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::mutable_shadow() {
6746   set_has_shadow();
6747   if (shadow_ == NULL) {
6748     shadow_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow;
6749   }
6750   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
6751   return shadow_;
6752 }
release_shadow()6753 ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::release_shadow() {
6754   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
6755   clear_has_shadow();
6756   ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* temp = shadow_;
6757   shadow_ = NULL;
6758   return temp;
6759 }
set_allocated_shadow(::mozilla::layers::layerscope::LayersPacket_Layer_Shadow * shadow)6760 void LayersPacket_Layer::set_allocated_shadow(::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* shadow) {
6761   delete shadow_;
6762   shadow_ = shadow;
6763   if (shadow) {
6764     set_has_shadow();
6765   } else {
6766     clear_has_shadow();
6767   }
6768   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
6769 }
6770 
6771 // optional float opacity = 14;
has_opacity() const6772 bool LayersPacket_Layer::has_opacity() const {
6773   return (_has_bits_[0] & 0x00008000u) != 0;
6774 }
set_has_opacity()6775 void LayersPacket_Layer::set_has_opacity() {
6776   _has_bits_[0] |= 0x00008000u;
6777 }
clear_has_opacity()6778 void LayersPacket_Layer::clear_has_opacity() {
6779   _has_bits_[0] &= ~0x00008000u;
6780 }
clear_opacity()6781 void LayersPacket_Layer::clear_opacity() {
6782   opacity_ = 0;
6783   clear_has_opacity();
6784 }
opacity() const6785 float LayersPacket_Layer::opacity() const {
6786   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.opacity)
6787   return opacity_;
6788 }
set_opacity(float value)6789 void LayersPacket_Layer::set_opacity(float value) {
6790   set_has_opacity();
6791   opacity_ = value;
6792   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.opacity)
6793 }
6794 
6795 // optional bool cOpaque = 15;
has_copaque() const6796 bool LayersPacket_Layer::has_copaque() const {
6797   return (_has_bits_[0] & 0x00040000u) != 0;
6798 }
set_has_copaque()6799 void LayersPacket_Layer::set_has_copaque() {
6800   _has_bits_[0] |= 0x00040000u;
6801 }
clear_has_copaque()6802 void LayersPacket_Layer::clear_has_copaque() {
6803   _has_bits_[0] &= ~0x00040000u;
6804 }
clear_copaque()6805 void LayersPacket_Layer::clear_copaque() {
6806   copaque_ = false;
6807   clear_has_copaque();
6808 }
copaque() const6809 bool LayersPacket_Layer::copaque() const {
6810   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque)
6811   return copaque_;
6812 }
set_copaque(bool value)6813 void LayersPacket_Layer::set_copaque(bool value) {
6814   set_has_copaque();
6815   copaque_ = value;
6816   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque)
6817 }
6818 
6819 // optional bool cAlpha = 16;
has_calpha() const6820 bool LayersPacket_Layer::has_calpha() const {
6821   return (_has_bits_[0] & 0x00080000u) != 0;
6822 }
set_has_calpha()6823 void LayersPacket_Layer::set_has_calpha() {
6824   _has_bits_[0] |= 0x00080000u;
6825 }
clear_has_calpha()6826 void LayersPacket_Layer::clear_has_calpha() {
6827   _has_bits_[0] &= ~0x00080000u;
6828 }
clear_calpha()6829 void LayersPacket_Layer::clear_calpha() {
6830   calpha_ = false;
6831   clear_has_calpha();
6832 }
calpha() const6833 bool LayersPacket_Layer::calpha() const {
6834   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha)
6835   return calpha_;
6836 }
set_calpha(bool value)6837 void LayersPacket_Layer::set_calpha(bool value) {
6838   set_has_calpha();
6839   calpha_ = value;
6840   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha)
6841 }
6842 
6843 // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
has_direct() const6844 bool LayersPacket_Layer::has_direct() const {
6845   return (_has_bits_[0] & 0x01000000u) != 0;
6846 }
set_has_direct()6847 void LayersPacket_Layer::set_has_direct() {
6848   _has_bits_[0] |= 0x01000000u;
6849 }
clear_has_direct()6850 void LayersPacket_Layer::clear_has_direct() {
6851   _has_bits_[0] &= ~0x01000000u;
6852 }
clear_direct()6853 void LayersPacket_Layer::clear_direct() {
6854   direct_ = 1;
6855   clear_has_direct();
6856 }
direct() const6857 ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::direct() const {
6858   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.direct)
6859   return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(direct_);
6860 }
set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value)6861 void LayersPacket_Layer::set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value) {
6862   assert(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value));
6863   set_has_direct();
6864   direct_ = value;
6865   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.direct)
6866 }
6867 
6868 // optional uint64 barID = 18;
has_barid() const6869 bool LayersPacket_Layer::has_barid() const {
6870   return (_has_bits_[0] & 0x00010000u) != 0;
6871 }
set_has_barid()6872 void LayersPacket_Layer::set_has_barid() {
6873   _has_bits_[0] |= 0x00010000u;
6874 }
clear_has_barid()6875 void LayersPacket_Layer::clear_has_barid() {
6876   _has_bits_[0] &= ~0x00010000u;
6877 }
clear_barid()6878 void LayersPacket_Layer::clear_barid() {
6879   barid_ = GOOGLE_ULONGLONG(0);
6880   clear_has_barid();
6881 }
barid() const6882 ::google::protobuf::uint64 LayersPacket_Layer::barid() const {
6883   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.barID)
6884   return barid_;
6885 }
set_barid(::google::protobuf::uint64 value)6886 void LayersPacket_Layer::set_barid(::google::protobuf::uint64 value) {
6887   set_has_barid();
6888   barid_ = value;
6889   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.barID)
6890 }
6891 
6892 // optional uint64 mask = 19;
has_mask() const6893 bool LayersPacket_Layer::has_mask() const {
6894   return (_has_bits_[0] & 0x00020000u) != 0;
6895 }
set_has_mask()6896 void LayersPacket_Layer::set_has_mask() {
6897   _has_bits_[0] |= 0x00020000u;
6898 }
clear_has_mask()6899 void LayersPacket_Layer::clear_has_mask() {
6900   _has_bits_[0] &= ~0x00020000u;
6901 }
clear_mask()6902 void LayersPacket_Layer::clear_mask() {
6903   mask_ = GOOGLE_ULONGLONG(0);
6904   clear_has_mask();
6905 }
mask() const6906 ::google::protobuf::uint64 LayersPacket_Layer::mask() const {
6907   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.mask)
6908   return mask_;
6909 }
set_mask(::google::protobuf::uint64 value)6910 void LayersPacket_Layer::set_mask(::google::protobuf::uint64 value) {
6911   set_has_mask();
6912   mask_ = value;
6913   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.mask)
6914 }
6915 
6916 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
has_hitregion() const6917 bool LayersPacket_Layer::has_hitregion() const {
6918   return (_has_bits_[0] & 0x00000020u) != 0;
6919 }
set_has_hitregion()6920 void LayersPacket_Layer::set_has_hitregion() {
6921   _has_bits_[0] |= 0x00000020u;
6922 }
clear_has_hitregion()6923 void LayersPacket_Layer::clear_has_hitregion() {
6924   _has_bits_[0] &= ~0x00000020u;
6925 }
clear_hitregion()6926 void LayersPacket_Layer::clear_hitregion() {
6927   if (hitregion_ != NULL) hitregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
6928   clear_has_hitregion();
6929 }
hitregion() const6930 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hitregion() const {
6931   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hitregion_;
6932   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
6933   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
6934       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
6935 }
mutable_hitregion()6936 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hitregion() {
6937   set_has_hitregion();
6938   if (hitregion_ == NULL) {
6939     hitregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
6940   }
6941   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
6942   return hitregion_;
6943 }
release_hitregion()6944 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hitregion() {
6945   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
6946   clear_has_hitregion();
6947   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hitregion_;
6948   hitregion_ = NULL;
6949   return temp;
6950 }
set_allocated_hitregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * hitregion)6951 void LayersPacket_Layer::set_allocated_hitregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hitregion) {
6952   delete hitregion_;
6953   hitregion_ = hitregion;
6954   if (hitregion) {
6955     set_has_hitregion();
6956   } else {
6957     clear_has_hitregion();
6958   }
6959   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
6960 }
6961 
6962 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
has_dispatchregion() const6963 bool LayersPacket_Layer::has_dispatchregion() const {
6964   return (_has_bits_[0] & 0x00000040u) != 0;
6965 }
set_has_dispatchregion()6966 void LayersPacket_Layer::set_has_dispatchregion() {
6967   _has_bits_[0] |= 0x00000040u;
6968 }
clear_has_dispatchregion()6969 void LayersPacket_Layer::clear_has_dispatchregion() {
6970   _has_bits_[0] &= ~0x00000040u;
6971 }
clear_dispatchregion()6972 void LayersPacket_Layer::clear_dispatchregion() {
6973   if (dispatchregion_ != NULL) dispatchregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
6974   clear_has_dispatchregion();
6975 }
dispatchregion() const6976 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::dispatchregion() const {
6977   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = dispatchregion_;
6978   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
6979   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
6980       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
6981 }
mutable_dispatchregion()6982 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_dispatchregion() {
6983   set_has_dispatchregion();
6984   if (dispatchregion_ == NULL) {
6985     dispatchregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
6986   }
6987   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
6988   return dispatchregion_;
6989 }
release_dispatchregion()6990 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_dispatchregion() {
6991   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
6992   clear_has_dispatchregion();
6993   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = dispatchregion_;
6994   dispatchregion_ = NULL;
6995   return temp;
6996 }
set_allocated_dispatchregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * dispatchregion)6997 void LayersPacket_Layer::set_allocated_dispatchregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* dispatchregion) {
6998   delete dispatchregion_;
6999   dispatchregion_ = dispatchregion;
7000   if (dispatchregion) {
7001     set_has_dispatchregion();
7002   } else {
7003     clear_has_dispatchregion();
7004   }
7005   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
7006 }
7007 
7008 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
has_noactionregion() const7009 bool LayersPacket_Layer::has_noactionregion() const {
7010   return (_has_bits_[0] & 0x00000080u) != 0;
7011 }
set_has_noactionregion()7012 void LayersPacket_Layer::set_has_noactionregion() {
7013   _has_bits_[0] |= 0x00000080u;
7014 }
clear_has_noactionregion()7015 void LayersPacket_Layer::clear_has_noactionregion() {
7016   _has_bits_[0] &= ~0x00000080u;
7017 }
clear_noactionregion()7018 void LayersPacket_Layer::clear_noactionregion() {
7019   if (noactionregion_ != NULL) noactionregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
7020   clear_has_noactionregion();
7021 }
noactionregion() const7022 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::noactionregion() const {
7023   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = noactionregion_;
7024   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
7025   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
7026       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
7027 }
mutable_noactionregion()7028 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_noactionregion() {
7029   set_has_noactionregion();
7030   if (noactionregion_ == NULL) {
7031     noactionregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
7032   }
7033   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
7034   return noactionregion_;
7035 }
release_noactionregion()7036 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_noactionregion() {
7037   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
7038   clear_has_noactionregion();
7039   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = noactionregion_;
7040   noactionregion_ = NULL;
7041   return temp;
7042 }
set_allocated_noactionregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * noactionregion)7043 void LayersPacket_Layer::set_allocated_noactionregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* noactionregion) {
7044   delete noactionregion_;
7045   noactionregion_ = noactionregion;
7046   if (noactionregion) {
7047     set_has_noactionregion();
7048   } else {
7049     clear_has_noactionregion();
7050   }
7051   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
7052 }
7053 
7054 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
has_hpanregion() const7055 bool LayersPacket_Layer::has_hpanregion() const {
7056   return (_has_bits_[0] & 0x00000100u) != 0;
7057 }
set_has_hpanregion()7058 void LayersPacket_Layer::set_has_hpanregion() {
7059   _has_bits_[0] |= 0x00000100u;
7060 }
clear_has_hpanregion()7061 void LayersPacket_Layer::clear_has_hpanregion() {
7062   _has_bits_[0] &= ~0x00000100u;
7063 }
clear_hpanregion()7064 void LayersPacket_Layer::clear_hpanregion() {
7065   if (hpanregion_ != NULL) hpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
7066   clear_has_hpanregion();
7067 }
hpanregion() const7068 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hpanregion() const {
7069   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hpanregion_;
7070   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
7071   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
7072       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
7073 }
mutable_hpanregion()7074 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hpanregion() {
7075   set_has_hpanregion();
7076   if (hpanregion_ == NULL) {
7077     hpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
7078   }
7079   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
7080   return hpanregion_;
7081 }
release_hpanregion()7082 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hpanregion() {
7083   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
7084   clear_has_hpanregion();
7085   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hpanregion_;
7086   hpanregion_ = NULL;
7087   return temp;
7088 }
set_allocated_hpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * hpanregion)7089 void LayersPacket_Layer::set_allocated_hpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hpanregion) {
7090   delete hpanregion_;
7091   hpanregion_ = hpanregion;
7092   if (hpanregion) {
7093     set_has_hpanregion();
7094   } else {
7095     clear_has_hpanregion();
7096   }
7097   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
7098 }
7099 
7100 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
has_vpanregion() const7101 bool LayersPacket_Layer::has_vpanregion() const {
7102   return (_has_bits_[0] & 0x00000200u) != 0;
7103 }
set_has_vpanregion()7104 void LayersPacket_Layer::set_has_vpanregion() {
7105   _has_bits_[0] |= 0x00000200u;
7106 }
clear_has_vpanregion()7107 void LayersPacket_Layer::clear_has_vpanregion() {
7108   _has_bits_[0] &= ~0x00000200u;
7109 }
clear_vpanregion()7110 void LayersPacket_Layer::clear_vpanregion() {
7111   if (vpanregion_ != NULL) vpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
7112   clear_has_vpanregion();
7113 }
vpanregion() const7114 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vpanregion() const {
7115   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vpanregion_;
7116   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
7117   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
7118       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
7119 }
mutable_vpanregion()7120 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vpanregion() {
7121   set_has_vpanregion();
7122   if (vpanregion_ == NULL) {
7123     vpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
7124   }
7125   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
7126   return vpanregion_;
7127 }
release_vpanregion()7128 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vpanregion() {
7129   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
7130   clear_has_vpanregion();
7131   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vpanregion_;
7132   vpanregion_ = NULL;
7133   return temp;
7134 }
set_allocated_vpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region * vpanregion)7135 void LayersPacket_Layer::set_allocated_vpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vpanregion) {
7136   delete vpanregion_;
7137   vpanregion_ = vpanregion;
7138   if (vpanregion) {
7139     set_has_vpanregion();
7140   } else {
7141     clear_has_vpanregion();
7142   }
7143   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
7144 }
7145 
7146 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
has_valid() const7147 bool LayersPacket_Layer::has_valid() const {
7148   return (_has_bits_[0] & 0x00000400u) != 0;
7149 }
set_has_valid()7150 void LayersPacket_Layer::set_has_valid() {
7151   _has_bits_[0] |= 0x00000400u;
7152 }
clear_has_valid()7153 void LayersPacket_Layer::clear_has_valid() {
7154   _has_bits_[0] &= ~0x00000400u;
7155 }
clear_valid()7156 void LayersPacket_Layer::clear_valid() {
7157   if (valid_ != NULL) valid_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
7158   clear_has_valid();
7159 }
valid() const7160 const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::valid() const {
7161   const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = valid_;
7162   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.valid)
7163   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
7164       &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
7165 }
mutable_valid()7166 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_valid() {
7167   set_has_valid();
7168   if (valid_ == NULL) {
7169     valid_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region;
7170   }
7171   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.valid)
7172   return valid_;
7173 }
release_valid()7174 ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_valid() {
7175   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.valid)
7176   clear_has_valid();
7177   ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = valid_;
7178   valid_ = NULL;
7179   return temp;
7180 }
set_allocated_valid(::mozilla::layers::layerscope::LayersPacket_Layer_Region * valid)7181 void LayersPacket_Layer::set_allocated_valid(::mozilla::layers::layerscope::LayersPacket_Layer_Region* valid) {
7182   delete valid_;
7183   valid_ = valid;
7184   if (valid) {
7185     set_has_valid();
7186   } else {
7187     clear_has_valid();
7188   }
7189   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.valid)
7190 }
7191 
7192 // optional uint32 color = 101;
has_color() const7193 bool LayersPacket_Layer::has_color() const {
7194   return (_has_bits_[0] & 0x00100000u) != 0;
7195 }
set_has_color()7196 void LayersPacket_Layer::set_has_color() {
7197   _has_bits_[0] |= 0x00100000u;
7198 }
clear_has_color()7199 void LayersPacket_Layer::clear_has_color() {
7200   _has_bits_[0] &= ~0x00100000u;
7201 }
clear_color()7202 void LayersPacket_Layer::clear_color() {
7203   color_ = 0u;
7204   clear_has_color();
7205 }
color() const7206 ::google::protobuf::uint32 LayersPacket_Layer::color() const {
7207   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.color)
7208   return color_;
7209 }
set_color(::google::protobuf::uint32 value)7210 void LayersPacket_Layer::set_color(::google::protobuf::uint32 value) {
7211   set_has_color();
7212   color_ = value;
7213   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.color)
7214 }
7215 
7216 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
has_filter() const7217 bool LayersPacket_Layer::has_filter() const {
7218   return (_has_bits_[0] & 0x00400000u) != 0;
7219 }
set_has_filter()7220 void LayersPacket_Layer::set_has_filter() {
7221   _has_bits_[0] |= 0x00400000u;
7222 }
clear_has_filter()7223 void LayersPacket_Layer::clear_has_filter() {
7224   _has_bits_[0] &= ~0x00400000u;
7225 }
clear_filter()7226 void LayersPacket_Layer::clear_filter() {
7227   filter_ = 0;
7228   clear_has_filter();
7229 }
filter() const7230 ::mozilla::layers::layerscope::LayersPacket_Layer_Filter LayersPacket_Layer::filter() const {
7231   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.filter)
7232   return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(filter_);
7233 }
set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value)7234 void LayersPacket_Layer::set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value) {
7235   assert(::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value));
7236   set_has_filter();
7237   filter_ = value;
7238   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.filter)
7239 }
7240 
7241 // optional uint64 refID = 103;
has_refid() const7242 bool LayersPacket_Layer::has_refid() const {
7243   return (_has_bits_[0] & 0x00200000u) != 0;
7244 }
set_has_refid()7245 void LayersPacket_Layer::set_has_refid() {
7246   _has_bits_[0] |= 0x00200000u;
7247 }
clear_has_refid()7248 void LayersPacket_Layer::clear_has_refid() {
7249   _has_bits_[0] &= ~0x00200000u;
7250 }
clear_refid()7251 void LayersPacket_Layer::clear_refid() {
7252   refid_ = GOOGLE_ULONGLONG(0);
7253   clear_has_refid();
7254 }
refid() const7255 ::google::protobuf::uint64 LayersPacket_Layer::refid() const {
7256   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.refID)
7257   return refid_;
7258 }
set_refid(::google::protobuf::uint64 value)7259 void LayersPacket_Layer::set_refid(::google::protobuf::uint64 value) {
7260   set_has_refid();
7261   refid_ = value;
7262   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.refID)
7263 }
7264 
7265 // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
has_size() const7266 bool LayersPacket_Layer::has_size() const {
7267   return (_has_bits_[0] & 0x00000800u) != 0;
7268 }
set_has_size()7269 void LayersPacket_Layer::set_has_size() {
7270   _has_bits_[0] |= 0x00000800u;
7271 }
clear_has_size()7272 void LayersPacket_Layer::clear_has_size() {
7273   _has_bits_[0] &= ~0x00000800u;
7274 }
clear_size()7275 void LayersPacket_Layer::clear_size() {
7276   if (size_ != NULL) size_->::mozilla::layers::layerscope::LayersPacket_Layer_Size::Clear();
7277   clear_has_size();
7278 }
size() const7279 const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& LayersPacket_Layer::size() const {
7280   const ::mozilla::layers::layerscope::LayersPacket_Layer_Size* p = size_;
7281   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.size)
7282   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(
7283       &::mozilla::layers::layerscope::_LayersPacket_Layer_Size_default_instance_);
7284 }
mutable_size()7285 ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::mutable_size() {
7286   set_has_size();
7287   if (size_ == NULL) {
7288     size_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Size;
7289   }
7290   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.size)
7291   return size_;
7292 }
release_size()7293 ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::release_size() {
7294   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.size)
7295   clear_has_size();
7296   ::mozilla::layers::layerscope::LayersPacket_Layer_Size* temp = size_;
7297   size_ = NULL;
7298   return temp;
7299 }
set_allocated_size(::mozilla::layers::layerscope::LayersPacket_Layer_Size * size)7300 void LayersPacket_Layer::set_allocated_size(::mozilla::layers::layerscope::LayersPacket_Layer_Size* size) {
7301   delete size_;
7302   size_ = size;
7303   if (size) {
7304     set_has_size();
7305   } else {
7306     clear_has_size();
7307   }
7308   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.size)
7309 }
7310 
7311 // optional uint32 displayListLogLength = 105;
has_displaylistloglength() const7312 bool LayersPacket_Layer::has_displaylistloglength() const {
7313   return (_has_bits_[0] & 0x00800000u) != 0;
7314 }
set_has_displaylistloglength()7315 void LayersPacket_Layer::set_has_displaylistloglength() {
7316   _has_bits_[0] |= 0x00800000u;
7317 }
clear_has_displaylistloglength()7318 void LayersPacket_Layer::clear_has_displaylistloglength() {
7319   _has_bits_[0] &= ~0x00800000u;
7320 }
clear_displaylistloglength()7321 void LayersPacket_Layer::clear_displaylistloglength() {
7322   displaylistloglength_ = 0u;
7323   clear_has_displaylistloglength();
7324 }
displaylistloglength() const7325 ::google::protobuf::uint32 LayersPacket_Layer::displaylistloglength() const {
7326   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength)
7327   return displaylistloglength_;
7328 }
set_displaylistloglength(::google::protobuf::uint32 value)7329 void LayersPacket_Layer::set_displaylistloglength(::google::protobuf::uint32 value) {
7330   set_has_displaylistloglength();
7331   displaylistloglength_ = value;
7332   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength)
7333 }
7334 
7335 // optional bytes displayListLog = 106;
has_displaylistlog() const7336 bool LayersPacket_Layer::has_displaylistlog() const {
7337   return (_has_bits_[0] & 0x00000001u) != 0;
7338 }
set_has_displaylistlog()7339 void LayersPacket_Layer::set_has_displaylistlog() {
7340   _has_bits_[0] |= 0x00000001u;
7341 }
clear_has_displaylistlog()7342 void LayersPacket_Layer::clear_has_displaylistlog() {
7343   _has_bits_[0] &= ~0x00000001u;
7344 }
clear_displaylistlog()7345 void LayersPacket_Layer::clear_displaylistlog() {
7346   displaylistlog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7347   clear_has_displaylistlog();
7348 }
displaylistlog() const7349 const ::std::string& LayersPacket_Layer::displaylistlog() const {
7350   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7351   return displaylistlog_.GetNoArena();
7352 }
set_displaylistlog(const::std::string & value)7353 void LayersPacket_Layer::set_displaylistlog(const ::std::string& value) {
7354   set_has_displaylistlog();
7355   displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
7356   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7357 }
7358 #if LANG_CXX11
set_displaylistlog(::std::string && value)7359 void LayersPacket_Layer::set_displaylistlog(::std::string&& value) {
7360   set_has_displaylistlog();
7361   displaylistlog_.SetNoArena(
7362     &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
7363   // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7364 }
7365 #endif
set_displaylistlog(const char * value)7366 void LayersPacket_Layer::set_displaylistlog(const char* value) {
7367   GOOGLE_DCHECK(value != NULL);
7368   set_has_displaylistlog();
7369   displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
7370   // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7371 }
set_displaylistlog(const void * value,size_t size)7372 void LayersPacket_Layer::set_displaylistlog(const void* value, size_t size) {
7373   set_has_displaylistlog();
7374   displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7375       ::std::string(reinterpret_cast<const char*>(value), size));
7376   // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7377 }
mutable_displaylistlog()7378 ::std::string* LayersPacket_Layer::mutable_displaylistlog() {
7379   set_has_displaylistlog();
7380   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7381   return displaylistlog_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7382 }
release_displaylistlog()7383 ::std::string* LayersPacket_Layer::release_displaylistlog() {
7384   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7385   clear_has_displaylistlog();
7386   return displaylistlog_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7387 }
set_allocated_displaylistlog(::std::string * displaylistlog)7388 void LayersPacket_Layer::set_allocated_displaylistlog(::std::string* displaylistlog) {
7389   if (displaylistlog != NULL) {
7390     set_has_displaylistlog();
7391   } else {
7392     clear_has_displaylistlog();
7393   }
7394   displaylistlog_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), displaylistlog);
7395   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
7396 }
7397 
7398 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7399 
7400 // ===================================================================
7401 
7402 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7403 const int LayersPacket::kLayerFieldNumber;
7404 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7405 
LayersPacket()7406 LayersPacket::LayersPacket()
7407   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7408   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7409     protobuf_LayerScopePacket_2eproto::InitDefaults();
7410   }
7411   SharedCtor();
7412   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket)
7413 }
LayersPacket(const LayersPacket & from)7414 LayersPacket::LayersPacket(const LayersPacket& from)
7415   : ::google::protobuf::MessageLite(),
7416       _internal_metadata_(NULL),
7417       _has_bits_(from._has_bits_),
7418       _cached_size_(0),
7419       layer_(from.layer_) {
7420   _internal_metadata_.MergeFrom(from._internal_metadata_);
7421   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket)
7422 }
7423 
SharedCtor()7424 void LayersPacket::SharedCtor() {
7425   _cached_size_ = 0;
7426 }
7427 
~LayersPacket()7428 LayersPacket::~LayersPacket() {
7429   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket)
7430   SharedDtor();
7431 }
7432 
SharedDtor()7433 void LayersPacket::SharedDtor() {
7434 }
7435 
SetCachedSize(int size) const7436 void LayersPacket::SetCachedSize(int size) const {
7437   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7438   _cached_size_ = size;
7439   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7440 }
default_instance()7441 const LayersPacket& LayersPacket::default_instance() {
7442   protobuf_LayerScopePacket_2eproto::InitDefaults();
7443   return *internal_default_instance();
7444 }
7445 
New(::google::protobuf::Arena * arena) const7446 LayersPacket* LayersPacket::New(::google::protobuf::Arena* arena) const {
7447   LayersPacket* n = new LayersPacket;
7448   if (arena != NULL) {
7449     arena->Own(n);
7450   }
7451   return n;
7452 }
7453 
Clear()7454 void LayersPacket::Clear() {
7455 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket)
7456   ::google::protobuf::uint32 cached_has_bits = 0;
7457   // Prevent compiler warnings about cached_has_bits being unused
7458   (void) cached_has_bits;
7459 
7460   layer_.Clear();
7461   _has_bits_.Clear();
7462   _internal_metadata_.Clear();
7463 }
7464 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)7465 bool LayersPacket::MergePartialFromCodedStream(
7466     ::google::protobuf::io::CodedInputStream* input) {
7467 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7468   ::google::protobuf::uint32 tag;
7469   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7470       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7471           &::google::protobuf::internal::InternalMetadataWithArenaLite::
7472               mutable_unknown_fields));
7473   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7474       &unknown_fields_string, false);
7475   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket)
7476   for (;;) {
7477     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7478     tag = p.first;
7479     if (!p.second) goto handle_unusual;
7480     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7481       // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
7482       case 1: {
7483         if (static_cast< ::google::protobuf::uint8>(tag) ==
7484             static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7485           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
7486                 input, add_layer()));
7487         } else {
7488           goto handle_unusual;
7489         }
7490         break;
7491       }
7492 
7493       default: {
7494       handle_unusual:
7495         if (tag == 0) {
7496           goto success;
7497         }
7498         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7499             input, tag, &unknown_fields_stream));
7500         break;
7501       }
7502     }
7503   }
7504 success:
7505   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket)
7506   return true;
7507 failure:
7508   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket)
7509   return false;
7510 #undef DO_
7511 }
7512 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const7513 void LayersPacket::SerializeWithCachedSizes(
7514     ::google::protobuf::io::CodedOutputStream* output) const {
7515   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket)
7516   ::google::protobuf::uint32 cached_has_bits = 0;
7517   (void) cached_has_bits;
7518 
7519   // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
7520   for (unsigned int i = 0,
7521       n = static_cast<unsigned int>(this->layer_size()); i < n; i++) {
7522     ::google::protobuf::internal::WireFormatLite::WriteMessage(
7523       1, this->layer(static_cast<int>(i)), output);
7524   }
7525 
7526   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
7527                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
7528   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket)
7529 }
7530 
ByteSizeLong() const7531 size_t LayersPacket::ByteSizeLong() const {
7532 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket)
7533   size_t total_size = 0;
7534 
7535   total_size += _internal_metadata_.unknown_fields().size();
7536 
7537   // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
7538   {
7539     unsigned int count = static_cast<unsigned int>(this->layer_size());
7540     total_size += 1UL * count;
7541     for (unsigned int i = 0; i < count; i++) {
7542       total_size +=
7543         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
7544           this->layer(static_cast<int>(i)));
7545     }
7546   }
7547 
7548   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7549   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7550   _cached_size_ = cached_size;
7551   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7552   return total_size;
7553 }
7554 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)7555 void LayersPacket::CheckTypeAndMergeFrom(
7556     const ::google::protobuf::MessageLite& from) {
7557   MergeFrom(*::google::protobuf::down_cast<const LayersPacket*>(&from));
7558 }
7559 
MergeFrom(const LayersPacket & from)7560 void LayersPacket::MergeFrom(const LayersPacket& from) {
7561 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket)
7562   GOOGLE_DCHECK_NE(&from, this);
7563   _internal_metadata_.MergeFrom(from._internal_metadata_);
7564   ::google::protobuf::uint32 cached_has_bits = 0;
7565   (void) cached_has_bits;
7566 
7567   layer_.MergeFrom(from.layer_);
7568 }
7569 
CopyFrom(const LayersPacket & from)7570 void LayersPacket::CopyFrom(const LayersPacket& from) {
7571 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket)
7572   if (&from == this) return;
7573   Clear();
7574   MergeFrom(from);
7575 }
7576 
IsInitialized() const7577 bool LayersPacket::IsInitialized() const {
7578   if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false;
7579   return true;
7580 }
7581 
Swap(LayersPacket * other)7582 void LayersPacket::Swap(LayersPacket* other) {
7583   if (other == this) return;
7584   InternalSwap(other);
7585 }
InternalSwap(LayersPacket * other)7586 void LayersPacket::InternalSwap(LayersPacket* other) {
7587   using std::swap;
7588   layer_.InternalSwap(&other->layer_);
7589   swap(_has_bits_[0], other->_has_bits_[0]);
7590   _internal_metadata_.Swap(&other->_internal_metadata_);
7591   swap(_cached_size_, other->_cached_size_);
7592 }
7593 
GetTypeName() const7594 ::std::string LayersPacket::GetTypeName() const {
7595   return "mozilla.layers.layerscope.LayersPacket";
7596 }
7597 
7598 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7599 // LayersPacket
7600 
7601 // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
layer_size() const7602 int LayersPacket::layer_size() const {
7603   return layer_.size();
7604 }
clear_layer()7605 void LayersPacket::clear_layer() {
7606   layer_.Clear();
7607 }
layer(int index) const7608 const ::mozilla::layers::layerscope::LayersPacket_Layer& LayersPacket::layer(int index) const {
7609   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.layer)
7610   return layer_.Get(index);
7611 }
mutable_layer(int index)7612 ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::mutable_layer(int index) {
7613   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.layer)
7614   return layer_.Mutable(index);
7615 }
add_layer()7616 ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::add_layer() {
7617   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.layer)
7618   return layer_.Add();
7619 }
7620 ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >*
mutable_layer()7621 LayersPacket::mutable_layer() {
7622   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.layer)
7623   return &layer_;
7624 }
7625 const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >&
layer() const7626 LayersPacket::layer() const {
7627   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.layer)
7628   return layer_;
7629 }
7630 
7631 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7632 
7633 // ===================================================================
7634 
7635 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7636 const int MetaPacket::kComposedByHwcFieldNumber;
7637 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7638 
MetaPacket()7639 MetaPacket::MetaPacket()
7640   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7641   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7642     protobuf_LayerScopePacket_2eproto::InitDefaults();
7643   }
7644   SharedCtor();
7645   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.MetaPacket)
7646 }
MetaPacket(const MetaPacket & from)7647 MetaPacket::MetaPacket(const MetaPacket& from)
7648   : ::google::protobuf::MessageLite(),
7649       _internal_metadata_(NULL),
7650       _has_bits_(from._has_bits_),
7651       _cached_size_(0) {
7652   _internal_metadata_.MergeFrom(from._internal_metadata_);
7653   composedbyhwc_ = from.composedbyhwc_;
7654   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.MetaPacket)
7655 }
7656 
SharedCtor()7657 void MetaPacket::SharedCtor() {
7658   _cached_size_ = 0;
7659   composedbyhwc_ = false;
7660 }
7661 
~MetaPacket()7662 MetaPacket::~MetaPacket() {
7663   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.MetaPacket)
7664   SharedDtor();
7665 }
7666 
SharedDtor()7667 void MetaPacket::SharedDtor() {
7668 }
7669 
SetCachedSize(int size) const7670 void MetaPacket::SetCachedSize(int size) const {
7671   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7672   _cached_size_ = size;
7673   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7674 }
default_instance()7675 const MetaPacket& MetaPacket::default_instance() {
7676   protobuf_LayerScopePacket_2eproto::InitDefaults();
7677   return *internal_default_instance();
7678 }
7679 
New(::google::protobuf::Arena * arena) const7680 MetaPacket* MetaPacket::New(::google::protobuf::Arena* arena) const {
7681   MetaPacket* n = new MetaPacket;
7682   if (arena != NULL) {
7683     arena->Own(n);
7684   }
7685   return n;
7686 }
7687 
Clear()7688 void MetaPacket::Clear() {
7689 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.MetaPacket)
7690   ::google::protobuf::uint32 cached_has_bits = 0;
7691   // Prevent compiler warnings about cached_has_bits being unused
7692   (void) cached_has_bits;
7693 
7694   composedbyhwc_ = false;
7695   _has_bits_.Clear();
7696   _internal_metadata_.Clear();
7697 }
7698 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)7699 bool MetaPacket::MergePartialFromCodedStream(
7700     ::google::protobuf::io::CodedInputStream* input) {
7701 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7702   ::google::protobuf::uint32 tag;
7703   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7704       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7705           &::google::protobuf::internal::InternalMetadataWithArenaLite::
7706               mutable_unknown_fields));
7707   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7708       &unknown_fields_string, false);
7709   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.MetaPacket)
7710   for (;;) {
7711     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7712     tag = p.first;
7713     if (!p.second) goto handle_unusual;
7714     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7715       // optional bool composedByHwc = 1;
7716       case 1: {
7717         if (static_cast< ::google::protobuf::uint8>(tag) ==
7718             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
7719           set_has_composedbyhwc();
7720           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7721                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7722                  input, &composedbyhwc_)));
7723         } else {
7724           goto handle_unusual;
7725         }
7726         break;
7727       }
7728 
7729       default: {
7730       handle_unusual:
7731         if (tag == 0) {
7732           goto success;
7733         }
7734         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
7735             input, tag, &unknown_fields_stream));
7736         break;
7737       }
7738     }
7739   }
7740 success:
7741   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.MetaPacket)
7742   return true;
7743 failure:
7744   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.MetaPacket)
7745   return false;
7746 #undef DO_
7747 }
7748 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const7749 void MetaPacket::SerializeWithCachedSizes(
7750     ::google::protobuf::io::CodedOutputStream* output) const {
7751   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.MetaPacket)
7752   ::google::protobuf::uint32 cached_has_bits = 0;
7753   (void) cached_has_bits;
7754 
7755   cached_has_bits = _has_bits_[0];
7756   // optional bool composedByHwc = 1;
7757   if (cached_has_bits & 0x00000001u) {
7758     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->composedbyhwc(), output);
7759   }
7760 
7761   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
7762                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
7763   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.MetaPacket)
7764 }
7765 
ByteSizeLong() const7766 size_t MetaPacket::ByteSizeLong() const {
7767 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.MetaPacket)
7768   size_t total_size = 0;
7769 
7770   total_size += _internal_metadata_.unknown_fields().size();
7771 
7772   // optional bool composedByHwc = 1;
7773   if (has_composedbyhwc()) {
7774     total_size += 1 + 1;
7775   }
7776 
7777   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7778   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7779   _cached_size_ = cached_size;
7780   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7781   return total_size;
7782 }
7783 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)7784 void MetaPacket::CheckTypeAndMergeFrom(
7785     const ::google::protobuf::MessageLite& from) {
7786   MergeFrom(*::google::protobuf::down_cast<const MetaPacket*>(&from));
7787 }
7788 
MergeFrom(const MetaPacket & from)7789 void MetaPacket::MergeFrom(const MetaPacket& from) {
7790 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.MetaPacket)
7791   GOOGLE_DCHECK_NE(&from, this);
7792   _internal_metadata_.MergeFrom(from._internal_metadata_);
7793   ::google::protobuf::uint32 cached_has_bits = 0;
7794   (void) cached_has_bits;
7795 
7796   if (from.has_composedbyhwc()) {
7797     set_composedbyhwc(from.composedbyhwc());
7798   }
7799 }
7800 
CopyFrom(const MetaPacket & from)7801 void MetaPacket::CopyFrom(const MetaPacket& from) {
7802 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.MetaPacket)
7803   if (&from == this) return;
7804   Clear();
7805   MergeFrom(from);
7806 }
7807 
IsInitialized() const7808 bool MetaPacket::IsInitialized() const {
7809   return true;
7810 }
7811 
Swap(MetaPacket * other)7812 void MetaPacket::Swap(MetaPacket* other) {
7813   if (other == this) return;
7814   InternalSwap(other);
7815 }
InternalSwap(MetaPacket * other)7816 void MetaPacket::InternalSwap(MetaPacket* other) {
7817   using std::swap;
7818   swap(composedbyhwc_, other->composedbyhwc_);
7819   swap(_has_bits_[0], other->_has_bits_[0]);
7820   _internal_metadata_.Swap(&other->_internal_metadata_);
7821   swap(_cached_size_, other->_cached_size_);
7822 }
7823 
GetTypeName() const7824 ::std::string MetaPacket::GetTypeName() const {
7825   return "mozilla.layers.layerscope.MetaPacket";
7826 }
7827 
7828 #if PROTOBUF_INLINE_NOT_IN_HEADERS
7829 // MetaPacket
7830 
7831 // optional bool composedByHwc = 1;
has_composedbyhwc() const7832 bool MetaPacket::has_composedbyhwc() const {
7833   return (_has_bits_[0] & 0x00000001u) != 0;
7834 }
set_has_composedbyhwc()7835 void MetaPacket::set_has_composedbyhwc() {
7836   _has_bits_[0] |= 0x00000001u;
7837 }
clear_has_composedbyhwc()7838 void MetaPacket::clear_has_composedbyhwc() {
7839   _has_bits_[0] &= ~0x00000001u;
7840 }
clear_composedbyhwc()7841 void MetaPacket::clear_composedbyhwc() {
7842   composedbyhwc_ = false;
7843   clear_has_composedbyhwc();
7844 }
composedbyhwc() const7845 bool MetaPacket::composedbyhwc() const {
7846   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.MetaPacket.composedByHwc)
7847   return composedbyhwc_;
7848 }
set_composedbyhwc(bool value)7849 void MetaPacket::set_composedbyhwc(bool value) {
7850   set_has_composedbyhwc();
7851   composedbyhwc_ = value;
7852   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.MetaPacket.composedByHwc)
7853 }
7854 
7855 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
7856 
7857 // ===================================================================
7858 
7859 #if !defined(_MSC_VER) || _MSC_VER >= 1900
7860 const int DrawPacket_Rect::kXFieldNumber;
7861 const int DrawPacket_Rect::kYFieldNumber;
7862 const int DrawPacket_Rect::kWFieldNumber;
7863 const int DrawPacket_Rect::kHFieldNumber;
7864 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7865 
DrawPacket_Rect()7866 DrawPacket_Rect::DrawPacket_Rect()
7867   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
7868   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7869     protobuf_LayerScopePacket_2eproto::InitDefaults();
7870   }
7871   SharedCtor();
7872   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket.Rect)
7873 }
DrawPacket_Rect(const DrawPacket_Rect & from)7874 DrawPacket_Rect::DrawPacket_Rect(const DrawPacket_Rect& from)
7875   : ::google::protobuf::MessageLite(),
7876       _internal_metadata_(NULL),
7877       _has_bits_(from._has_bits_),
7878       _cached_size_(0) {
7879   _internal_metadata_.MergeFrom(from._internal_metadata_);
7880   ::memcpy(&x_, &from.x_,
7881     static_cast<size_t>(reinterpret_cast<char*>(&h_) -
7882     reinterpret_cast<char*>(&x_)) + sizeof(h_));
7883   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket.Rect)
7884 }
7885 
SharedCtor()7886 void DrawPacket_Rect::SharedCtor() {
7887   _cached_size_ = 0;
7888   ::memset(&x_, 0, static_cast<size_t>(
7889       reinterpret_cast<char*>(&h_) -
7890       reinterpret_cast<char*>(&x_)) + sizeof(h_));
7891 }
7892 
~DrawPacket_Rect()7893 DrawPacket_Rect::~DrawPacket_Rect() {
7894   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket.Rect)
7895   SharedDtor();
7896 }
7897 
SharedDtor()7898 void DrawPacket_Rect::SharedDtor() {
7899 }
7900 
SetCachedSize(int size) const7901 void DrawPacket_Rect::SetCachedSize(int size) const {
7902   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7903   _cached_size_ = size;
7904   GOOGLE_SAFE_CONCURRENT_WRITES_END();
7905 }
default_instance()7906 const DrawPacket_Rect& DrawPacket_Rect::default_instance() {
7907   protobuf_LayerScopePacket_2eproto::InitDefaults();
7908   return *internal_default_instance();
7909 }
7910 
New(::google::protobuf::Arena * arena) const7911 DrawPacket_Rect* DrawPacket_Rect::New(::google::protobuf::Arena* arena) const {
7912   DrawPacket_Rect* n = new DrawPacket_Rect;
7913   if (arena != NULL) {
7914     arena->Own(n);
7915   }
7916   return n;
7917 }
7918 
Clear()7919 void DrawPacket_Rect::Clear() {
7920 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket.Rect)
7921   ::google::protobuf::uint32 cached_has_bits = 0;
7922   // Prevent compiler warnings about cached_has_bits being unused
7923   (void) cached_has_bits;
7924 
7925   cached_has_bits = _has_bits_[0];
7926   if (cached_has_bits & 15u) {
7927     ::memset(&x_, 0, static_cast<size_t>(
7928         reinterpret_cast<char*>(&h_) -
7929         reinterpret_cast<char*>(&x_)) + sizeof(h_));
7930   }
7931   _has_bits_.Clear();
7932   _internal_metadata_.Clear();
7933 }
7934 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)7935 bool DrawPacket_Rect::MergePartialFromCodedStream(
7936     ::google::protobuf::io::CodedInputStream* input) {
7937 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7938   ::google::protobuf::uint32 tag;
7939   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
7940       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
7941           &::google::protobuf::internal::InternalMetadataWithArenaLite::
7942               mutable_unknown_fields));
7943   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
7944       &unknown_fields_string, false);
7945   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket.Rect)
7946   for (;;) {
7947     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7948     tag = p.first;
7949     if (!p.second) goto handle_unusual;
7950     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7951       // required float x = 1;
7952       case 1: {
7953         if (static_cast< ::google::protobuf::uint8>(tag) ==
7954             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
7955           set_has_x();
7956           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7957                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
7958                  input, &x_)));
7959         } else {
7960           goto handle_unusual;
7961         }
7962         break;
7963       }
7964 
7965       // required float y = 2;
7966       case 2: {
7967         if (static_cast< ::google::protobuf::uint8>(tag) ==
7968             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
7969           set_has_y();
7970           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7971                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
7972                  input, &y_)));
7973         } else {
7974           goto handle_unusual;
7975         }
7976         break;
7977       }
7978 
7979       // required float w = 3;
7980       case 3: {
7981         if (static_cast< ::google::protobuf::uint8>(tag) ==
7982             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
7983           set_has_w();
7984           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7985                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
7986                  input, &w_)));
7987         } else {
7988           goto handle_unusual;
7989         }
7990         break;
7991       }
7992 
7993       // required float h = 4;
7994       case 4: {
7995         if (static_cast< ::google::protobuf::uint8>(tag) ==
7996             static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
7997           set_has_h();
7998           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7999                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8000                  input, &h_)));
8001         } else {
8002           goto handle_unusual;
8003         }
8004         break;
8005       }
8006 
8007       default: {
8008       handle_unusual:
8009         if (tag == 0) {
8010           goto success;
8011         }
8012         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8013             input, tag, &unknown_fields_stream));
8014         break;
8015       }
8016     }
8017   }
8018 success:
8019   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket.Rect)
8020   return true;
8021 failure:
8022   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket.Rect)
8023   return false;
8024 #undef DO_
8025 }
8026 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const8027 void DrawPacket_Rect::SerializeWithCachedSizes(
8028     ::google::protobuf::io::CodedOutputStream* output) const {
8029   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket.Rect)
8030   ::google::protobuf::uint32 cached_has_bits = 0;
8031   (void) cached_has_bits;
8032 
8033   cached_has_bits = _has_bits_[0];
8034   // required float x = 1;
8035   if (cached_has_bits & 0x00000001u) {
8036     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
8037   }
8038 
8039   // required float y = 2;
8040   if (cached_has_bits & 0x00000002u) {
8041     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
8042   }
8043 
8044   // required float w = 3;
8045   if (cached_has_bits & 0x00000004u) {
8046     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output);
8047   }
8048 
8049   // required float h = 4;
8050   if (cached_has_bits & 0x00000008u) {
8051     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output);
8052   }
8053 
8054   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
8055                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
8056   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket.Rect)
8057 }
8058 
RequiredFieldsByteSizeFallback() const8059 size_t DrawPacket_Rect::RequiredFieldsByteSizeFallback() const {
8060 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket.Rect)
8061   size_t total_size = 0;
8062 
8063   if (has_x()) {
8064     // required float x = 1;
8065     total_size += 1 + 4;
8066   }
8067 
8068   if (has_y()) {
8069     // required float y = 2;
8070     total_size += 1 + 4;
8071   }
8072 
8073   if (has_w()) {
8074     // required float w = 3;
8075     total_size += 1 + 4;
8076   }
8077 
8078   if (has_h()) {
8079     // required float h = 4;
8080     total_size += 1 + 4;
8081   }
8082 
8083   return total_size;
8084 }
ByteSizeLong() const8085 size_t DrawPacket_Rect::ByteSizeLong() const {
8086 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket.Rect)
8087   size_t total_size = 0;
8088 
8089   total_size += _internal_metadata_.unknown_fields().size();
8090 
8091   if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) {  // All required fields are present.
8092     // required float x = 1;
8093     total_size += 1 + 4;
8094 
8095     // required float y = 2;
8096     total_size += 1 + 4;
8097 
8098     // required float w = 3;
8099     total_size += 1 + 4;
8100 
8101     // required float h = 4;
8102     total_size += 1 + 4;
8103 
8104   } else {
8105     total_size += RequiredFieldsByteSizeFallback();
8106   }
8107   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8108   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8109   _cached_size_ = cached_size;
8110   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8111   return total_size;
8112 }
8113 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)8114 void DrawPacket_Rect::CheckTypeAndMergeFrom(
8115     const ::google::protobuf::MessageLite& from) {
8116   MergeFrom(*::google::protobuf::down_cast<const DrawPacket_Rect*>(&from));
8117 }
8118 
MergeFrom(const DrawPacket_Rect & from)8119 void DrawPacket_Rect::MergeFrom(const DrawPacket_Rect& from) {
8120 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket.Rect)
8121   GOOGLE_DCHECK_NE(&from, this);
8122   _internal_metadata_.MergeFrom(from._internal_metadata_);
8123   ::google::protobuf::uint32 cached_has_bits = 0;
8124   (void) cached_has_bits;
8125 
8126   cached_has_bits = from._has_bits_[0];
8127   if (cached_has_bits & 15u) {
8128     if (cached_has_bits & 0x00000001u) {
8129       x_ = from.x_;
8130     }
8131     if (cached_has_bits & 0x00000002u) {
8132       y_ = from.y_;
8133     }
8134     if (cached_has_bits & 0x00000004u) {
8135       w_ = from.w_;
8136     }
8137     if (cached_has_bits & 0x00000008u) {
8138       h_ = from.h_;
8139     }
8140     _has_bits_[0] |= cached_has_bits;
8141   }
8142 }
8143 
CopyFrom(const DrawPacket_Rect & from)8144 void DrawPacket_Rect::CopyFrom(const DrawPacket_Rect& from) {
8145 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket.Rect)
8146   if (&from == this) return;
8147   Clear();
8148   MergeFrom(from);
8149 }
8150 
IsInitialized() const8151 bool DrawPacket_Rect::IsInitialized() const {
8152   if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
8153   return true;
8154 }
8155 
Swap(DrawPacket_Rect * other)8156 void DrawPacket_Rect::Swap(DrawPacket_Rect* other) {
8157   if (other == this) return;
8158   InternalSwap(other);
8159 }
InternalSwap(DrawPacket_Rect * other)8160 void DrawPacket_Rect::InternalSwap(DrawPacket_Rect* other) {
8161   using std::swap;
8162   swap(x_, other->x_);
8163   swap(y_, other->y_);
8164   swap(w_, other->w_);
8165   swap(h_, other->h_);
8166   swap(_has_bits_[0], other->_has_bits_[0]);
8167   _internal_metadata_.Swap(&other->_internal_metadata_);
8168   swap(_cached_size_, other->_cached_size_);
8169 }
8170 
GetTypeName() const8171 ::std::string DrawPacket_Rect::GetTypeName() const {
8172   return "mozilla.layers.layerscope.DrawPacket.Rect";
8173 }
8174 
8175 #if PROTOBUF_INLINE_NOT_IN_HEADERS
8176 // DrawPacket_Rect
8177 
8178 // required float x = 1;
has_x() const8179 bool DrawPacket_Rect::has_x() const {
8180   return (_has_bits_[0] & 0x00000001u) != 0;
8181 }
set_has_x()8182 void DrawPacket_Rect::set_has_x() {
8183   _has_bits_[0] |= 0x00000001u;
8184 }
clear_has_x()8185 void DrawPacket_Rect::clear_has_x() {
8186   _has_bits_[0] &= ~0x00000001u;
8187 }
clear_x()8188 void DrawPacket_Rect::clear_x() {
8189   x_ = 0;
8190   clear_has_x();
8191 }
x() const8192 float DrawPacket_Rect::x() const {
8193   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.x)
8194   return x_;
8195 }
set_x(float value)8196 void DrawPacket_Rect::set_x(float value) {
8197   set_has_x();
8198   x_ = value;
8199   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.x)
8200 }
8201 
8202 // required float y = 2;
has_y() const8203 bool DrawPacket_Rect::has_y() const {
8204   return (_has_bits_[0] & 0x00000002u) != 0;
8205 }
set_has_y()8206 void DrawPacket_Rect::set_has_y() {
8207   _has_bits_[0] |= 0x00000002u;
8208 }
clear_has_y()8209 void DrawPacket_Rect::clear_has_y() {
8210   _has_bits_[0] &= ~0x00000002u;
8211 }
clear_y()8212 void DrawPacket_Rect::clear_y() {
8213   y_ = 0;
8214   clear_has_y();
8215 }
y() const8216 float DrawPacket_Rect::y() const {
8217   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.y)
8218   return y_;
8219 }
set_y(float value)8220 void DrawPacket_Rect::set_y(float value) {
8221   set_has_y();
8222   y_ = value;
8223   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.y)
8224 }
8225 
8226 // required float w = 3;
has_w() const8227 bool DrawPacket_Rect::has_w() const {
8228   return (_has_bits_[0] & 0x00000004u) != 0;
8229 }
set_has_w()8230 void DrawPacket_Rect::set_has_w() {
8231   _has_bits_[0] |= 0x00000004u;
8232 }
clear_has_w()8233 void DrawPacket_Rect::clear_has_w() {
8234   _has_bits_[0] &= ~0x00000004u;
8235 }
clear_w()8236 void DrawPacket_Rect::clear_w() {
8237   w_ = 0;
8238   clear_has_w();
8239 }
w() const8240 float DrawPacket_Rect::w() const {
8241   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.w)
8242   return w_;
8243 }
set_w(float value)8244 void DrawPacket_Rect::set_w(float value) {
8245   set_has_w();
8246   w_ = value;
8247   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.w)
8248 }
8249 
8250 // required float h = 4;
has_h() const8251 bool DrawPacket_Rect::has_h() const {
8252   return (_has_bits_[0] & 0x00000008u) != 0;
8253 }
set_has_h()8254 void DrawPacket_Rect::set_has_h() {
8255   _has_bits_[0] |= 0x00000008u;
8256 }
clear_has_h()8257 void DrawPacket_Rect::clear_has_h() {
8258   _has_bits_[0] &= ~0x00000008u;
8259 }
clear_h()8260 void DrawPacket_Rect::clear_h() {
8261   h_ = 0;
8262   clear_has_h();
8263 }
h() const8264 float DrawPacket_Rect::h() const {
8265   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.h)
8266   return h_;
8267 }
set_h(float value)8268 void DrawPacket_Rect::set_h(float value) {
8269   set_has_h();
8270   h_ = value;
8271   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.h)
8272 }
8273 
8274 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8275 
8276 // ===================================================================
8277 
8278 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8279 const int DrawPacket::kOffsetXFieldNumber;
8280 const int DrawPacket::kOffsetYFieldNumber;
8281 const int DrawPacket::kMvMatrixFieldNumber;
8282 const int DrawPacket::kTotalRectsFieldNumber;
8283 const int DrawPacket::kLayerRectFieldNumber;
8284 const int DrawPacket::kLayerrefFieldNumber;
8285 const int DrawPacket::kTexIDsFieldNumber;
8286 const int DrawPacket::kTextureRectFieldNumber;
8287 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8288 
DrawPacket()8289 DrawPacket::DrawPacket()
8290   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
8291   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8292     protobuf_LayerScopePacket_2eproto::InitDefaults();
8293   }
8294   SharedCtor();
8295   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket)
8296 }
DrawPacket(const DrawPacket & from)8297 DrawPacket::DrawPacket(const DrawPacket& from)
8298   : ::google::protobuf::MessageLite(),
8299       _internal_metadata_(NULL),
8300       _has_bits_(from._has_bits_),
8301       _cached_size_(0),
8302       mvmatrix_(from.mvmatrix_),
8303       layerrect_(from.layerrect_),
8304       texids_(from.texids_),
8305       texturerect_(from.texturerect_) {
8306   _internal_metadata_.MergeFrom(from._internal_metadata_);
8307   ::memcpy(&offsetx_, &from.offsetx_,
8308     static_cast<size_t>(reinterpret_cast<char*>(&totalrects_) -
8309     reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
8310   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket)
8311 }
8312 
SharedCtor()8313 void DrawPacket::SharedCtor() {
8314   _cached_size_ = 0;
8315   ::memset(&offsetx_, 0, static_cast<size_t>(
8316       reinterpret_cast<char*>(&totalrects_) -
8317       reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
8318 }
8319 
~DrawPacket()8320 DrawPacket::~DrawPacket() {
8321   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket)
8322   SharedDtor();
8323 }
8324 
SharedDtor()8325 void DrawPacket::SharedDtor() {
8326 }
8327 
SetCachedSize(int size) const8328 void DrawPacket::SetCachedSize(int size) const {
8329   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8330   _cached_size_ = size;
8331   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8332 }
default_instance()8333 const DrawPacket& DrawPacket::default_instance() {
8334   protobuf_LayerScopePacket_2eproto::InitDefaults();
8335   return *internal_default_instance();
8336 }
8337 
New(::google::protobuf::Arena * arena) const8338 DrawPacket* DrawPacket::New(::google::protobuf::Arena* arena) const {
8339   DrawPacket* n = new DrawPacket;
8340   if (arena != NULL) {
8341     arena->Own(n);
8342   }
8343   return n;
8344 }
8345 
Clear()8346 void DrawPacket::Clear() {
8347 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket)
8348   ::google::protobuf::uint32 cached_has_bits = 0;
8349   // Prevent compiler warnings about cached_has_bits being unused
8350   (void) cached_has_bits;
8351 
8352   mvmatrix_.Clear();
8353   layerrect_.Clear();
8354   texids_.Clear();
8355   texturerect_.Clear();
8356   cached_has_bits = _has_bits_[0];
8357   if (cached_has_bits & 15u) {
8358     ::memset(&offsetx_, 0, static_cast<size_t>(
8359         reinterpret_cast<char*>(&totalrects_) -
8360         reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
8361   }
8362   _has_bits_.Clear();
8363   _internal_metadata_.Clear();
8364 }
8365 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)8366 bool DrawPacket::MergePartialFromCodedStream(
8367     ::google::protobuf::io::CodedInputStream* input) {
8368 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
8369   ::google::protobuf::uint32 tag;
8370   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
8371       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
8372           &::google::protobuf::internal::InternalMetadataWithArenaLite::
8373               mutable_unknown_fields));
8374   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
8375       &unknown_fields_string, false);
8376   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket)
8377   for (;;) {
8378     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8379     tag = p.first;
8380     if (!p.second) goto handle_unusual;
8381     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8382       // required float offsetX = 1;
8383       case 1: {
8384         if (static_cast< ::google::protobuf::uint8>(tag) ==
8385             static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
8386           set_has_offsetx();
8387           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8388                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8389                  input, &offsetx_)));
8390         } else {
8391           goto handle_unusual;
8392         }
8393         break;
8394       }
8395 
8396       // required float offsetY = 2;
8397       case 2: {
8398         if (static_cast< ::google::protobuf::uint8>(tag) ==
8399             static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
8400           set_has_offsety();
8401           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8402                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8403                  input, &offsety_)));
8404         } else {
8405           goto handle_unusual;
8406         }
8407         break;
8408       }
8409 
8410       // repeated float mvMatrix = 3;
8411       case 3: {
8412         if (static_cast< ::google::protobuf::uint8>(tag) ==
8413             static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
8414           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8415                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8416                  1, 29u, input, this->mutable_mvmatrix())));
8417         } else if (
8418             static_cast< ::google::protobuf::uint8>(tag) ==
8419             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
8420           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8421                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
8422                  input, this->mutable_mvmatrix())));
8423         } else {
8424           goto handle_unusual;
8425         }
8426         break;
8427       }
8428 
8429       // required uint32 totalRects = 4;
8430       case 4: {
8431         if (static_cast< ::google::protobuf::uint8>(tag) ==
8432             static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
8433           set_has_totalrects();
8434           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8435                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8436                  input, &totalrects_)));
8437         } else {
8438           goto handle_unusual;
8439         }
8440         break;
8441       }
8442 
8443       // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
8444       case 5: {
8445         if (static_cast< ::google::protobuf::uint8>(tag) ==
8446             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
8447           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8448                 input, add_layerrect()));
8449         } else {
8450           goto handle_unusual;
8451         }
8452         break;
8453       }
8454 
8455       // required uint64 layerref = 6;
8456       case 6: {
8457         if (static_cast< ::google::protobuf::uint8>(tag) ==
8458             static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
8459           set_has_layerref();
8460           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
8461                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
8462                  input, &layerref_)));
8463         } else {
8464           goto handle_unusual;
8465         }
8466         break;
8467       }
8468 
8469       // repeated uint32 texIDs = 7;
8470       case 7: {
8471         if (static_cast< ::google::protobuf::uint8>(tag) ==
8472             static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
8473           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
8474                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8475                  1, 56u, input, this->mutable_texids())));
8476         } else if (
8477             static_cast< ::google::protobuf::uint8>(tag) ==
8478             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
8479           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
8480                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
8481                  input, this->mutable_texids())));
8482         } else {
8483           goto handle_unusual;
8484         }
8485         break;
8486       }
8487 
8488       // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
8489       case 8: {
8490         if (static_cast< ::google::protobuf::uint8>(tag) ==
8491             static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
8492           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
8493                 input, add_texturerect()));
8494         } else {
8495           goto handle_unusual;
8496         }
8497         break;
8498       }
8499 
8500       default: {
8501       handle_unusual:
8502         if (tag == 0) {
8503           goto success;
8504         }
8505         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
8506             input, tag, &unknown_fields_stream));
8507         break;
8508       }
8509     }
8510   }
8511 success:
8512   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket)
8513   return true;
8514 failure:
8515   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket)
8516   return false;
8517 #undef DO_
8518 }
8519 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const8520 void DrawPacket::SerializeWithCachedSizes(
8521     ::google::protobuf::io::CodedOutputStream* output) const {
8522   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket)
8523   ::google::protobuf::uint32 cached_has_bits = 0;
8524   (void) cached_has_bits;
8525 
8526   cached_has_bits = _has_bits_[0];
8527   // required float offsetX = 1;
8528   if (cached_has_bits & 0x00000001u) {
8529     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->offsetx(), output);
8530   }
8531 
8532   // required float offsetY = 2;
8533   if (cached_has_bits & 0x00000002u) {
8534     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->offsety(), output);
8535   }
8536 
8537   // repeated float mvMatrix = 3;
8538   for (int i = 0, n = this->mvmatrix_size(); i < n; i++) {
8539     ::google::protobuf::internal::WireFormatLite::WriteFloat(
8540       3, this->mvmatrix(i), output);
8541   }
8542 
8543   // required uint32 totalRects = 4;
8544   if (cached_has_bits & 0x00000008u) {
8545     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->totalrects(), output);
8546   }
8547 
8548   // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
8549   for (unsigned int i = 0,
8550       n = static_cast<unsigned int>(this->layerrect_size()); i < n; i++) {
8551     ::google::protobuf::internal::WireFormatLite::WriteMessage(
8552       5, this->layerrect(static_cast<int>(i)), output);
8553   }
8554 
8555   // required uint64 layerref = 6;
8556   if (cached_has_bits & 0x00000004u) {
8557     ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->layerref(), output);
8558   }
8559 
8560   // repeated uint32 texIDs = 7;
8561   for (int i = 0, n = this->texids_size(); i < n; i++) {
8562     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
8563       7, this->texids(i), output);
8564   }
8565 
8566   // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
8567   for (unsigned int i = 0,
8568       n = static_cast<unsigned int>(this->texturerect_size()); i < n; i++) {
8569     ::google::protobuf::internal::WireFormatLite::WriteMessage(
8570       8, this->texturerect(static_cast<int>(i)), output);
8571   }
8572 
8573   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
8574                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
8575   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket)
8576 }
8577 
RequiredFieldsByteSizeFallback() const8578 size_t DrawPacket::RequiredFieldsByteSizeFallback() const {
8579 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket)
8580   size_t total_size = 0;
8581 
8582   if (has_offsetx()) {
8583     // required float offsetX = 1;
8584     total_size += 1 + 4;
8585   }
8586 
8587   if (has_offsety()) {
8588     // required float offsetY = 2;
8589     total_size += 1 + 4;
8590   }
8591 
8592   if (has_layerref()) {
8593     // required uint64 layerref = 6;
8594     total_size += 1 +
8595       ::google::protobuf::internal::WireFormatLite::UInt64Size(
8596         this->layerref());
8597   }
8598 
8599   if (has_totalrects()) {
8600     // required uint32 totalRects = 4;
8601     total_size += 1 +
8602       ::google::protobuf::internal::WireFormatLite::UInt32Size(
8603         this->totalrects());
8604   }
8605 
8606   return total_size;
8607 }
ByteSizeLong() const8608 size_t DrawPacket::ByteSizeLong() const {
8609 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket)
8610   size_t total_size = 0;
8611 
8612   total_size += _internal_metadata_.unknown_fields().size();
8613 
8614   if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) {  // All required fields are present.
8615     // required float offsetX = 1;
8616     total_size += 1 + 4;
8617 
8618     // required float offsetY = 2;
8619     total_size += 1 + 4;
8620 
8621     // required uint64 layerref = 6;
8622     total_size += 1 +
8623       ::google::protobuf::internal::WireFormatLite::UInt64Size(
8624         this->layerref());
8625 
8626     // required uint32 totalRects = 4;
8627     total_size += 1 +
8628       ::google::protobuf::internal::WireFormatLite::UInt32Size(
8629         this->totalrects());
8630 
8631   } else {
8632     total_size += RequiredFieldsByteSizeFallback();
8633   }
8634   // repeated float mvMatrix = 3;
8635   {
8636     unsigned int count = static_cast<unsigned int>(this->mvmatrix_size());
8637     size_t data_size = 4UL * count;
8638     total_size += 1 *
8639                   ::google::protobuf::internal::FromIntSize(this->mvmatrix_size());
8640     total_size += data_size;
8641   }
8642 
8643   // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
8644   {
8645     unsigned int count = static_cast<unsigned int>(this->layerrect_size());
8646     total_size += 1UL * count;
8647     for (unsigned int i = 0; i < count; i++) {
8648       total_size +=
8649         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8650           this->layerrect(static_cast<int>(i)));
8651     }
8652   }
8653 
8654   // repeated uint32 texIDs = 7;
8655   {
8656     size_t data_size = ::google::protobuf::internal::WireFormatLite::
8657       UInt32Size(this->texids_);
8658     total_size += 1 *
8659                   ::google::protobuf::internal::FromIntSize(this->texids_size());
8660     total_size += data_size;
8661   }
8662 
8663   // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
8664   {
8665     unsigned int count = static_cast<unsigned int>(this->texturerect_size());
8666     total_size += 1UL * count;
8667     for (unsigned int i = 0; i < count; i++) {
8668       total_size +=
8669         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
8670           this->texturerect(static_cast<int>(i)));
8671     }
8672   }
8673 
8674   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8675   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
8676   _cached_size_ = cached_size;
8677   GOOGLE_SAFE_CONCURRENT_WRITES_END();
8678   return total_size;
8679 }
8680 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)8681 void DrawPacket::CheckTypeAndMergeFrom(
8682     const ::google::protobuf::MessageLite& from) {
8683   MergeFrom(*::google::protobuf::down_cast<const DrawPacket*>(&from));
8684 }
8685 
MergeFrom(const DrawPacket & from)8686 void DrawPacket::MergeFrom(const DrawPacket& from) {
8687 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket)
8688   GOOGLE_DCHECK_NE(&from, this);
8689   _internal_metadata_.MergeFrom(from._internal_metadata_);
8690   ::google::protobuf::uint32 cached_has_bits = 0;
8691   (void) cached_has_bits;
8692 
8693   mvmatrix_.MergeFrom(from.mvmatrix_);
8694   layerrect_.MergeFrom(from.layerrect_);
8695   texids_.MergeFrom(from.texids_);
8696   texturerect_.MergeFrom(from.texturerect_);
8697   cached_has_bits = from._has_bits_[0];
8698   if (cached_has_bits & 15u) {
8699     if (cached_has_bits & 0x00000001u) {
8700       offsetx_ = from.offsetx_;
8701     }
8702     if (cached_has_bits & 0x00000002u) {
8703       offsety_ = from.offsety_;
8704     }
8705     if (cached_has_bits & 0x00000004u) {
8706       layerref_ = from.layerref_;
8707     }
8708     if (cached_has_bits & 0x00000008u) {
8709       totalrects_ = from.totalrects_;
8710     }
8711     _has_bits_[0] |= cached_has_bits;
8712   }
8713 }
8714 
CopyFrom(const DrawPacket & from)8715 void DrawPacket::CopyFrom(const DrawPacket& from) {
8716 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket)
8717   if (&from == this) return;
8718   Clear();
8719   MergeFrom(from);
8720 }
8721 
IsInitialized() const8722 bool DrawPacket::IsInitialized() const {
8723   if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
8724   if (!::google::protobuf::internal::AllAreInitialized(this->layerrect())) return false;
8725   if (!::google::protobuf::internal::AllAreInitialized(this->texturerect())) return false;
8726   return true;
8727 }
8728 
Swap(DrawPacket * other)8729 void DrawPacket::Swap(DrawPacket* other) {
8730   if (other == this) return;
8731   InternalSwap(other);
8732 }
InternalSwap(DrawPacket * other)8733 void DrawPacket::InternalSwap(DrawPacket* other) {
8734   using std::swap;
8735   mvmatrix_.InternalSwap(&other->mvmatrix_);
8736   layerrect_.InternalSwap(&other->layerrect_);
8737   texids_.InternalSwap(&other->texids_);
8738   texturerect_.InternalSwap(&other->texturerect_);
8739   swap(offsetx_, other->offsetx_);
8740   swap(offsety_, other->offsety_);
8741   swap(layerref_, other->layerref_);
8742   swap(totalrects_, other->totalrects_);
8743   swap(_has_bits_[0], other->_has_bits_[0]);
8744   _internal_metadata_.Swap(&other->_internal_metadata_);
8745   swap(_cached_size_, other->_cached_size_);
8746 }
8747 
GetTypeName() const8748 ::std::string DrawPacket::GetTypeName() const {
8749   return "mozilla.layers.layerscope.DrawPacket";
8750 }
8751 
8752 #if PROTOBUF_INLINE_NOT_IN_HEADERS
8753 // DrawPacket
8754 
8755 // required float offsetX = 1;
has_offsetx() const8756 bool DrawPacket::has_offsetx() const {
8757   return (_has_bits_[0] & 0x00000001u) != 0;
8758 }
set_has_offsetx()8759 void DrawPacket::set_has_offsetx() {
8760   _has_bits_[0] |= 0x00000001u;
8761 }
clear_has_offsetx()8762 void DrawPacket::clear_has_offsetx() {
8763   _has_bits_[0] &= ~0x00000001u;
8764 }
clear_offsetx()8765 void DrawPacket::clear_offsetx() {
8766   offsetx_ = 0;
8767   clear_has_offsetx();
8768 }
offsetx() const8769 float DrawPacket::offsetx() const {
8770   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetX)
8771   return offsetx_;
8772 }
set_offsetx(float value)8773 void DrawPacket::set_offsetx(float value) {
8774   set_has_offsetx();
8775   offsetx_ = value;
8776   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetX)
8777 }
8778 
8779 // required float offsetY = 2;
has_offsety() const8780 bool DrawPacket::has_offsety() const {
8781   return (_has_bits_[0] & 0x00000002u) != 0;
8782 }
set_has_offsety()8783 void DrawPacket::set_has_offsety() {
8784   _has_bits_[0] |= 0x00000002u;
8785 }
clear_has_offsety()8786 void DrawPacket::clear_has_offsety() {
8787   _has_bits_[0] &= ~0x00000002u;
8788 }
clear_offsety()8789 void DrawPacket::clear_offsety() {
8790   offsety_ = 0;
8791   clear_has_offsety();
8792 }
offsety() const8793 float DrawPacket::offsety() const {
8794   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetY)
8795   return offsety_;
8796 }
set_offsety(float value)8797 void DrawPacket::set_offsety(float value) {
8798   set_has_offsety();
8799   offsety_ = value;
8800   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetY)
8801 }
8802 
8803 // repeated float mvMatrix = 3;
mvmatrix_size() const8804 int DrawPacket::mvmatrix_size() const {
8805   return mvmatrix_.size();
8806 }
clear_mvmatrix()8807 void DrawPacket::clear_mvmatrix() {
8808   mvmatrix_.Clear();
8809 }
mvmatrix(int index) const8810 float DrawPacket::mvmatrix(int index) const {
8811   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.mvMatrix)
8812   return mvmatrix_.Get(index);
8813 }
set_mvmatrix(int index,float value)8814 void DrawPacket::set_mvmatrix(int index, float value) {
8815   mvmatrix_.Set(index, value);
8816   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.mvMatrix)
8817 }
add_mvmatrix(float value)8818 void DrawPacket::add_mvmatrix(float value) {
8819   mvmatrix_.Add(value);
8820   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.mvMatrix)
8821 }
8822 const ::google::protobuf::RepeatedField< float >&
mvmatrix() const8823 DrawPacket::mvmatrix() const {
8824   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.mvMatrix)
8825   return mvmatrix_;
8826 }
8827 ::google::protobuf::RepeatedField< float >*
mutable_mvmatrix()8828 DrawPacket::mutable_mvmatrix() {
8829   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.mvMatrix)
8830   return &mvmatrix_;
8831 }
8832 
8833 // required uint32 totalRects = 4;
has_totalrects() const8834 bool DrawPacket::has_totalrects() const {
8835   return (_has_bits_[0] & 0x00000008u) != 0;
8836 }
set_has_totalrects()8837 void DrawPacket::set_has_totalrects() {
8838   _has_bits_[0] |= 0x00000008u;
8839 }
clear_has_totalrects()8840 void DrawPacket::clear_has_totalrects() {
8841   _has_bits_[0] &= ~0x00000008u;
8842 }
clear_totalrects()8843 void DrawPacket::clear_totalrects() {
8844   totalrects_ = 0u;
8845   clear_has_totalrects();
8846 }
totalrects() const8847 ::google::protobuf::uint32 DrawPacket::totalrects() const {
8848   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.totalRects)
8849   return totalrects_;
8850 }
set_totalrects(::google::protobuf::uint32 value)8851 void DrawPacket::set_totalrects(::google::protobuf::uint32 value) {
8852   set_has_totalrects();
8853   totalrects_ = value;
8854   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.totalRects)
8855 }
8856 
8857 // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
layerrect_size() const8858 int DrawPacket::layerrect_size() const {
8859   return layerrect_.size();
8860 }
clear_layerrect()8861 void DrawPacket::clear_layerrect() {
8862   layerrect_.Clear();
8863 }
layerrect(int index) const8864 const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::layerrect(int index) const {
8865   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerRect)
8866   return layerrect_.Get(index);
8867 }
mutable_layerrect(int index)8868 ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_layerrect(int index) {
8869   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.layerRect)
8870   return layerrect_.Mutable(index);
8871 }
add_layerrect()8872 ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_layerrect() {
8873   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.layerRect)
8874   return layerrect_.Add();
8875 }
8876 ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
mutable_layerrect()8877 DrawPacket::mutable_layerrect() {
8878   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.layerRect)
8879   return &layerrect_;
8880 }
8881 const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
layerrect() const8882 DrawPacket::layerrect() const {
8883   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.layerRect)
8884   return layerrect_;
8885 }
8886 
8887 // required uint64 layerref = 6;
has_layerref() const8888 bool DrawPacket::has_layerref() const {
8889   return (_has_bits_[0] & 0x00000004u) != 0;
8890 }
set_has_layerref()8891 void DrawPacket::set_has_layerref() {
8892   _has_bits_[0] |= 0x00000004u;
8893 }
clear_has_layerref()8894 void DrawPacket::clear_has_layerref() {
8895   _has_bits_[0] &= ~0x00000004u;
8896 }
clear_layerref()8897 void DrawPacket::clear_layerref() {
8898   layerref_ = GOOGLE_ULONGLONG(0);
8899   clear_has_layerref();
8900 }
layerref() const8901 ::google::protobuf::uint64 DrawPacket::layerref() const {
8902   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerref)
8903   return layerref_;
8904 }
set_layerref(::google::protobuf::uint64 value)8905 void DrawPacket::set_layerref(::google::protobuf::uint64 value) {
8906   set_has_layerref();
8907   layerref_ = value;
8908   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.layerref)
8909 }
8910 
8911 // repeated uint32 texIDs = 7;
texids_size() const8912 int DrawPacket::texids_size() const {
8913   return texids_.size();
8914 }
clear_texids()8915 void DrawPacket::clear_texids() {
8916   texids_.Clear();
8917 }
texids(int index) const8918 ::google::protobuf::uint32 DrawPacket::texids(int index) const {
8919   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.texIDs)
8920   return texids_.Get(index);
8921 }
set_texids(int index,::google::protobuf::uint32 value)8922 void DrawPacket::set_texids(int index, ::google::protobuf::uint32 value) {
8923   texids_.Set(index, value);
8924   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.texIDs)
8925 }
add_texids(::google::protobuf::uint32 value)8926 void DrawPacket::add_texids(::google::protobuf::uint32 value) {
8927   texids_.Add(value);
8928   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.texIDs)
8929 }
8930 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
texids() const8931 DrawPacket::texids() const {
8932   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.texIDs)
8933   return texids_;
8934 }
8935 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
mutable_texids()8936 DrawPacket::mutable_texids() {
8937   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.texIDs)
8938   return &texids_;
8939 }
8940 
8941 // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
texturerect_size() const8942 int DrawPacket::texturerect_size() const {
8943   return texturerect_.size();
8944 }
clear_texturerect()8945 void DrawPacket::clear_texturerect() {
8946   texturerect_.Clear();
8947 }
texturerect(int index) const8948 const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::texturerect(int index) const {
8949   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.textureRect)
8950   return texturerect_.Get(index);
8951 }
mutable_texturerect(int index)8952 ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_texturerect(int index) {
8953   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.textureRect)
8954   return texturerect_.Mutable(index);
8955 }
add_texturerect()8956 ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_texturerect() {
8957   // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.textureRect)
8958   return texturerect_.Add();
8959 }
8960 ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
mutable_texturerect()8961 DrawPacket::mutable_texturerect() {
8962   // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.textureRect)
8963   return &texturerect_;
8964 }
8965 const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
texturerect() const8966 DrawPacket::texturerect() const {
8967   // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.textureRect)
8968   return texturerect_;
8969 }
8970 
8971 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
8972 
8973 // ===================================================================
8974 
8975 #if !defined(_MSC_VER) || _MSC_VER >= 1900
8976 const int Packet::kTypeFieldNumber;
8977 const int Packet::kFrameFieldNumber;
8978 const int Packet::kColorFieldNumber;
8979 const int Packet::kTextureFieldNumber;
8980 const int Packet::kLayersFieldNumber;
8981 const int Packet::kMetaFieldNumber;
8982 const int Packet::kDrawFieldNumber;
8983 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
8984 
Packet()8985 Packet::Packet()
8986   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
8987   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
8988     protobuf_LayerScopePacket_2eproto::InitDefaults();
8989   }
8990   SharedCtor();
8991   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.Packet)
8992 }
Packet(const Packet & from)8993 Packet::Packet(const Packet& from)
8994   : ::google::protobuf::MessageLite(),
8995       _internal_metadata_(NULL),
8996       _has_bits_(from._has_bits_),
8997       _cached_size_(0) {
8998   _internal_metadata_.MergeFrom(from._internal_metadata_);
8999   if (from.has_frame()) {
9000     frame_ = new ::mozilla::layers::layerscope::FramePacket(*from.frame_);
9001   } else {
9002     frame_ = NULL;
9003   }
9004   if (from.has_color()) {
9005     color_ = new ::mozilla::layers::layerscope::ColorPacket(*from.color_);
9006   } else {
9007     color_ = NULL;
9008   }
9009   if (from.has_texture()) {
9010     texture_ = new ::mozilla::layers::layerscope::TexturePacket(*from.texture_);
9011   } else {
9012     texture_ = NULL;
9013   }
9014   if (from.has_layers()) {
9015     layers_ = new ::mozilla::layers::layerscope::LayersPacket(*from.layers_);
9016   } else {
9017     layers_ = NULL;
9018   }
9019   if (from.has_meta()) {
9020     meta_ = new ::mozilla::layers::layerscope::MetaPacket(*from.meta_);
9021   } else {
9022     meta_ = NULL;
9023   }
9024   if (from.has_draw()) {
9025     draw_ = new ::mozilla::layers::layerscope::DrawPacket(*from.draw_);
9026   } else {
9027     draw_ = NULL;
9028   }
9029   type_ = from.type_;
9030   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.Packet)
9031 }
9032 
SharedCtor()9033 void Packet::SharedCtor() {
9034   _cached_size_ = 0;
9035   ::memset(&frame_, 0, static_cast<size_t>(
9036       reinterpret_cast<char*>(&draw_) -
9037       reinterpret_cast<char*>(&frame_)) + sizeof(draw_));
9038   type_ = 1;
9039 }
9040 
~Packet()9041 Packet::~Packet() {
9042   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.Packet)
9043   SharedDtor();
9044 }
9045 
SharedDtor()9046 void Packet::SharedDtor() {
9047   if (this != internal_default_instance()) delete frame_;
9048   if (this != internal_default_instance()) delete color_;
9049   if (this != internal_default_instance()) delete texture_;
9050   if (this != internal_default_instance()) delete layers_;
9051   if (this != internal_default_instance()) delete meta_;
9052   if (this != internal_default_instance()) delete draw_;
9053 }
9054 
SetCachedSize(int size) const9055 void Packet::SetCachedSize(int size) const {
9056   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9057   _cached_size_ = size;
9058   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9059 }
default_instance()9060 const Packet& Packet::default_instance() {
9061   protobuf_LayerScopePacket_2eproto::InitDefaults();
9062   return *internal_default_instance();
9063 }
9064 
New(::google::protobuf::Arena * arena) const9065 Packet* Packet::New(::google::protobuf::Arena* arena) const {
9066   Packet* n = new Packet;
9067   if (arena != NULL) {
9068     arena->Own(n);
9069   }
9070   return n;
9071 }
9072 
Clear()9073 void Packet::Clear() {
9074 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.Packet)
9075   ::google::protobuf::uint32 cached_has_bits = 0;
9076   // Prevent compiler warnings about cached_has_bits being unused
9077   (void) cached_has_bits;
9078 
9079   cached_has_bits = _has_bits_[0];
9080   if (cached_has_bits & 127u) {
9081     if (cached_has_bits & 0x00000001u) {
9082       GOOGLE_DCHECK(frame_ != NULL);
9083       frame_->::mozilla::layers::layerscope::FramePacket::Clear();
9084     }
9085     if (cached_has_bits & 0x00000002u) {
9086       GOOGLE_DCHECK(color_ != NULL);
9087       color_->::mozilla::layers::layerscope::ColorPacket::Clear();
9088     }
9089     if (cached_has_bits & 0x00000004u) {
9090       GOOGLE_DCHECK(texture_ != NULL);
9091       texture_->::mozilla::layers::layerscope::TexturePacket::Clear();
9092     }
9093     if (cached_has_bits & 0x00000008u) {
9094       GOOGLE_DCHECK(layers_ != NULL);
9095       layers_->::mozilla::layers::layerscope::LayersPacket::Clear();
9096     }
9097     if (cached_has_bits & 0x00000010u) {
9098       GOOGLE_DCHECK(meta_ != NULL);
9099       meta_->::mozilla::layers::layerscope::MetaPacket::Clear();
9100     }
9101     if (cached_has_bits & 0x00000020u) {
9102       GOOGLE_DCHECK(draw_ != NULL);
9103       draw_->::mozilla::layers::layerscope::DrawPacket::Clear();
9104     }
9105     type_ = 1;
9106   }
9107   _has_bits_.Clear();
9108   _internal_metadata_.Clear();
9109 }
9110 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)9111 bool Packet::MergePartialFromCodedStream(
9112     ::google::protobuf::io::CodedInputStream* input) {
9113 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9114   ::google::protobuf::uint32 tag;
9115   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
9116       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
9117           &::google::protobuf::internal::InternalMetadataWithArenaLite::
9118               mutable_unknown_fields));
9119   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9120       &unknown_fields_string, false);
9121   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.Packet)
9122   for (;;) {
9123     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9124     tag = p.first;
9125     if (!p.second) goto handle_unusual;
9126     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9127       // required .mozilla.layers.layerscope.Packet.DataType type = 1;
9128       case 1: {
9129         if (static_cast< ::google::protobuf::uint8>(tag) ==
9130             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9131           int value;
9132           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9133                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9134                  input, &value)));
9135           if (::mozilla::layers::layerscope::Packet_DataType_IsValid(value)) {
9136             set_type(static_cast< ::mozilla::layers::layerscope::Packet_DataType >(value));
9137           } else {
9138             unknown_fields_stream.WriteVarint32(8u);
9139             unknown_fields_stream.WriteVarint32(
9140                 static_cast< ::google::protobuf::uint32>(value));
9141           }
9142         } else {
9143           goto handle_unusual;
9144         }
9145         break;
9146       }
9147 
9148       // optional .mozilla.layers.layerscope.FramePacket frame = 2;
9149       case 2: {
9150         if (static_cast< ::google::protobuf::uint8>(tag) ==
9151             static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
9152           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9153                input, mutable_frame()));
9154         } else {
9155           goto handle_unusual;
9156         }
9157         break;
9158       }
9159 
9160       // optional .mozilla.layers.layerscope.ColorPacket color = 3;
9161       case 3: {
9162         if (static_cast< ::google::protobuf::uint8>(tag) ==
9163             static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
9164           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9165                input, mutable_color()));
9166         } else {
9167           goto handle_unusual;
9168         }
9169         break;
9170       }
9171 
9172       // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
9173       case 4: {
9174         if (static_cast< ::google::protobuf::uint8>(tag) ==
9175             static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
9176           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9177                input, mutable_texture()));
9178         } else {
9179           goto handle_unusual;
9180         }
9181         break;
9182       }
9183 
9184       // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
9185       case 5: {
9186         if (static_cast< ::google::protobuf::uint8>(tag) ==
9187             static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
9188           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9189                input, mutable_layers()));
9190         } else {
9191           goto handle_unusual;
9192         }
9193         break;
9194       }
9195 
9196       // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
9197       case 6: {
9198         if (static_cast< ::google::protobuf::uint8>(tag) ==
9199             static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
9200           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9201                input, mutable_meta()));
9202         } else {
9203           goto handle_unusual;
9204         }
9205         break;
9206       }
9207 
9208       // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
9209       case 7: {
9210         if (static_cast< ::google::protobuf::uint8>(tag) ==
9211             static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
9212           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
9213                input, mutable_draw()));
9214         } else {
9215           goto handle_unusual;
9216         }
9217         break;
9218       }
9219 
9220       default: {
9221       handle_unusual:
9222         if (tag == 0) {
9223           goto success;
9224         }
9225         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9226             input, tag, &unknown_fields_stream));
9227         break;
9228       }
9229     }
9230   }
9231 success:
9232   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.Packet)
9233   return true;
9234 failure:
9235   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.Packet)
9236   return false;
9237 #undef DO_
9238 }
9239 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const9240 void Packet::SerializeWithCachedSizes(
9241     ::google::protobuf::io::CodedOutputStream* output) const {
9242   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.Packet)
9243   ::google::protobuf::uint32 cached_has_bits = 0;
9244   (void) cached_has_bits;
9245 
9246   cached_has_bits = _has_bits_[0];
9247   // required .mozilla.layers.layerscope.Packet.DataType type = 1;
9248   if (cached_has_bits & 0x00000040u) {
9249     ::google::protobuf::internal::WireFormatLite::WriteEnum(
9250       1, this->type(), output);
9251   }
9252 
9253   // optional .mozilla.layers.layerscope.FramePacket frame = 2;
9254   if (cached_has_bits & 0x00000001u) {
9255     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9256       2, *this->frame_, output);
9257   }
9258 
9259   // optional .mozilla.layers.layerscope.ColorPacket color = 3;
9260   if (cached_has_bits & 0x00000002u) {
9261     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9262       3, *this->color_, output);
9263   }
9264 
9265   // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
9266   if (cached_has_bits & 0x00000004u) {
9267     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9268       4, *this->texture_, output);
9269   }
9270 
9271   // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
9272   if (cached_has_bits & 0x00000008u) {
9273     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9274       5, *this->layers_, output);
9275   }
9276 
9277   // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
9278   if (cached_has_bits & 0x00000010u) {
9279     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9280       6, *this->meta_, output);
9281   }
9282 
9283   // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
9284   if (cached_has_bits & 0x00000020u) {
9285     ::google::protobuf::internal::WireFormatLite::WriteMessage(
9286       7, *this->draw_, output);
9287   }
9288 
9289   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
9290                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
9291   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.Packet)
9292 }
9293 
ByteSizeLong() const9294 size_t Packet::ByteSizeLong() const {
9295 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.Packet)
9296   size_t total_size = 0;
9297 
9298   total_size += _internal_metadata_.unknown_fields().size();
9299 
9300   // required .mozilla.layers.layerscope.Packet.DataType type = 1;
9301   if (has_type()) {
9302     total_size += 1 +
9303       ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
9304   }
9305   if (_has_bits_[0 / 32] & 63u) {
9306     // optional .mozilla.layers.layerscope.FramePacket frame = 2;
9307     if (has_frame()) {
9308       total_size += 1 +
9309         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9310           *this->frame_);
9311     }
9312 
9313     // optional .mozilla.layers.layerscope.ColorPacket color = 3;
9314     if (has_color()) {
9315       total_size += 1 +
9316         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9317           *this->color_);
9318     }
9319 
9320     // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
9321     if (has_texture()) {
9322       total_size += 1 +
9323         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9324           *this->texture_);
9325     }
9326 
9327     // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
9328     if (has_layers()) {
9329       total_size += 1 +
9330         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9331           *this->layers_);
9332     }
9333 
9334     // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
9335     if (has_meta()) {
9336       total_size += 1 +
9337         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9338           *this->meta_);
9339     }
9340 
9341     // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
9342     if (has_draw()) {
9343       total_size += 1 +
9344         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
9345           *this->draw_);
9346     }
9347 
9348   }
9349   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9350   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9351   _cached_size_ = cached_size;
9352   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9353   return total_size;
9354 }
9355 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)9356 void Packet::CheckTypeAndMergeFrom(
9357     const ::google::protobuf::MessageLite& from) {
9358   MergeFrom(*::google::protobuf::down_cast<const Packet*>(&from));
9359 }
9360 
MergeFrom(const Packet & from)9361 void Packet::MergeFrom(const Packet& from) {
9362 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.Packet)
9363   GOOGLE_DCHECK_NE(&from, this);
9364   _internal_metadata_.MergeFrom(from._internal_metadata_);
9365   ::google::protobuf::uint32 cached_has_bits = 0;
9366   (void) cached_has_bits;
9367 
9368   cached_has_bits = from._has_bits_[0];
9369   if (cached_has_bits & 127u) {
9370     if (cached_has_bits & 0x00000001u) {
9371       mutable_frame()->::mozilla::layers::layerscope::FramePacket::MergeFrom(from.frame());
9372     }
9373     if (cached_has_bits & 0x00000002u) {
9374       mutable_color()->::mozilla::layers::layerscope::ColorPacket::MergeFrom(from.color());
9375     }
9376     if (cached_has_bits & 0x00000004u) {
9377       mutable_texture()->::mozilla::layers::layerscope::TexturePacket::MergeFrom(from.texture());
9378     }
9379     if (cached_has_bits & 0x00000008u) {
9380       mutable_layers()->::mozilla::layers::layerscope::LayersPacket::MergeFrom(from.layers());
9381     }
9382     if (cached_has_bits & 0x00000010u) {
9383       mutable_meta()->::mozilla::layers::layerscope::MetaPacket::MergeFrom(from.meta());
9384     }
9385     if (cached_has_bits & 0x00000020u) {
9386       mutable_draw()->::mozilla::layers::layerscope::DrawPacket::MergeFrom(from.draw());
9387     }
9388     if (cached_has_bits & 0x00000040u) {
9389       type_ = from.type_;
9390     }
9391     _has_bits_[0] |= cached_has_bits;
9392   }
9393 }
9394 
CopyFrom(const Packet & from)9395 void Packet::CopyFrom(const Packet& from) {
9396 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.Packet)
9397   if (&from == this) return;
9398   Clear();
9399   MergeFrom(from);
9400 }
9401 
IsInitialized() const9402 bool Packet::IsInitialized() const {
9403   if ((_has_bits_[0] & 0x00000040) != 0x00000040) return false;
9404   if (has_color()) {
9405     if (!this->color_->IsInitialized()) return false;
9406   }
9407   if (has_texture()) {
9408     if (!this->texture_->IsInitialized()) return false;
9409   }
9410   if (has_layers()) {
9411     if (!this->layers_->IsInitialized()) return false;
9412   }
9413   if (has_draw()) {
9414     if (!this->draw_->IsInitialized()) return false;
9415   }
9416   return true;
9417 }
9418 
Swap(Packet * other)9419 void Packet::Swap(Packet* other) {
9420   if (other == this) return;
9421   InternalSwap(other);
9422 }
InternalSwap(Packet * other)9423 void Packet::InternalSwap(Packet* other) {
9424   using std::swap;
9425   swap(frame_, other->frame_);
9426   swap(color_, other->color_);
9427   swap(texture_, other->texture_);
9428   swap(layers_, other->layers_);
9429   swap(meta_, other->meta_);
9430   swap(draw_, other->draw_);
9431   swap(type_, other->type_);
9432   swap(_has_bits_[0], other->_has_bits_[0]);
9433   _internal_metadata_.Swap(&other->_internal_metadata_);
9434   swap(_cached_size_, other->_cached_size_);
9435 }
9436 
GetTypeName() const9437 ::std::string Packet::GetTypeName() const {
9438   return "mozilla.layers.layerscope.Packet";
9439 }
9440 
9441 #if PROTOBUF_INLINE_NOT_IN_HEADERS
9442 // Packet
9443 
9444 // required .mozilla.layers.layerscope.Packet.DataType type = 1;
has_type() const9445 bool Packet::has_type() const {
9446   return (_has_bits_[0] & 0x00000040u) != 0;
9447 }
set_has_type()9448 void Packet::set_has_type() {
9449   _has_bits_[0] |= 0x00000040u;
9450 }
clear_has_type()9451 void Packet::clear_has_type() {
9452   _has_bits_[0] &= ~0x00000040u;
9453 }
clear_type()9454 void Packet::clear_type() {
9455   type_ = 1;
9456   clear_has_type();
9457 }
type() const9458 ::mozilla::layers::layerscope::Packet_DataType Packet::type() const {
9459   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.type)
9460   return static_cast< ::mozilla::layers::layerscope::Packet_DataType >(type_);
9461 }
set_type(::mozilla::layers::layerscope::Packet_DataType value)9462 void Packet::set_type(::mozilla::layers::layerscope::Packet_DataType value) {
9463   assert(::mozilla::layers::layerscope::Packet_DataType_IsValid(value));
9464   set_has_type();
9465   type_ = value;
9466   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.Packet.type)
9467 }
9468 
9469 // optional .mozilla.layers.layerscope.FramePacket frame = 2;
has_frame() const9470 bool Packet::has_frame() const {
9471   return (_has_bits_[0] & 0x00000001u) != 0;
9472 }
set_has_frame()9473 void Packet::set_has_frame() {
9474   _has_bits_[0] |= 0x00000001u;
9475 }
clear_has_frame()9476 void Packet::clear_has_frame() {
9477   _has_bits_[0] &= ~0x00000001u;
9478 }
clear_frame()9479 void Packet::clear_frame() {
9480   if (frame_ != NULL) frame_->::mozilla::layers::layerscope::FramePacket::Clear();
9481   clear_has_frame();
9482 }
frame() const9483 const ::mozilla::layers::layerscope::FramePacket& Packet::frame() const {
9484   const ::mozilla::layers::layerscope::FramePacket* p = frame_;
9485   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.frame)
9486   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::FramePacket*>(
9487       &::mozilla::layers::layerscope::_FramePacket_default_instance_);
9488 }
mutable_frame()9489 ::mozilla::layers::layerscope::FramePacket* Packet::mutable_frame() {
9490   set_has_frame();
9491   if (frame_ == NULL) {
9492     frame_ = new ::mozilla::layers::layerscope::FramePacket;
9493   }
9494   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.frame)
9495   return frame_;
9496 }
release_frame()9497 ::mozilla::layers::layerscope::FramePacket* Packet::release_frame() {
9498   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.frame)
9499   clear_has_frame();
9500   ::mozilla::layers::layerscope::FramePacket* temp = frame_;
9501   frame_ = NULL;
9502   return temp;
9503 }
set_allocated_frame(::mozilla::layers::layerscope::FramePacket * frame)9504 void Packet::set_allocated_frame(::mozilla::layers::layerscope::FramePacket* frame) {
9505   delete frame_;
9506   frame_ = frame;
9507   if (frame) {
9508     set_has_frame();
9509   } else {
9510     clear_has_frame();
9511   }
9512   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.frame)
9513 }
9514 
9515 // optional .mozilla.layers.layerscope.ColorPacket color = 3;
has_color() const9516 bool Packet::has_color() const {
9517   return (_has_bits_[0] & 0x00000002u) != 0;
9518 }
set_has_color()9519 void Packet::set_has_color() {
9520   _has_bits_[0] |= 0x00000002u;
9521 }
clear_has_color()9522 void Packet::clear_has_color() {
9523   _has_bits_[0] &= ~0x00000002u;
9524 }
clear_color()9525 void Packet::clear_color() {
9526   if (color_ != NULL) color_->::mozilla::layers::layerscope::ColorPacket::Clear();
9527   clear_has_color();
9528 }
color() const9529 const ::mozilla::layers::layerscope::ColorPacket& Packet::color() const {
9530   const ::mozilla::layers::layerscope::ColorPacket* p = color_;
9531   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.color)
9532   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::ColorPacket*>(
9533       &::mozilla::layers::layerscope::_ColorPacket_default_instance_);
9534 }
mutable_color()9535 ::mozilla::layers::layerscope::ColorPacket* Packet::mutable_color() {
9536   set_has_color();
9537   if (color_ == NULL) {
9538     color_ = new ::mozilla::layers::layerscope::ColorPacket;
9539   }
9540   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.color)
9541   return color_;
9542 }
release_color()9543 ::mozilla::layers::layerscope::ColorPacket* Packet::release_color() {
9544   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.color)
9545   clear_has_color();
9546   ::mozilla::layers::layerscope::ColorPacket* temp = color_;
9547   color_ = NULL;
9548   return temp;
9549 }
set_allocated_color(::mozilla::layers::layerscope::ColorPacket * color)9550 void Packet::set_allocated_color(::mozilla::layers::layerscope::ColorPacket* color) {
9551   delete color_;
9552   color_ = color;
9553   if (color) {
9554     set_has_color();
9555   } else {
9556     clear_has_color();
9557   }
9558   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.color)
9559 }
9560 
9561 // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
has_texture() const9562 bool Packet::has_texture() const {
9563   return (_has_bits_[0] & 0x00000004u) != 0;
9564 }
set_has_texture()9565 void Packet::set_has_texture() {
9566   _has_bits_[0] |= 0x00000004u;
9567 }
clear_has_texture()9568 void Packet::clear_has_texture() {
9569   _has_bits_[0] &= ~0x00000004u;
9570 }
clear_texture()9571 void Packet::clear_texture() {
9572   if (texture_ != NULL) texture_->::mozilla::layers::layerscope::TexturePacket::Clear();
9573   clear_has_texture();
9574 }
texture() const9575 const ::mozilla::layers::layerscope::TexturePacket& Packet::texture() const {
9576   const ::mozilla::layers::layerscope::TexturePacket* p = texture_;
9577   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.texture)
9578   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket*>(
9579       &::mozilla::layers::layerscope::_TexturePacket_default_instance_);
9580 }
mutable_texture()9581 ::mozilla::layers::layerscope::TexturePacket* Packet::mutable_texture() {
9582   set_has_texture();
9583   if (texture_ == NULL) {
9584     texture_ = new ::mozilla::layers::layerscope::TexturePacket;
9585   }
9586   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.texture)
9587   return texture_;
9588 }
release_texture()9589 ::mozilla::layers::layerscope::TexturePacket* Packet::release_texture() {
9590   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.texture)
9591   clear_has_texture();
9592   ::mozilla::layers::layerscope::TexturePacket* temp = texture_;
9593   texture_ = NULL;
9594   return temp;
9595 }
set_allocated_texture(::mozilla::layers::layerscope::TexturePacket * texture)9596 void Packet::set_allocated_texture(::mozilla::layers::layerscope::TexturePacket* texture) {
9597   delete texture_;
9598   texture_ = texture;
9599   if (texture) {
9600     set_has_texture();
9601   } else {
9602     clear_has_texture();
9603   }
9604   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.texture)
9605 }
9606 
9607 // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
has_layers() const9608 bool Packet::has_layers() const {
9609   return (_has_bits_[0] & 0x00000008u) != 0;
9610 }
set_has_layers()9611 void Packet::set_has_layers() {
9612   _has_bits_[0] |= 0x00000008u;
9613 }
clear_has_layers()9614 void Packet::clear_has_layers() {
9615   _has_bits_[0] &= ~0x00000008u;
9616 }
clear_layers()9617 void Packet::clear_layers() {
9618   if (layers_ != NULL) layers_->::mozilla::layers::layerscope::LayersPacket::Clear();
9619   clear_has_layers();
9620 }
layers() const9621 const ::mozilla::layers::layerscope::LayersPacket& Packet::layers() const {
9622   const ::mozilla::layers::layerscope::LayersPacket* p = layers_;
9623   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.layers)
9624   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket*>(
9625       &::mozilla::layers::layerscope::_LayersPacket_default_instance_);
9626 }
mutable_layers()9627 ::mozilla::layers::layerscope::LayersPacket* Packet::mutable_layers() {
9628   set_has_layers();
9629   if (layers_ == NULL) {
9630     layers_ = new ::mozilla::layers::layerscope::LayersPacket;
9631   }
9632   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.layers)
9633   return layers_;
9634 }
release_layers()9635 ::mozilla::layers::layerscope::LayersPacket* Packet::release_layers() {
9636   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.layers)
9637   clear_has_layers();
9638   ::mozilla::layers::layerscope::LayersPacket* temp = layers_;
9639   layers_ = NULL;
9640   return temp;
9641 }
set_allocated_layers(::mozilla::layers::layerscope::LayersPacket * layers)9642 void Packet::set_allocated_layers(::mozilla::layers::layerscope::LayersPacket* layers) {
9643   delete layers_;
9644   layers_ = layers;
9645   if (layers) {
9646     set_has_layers();
9647   } else {
9648     clear_has_layers();
9649   }
9650   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.layers)
9651 }
9652 
9653 // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
has_meta() const9654 bool Packet::has_meta() const {
9655   return (_has_bits_[0] & 0x00000010u) != 0;
9656 }
set_has_meta()9657 void Packet::set_has_meta() {
9658   _has_bits_[0] |= 0x00000010u;
9659 }
clear_has_meta()9660 void Packet::clear_has_meta() {
9661   _has_bits_[0] &= ~0x00000010u;
9662 }
clear_meta()9663 void Packet::clear_meta() {
9664   if (meta_ != NULL) meta_->::mozilla::layers::layerscope::MetaPacket::Clear();
9665   clear_has_meta();
9666 }
meta() const9667 const ::mozilla::layers::layerscope::MetaPacket& Packet::meta() const {
9668   const ::mozilla::layers::layerscope::MetaPacket* p = meta_;
9669   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.meta)
9670   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::MetaPacket*>(
9671       &::mozilla::layers::layerscope::_MetaPacket_default_instance_);
9672 }
mutable_meta()9673 ::mozilla::layers::layerscope::MetaPacket* Packet::mutable_meta() {
9674   set_has_meta();
9675   if (meta_ == NULL) {
9676     meta_ = new ::mozilla::layers::layerscope::MetaPacket;
9677   }
9678   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.meta)
9679   return meta_;
9680 }
release_meta()9681 ::mozilla::layers::layerscope::MetaPacket* Packet::release_meta() {
9682   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.meta)
9683   clear_has_meta();
9684   ::mozilla::layers::layerscope::MetaPacket* temp = meta_;
9685   meta_ = NULL;
9686   return temp;
9687 }
set_allocated_meta(::mozilla::layers::layerscope::MetaPacket * meta)9688 void Packet::set_allocated_meta(::mozilla::layers::layerscope::MetaPacket* meta) {
9689   delete meta_;
9690   meta_ = meta;
9691   if (meta) {
9692     set_has_meta();
9693   } else {
9694     clear_has_meta();
9695   }
9696   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.meta)
9697 }
9698 
9699 // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
has_draw() const9700 bool Packet::has_draw() const {
9701   return (_has_bits_[0] & 0x00000020u) != 0;
9702 }
set_has_draw()9703 void Packet::set_has_draw() {
9704   _has_bits_[0] |= 0x00000020u;
9705 }
clear_has_draw()9706 void Packet::clear_has_draw() {
9707   _has_bits_[0] &= ~0x00000020u;
9708 }
clear_draw()9709 void Packet::clear_draw() {
9710   if (draw_ != NULL) draw_->::mozilla::layers::layerscope::DrawPacket::Clear();
9711   clear_has_draw();
9712 }
draw() const9713 const ::mozilla::layers::layerscope::DrawPacket& Packet::draw() const {
9714   const ::mozilla::layers::layerscope::DrawPacket* p = draw_;
9715   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.draw)
9716   return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::DrawPacket*>(
9717       &::mozilla::layers::layerscope::_DrawPacket_default_instance_);
9718 }
mutable_draw()9719 ::mozilla::layers::layerscope::DrawPacket* Packet::mutable_draw() {
9720   set_has_draw();
9721   if (draw_ == NULL) {
9722     draw_ = new ::mozilla::layers::layerscope::DrawPacket;
9723   }
9724   // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.draw)
9725   return draw_;
9726 }
release_draw()9727 ::mozilla::layers::layerscope::DrawPacket* Packet::release_draw() {
9728   // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.draw)
9729   clear_has_draw();
9730   ::mozilla::layers::layerscope::DrawPacket* temp = draw_;
9731   draw_ = NULL;
9732   return temp;
9733 }
set_allocated_draw(::mozilla::layers::layerscope::DrawPacket * draw)9734 void Packet::set_allocated_draw(::mozilla::layers::layerscope::DrawPacket* draw) {
9735   delete draw_;
9736   draw_ = draw;
9737   if (draw) {
9738     set_has_draw();
9739   } else {
9740     clear_has_draw();
9741   }
9742   // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.draw)
9743 }
9744 
9745 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
9746 
9747 // ===================================================================
9748 
9749 #if !defined(_MSC_VER) || _MSC_VER >= 1900
9750 const int CommandPacket::kTypeFieldNumber;
9751 const int CommandPacket::kValueFieldNumber;
9752 #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
9753 
CommandPacket()9754 CommandPacket::CommandPacket()
9755   : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
9756   if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
9757     protobuf_LayerScopePacket_2eproto::InitDefaults();
9758   }
9759   SharedCtor();
9760   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.CommandPacket)
9761 }
CommandPacket(const CommandPacket & from)9762 CommandPacket::CommandPacket(const CommandPacket& from)
9763   : ::google::protobuf::MessageLite(),
9764       _internal_metadata_(NULL),
9765       _has_bits_(from._has_bits_),
9766       _cached_size_(0) {
9767   _internal_metadata_.MergeFrom(from._internal_metadata_);
9768   ::memcpy(&type_, &from.type_,
9769     static_cast<size_t>(reinterpret_cast<char*>(&value_) -
9770     reinterpret_cast<char*>(&type_)) + sizeof(value_));
9771   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.CommandPacket)
9772 }
9773 
SharedCtor()9774 void CommandPacket::SharedCtor() {
9775   _cached_size_ = 0;
9776   ::memset(&type_, 0, static_cast<size_t>(
9777       reinterpret_cast<char*>(&value_) -
9778       reinterpret_cast<char*>(&type_)) + sizeof(value_));
9779 }
9780 
~CommandPacket()9781 CommandPacket::~CommandPacket() {
9782   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.CommandPacket)
9783   SharedDtor();
9784 }
9785 
SharedDtor()9786 void CommandPacket::SharedDtor() {
9787 }
9788 
SetCachedSize(int size) const9789 void CommandPacket::SetCachedSize(int size) const {
9790   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9791   _cached_size_ = size;
9792   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9793 }
default_instance()9794 const CommandPacket& CommandPacket::default_instance() {
9795   protobuf_LayerScopePacket_2eproto::InitDefaults();
9796   return *internal_default_instance();
9797 }
9798 
New(::google::protobuf::Arena * arena) const9799 CommandPacket* CommandPacket::New(::google::protobuf::Arena* arena) const {
9800   CommandPacket* n = new CommandPacket;
9801   if (arena != NULL) {
9802     arena->Own(n);
9803   }
9804   return n;
9805 }
9806 
Clear()9807 void CommandPacket::Clear() {
9808 // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.CommandPacket)
9809   ::google::protobuf::uint32 cached_has_bits = 0;
9810   // Prevent compiler warnings about cached_has_bits being unused
9811   (void) cached_has_bits;
9812 
9813   cached_has_bits = _has_bits_[0];
9814   if (cached_has_bits & 3u) {
9815     ::memset(&type_, 0, static_cast<size_t>(
9816         reinterpret_cast<char*>(&value_) -
9817         reinterpret_cast<char*>(&type_)) + sizeof(value_));
9818   }
9819   _has_bits_.Clear();
9820   _internal_metadata_.Clear();
9821 }
9822 
MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream * input)9823 bool CommandPacket::MergePartialFromCodedStream(
9824     ::google::protobuf::io::CodedInputStream* input) {
9825 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
9826   ::google::protobuf::uint32 tag;
9827   ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
9828       ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
9829           &::google::protobuf::internal::InternalMetadataWithArenaLite::
9830               mutable_unknown_fields));
9831   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
9832       &unknown_fields_string, false);
9833   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.CommandPacket)
9834   for (;;) {
9835     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
9836     tag = p.first;
9837     if (!p.second) goto handle_unusual;
9838     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9839       // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
9840       case 1: {
9841         if (static_cast< ::google::protobuf::uint8>(tag) ==
9842             static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
9843           int value;
9844           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9845                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9846                  input, &value)));
9847           if (::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value)) {
9848             set_type(static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(value));
9849           } else {
9850             unknown_fields_stream.WriteVarint32(8u);
9851             unknown_fields_stream.WriteVarint32(
9852                 static_cast< ::google::protobuf::uint32>(value));
9853           }
9854         } else {
9855           goto handle_unusual;
9856         }
9857         break;
9858       }
9859 
9860       // optional bool value = 2;
9861       case 2: {
9862         if (static_cast< ::google::protobuf::uint8>(tag) ==
9863             static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
9864           set_has_value();
9865           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9866                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
9867                  input, &value_)));
9868         } else {
9869           goto handle_unusual;
9870         }
9871         break;
9872       }
9873 
9874       default: {
9875       handle_unusual:
9876         if (tag == 0) {
9877           goto success;
9878         }
9879         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
9880             input, tag, &unknown_fields_stream));
9881         break;
9882       }
9883     }
9884   }
9885 success:
9886   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.CommandPacket)
9887   return true;
9888 failure:
9889   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.CommandPacket)
9890   return false;
9891 #undef DO_
9892 }
9893 
SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream * output) const9894 void CommandPacket::SerializeWithCachedSizes(
9895     ::google::protobuf::io::CodedOutputStream* output) const {
9896   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.CommandPacket)
9897   ::google::protobuf::uint32 cached_has_bits = 0;
9898   (void) cached_has_bits;
9899 
9900   cached_has_bits = _has_bits_[0];
9901   // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
9902   if (cached_has_bits & 0x00000001u) {
9903     ::google::protobuf::internal::WireFormatLite::WriteEnum(
9904       1, this->type(), output);
9905   }
9906 
9907   // optional bool value = 2;
9908   if (cached_has_bits & 0x00000002u) {
9909     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value(), output);
9910   }
9911 
9912   output->WriteRaw(_internal_metadata_.unknown_fields().data(),
9913                    static_cast<int>(_internal_metadata_.unknown_fields().size()));
9914   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.CommandPacket)
9915 }
9916 
ByteSizeLong() const9917 size_t CommandPacket::ByteSizeLong() const {
9918 // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.CommandPacket)
9919   size_t total_size = 0;
9920 
9921   total_size += _internal_metadata_.unknown_fields().size();
9922 
9923   // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
9924   if (has_type()) {
9925     total_size += 1 +
9926       ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
9927   }
9928   // optional bool value = 2;
9929   if (has_value()) {
9930     total_size += 1 + 1;
9931   }
9932 
9933   int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9934   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
9935   _cached_size_ = cached_size;
9936   GOOGLE_SAFE_CONCURRENT_WRITES_END();
9937   return total_size;
9938 }
9939 
CheckTypeAndMergeFrom(const::google::protobuf::MessageLite & from)9940 void CommandPacket::CheckTypeAndMergeFrom(
9941     const ::google::protobuf::MessageLite& from) {
9942   MergeFrom(*::google::protobuf::down_cast<const CommandPacket*>(&from));
9943 }
9944 
MergeFrom(const CommandPacket & from)9945 void CommandPacket::MergeFrom(const CommandPacket& from) {
9946 // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.CommandPacket)
9947   GOOGLE_DCHECK_NE(&from, this);
9948   _internal_metadata_.MergeFrom(from._internal_metadata_);
9949   ::google::protobuf::uint32 cached_has_bits = 0;
9950   (void) cached_has_bits;
9951 
9952   cached_has_bits = from._has_bits_[0];
9953   if (cached_has_bits & 3u) {
9954     if (cached_has_bits & 0x00000001u) {
9955       type_ = from.type_;
9956     }
9957     if (cached_has_bits & 0x00000002u) {
9958       value_ = from.value_;
9959     }
9960     _has_bits_[0] |= cached_has_bits;
9961   }
9962 }
9963 
CopyFrom(const CommandPacket & from)9964 void CommandPacket::CopyFrom(const CommandPacket& from) {
9965 // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.CommandPacket)
9966   if (&from == this) return;
9967   Clear();
9968   MergeFrom(from);
9969 }
9970 
IsInitialized() const9971 bool CommandPacket::IsInitialized() const {
9972   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
9973   return true;
9974 }
9975 
Swap(CommandPacket * other)9976 void CommandPacket::Swap(CommandPacket* other) {
9977   if (other == this) return;
9978   InternalSwap(other);
9979 }
InternalSwap(CommandPacket * other)9980 void CommandPacket::InternalSwap(CommandPacket* other) {
9981   using std::swap;
9982   swap(type_, other->type_);
9983   swap(value_, other->value_);
9984   swap(_has_bits_[0], other->_has_bits_[0]);
9985   _internal_metadata_.Swap(&other->_internal_metadata_);
9986   swap(_cached_size_, other->_cached_size_);
9987 }
9988 
GetTypeName() const9989 ::std::string CommandPacket::GetTypeName() const {
9990   return "mozilla.layers.layerscope.CommandPacket";
9991 }
9992 
9993 #if PROTOBUF_INLINE_NOT_IN_HEADERS
9994 // CommandPacket
9995 
9996 // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
has_type() const9997 bool CommandPacket::has_type() const {
9998   return (_has_bits_[0] & 0x00000001u) != 0;
9999 }
set_has_type()10000 void CommandPacket::set_has_type() {
10001   _has_bits_[0] |= 0x00000001u;
10002 }
clear_has_type()10003 void CommandPacket::clear_has_type() {
10004   _has_bits_[0] &= ~0x00000001u;
10005 }
clear_type()10006 void CommandPacket::clear_type() {
10007   type_ = 0;
10008   clear_has_type();
10009 }
type() const10010 ::mozilla::layers::layerscope::CommandPacket_CmdType CommandPacket::type() const {
10011   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.type)
10012   return static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(type_);
10013 }
set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value)10014 void CommandPacket::set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value) {
10015   assert(::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value));
10016   set_has_type();
10017   type_ = value;
10018   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.type)
10019 }
10020 
10021 // optional bool value = 2;
has_value() const10022 bool CommandPacket::has_value() const {
10023   return (_has_bits_[0] & 0x00000002u) != 0;
10024 }
set_has_value()10025 void CommandPacket::set_has_value() {
10026   _has_bits_[0] |= 0x00000002u;
10027 }
clear_has_value()10028 void CommandPacket::clear_has_value() {
10029   _has_bits_[0] &= ~0x00000002u;
10030 }
clear_value()10031 void CommandPacket::clear_value() {
10032   value_ = false;
10033   clear_has_value();
10034 }
value() const10035 bool CommandPacket::value() const {
10036   // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.value)
10037   return value_;
10038 }
set_value(bool value)10039 void CommandPacket::set_value(bool value) {
10040   set_has_value();
10041   value_ = value;
10042   // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.value)
10043 }
10044 
10045 #endif  // PROTOBUF_INLINE_NOT_IN_HEADERS
10046 
10047 // @@protoc_insertion_point(namespace_scope)
10048 
10049 }  // namespace layerscope
10050 }  // namespace layers
10051 }  // namespace mozilla
10052 
10053 // @@protoc_insertion_point(global_scope)
10054