LCOV - code coverage report
Current view: top level - gfx/layers/protobuf - LayerScopePacket.pb.cc (source / functions) Hit Total Coverage
Test: output.info Lines: 393 3167 12.4 %
Date: 2017-07-14 16:53:18 Functions: 74 389 19.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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/once.h>
      11             : #include <google/protobuf/io/coded_stream.h>
      12             : #include <google/protobuf/wire_format_lite_inl.h>
      13             : #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
      14             : // @@protoc_insertion_point(includes)
      15             : 
      16             : namespace mozilla {
      17             : namespace layers {
      18             : namespace layerscope {
      19             : 
      20           0 : void protobuf_ShutdownFile_LayerScopePacket_2eproto() {
      21           0 :   delete FramePacket::default_instance_;
      22           0 :   delete ColorPacket::default_instance_;
      23           0 :   delete TexturePacket::default_instance_;
      24           0 :   delete TexturePacket_Rect::default_instance_;
      25           0 :   delete TexturePacket_Size::default_instance_;
      26           0 :   delete TexturePacket_Matrix::default_instance_;
      27           0 :   delete TexturePacket_EffectMask::default_instance_;
      28           0 :   delete LayersPacket::default_instance_;
      29           0 :   delete LayersPacket_Layer::default_instance_;
      30           0 :   delete LayersPacket_Layer_Size::default_instance_;
      31           0 :   delete LayersPacket_Layer_Rect::default_instance_;
      32           0 :   delete LayersPacket_Layer_Region::default_instance_;
      33           0 :   delete LayersPacket_Layer_Matrix::default_instance_;
      34           0 :   delete LayersPacket_Layer_Shadow::default_instance_;
      35           0 :   delete MetaPacket::default_instance_;
      36           0 :   delete DrawPacket::default_instance_;
      37           0 :   delete DrawPacket_Rect::default_instance_;
      38           0 :   delete Packet::default_instance_;
      39           0 :   delete CommandPacket::default_instance_;
      40           0 : }
      41             : 
      42             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
      43             : void protobuf_AddDesc_LayerScopePacket_2eproto_impl() {
      44             :   GOOGLE_PROTOBUF_VERIFY_VERSION;
      45             : 
      46             : #else
      47           3 : void protobuf_AddDesc_LayerScopePacket_2eproto() {
      48             :   static bool already_here = false;
      49           3 :   if (already_here) return;
      50           3 :   already_here = true;
      51           3 :   GOOGLE_PROTOBUF_VERIFY_VERSION;
      52             : 
      53             : #endif
      54           3 :   FramePacket::default_instance_ = new FramePacket();
      55           3 :   ColorPacket::default_instance_ = new ColorPacket();
      56           3 :   TexturePacket::default_instance_ = new TexturePacket();
      57           3 :   TexturePacket_Rect::default_instance_ = new TexturePacket_Rect();
      58           3 :   TexturePacket_Size::default_instance_ = new TexturePacket_Size();
      59           3 :   TexturePacket_Matrix::default_instance_ = new TexturePacket_Matrix();
      60           3 :   TexturePacket_EffectMask::default_instance_ = new TexturePacket_EffectMask();
      61           3 :   LayersPacket::default_instance_ = new LayersPacket();
      62           3 :   LayersPacket_Layer::default_instance_ = new LayersPacket_Layer();
      63           3 :   LayersPacket_Layer_Size::default_instance_ = new LayersPacket_Layer_Size();
      64           3 :   LayersPacket_Layer_Rect::default_instance_ = new LayersPacket_Layer_Rect();
      65           3 :   LayersPacket_Layer_Region::default_instance_ = new LayersPacket_Layer_Region();
      66           3 :   LayersPacket_Layer_Matrix::default_instance_ = new LayersPacket_Layer_Matrix();
      67           3 :   LayersPacket_Layer_Shadow::default_instance_ = new LayersPacket_Layer_Shadow();
      68           3 :   MetaPacket::default_instance_ = new MetaPacket();
      69           3 :   DrawPacket::default_instance_ = new DrawPacket();
      70           3 :   DrawPacket_Rect::default_instance_ = new DrawPacket_Rect();
      71           3 :   Packet::default_instance_ = new Packet();
      72           3 :   CommandPacket::default_instance_ = new CommandPacket();
      73           3 :   FramePacket::default_instance_->InitAsDefaultInstance();
      74           3 :   ColorPacket::default_instance_->InitAsDefaultInstance();
      75           3 :   TexturePacket::default_instance_->InitAsDefaultInstance();
      76           3 :   TexturePacket_Rect::default_instance_->InitAsDefaultInstance();
      77           3 :   TexturePacket_Size::default_instance_->InitAsDefaultInstance();
      78           3 :   TexturePacket_Matrix::default_instance_->InitAsDefaultInstance();
      79           3 :   TexturePacket_EffectMask::default_instance_->InitAsDefaultInstance();
      80           3 :   LayersPacket::default_instance_->InitAsDefaultInstance();
      81           3 :   LayersPacket_Layer::default_instance_->InitAsDefaultInstance();
      82           3 :   LayersPacket_Layer_Size::default_instance_->InitAsDefaultInstance();
      83           3 :   LayersPacket_Layer_Rect::default_instance_->InitAsDefaultInstance();
      84           3 :   LayersPacket_Layer_Region::default_instance_->InitAsDefaultInstance();
      85           3 :   LayersPacket_Layer_Matrix::default_instance_->InitAsDefaultInstance();
      86           3 :   LayersPacket_Layer_Shadow::default_instance_->InitAsDefaultInstance();
      87           3 :   MetaPacket::default_instance_->InitAsDefaultInstance();
      88           3 :   DrawPacket::default_instance_->InitAsDefaultInstance();
      89           3 :   DrawPacket_Rect::default_instance_->InitAsDefaultInstance();
      90           3 :   Packet::default_instance_->InitAsDefaultInstance();
      91           3 :   CommandPacket::default_instance_->InitAsDefaultInstance();
      92           3 :   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_LayerScopePacket_2eproto);
      93             : }
      94             : 
      95             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
      96             : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_LayerScopePacket_2eproto_once_);
      97             : void protobuf_AddDesc_LayerScopePacket_2eproto() {
      98             :   ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_LayerScopePacket_2eproto_once_,
      99             :                  &protobuf_AddDesc_LayerScopePacket_2eproto_impl);
     100             : }
     101             : #else
     102             : // Force AddDescriptors() to be called at static initialization time.
     103             : struct StaticDescriptorInitializer_LayerScopePacket_2eproto {
     104           3 :   StaticDescriptorInitializer_LayerScopePacket_2eproto() {
     105           3 :     protobuf_AddDesc_LayerScopePacket_2eproto();
     106           3 :   }
     107           3 : } static_descriptor_initializer_LayerScopePacket_2eproto_;
     108             : #endif
     109             : 
     110             : // ===================================================================
     111             : 
     112             : #ifndef _MSC_VER
     113             : const int FramePacket::kValueFieldNumber;
     114             : const int FramePacket::kScaleFieldNumber;
     115             : #endif  // !_MSC_VER
     116             : 
     117           3 : FramePacket::FramePacket()
     118           3 :   : ::google::protobuf::MessageLite() {
     119           3 :   SharedCtor();
     120             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.FramePacket)
     121           3 : }
     122             : 
     123           3 : void FramePacket::InitAsDefaultInstance() {
     124           3 : }
     125             : 
     126           0 : FramePacket::FramePacket(const FramePacket& from)
     127           0 :   : ::google::protobuf::MessageLite() {
     128           0 :   SharedCtor();
     129           0 :   MergeFrom(from);
     130             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.FramePacket)
     131           0 : }
     132             : 
     133           3 : void FramePacket::SharedCtor() {
     134           3 :   _cached_size_ = 0;
     135           3 :   value_ = GOOGLE_ULONGLONG(0);
     136           3 :   scale_ = 0;
     137           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     138           3 : }
     139             : 
     140           0 : FramePacket::~FramePacket() {
     141             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.FramePacket)
     142           0 :   SharedDtor();
     143           0 : }
     144             : 
     145           0 : void FramePacket::SharedDtor() {
     146             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     147             :   if (this != &default_instance()) {
     148             :   #else
     149           0 :   if (this != default_instance_) {
     150             :   #endif
     151             :   }
     152           0 : }
     153             : 
     154           0 : void FramePacket::SetCachedSize(int size) const {
     155             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     156           0 :   _cached_size_ = size;
     157             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     158           0 : }
     159           3 : const FramePacket& FramePacket::default_instance() {
     160             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     161             :   protobuf_AddDesc_LayerScopePacket_2eproto();
     162             : #else
     163           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
     164             : #endif
     165           3 :   return *default_instance_;
     166             : }
     167             : 
     168             : FramePacket* FramePacket::default_instance_ = NULL;
     169             : 
     170           0 : FramePacket* FramePacket::New() const {
     171           0 :   return new FramePacket;
     172             : }
     173             : 
     174           0 : void FramePacket::Clear() {
     175             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
     176             :   &reinterpret_cast<FramePacket*>(16)->f) - \
     177             :    reinterpret_cast<char*>(16))
     178             : 
     179             : #define ZR_(first, last) do {                              \
     180             :     size_t f = OFFSET_OF_FIELD_(first);                    \
     181             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
     182             :     ::memset(&first, 0, n);                                \
     183             :   } while (0)
     184             : 
     185           0 :   ZR_(value_, scale_);
     186             : 
     187             : #undef OFFSET_OF_FIELD_
     188             : #undef ZR_
     189             : 
     190           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     191           0 :   mutable_unknown_fields()->clear();
     192           0 : }
     193             : 
     194           0 : bool FramePacket::MergePartialFromCodedStream(
     195             :     ::google::protobuf::io::CodedInputStream* input) {
     196             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
     197             :   ::google::protobuf::uint32 tag;
     198             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
     199           0 :       mutable_unknown_fields());
     200             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
     201           0 :       &unknown_fields_string);
     202             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.FramePacket)
     203             :   for (;;) {
     204             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
     205           0 :     tag = p.first;
     206           0 :     if (!p.second) goto handle_unusual;
     207           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
     208             :       // optional uint64 value = 1;
     209             :       case 1: {
     210           0 :         if (tag == 8) {
     211           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     212             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
     213             :                  input, &value_)));
     214           0 :           set_has_value();
     215             :         } else {
     216           0 :           goto handle_unusual;
     217             :         }
     218           0 :         if (input->ExpectTag(21)) goto parse_scale;
     219           0 :         break;
     220             :       }
     221             : 
     222             :       // optional float scale = 2;
     223             :       case 2: {
     224           0 :         if (tag == 21) {
     225             :          parse_scale:
     226           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     227             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
     228             :                  input, &scale_)));
     229           0 :           set_has_scale();
     230             :         } else {
     231           0 :           goto handle_unusual;
     232             :         }
     233           0 :         if (input->ExpectAtEnd()) goto success;
     234           0 :         break;
     235             :       }
     236             : 
     237             :       default: {
     238             :       handle_unusual:
     239           0 :         if (tag == 0 ||
     240           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
     241             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
     242           0 :           goto success;
     243             :         }
     244           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
     245             :             input, tag, &unknown_fields_stream));
     246           0 :         break;
     247             :       }
     248             :     }
     249           0 :   }
     250             : success:
     251             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.FramePacket)
     252           0 :   return true;
     253             : failure:
     254             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.FramePacket)
     255           0 :   return false;
     256             : #undef DO_
     257             : }
     258             : 
     259           0 : void FramePacket::SerializeWithCachedSizes(
     260             :     ::google::protobuf::io::CodedOutputStream* output) const {
     261             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.FramePacket)
     262             :   // optional uint64 value = 1;
     263           0 :   if (has_value()) {
     264           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(), output);
     265             :   }
     266             : 
     267             :   // optional float scale = 2;
     268           0 :   if (has_scale()) {
     269           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output);
     270             :   }
     271             : 
     272           0 :   output->WriteRaw(unknown_fields().data(),
     273           0 :                    unknown_fields().size());
     274             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.FramePacket)
     275           0 : }
     276             : 
     277           0 : int FramePacket::ByteSize() const {
     278           0 :   int total_size = 0;
     279             : 
     280           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     281             :     // optional uint64 value = 1;
     282           0 :     if (has_value()) {
     283           0 :       total_size += 1 +
     284           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
     285             :           this->value());
     286             :     }
     287             : 
     288             :     // optional float scale = 2;
     289           0 :     if (has_scale()) {
     290           0 :       total_size += 1 + 4;
     291             :     }
     292             : 
     293             :   }
     294           0 :   total_size += unknown_fields().size();
     295             : 
     296             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     297           0 :   _cached_size_ = total_size;
     298             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     299           0 :   return total_size;
     300             : }
     301             : 
     302           0 : void FramePacket::CheckTypeAndMergeFrom(
     303             :     const ::google::protobuf::MessageLite& from) {
     304           0 :   MergeFrom(*::google::protobuf::down_cast<const FramePacket*>(&from));
     305           0 : }
     306             : 
     307           0 : void FramePacket::MergeFrom(const FramePacket& from) {
     308           0 :   GOOGLE_CHECK_NE(&from, this);
     309           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     310           0 :     if (from.has_value()) {
     311           0 :       set_value(from.value());
     312             :     }
     313           0 :     if (from.has_scale()) {
     314           0 :       set_scale(from.scale());
     315             :     }
     316             :   }
     317           0 :   mutable_unknown_fields()->append(from.unknown_fields());
     318           0 : }
     319             : 
     320           0 : void FramePacket::CopyFrom(const FramePacket& from) {
     321           0 :   if (&from == this) return;
     322           0 :   Clear();
     323           0 :   MergeFrom(from);
     324             : }
     325             : 
     326           0 : bool FramePacket::IsInitialized() const {
     327             : 
     328           0 :   return true;
     329             : }
     330             : 
     331           0 : void FramePacket::Swap(FramePacket* other) {
     332           0 :   if (other != this) {
     333           0 :     std::swap(value_, other->value_);
     334           0 :     std::swap(scale_, other->scale_);
     335           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
     336           0 :     _unknown_fields_.swap(other->_unknown_fields_);
     337           0 :     std::swap(_cached_size_, other->_cached_size_);
     338             :   }
     339           0 : }
     340             : 
     341           0 : ::std::string FramePacket::GetTypeName() const {
     342           0 :   return "mozilla.layers.layerscope.FramePacket";
     343             : }
     344             : 
     345             : 
     346             : // ===================================================================
     347             : 
     348             : #ifndef _MSC_VER
     349             : const int ColorPacket::kLayerrefFieldNumber;
     350             : const int ColorPacket::kWidthFieldNumber;
     351             : const int ColorPacket::kHeightFieldNumber;
     352             : const int ColorPacket::kColorFieldNumber;
     353             : #endif  // !_MSC_VER
     354             : 
     355           3 : ColorPacket::ColorPacket()
     356           3 :   : ::google::protobuf::MessageLite() {
     357           3 :   SharedCtor();
     358             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.ColorPacket)
     359           3 : }
     360             : 
     361           3 : void ColorPacket::InitAsDefaultInstance() {
     362           3 : }
     363             : 
     364           0 : ColorPacket::ColorPacket(const ColorPacket& from)
     365           0 :   : ::google::protobuf::MessageLite() {
     366           0 :   SharedCtor();
     367           0 :   MergeFrom(from);
     368             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.ColorPacket)
     369           0 : }
     370             : 
     371           3 : void ColorPacket::SharedCtor() {
     372           3 :   _cached_size_ = 0;
     373           3 :   layerref_ = GOOGLE_ULONGLONG(0);
     374           3 :   width_ = 0u;
     375           3 :   height_ = 0u;
     376           3 :   color_ = 0u;
     377           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     378           3 : }
     379             : 
     380           0 : ColorPacket::~ColorPacket() {
     381             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.ColorPacket)
     382           0 :   SharedDtor();
     383           0 : }
     384             : 
     385           0 : void ColorPacket::SharedDtor() {
     386             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     387             :   if (this != &default_instance()) {
     388             :   #else
     389           0 :   if (this != default_instance_) {
     390             :   #endif
     391             :   }
     392           0 : }
     393             : 
     394           0 : void ColorPacket::SetCachedSize(int size) const {
     395             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     396           0 :   _cached_size_ = size;
     397             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     398           0 : }
     399           3 : const ColorPacket& ColorPacket::default_instance() {
     400             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     401             :   protobuf_AddDesc_LayerScopePacket_2eproto();
     402             : #else
     403           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
     404             : #endif
     405           3 :   return *default_instance_;
     406             : }
     407             : 
     408             : ColorPacket* ColorPacket::default_instance_ = NULL;
     409             : 
     410           0 : ColorPacket* ColorPacket::New() const {
     411           0 :   return new ColorPacket;
     412             : }
     413             : 
     414           0 : void ColorPacket::Clear() {
     415             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
     416             :   &reinterpret_cast<ColorPacket*>(16)->f) - \
     417             :    reinterpret_cast<char*>(16))
     418             : 
     419             : #define ZR_(first, last) do {                              \
     420             :     size_t f = OFFSET_OF_FIELD_(first);                    \
     421             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
     422             :     ::memset(&first, 0, n);                                \
     423             :   } while (0)
     424             : 
     425           0 :   ZR_(layerref_, color_);
     426             : 
     427             : #undef OFFSET_OF_FIELD_
     428             : #undef ZR_
     429             : 
     430           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     431           0 :   mutable_unknown_fields()->clear();
     432           0 : }
     433             : 
     434           0 : bool ColorPacket::MergePartialFromCodedStream(
     435             :     ::google::protobuf::io::CodedInputStream* input) {
     436             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
     437             :   ::google::protobuf::uint32 tag;
     438             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
     439           0 :       mutable_unknown_fields());
     440             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
     441           0 :       &unknown_fields_string);
     442             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.ColorPacket)
     443             :   for (;;) {
     444             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
     445           0 :     tag = p.first;
     446           0 :     if (!p.second) goto handle_unusual;
     447           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
     448             :       // required uint64 layerref = 1;
     449             :       case 1: {
     450           0 :         if (tag == 8) {
     451           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     452             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
     453             :                  input, &layerref_)));
     454           0 :           set_has_layerref();
     455             :         } else {
     456           0 :           goto handle_unusual;
     457             :         }
     458           0 :         if (input->ExpectTag(16)) goto parse_width;
     459           0 :         break;
     460             :       }
     461             : 
     462             :       // optional uint32 width = 2;
     463             :       case 2: {
     464           0 :         if (tag == 16) {
     465             :          parse_width:
     466           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     467             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
     468             :                  input, &width_)));
     469           0 :           set_has_width();
     470             :         } else {
     471           0 :           goto handle_unusual;
     472             :         }
     473           0 :         if (input->ExpectTag(24)) goto parse_height;
     474           0 :         break;
     475             :       }
     476             : 
     477             :       // optional uint32 height = 3;
     478             :       case 3: {
     479           0 :         if (tag == 24) {
     480             :          parse_height:
     481           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     482             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
     483             :                  input, &height_)));
     484           0 :           set_has_height();
     485             :         } else {
     486           0 :           goto handle_unusual;
     487             :         }
     488           0 :         if (input->ExpectTag(32)) goto parse_color;
     489           0 :         break;
     490             :       }
     491             : 
     492             :       // optional uint32 color = 4;
     493             :       case 4: {
     494           0 :         if (tag == 32) {
     495             :          parse_color:
     496           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     497             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
     498             :                  input, &color_)));
     499           0 :           set_has_color();
     500             :         } else {
     501           0 :           goto handle_unusual;
     502             :         }
     503           0 :         if (input->ExpectAtEnd()) goto success;
     504           0 :         break;
     505             :       }
     506             : 
     507             :       default: {
     508             :       handle_unusual:
     509           0 :         if (tag == 0 ||
     510           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
     511             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
     512           0 :           goto success;
     513             :         }
     514           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
     515             :             input, tag, &unknown_fields_stream));
     516           0 :         break;
     517             :       }
     518             :     }
     519           0 :   }
     520             : success:
     521             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.ColorPacket)
     522           0 :   return true;
     523             : failure:
     524             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.ColorPacket)
     525           0 :   return false;
     526             : #undef DO_
     527             : }
     528             : 
     529           0 : void ColorPacket::SerializeWithCachedSizes(
     530             :     ::google::protobuf::io::CodedOutputStream* output) const {
     531             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.ColorPacket)
     532             :   // required uint64 layerref = 1;
     533           0 :   if (has_layerref()) {
     534           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output);
     535             :   }
     536             : 
     537             :   // optional uint32 width = 2;
     538           0 :   if (has_width()) {
     539           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output);
     540             :   }
     541             : 
     542             :   // optional uint32 height = 3;
     543           0 :   if (has_height()) {
     544           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
     545             :   }
     546             : 
     547             :   // optional uint32 color = 4;
     548           0 :   if (has_color()) {
     549           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->color(), output);
     550             :   }
     551             : 
     552           0 :   output->WriteRaw(unknown_fields().data(),
     553           0 :                    unknown_fields().size());
     554             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.ColorPacket)
     555           0 : }
     556             : 
     557           0 : int ColorPacket::ByteSize() const {
     558           0 :   int total_size = 0;
     559             : 
     560           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     561             :     // required uint64 layerref = 1;
     562           0 :     if (has_layerref()) {
     563           0 :       total_size += 1 +
     564           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
     565             :           this->layerref());
     566             :     }
     567             : 
     568             :     // optional uint32 width = 2;
     569           0 :     if (has_width()) {
     570           0 :       total_size += 1 +
     571           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
     572             :           this->width());
     573             :     }
     574             : 
     575             :     // optional uint32 height = 3;
     576           0 :     if (has_height()) {
     577           0 :       total_size += 1 +
     578           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
     579             :           this->height());
     580             :     }
     581             : 
     582             :     // optional uint32 color = 4;
     583           0 :     if (has_color()) {
     584           0 :       total_size += 1 +
     585           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
     586             :           this->color());
     587             :     }
     588             : 
     589             :   }
     590           0 :   total_size += unknown_fields().size();
     591             : 
     592             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     593           0 :   _cached_size_ = total_size;
     594             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     595           0 :   return total_size;
     596             : }
     597             : 
     598           0 : void ColorPacket::CheckTypeAndMergeFrom(
     599             :     const ::google::protobuf::MessageLite& from) {
     600           0 :   MergeFrom(*::google::protobuf::down_cast<const ColorPacket*>(&from));
     601           0 : }
     602             : 
     603           0 : void ColorPacket::MergeFrom(const ColorPacket& from) {
     604           0 :   GOOGLE_CHECK_NE(&from, this);
     605           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     606           0 :     if (from.has_layerref()) {
     607           0 :       set_layerref(from.layerref());
     608             :     }
     609           0 :     if (from.has_width()) {
     610           0 :       set_width(from.width());
     611             :     }
     612           0 :     if (from.has_height()) {
     613           0 :       set_height(from.height());
     614             :     }
     615           0 :     if (from.has_color()) {
     616           0 :       set_color(from.color());
     617             :     }
     618             :   }
     619           0 :   mutable_unknown_fields()->append(from.unknown_fields());
     620           0 : }
     621             : 
     622           0 : void ColorPacket::CopyFrom(const ColorPacket& from) {
     623           0 :   if (&from == this) return;
     624           0 :   Clear();
     625           0 :   MergeFrom(from);
     626             : }
     627             : 
     628           0 : bool ColorPacket::IsInitialized() const {
     629           0 :   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
     630             : 
     631           0 :   return true;
     632             : }
     633             : 
     634           0 : void ColorPacket::Swap(ColorPacket* other) {
     635           0 :   if (other != this) {
     636           0 :     std::swap(layerref_, other->layerref_);
     637           0 :     std::swap(width_, other->width_);
     638           0 :     std::swap(height_, other->height_);
     639           0 :     std::swap(color_, other->color_);
     640           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
     641           0 :     _unknown_fields_.swap(other->_unknown_fields_);
     642           0 :     std::swap(_cached_size_, other->_cached_size_);
     643             :   }
     644           0 : }
     645             : 
     646           0 : ::std::string ColorPacket::GetTypeName() const {
     647           0 :   return "mozilla.layers.layerscope.ColorPacket";
     648             : }
     649             : 
     650             : 
     651             : // ===================================================================
     652             : 
     653           0 : bool TexturePacket_Filter_IsValid(int value) {
     654           0 :   switch(value) {
     655             :     case 0:
     656             :     case 1:
     657             :     case 2:
     658           0 :       return true;
     659             :     default:
     660           0 :       return false;
     661             :   }
     662             : }
     663             : 
     664             : #ifndef _MSC_VER
     665             : const TexturePacket_Filter TexturePacket::GOOD;
     666             : const TexturePacket_Filter TexturePacket::LINEAR;
     667             : const TexturePacket_Filter TexturePacket::POINT;
     668             : const TexturePacket_Filter TexturePacket::Filter_MIN;
     669             : const TexturePacket_Filter TexturePacket::Filter_MAX;
     670             : const int TexturePacket::Filter_ARRAYSIZE;
     671             : #endif  // _MSC_VER
     672             : #ifndef _MSC_VER
     673             : const int TexturePacket_Rect::kXFieldNumber;
     674             : const int TexturePacket_Rect::kYFieldNumber;
     675             : const int TexturePacket_Rect::kWFieldNumber;
     676             : const int TexturePacket_Rect::kHFieldNumber;
     677             : #endif  // !_MSC_VER
     678             : 
     679           3 : TexturePacket_Rect::TexturePacket_Rect()
     680           3 :   : ::google::protobuf::MessageLite() {
     681           3 :   SharedCtor();
     682             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Rect)
     683           3 : }
     684             : 
     685           3 : void TexturePacket_Rect::InitAsDefaultInstance() {
     686           3 : }
     687             : 
     688           0 : TexturePacket_Rect::TexturePacket_Rect(const TexturePacket_Rect& from)
     689           0 :   : ::google::protobuf::MessageLite() {
     690           0 :   SharedCtor();
     691           0 :   MergeFrom(from);
     692             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Rect)
     693           0 : }
     694             : 
     695           3 : void TexturePacket_Rect::SharedCtor() {
     696           3 :   _cached_size_ = 0;
     697           3 :   x_ = 0;
     698           3 :   y_ = 0;
     699           3 :   w_ = 0;
     700           3 :   h_ = 0;
     701           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     702           3 : }
     703             : 
     704           0 : TexturePacket_Rect::~TexturePacket_Rect() {
     705             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Rect)
     706           0 :   SharedDtor();
     707           0 : }
     708             : 
     709           0 : void TexturePacket_Rect::SharedDtor() {
     710             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     711             :   if (this != &default_instance()) {
     712             :   #else
     713           0 :   if (this != default_instance_) {
     714             :   #endif
     715             :   }
     716           0 : }
     717             : 
     718           0 : void TexturePacket_Rect::SetCachedSize(int size) const {
     719             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     720           0 :   _cached_size_ = size;
     721             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     722           0 : }
     723           3 : const TexturePacket_Rect& TexturePacket_Rect::default_instance() {
     724             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
     725             :   protobuf_AddDesc_LayerScopePacket_2eproto();
     726             : #else
     727           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
     728             : #endif
     729           3 :   return *default_instance_;
     730             : }
     731             : 
     732             : TexturePacket_Rect* TexturePacket_Rect::default_instance_ = NULL;
     733             : 
     734           0 : TexturePacket_Rect* TexturePacket_Rect::New() const {
     735           0 :   return new TexturePacket_Rect;
     736             : }
     737             : 
     738           0 : void TexturePacket_Rect::Clear() {
     739             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
     740             :   &reinterpret_cast<TexturePacket_Rect*>(16)->f) - \
     741             :    reinterpret_cast<char*>(16))
     742             : 
     743             : #define ZR_(first, last) do {                              \
     744             :     size_t f = OFFSET_OF_FIELD_(first);                    \
     745             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
     746             :     ::memset(&first, 0, n);                                \
     747             :   } while (0)
     748             : 
     749           0 :   ZR_(x_, h_);
     750             : 
     751             : #undef OFFSET_OF_FIELD_
     752             : #undef ZR_
     753             : 
     754           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     755           0 :   mutable_unknown_fields()->clear();
     756           0 : }
     757             : 
     758           0 : bool TexturePacket_Rect::MergePartialFromCodedStream(
     759             :     ::google::protobuf::io::CodedInputStream* input) {
     760             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
     761             :   ::google::protobuf::uint32 tag;
     762             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
     763           0 :       mutable_unknown_fields());
     764             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
     765           0 :       &unknown_fields_string);
     766             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Rect)
     767             :   for (;;) {
     768             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
     769           0 :     tag = p.first;
     770           0 :     if (!p.second) goto handle_unusual;
     771           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
     772             :       // optional float x = 1;
     773             :       case 1: {
     774           0 :         if (tag == 13) {
     775           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     776             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
     777             :                  input, &x_)));
     778           0 :           set_has_x();
     779             :         } else {
     780           0 :           goto handle_unusual;
     781             :         }
     782           0 :         if (input->ExpectTag(21)) goto parse_y;
     783           0 :         break;
     784             :       }
     785             : 
     786             :       // optional float y = 2;
     787             :       case 2: {
     788           0 :         if (tag == 21) {
     789             :          parse_y:
     790           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     791             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
     792             :                  input, &y_)));
     793           0 :           set_has_y();
     794             :         } else {
     795           0 :           goto handle_unusual;
     796             :         }
     797           0 :         if (input->ExpectTag(29)) goto parse_w;
     798           0 :         break;
     799             :       }
     800             : 
     801             :       // optional float w = 3;
     802             :       case 3: {
     803           0 :         if (tag == 29) {
     804             :          parse_w:
     805           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     806             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
     807             :                  input, &w_)));
     808           0 :           set_has_w();
     809             :         } else {
     810           0 :           goto handle_unusual;
     811             :         }
     812           0 :         if (input->ExpectTag(37)) goto parse_h;
     813           0 :         break;
     814             :       }
     815             : 
     816             :       // optional float h = 4;
     817             :       case 4: {
     818           0 :         if (tag == 37) {
     819             :          parse_h:
     820           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
     821             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
     822             :                  input, &h_)));
     823           0 :           set_has_h();
     824             :         } else {
     825           0 :           goto handle_unusual;
     826             :         }
     827           0 :         if (input->ExpectAtEnd()) goto success;
     828           0 :         break;
     829             :       }
     830             : 
     831             :       default: {
     832             :       handle_unusual:
     833           0 :         if (tag == 0 ||
     834           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
     835             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
     836           0 :           goto success;
     837             :         }
     838           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
     839             :             input, tag, &unknown_fields_stream));
     840           0 :         break;
     841             :       }
     842             :     }
     843           0 :   }
     844             : success:
     845             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Rect)
     846           0 :   return true;
     847             : failure:
     848             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Rect)
     849           0 :   return false;
     850             : #undef DO_
     851             : }
     852             : 
     853           0 : void TexturePacket_Rect::SerializeWithCachedSizes(
     854             :     ::google::protobuf::io::CodedOutputStream* output) const {
     855             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Rect)
     856             :   // optional float x = 1;
     857           0 :   if (has_x()) {
     858           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
     859             :   }
     860             : 
     861             :   // optional float y = 2;
     862           0 :   if (has_y()) {
     863           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
     864             :   }
     865             : 
     866             :   // optional float w = 3;
     867           0 :   if (has_w()) {
     868           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output);
     869             :   }
     870             : 
     871             :   // optional float h = 4;
     872           0 :   if (has_h()) {
     873           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output);
     874             :   }
     875             : 
     876           0 :   output->WriteRaw(unknown_fields().data(),
     877           0 :                    unknown_fields().size());
     878             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Rect)
     879           0 : }
     880             : 
     881           0 : int TexturePacket_Rect::ByteSize() const {
     882           0 :   int total_size = 0;
     883             : 
     884           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     885             :     // optional float x = 1;
     886           0 :     if (has_x()) {
     887           0 :       total_size += 1 + 4;
     888             :     }
     889             : 
     890             :     // optional float y = 2;
     891           0 :     if (has_y()) {
     892           0 :       total_size += 1 + 4;
     893             :     }
     894             : 
     895             :     // optional float w = 3;
     896           0 :     if (has_w()) {
     897           0 :       total_size += 1 + 4;
     898             :     }
     899             : 
     900             :     // optional float h = 4;
     901           0 :     if (has_h()) {
     902           0 :       total_size += 1 + 4;
     903             :     }
     904             : 
     905             :   }
     906           0 :   total_size += unknown_fields().size();
     907             : 
     908             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     909           0 :   _cached_size_ = total_size;
     910             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     911           0 :   return total_size;
     912             : }
     913             : 
     914           0 : void TexturePacket_Rect::CheckTypeAndMergeFrom(
     915             :     const ::google::protobuf::MessageLite& from) {
     916           0 :   MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Rect*>(&from));
     917           0 : }
     918             : 
     919           0 : void TexturePacket_Rect::MergeFrom(const TexturePacket_Rect& from) {
     920           0 :   GOOGLE_CHECK_NE(&from, this);
     921           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
     922           0 :     if (from.has_x()) {
     923           0 :       set_x(from.x());
     924             :     }
     925           0 :     if (from.has_y()) {
     926           0 :       set_y(from.y());
     927             :     }
     928           0 :     if (from.has_w()) {
     929           0 :       set_w(from.w());
     930             :     }
     931           0 :     if (from.has_h()) {
     932           0 :       set_h(from.h());
     933             :     }
     934             :   }
     935           0 :   mutable_unknown_fields()->append(from.unknown_fields());
     936           0 : }
     937             : 
     938           0 : void TexturePacket_Rect::CopyFrom(const TexturePacket_Rect& from) {
     939           0 :   if (&from == this) return;
     940           0 :   Clear();
     941           0 :   MergeFrom(from);
     942             : }
     943             : 
     944           0 : bool TexturePacket_Rect::IsInitialized() const {
     945             : 
     946           0 :   return true;
     947             : }
     948             : 
     949           0 : void TexturePacket_Rect::Swap(TexturePacket_Rect* other) {
     950           0 :   if (other != this) {
     951           0 :     std::swap(x_, other->x_);
     952           0 :     std::swap(y_, other->y_);
     953           0 :     std::swap(w_, other->w_);
     954           0 :     std::swap(h_, other->h_);
     955           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
     956           0 :     _unknown_fields_.swap(other->_unknown_fields_);
     957           0 :     std::swap(_cached_size_, other->_cached_size_);
     958             :   }
     959           0 : }
     960             : 
     961           0 : ::std::string TexturePacket_Rect::GetTypeName() const {
     962           0 :   return "mozilla.layers.layerscope.TexturePacket.Rect";
     963             : }
     964             : 
     965             : 
     966             : // -------------------------------------------------------------------
     967             : 
     968             : #ifndef _MSC_VER
     969             : const int TexturePacket_Size::kWFieldNumber;
     970             : const int TexturePacket_Size::kHFieldNumber;
     971             : #endif  // !_MSC_VER
     972             : 
     973           3 : TexturePacket_Size::TexturePacket_Size()
     974           3 :   : ::google::protobuf::MessageLite() {
     975           3 :   SharedCtor();
     976             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Size)
     977           3 : }
     978             : 
     979           3 : void TexturePacket_Size::InitAsDefaultInstance() {
     980           3 : }
     981             : 
     982           0 : TexturePacket_Size::TexturePacket_Size(const TexturePacket_Size& from)
     983           0 :   : ::google::protobuf::MessageLite() {
     984           0 :   SharedCtor();
     985           0 :   MergeFrom(from);
     986             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Size)
     987           0 : }
     988             : 
     989           3 : void TexturePacket_Size::SharedCtor() {
     990           3 :   _cached_size_ = 0;
     991           3 :   w_ = 0;
     992           3 :   h_ = 0;
     993           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     994           3 : }
     995             : 
     996           0 : TexturePacket_Size::~TexturePacket_Size() {
     997             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Size)
     998           0 :   SharedDtor();
     999           0 : }
    1000             : 
    1001           0 : void TexturePacket_Size::SharedDtor() {
    1002             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1003             :   if (this != &default_instance()) {
    1004             :   #else
    1005           0 :   if (this != default_instance_) {
    1006             :   #endif
    1007             :   }
    1008           0 : }
    1009             : 
    1010           0 : void TexturePacket_Size::SetCachedSize(int size) const {
    1011             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1012           0 :   _cached_size_ = size;
    1013             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1014           0 : }
    1015           3 : const TexturePacket_Size& TexturePacket_Size::default_instance() {
    1016             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1017             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    1018             : #else
    1019           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    1020             : #endif
    1021           3 :   return *default_instance_;
    1022             : }
    1023             : 
    1024             : TexturePacket_Size* TexturePacket_Size::default_instance_ = NULL;
    1025             : 
    1026           0 : TexturePacket_Size* TexturePacket_Size::New() const {
    1027           0 :   return new TexturePacket_Size;
    1028             : }
    1029             : 
    1030           0 : void TexturePacket_Size::Clear() {
    1031             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    1032             :   &reinterpret_cast<TexturePacket_Size*>(16)->f) - \
    1033             :    reinterpret_cast<char*>(16))
    1034             : 
    1035             : #define ZR_(first, last) do {                              \
    1036             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    1037             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    1038             :     ::memset(&first, 0, n);                                \
    1039             :   } while (0)
    1040             : 
    1041           0 :   ZR_(w_, h_);
    1042             : 
    1043             : #undef OFFSET_OF_FIELD_
    1044             : #undef ZR_
    1045             : 
    1046           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1047           0 :   mutable_unknown_fields()->clear();
    1048           0 : }
    1049             : 
    1050           0 : bool TexturePacket_Size::MergePartialFromCodedStream(
    1051             :     ::google::protobuf::io::CodedInputStream* input) {
    1052             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    1053             :   ::google::protobuf::uint32 tag;
    1054             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    1055           0 :       mutable_unknown_fields());
    1056             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    1057           0 :       &unknown_fields_string);
    1058             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Size)
    1059             :   for (;;) {
    1060             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    1061           0 :     tag = p.first;
    1062           0 :     if (!p.second) goto handle_unusual;
    1063           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    1064             :       // optional int32 w = 1;
    1065             :       case 1: {
    1066           0 :         if (tag == 8) {
    1067           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1068             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    1069             :                  input, &w_)));
    1070           0 :           set_has_w();
    1071             :         } else {
    1072           0 :           goto handle_unusual;
    1073             :         }
    1074           0 :         if (input->ExpectTag(16)) goto parse_h;
    1075           0 :         break;
    1076             :       }
    1077             : 
    1078             :       // optional int32 h = 2;
    1079             :       case 2: {
    1080           0 :         if (tag == 16) {
    1081             :          parse_h:
    1082           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1083             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    1084             :                  input, &h_)));
    1085           0 :           set_has_h();
    1086             :         } else {
    1087           0 :           goto handle_unusual;
    1088             :         }
    1089           0 :         if (input->ExpectAtEnd()) goto success;
    1090           0 :         break;
    1091             :       }
    1092             : 
    1093             :       default: {
    1094             :       handle_unusual:
    1095           0 :         if (tag == 0 ||
    1096           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    1097             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    1098           0 :           goto success;
    1099             :         }
    1100           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    1101             :             input, tag, &unknown_fields_stream));
    1102           0 :         break;
    1103             :       }
    1104             :     }
    1105           0 :   }
    1106             : success:
    1107             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Size)
    1108           0 :   return true;
    1109             : failure:
    1110             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Size)
    1111           0 :   return false;
    1112             : #undef DO_
    1113             : }
    1114             : 
    1115           0 : void TexturePacket_Size::SerializeWithCachedSizes(
    1116             :     ::google::protobuf::io::CodedOutputStream* output) const {
    1117             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Size)
    1118             :   // optional int32 w = 1;
    1119           0 :   if (has_w()) {
    1120           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output);
    1121             :   }
    1122             : 
    1123             :   // optional int32 h = 2;
    1124           0 :   if (has_h()) {
    1125           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output);
    1126             :   }
    1127             : 
    1128           0 :   output->WriteRaw(unknown_fields().data(),
    1129           0 :                    unknown_fields().size());
    1130             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Size)
    1131           0 : }
    1132             : 
    1133           0 : int TexturePacket_Size::ByteSize() const {
    1134           0 :   int total_size = 0;
    1135             : 
    1136           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1137             :     // optional int32 w = 1;
    1138           0 :     if (has_w()) {
    1139           0 :       total_size += 1 +
    1140           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    1141             :           this->w());
    1142             :     }
    1143             : 
    1144             :     // optional int32 h = 2;
    1145           0 :     if (has_h()) {
    1146           0 :       total_size += 1 +
    1147           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    1148             :           this->h());
    1149             :     }
    1150             : 
    1151             :   }
    1152           0 :   total_size += unknown_fields().size();
    1153             : 
    1154             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1155           0 :   _cached_size_ = total_size;
    1156             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1157           0 :   return total_size;
    1158             : }
    1159             : 
    1160           0 : void TexturePacket_Size::CheckTypeAndMergeFrom(
    1161             :     const ::google::protobuf::MessageLite& from) {
    1162           0 :   MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Size*>(&from));
    1163           0 : }
    1164             : 
    1165           0 : void TexturePacket_Size::MergeFrom(const TexturePacket_Size& from) {
    1166           0 :   GOOGLE_CHECK_NE(&from, this);
    1167           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1168           0 :     if (from.has_w()) {
    1169           0 :       set_w(from.w());
    1170             :     }
    1171           0 :     if (from.has_h()) {
    1172           0 :       set_h(from.h());
    1173             :     }
    1174             :   }
    1175           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    1176           0 : }
    1177             : 
    1178           0 : void TexturePacket_Size::CopyFrom(const TexturePacket_Size& from) {
    1179           0 :   if (&from == this) return;
    1180           0 :   Clear();
    1181           0 :   MergeFrom(from);
    1182             : }
    1183             : 
    1184           0 : bool TexturePacket_Size::IsInitialized() const {
    1185             : 
    1186           0 :   return true;
    1187             : }
    1188             : 
    1189           0 : void TexturePacket_Size::Swap(TexturePacket_Size* other) {
    1190           0 :   if (other != this) {
    1191           0 :     std::swap(w_, other->w_);
    1192           0 :     std::swap(h_, other->h_);
    1193           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    1194           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    1195           0 :     std::swap(_cached_size_, other->_cached_size_);
    1196             :   }
    1197           0 : }
    1198             : 
    1199           0 : ::std::string TexturePacket_Size::GetTypeName() const {
    1200           0 :   return "mozilla.layers.layerscope.TexturePacket.Size";
    1201             : }
    1202             : 
    1203             : 
    1204             : // -------------------------------------------------------------------
    1205             : 
    1206             : #ifndef _MSC_VER
    1207             : const int TexturePacket_Matrix::kIs2DFieldNumber;
    1208             : const int TexturePacket_Matrix::kIsIdFieldNumber;
    1209             : const int TexturePacket_Matrix::kMFieldNumber;
    1210             : #endif  // !_MSC_VER
    1211             : 
    1212           3 : TexturePacket_Matrix::TexturePacket_Matrix()
    1213           3 :   : ::google::protobuf::MessageLite() {
    1214           3 :   SharedCtor();
    1215             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
    1216           3 : }
    1217             : 
    1218           3 : void TexturePacket_Matrix::InitAsDefaultInstance() {
    1219           3 : }
    1220             : 
    1221           0 : TexturePacket_Matrix::TexturePacket_Matrix(const TexturePacket_Matrix& from)
    1222           0 :   : ::google::protobuf::MessageLite() {
    1223           0 :   SharedCtor();
    1224           0 :   MergeFrom(from);
    1225             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
    1226           0 : }
    1227             : 
    1228           3 : void TexturePacket_Matrix::SharedCtor() {
    1229           3 :   _cached_size_ = 0;
    1230           3 :   is2d_ = false;
    1231           3 :   isid_ = false;
    1232           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1233           3 : }
    1234             : 
    1235           0 : TexturePacket_Matrix::~TexturePacket_Matrix() {
    1236             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Matrix)
    1237           0 :   SharedDtor();
    1238           0 : }
    1239             : 
    1240           0 : void TexturePacket_Matrix::SharedDtor() {
    1241             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1242             :   if (this != &default_instance()) {
    1243             :   #else
    1244           0 :   if (this != default_instance_) {
    1245             :   #endif
    1246             :   }
    1247           0 : }
    1248             : 
    1249           0 : void TexturePacket_Matrix::SetCachedSize(int size) const {
    1250             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1251           0 :   _cached_size_ = size;
    1252             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1253           0 : }
    1254           3 : const TexturePacket_Matrix& TexturePacket_Matrix::default_instance() {
    1255             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1256             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    1257             : #else
    1258           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    1259             : #endif
    1260           3 :   return *default_instance_;
    1261             : }
    1262             : 
    1263             : TexturePacket_Matrix* TexturePacket_Matrix::default_instance_ = NULL;
    1264             : 
    1265           0 : TexturePacket_Matrix* TexturePacket_Matrix::New() const {
    1266           0 :   return new TexturePacket_Matrix;
    1267             : }
    1268             : 
    1269           0 : void TexturePacket_Matrix::Clear() {
    1270             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    1271             :   &reinterpret_cast<TexturePacket_Matrix*>(16)->f) - \
    1272             :    reinterpret_cast<char*>(16))
    1273             : 
    1274             : #define ZR_(first, last) do {                              \
    1275             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    1276             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    1277             :     ::memset(&first, 0, n);                                \
    1278             :   } while (0)
    1279             : 
    1280           0 :   ZR_(is2d_, isid_);
    1281             : 
    1282             : #undef OFFSET_OF_FIELD_
    1283             : #undef ZR_
    1284             : 
    1285           0 :   m_.Clear();
    1286           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1287           0 :   mutable_unknown_fields()->clear();
    1288           0 : }
    1289             : 
    1290           0 : bool TexturePacket_Matrix::MergePartialFromCodedStream(
    1291             :     ::google::protobuf::io::CodedInputStream* input) {
    1292             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    1293             :   ::google::protobuf::uint32 tag;
    1294             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    1295           0 :       mutable_unknown_fields());
    1296             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    1297           0 :       &unknown_fields_string);
    1298             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Matrix)
    1299             :   for (;;) {
    1300             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    1301           0 :     tag = p.first;
    1302           0 :     if (!p.second) goto handle_unusual;
    1303           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    1304             :       // optional bool is2D = 1;
    1305             :       case 1: {
    1306           0 :         if (tag == 8) {
    1307           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1308             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    1309             :                  input, &is2d_)));
    1310           0 :           set_has_is2d();
    1311             :         } else {
    1312           0 :           goto handle_unusual;
    1313             :         }
    1314           0 :         if (input->ExpectTag(16)) goto parse_isId;
    1315           0 :         break;
    1316             :       }
    1317             : 
    1318             :       // optional bool isId = 2;
    1319             :       case 2: {
    1320           0 :         if (tag == 16) {
    1321             :          parse_isId:
    1322           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1323             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    1324             :                  input, &isid_)));
    1325           0 :           set_has_isid();
    1326             :         } else {
    1327           0 :           goto handle_unusual;
    1328             :         }
    1329           0 :         if (input->ExpectTag(29)) goto parse_m;
    1330           0 :         break;
    1331             :       }
    1332             : 
    1333             :       // repeated float m = 3;
    1334             :       case 3: {
    1335           0 :         if (tag == 29) {
    1336             :          parse_m:
    1337           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
    1338             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    1339             :                  1, 29, input, this->mutable_m())));
    1340           0 :         } else if (tag == 26) {
    1341           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
    1342             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    1343             :                  input, this->mutable_m())));
    1344             :         } else {
    1345           0 :           goto handle_unusual;
    1346             :         }
    1347           0 :         if (input->ExpectTag(29)) goto parse_m;
    1348           0 :         if (input->ExpectAtEnd()) goto success;
    1349           0 :         break;
    1350             :       }
    1351             : 
    1352             :       default: {
    1353             :       handle_unusual:
    1354           0 :         if (tag == 0 ||
    1355           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    1356             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    1357           0 :           goto success;
    1358             :         }
    1359           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    1360             :             input, tag, &unknown_fields_stream));
    1361           0 :         break;
    1362             :       }
    1363             :     }
    1364           0 :   }
    1365             : success:
    1366             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Matrix)
    1367           0 :   return true;
    1368             : failure:
    1369             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Matrix)
    1370           0 :   return false;
    1371             : #undef DO_
    1372             : }
    1373             : 
    1374           0 : void TexturePacket_Matrix::SerializeWithCachedSizes(
    1375             :     ::google::protobuf::io::CodedOutputStream* output) const {
    1376             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Matrix)
    1377             :   // optional bool is2D = 1;
    1378           0 :   if (has_is2d()) {
    1379           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output);
    1380             :   }
    1381             : 
    1382             :   // optional bool isId = 2;
    1383           0 :   if (has_isid()) {
    1384           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output);
    1385             :   }
    1386             : 
    1387             :   // repeated float m = 3;
    1388           0 :   for (int i = 0; i < this->m_size(); i++) {
    1389           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(
    1390           0 :       3, this->m(i), output);
    1391             :   }
    1392             : 
    1393           0 :   output->WriteRaw(unknown_fields().data(),
    1394           0 :                    unknown_fields().size());
    1395             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Matrix)
    1396           0 : }
    1397             : 
    1398           0 : int TexturePacket_Matrix::ByteSize() const {
    1399           0 :   int total_size = 0;
    1400             : 
    1401           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1402             :     // optional bool is2D = 1;
    1403           0 :     if (has_is2d()) {
    1404           0 :       total_size += 1 + 1;
    1405             :     }
    1406             : 
    1407             :     // optional bool isId = 2;
    1408           0 :     if (has_isid()) {
    1409           0 :       total_size += 1 + 1;
    1410             :     }
    1411             : 
    1412             :   }
    1413             :   // repeated float m = 3;
    1414             :   {
    1415           0 :     int data_size = 0;
    1416           0 :     data_size = 4 * this->m_size();
    1417           0 :     total_size += 1 * this->m_size() + data_size;
    1418             :   }
    1419             : 
    1420           0 :   total_size += unknown_fields().size();
    1421             : 
    1422             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1423           0 :   _cached_size_ = total_size;
    1424             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1425           0 :   return total_size;
    1426             : }
    1427             : 
    1428           0 : void TexturePacket_Matrix::CheckTypeAndMergeFrom(
    1429             :     const ::google::protobuf::MessageLite& from) {
    1430           0 :   MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Matrix*>(&from));
    1431           0 : }
    1432             : 
    1433           0 : void TexturePacket_Matrix::MergeFrom(const TexturePacket_Matrix& from) {
    1434           0 :   GOOGLE_CHECK_NE(&from, this);
    1435           0 :   m_.MergeFrom(from.m_);
    1436           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1437           0 :     if (from.has_is2d()) {
    1438           0 :       set_is2d(from.is2d());
    1439             :     }
    1440           0 :     if (from.has_isid()) {
    1441           0 :       set_isid(from.isid());
    1442             :     }
    1443             :   }
    1444           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    1445           0 : }
    1446             : 
    1447           0 : void TexturePacket_Matrix::CopyFrom(const TexturePacket_Matrix& from) {
    1448           0 :   if (&from == this) return;
    1449           0 :   Clear();
    1450           0 :   MergeFrom(from);
    1451             : }
    1452             : 
    1453           0 : bool TexturePacket_Matrix::IsInitialized() const {
    1454             : 
    1455           0 :   return true;
    1456             : }
    1457             : 
    1458           0 : void TexturePacket_Matrix::Swap(TexturePacket_Matrix* other) {
    1459           0 :   if (other != this) {
    1460           0 :     std::swap(is2d_, other->is2d_);
    1461           0 :     std::swap(isid_, other->isid_);
    1462           0 :     m_.Swap(&other->m_);
    1463           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    1464           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    1465           0 :     std::swap(_cached_size_, other->_cached_size_);
    1466             :   }
    1467           0 : }
    1468             : 
    1469           0 : ::std::string TexturePacket_Matrix::GetTypeName() const {
    1470           0 :   return "mozilla.layers.layerscope.TexturePacket.Matrix";
    1471             : }
    1472             : 
    1473             : 
    1474             : // -------------------------------------------------------------------
    1475             : 
    1476             : #ifndef _MSC_VER
    1477             : const int TexturePacket_EffectMask::kMIs3DFieldNumber;
    1478             : const int TexturePacket_EffectMask::kMSizeFieldNumber;
    1479             : const int TexturePacket_EffectMask::kMMaskTransformFieldNumber;
    1480             : #endif  // !_MSC_VER
    1481             : 
    1482           3 : TexturePacket_EffectMask::TexturePacket_EffectMask()
    1483           3 :   : ::google::protobuf::MessageLite() {
    1484           3 :   SharedCtor();
    1485             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1486           3 : }
    1487             : 
    1488           3 : void TexturePacket_EffectMask::InitAsDefaultInstance() {
    1489             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1490             :   msize_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Size*>(
    1491             :       ::mozilla::layers::layerscope::TexturePacket_Size::internal_default_instance());
    1492             : #else
    1493           3 :   msize_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Size*>(&::mozilla::layers::layerscope::TexturePacket_Size::default_instance());
    1494             : #endif
    1495             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1496             :   mmasktransform_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Matrix*>(
    1497             :       ::mozilla::layers::layerscope::TexturePacket_Matrix::internal_default_instance());
    1498             : #else
    1499           3 :   mmasktransform_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Matrix*>(&::mozilla::layers::layerscope::TexturePacket_Matrix::default_instance());
    1500             : #endif
    1501           3 : }
    1502             : 
    1503           0 : TexturePacket_EffectMask::TexturePacket_EffectMask(const TexturePacket_EffectMask& from)
    1504           0 :   : ::google::protobuf::MessageLite() {
    1505           0 :   SharedCtor();
    1506           0 :   MergeFrom(from);
    1507             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1508           0 : }
    1509             : 
    1510           3 : void TexturePacket_EffectMask::SharedCtor() {
    1511           3 :   _cached_size_ = 0;
    1512           3 :   mis3d_ = false;
    1513           3 :   msize_ = NULL;
    1514           3 :   mmasktransform_ = NULL;
    1515           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1516           3 : }
    1517             : 
    1518           0 : TexturePacket_EffectMask::~TexturePacket_EffectMask() {
    1519             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1520           0 :   SharedDtor();
    1521           0 : }
    1522             : 
    1523           0 : void TexturePacket_EffectMask::SharedDtor() {
    1524             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1525             :   if (this != &default_instance()) {
    1526             :   #else
    1527           0 :   if (this != default_instance_) {
    1528             :   #endif
    1529           0 :     delete msize_;
    1530           0 :     delete mmasktransform_;
    1531             :   }
    1532           0 : }
    1533             : 
    1534           0 : void TexturePacket_EffectMask::SetCachedSize(int size) const {
    1535             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1536           0 :   _cached_size_ = size;
    1537             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1538           0 : }
    1539           3 : const TexturePacket_EffectMask& TexturePacket_EffectMask::default_instance() {
    1540             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1541             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    1542             : #else
    1543           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    1544             : #endif
    1545           3 :   return *default_instance_;
    1546             : }
    1547             : 
    1548             : TexturePacket_EffectMask* TexturePacket_EffectMask::default_instance_ = NULL;
    1549             : 
    1550           0 : TexturePacket_EffectMask* TexturePacket_EffectMask::New() const {
    1551           0 :   return new TexturePacket_EffectMask;
    1552             : }
    1553             : 
    1554           0 : void TexturePacket_EffectMask::Clear() {
    1555           0 :   if (_has_bits_[0 / 32] & 7) {
    1556           0 :     mis3d_ = false;
    1557           0 :     if (has_msize()) {
    1558           0 :       if (msize_ != NULL) msize_->::mozilla::layers::layerscope::TexturePacket_Size::Clear();
    1559             :     }
    1560           0 :     if (has_mmasktransform()) {
    1561           0 :       if (mmasktransform_ != NULL) mmasktransform_->::mozilla::layers::layerscope::TexturePacket_Matrix::Clear();
    1562             :     }
    1563             :   }
    1564           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1565           0 :   mutable_unknown_fields()->clear();
    1566           0 : }
    1567             : 
    1568           0 : bool TexturePacket_EffectMask::MergePartialFromCodedStream(
    1569             :     ::google::protobuf::io::CodedInputStream* input) {
    1570             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    1571             :   ::google::protobuf::uint32 tag;
    1572             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    1573           0 :       mutable_unknown_fields());
    1574             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    1575           0 :       &unknown_fields_string);
    1576             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1577             :   for (;;) {
    1578             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    1579           0 :     tag = p.first;
    1580           0 :     if (!p.second) goto handle_unusual;
    1581           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    1582             :       // optional bool mIs3D = 1;
    1583             :       case 1: {
    1584           0 :         if (tag == 8) {
    1585           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1586             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    1587             :                  input, &mis3d_)));
    1588           0 :           set_has_mis3d();
    1589             :         } else {
    1590           0 :           goto handle_unusual;
    1591             :         }
    1592           0 :         if (input->ExpectTag(18)) goto parse_mSize;
    1593           0 :         break;
    1594             :       }
    1595             : 
    1596             :       // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
    1597             :       case 2: {
    1598           0 :         if (tag == 18) {
    1599             :          parse_mSize:
    1600           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    1601             :                input, mutable_msize()));
    1602             :         } else {
    1603           0 :           goto handle_unusual;
    1604             :         }
    1605           0 :         if (input->ExpectTag(26)) goto parse_mMaskTransform;
    1606           0 :         break;
    1607             :       }
    1608             : 
    1609             :       // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
    1610             :       case 3: {
    1611           0 :         if (tag == 26) {
    1612             :          parse_mMaskTransform:
    1613           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    1614             :                input, mutable_mmasktransform()));
    1615             :         } else {
    1616           0 :           goto handle_unusual;
    1617             :         }
    1618           0 :         if (input->ExpectAtEnd()) goto success;
    1619           0 :         break;
    1620             :       }
    1621             : 
    1622             :       default: {
    1623             :       handle_unusual:
    1624           0 :         if (tag == 0 ||
    1625           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    1626             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    1627           0 :           goto success;
    1628             :         }
    1629           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    1630             :             input, tag, &unknown_fields_stream));
    1631           0 :         break;
    1632             :       }
    1633             :     }
    1634           0 :   }
    1635             : success:
    1636             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1637           0 :   return true;
    1638             : failure:
    1639             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1640           0 :   return false;
    1641             : #undef DO_
    1642             : }
    1643             : 
    1644           0 : void TexturePacket_EffectMask::SerializeWithCachedSizes(
    1645             :     ::google::protobuf::io::CodedOutputStream* output) const {
    1646             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1647             :   // optional bool mIs3D = 1;
    1648           0 :   if (has_mis3d()) {
    1649           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->mis3d(), output);
    1650             :   }
    1651             : 
    1652             :   // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
    1653           0 :   if (has_msize()) {
    1654           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    1655           0 :       2, this->msize(), output);
    1656             :   }
    1657             : 
    1658             :   // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
    1659           0 :   if (has_mmasktransform()) {
    1660           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    1661           0 :       3, this->mmasktransform(), output);
    1662             :   }
    1663             : 
    1664           0 :   output->WriteRaw(unknown_fields().data(),
    1665           0 :                    unknown_fields().size());
    1666             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.EffectMask)
    1667           0 : }
    1668             : 
    1669           0 : int TexturePacket_EffectMask::ByteSize() const {
    1670           0 :   int total_size = 0;
    1671             : 
    1672           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1673             :     // optional bool mIs3D = 1;
    1674           0 :     if (has_mis3d()) {
    1675           0 :       total_size += 1 + 1;
    1676             :     }
    1677             : 
    1678             :     // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
    1679           0 :     if (has_msize()) {
    1680           0 :       total_size += 1 +
    1681           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    1682             :           this->msize());
    1683             :     }
    1684             : 
    1685             :     // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
    1686           0 :     if (has_mmasktransform()) {
    1687           0 :       total_size += 1 +
    1688           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    1689             :           this->mmasktransform());
    1690             :     }
    1691             : 
    1692             :   }
    1693           0 :   total_size += unknown_fields().size();
    1694             : 
    1695             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1696           0 :   _cached_size_ = total_size;
    1697             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1698           0 :   return total_size;
    1699             : }
    1700             : 
    1701           0 : void TexturePacket_EffectMask::CheckTypeAndMergeFrom(
    1702             :     const ::google::protobuf::MessageLite& from) {
    1703           0 :   MergeFrom(*::google::protobuf::down_cast<const TexturePacket_EffectMask*>(&from));
    1704           0 : }
    1705             : 
    1706           0 : void TexturePacket_EffectMask::MergeFrom(const TexturePacket_EffectMask& from) {
    1707           0 :   GOOGLE_CHECK_NE(&from, this);
    1708           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    1709           0 :     if (from.has_mis3d()) {
    1710           0 :       set_mis3d(from.mis3d());
    1711             :     }
    1712           0 :     if (from.has_msize()) {
    1713           0 :       mutable_msize()->::mozilla::layers::layerscope::TexturePacket_Size::MergeFrom(from.msize());
    1714             :     }
    1715           0 :     if (from.has_mmasktransform()) {
    1716           0 :       mutable_mmasktransform()->::mozilla::layers::layerscope::TexturePacket_Matrix::MergeFrom(from.mmasktransform());
    1717             :     }
    1718             :   }
    1719           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    1720           0 : }
    1721             : 
    1722           0 : void TexturePacket_EffectMask::CopyFrom(const TexturePacket_EffectMask& from) {
    1723           0 :   if (&from == this) return;
    1724           0 :   Clear();
    1725           0 :   MergeFrom(from);
    1726             : }
    1727             : 
    1728           0 : bool TexturePacket_EffectMask::IsInitialized() const {
    1729             : 
    1730           0 :   return true;
    1731             : }
    1732             : 
    1733           0 : void TexturePacket_EffectMask::Swap(TexturePacket_EffectMask* other) {
    1734           0 :   if (other != this) {
    1735           0 :     std::swap(mis3d_, other->mis3d_);
    1736           0 :     std::swap(msize_, other->msize_);
    1737           0 :     std::swap(mmasktransform_, other->mmasktransform_);
    1738           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    1739           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    1740           0 :     std::swap(_cached_size_, other->_cached_size_);
    1741             :   }
    1742           0 : }
    1743             : 
    1744           0 : ::std::string TexturePacket_EffectMask::GetTypeName() const {
    1745           0 :   return "mozilla.layers.layerscope.TexturePacket.EffectMask";
    1746             : }
    1747             : 
    1748             : 
    1749             : // -------------------------------------------------------------------
    1750             : 
    1751             : #ifndef _MSC_VER
    1752             : const int TexturePacket::kLayerrefFieldNumber;
    1753             : const int TexturePacket::kWidthFieldNumber;
    1754             : const int TexturePacket::kHeightFieldNumber;
    1755             : const int TexturePacket::kStrideFieldNumber;
    1756             : const int TexturePacket::kNameFieldNumber;
    1757             : const int TexturePacket::kTargetFieldNumber;
    1758             : const int TexturePacket::kDataformatFieldNumber;
    1759             : const int TexturePacket::kGlcontextFieldNumber;
    1760             : const int TexturePacket::kDataFieldNumber;
    1761             : const int TexturePacket::kMTextureCoordsFieldNumber;
    1762             : const int TexturePacket::kMPremultipliedFieldNumber;
    1763             : const int TexturePacket::kMFilterFieldNumber;
    1764             : const int TexturePacket::kIsMaskFieldNumber;
    1765             : const int TexturePacket::kMaskFieldNumber;
    1766             : #endif  // !_MSC_VER
    1767             : 
    1768           3 : TexturePacket::TexturePacket()
    1769           3 :   : ::google::protobuf::MessageLite() {
    1770           3 :   SharedCtor();
    1771             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket)
    1772           3 : }
    1773             : 
    1774           3 : void TexturePacket::InitAsDefaultInstance() {
    1775             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1776             :   mtexturecoords_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Rect*>(
    1777             :       ::mozilla::layers::layerscope::TexturePacket_Rect::internal_default_instance());
    1778             : #else
    1779           3 :   mtexturecoords_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Rect*>(&::mozilla::layers::layerscope::TexturePacket_Rect::default_instance());
    1780             : #endif
    1781             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1782             :   mask_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(
    1783             :       ::mozilla::layers::layerscope::TexturePacket_EffectMask::internal_default_instance());
    1784             : #else
    1785           3 :   mask_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(&::mozilla::layers::layerscope::TexturePacket_EffectMask::default_instance());
    1786             : #endif
    1787           3 : }
    1788             : 
    1789           0 : TexturePacket::TexturePacket(const TexturePacket& from)
    1790           0 :   : ::google::protobuf::MessageLite() {
    1791           0 :   SharedCtor();
    1792           0 :   MergeFrom(from);
    1793             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket)
    1794           0 : }
    1795             : 
    1796           3 : void TexturePacket::SharedCtor() {
    1797           3 :   ::google::protobuf::internal::GetEmptyString();
    1798           3 :   _cached_size_ = 0;
    1799           3 :   layerref_ = GOOGLE_ULONGLONG(0);
    1800           3 :   width_ = 0u;
    1801           3 :   height_ = 0u;
    1802           3 :   stride_ = 0u;
    1803           3 :   name_ = 0u;
    1804           3 :   target_ = 0u;
    1805           3 :   dataformat_ = 0u;
    1806           3 :   glcontext_ = GOOGLE_ULONGLONG(0);
    1807           3 :   data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    1808           3 :   mtexturecoords_ = NULL;
    1809           3 :   mpremultiplied_ = false;
    1810           3 :   mfilter_ = 0;
    1811           3 :   ismask_ = false;
    1812           3 :   mask_ = NULL;
    1813           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1814           3 : }
    1815             : 
    1816           0 : TexturePacket::~TexturePacket() {
    1817             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket)
    1818           0 :   SharedDtor();
    1819           0 : }
    1820             : 
    1821           0 : void TexturePacket::SharedDtor() {
    1822           0 :   if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    1823           0 :     delete data_;
    1824             :   }
    1825             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1826             :   if (this != &default_instance()) {
    1827             :   #else
    1828           0 :   if (this != default_instance_) {
    1829             :   #endif
    1830           0 :     delete mtexturecoords_;
    1831           0 :     delete mask_;
    1832             :   }
    1833           0 : }
    1834             : 
    1835           0 : void TexturePacket::SetCachedSize(int size) const {
    1836             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    1837           0 :   _cached_size_ = size;
    1838             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    1839           0 : }
    1840           3 : const TexturePacket& TexturePacket::default_instance() {
    1841             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    1842             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    1843             : #else
    1844           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    1845             : #endif
    1846           3 :   return *default_instance_;
    1847             : }
    1848             : 
    1849             : TexturePacket* TexturePacket::default_instance_ = NULL;
    1850             : 
    1851           0 : TexturePacket* TexturePacket::New() const {
    1852           0 :   return new TexturePacket;
    1853             : }
    1854             : 
    1855           0 : void TexturePacket::Clear() {
    1856             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    1857             :   &reinterpret_cast<TexturePacket*>(16)->f) - \
    1858             :    reinterpret_cast<char*>(16))
    1859             : 
    1860             : #define ZR_(first, last) do {                              \
    1861             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    1862             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    1863             :     ::memset(&first, 0, n);                                \
    1864             :   } while (0)
    1865             : 
    1866           0 :   if (_has_bits_[0 / 32] & 255) {
    1867           0 :     ZR_(layerref_, glcontext_);
    1868             :   }
    1869           0 :   if (_has_bits_[8 / 32] & 16128) {
    1870           0 :     ZR_(mfilter_, ismask_);
    1871           0 :     if (has_data()) {
    1872           0 :       if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    1873           0 :         data_->clear();
    1874             :       }
    1875             :     }
    1876           0 :     if (has_mtexturecoords()) {
    1877           0 :       if (mtexturecoords_ != NULL) mtexturecoords_->::mozilla::layers::layerscope::TexturePacket_Rect::Clear();
    1878             :     }
    1879           0 :     if (has_mask()) {
    1880           0 :       if (mask_ != NULL) mask_->::mozilla::layers::layerscope::TexturePacket_EffectMask::Clear();
    1881             :     }
    1882             :   }
    1883             : 
    1884             : #undef OFFSET_OF_FIELD_
    1885             : #undef ZR_
    1886             : 
    1887           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    1888           0 :   mutable_unknown_fields()->clear();
    1889           0 : }
    1890             : 
    1891           0 : bool TexturePacket::MergePartialFromCodedStream(
    1892             :     ::google::protobuf::io::CodedInputStream* input) {
    1893             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    1894             :   ::google::protobuf::uint32 tag;
    1895             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    1896           0 :       mutable_unknown_fields());
    1897             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    1898           0 :       &unknown_fields_string);
    1899             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket)
    1900             :   for (;;) {
    1901             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
    1902           0 :     tag = p.first;
    1903           0 :     if (!p.second) goto handle_unusual;
    1904           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    1905             :       // required uint64 layerref = 1;
    1906             :       case 1: {
    1907           0 :         if (tag == 8) {
    1908           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1909             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    1910             :                  input, &layerref_)));
    1911           0 :           set_has_layerref();
    1912             :         } else {
    1913           0 :           goto handle_unusual;
    1914             :         }
    1915           0 :         if (input->ExpectTag(16)) goto parse_width;
    1916           0 :         break;
    1917             :       }
    1918             : 
    1919             :       // optional uint32 width = 2;
    1920             :       case 2: {
    1921           0 :         if (tag == 16) {
    1922             :          parse_width:
    1923           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1924             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    1925             :                  input, &width_)));
    1926           0 :           set_has_width();
    1927             :         } else {
    1928           0 :           goto handle_unusual;
    1929             :         }
    1930           0 :         if (input->ExpectTag(24)) goto parse_height;
    1931           0 :         break;
    1932             :       }
    1933             : 
    1934             :       // optional uint32 height = 3;
    1935             :       case 3: {
    1936           0 :         if (tag == 24) {
    1937             :          parse_height:
    1938           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1939             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    1940             :                  input, &height_)));
    1941           0 :           set_has_height();
    1942             :         } else {
    1943           0 :           goto handle_unusual;
    1944             :         }
    1945           0 :         if (input->ExpectTag(32)) goto parse_stride;
    1946           0 :         break;
    1947             :       }
    1948             : 
    1949             :       // optional uint32 stride = 4;
    1950             :       case 4: {
    1951           0 :         if (tag == 32) {
    1952             :          parse_stride:
    1953           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1954             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    1955             :                  input, &stride_)));
    1956           0 :           set_has_stride();
    1957             :         } else {
    1958           0 :           goto handle_unusual;
    1959             :         }
    1960           0 :         if (input->ExpectTag(40)) goto parse_name;
    1961           0 :         break;
    1962             :       }
    1963             : 
    1964             :       // optional uint32 name = 5;
    1965             :       case 5: {
    1966           0 :         if (tag == 40) {
    1967             :          parse_name:
    1968           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1969             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    1970             :                  input, &name_)));
    1971           0 :           set_has_name();
    1972             :         } else {
    1973           0 :           goto handle_unusual;
    1974             :         }
    1975           0 :         if (input->ExpectTag(48)) goto parse_target;
    1976           0 :         break;
    1977             :       }
    1978             : 
    1979             :       // optional uint32 target = 6;
    1980             :       case 6: {
    1981           0 :         if (tag == 48) {
    1982             :          parse_target:
    1983           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1984             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    1985             :                  input, &target_)));
    1986           0 :           set_has_target();
    1987             :         } else {
    1988           0 :           goto handle_unusual;
    1989             :         }
    1990           0 :         if (input->ExpectTag(56)) goto parse_dataformat;
    1991           0 :         break;
    1992             :       }
    1993             : 
    1994             :       // optional uint32 dataformat = 7;
    1995             :       case 7: {
    1996           0 :         if (tag == 56) {
    1997             :          parse_dataformat:
    1998           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    1999             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    2000             :                  input, &dataformat_)));
    2001           0 :           set_has_dataformat();
    2002             :         } else {
    2003           0 :           goto handle_unusual;
    2004             :         }
    2005           0 :         if (input->ExpectTag(64)) goto parse_glcontext;
    2006           0 :         break;
    2007             :       }
    2008             : 
    2009             :       // optional uint64 glcontext = 8;
    2010             :       case 8: {
    2011           0 :         if (tag == 64) {
    2012             :          parse_glcontext:
    2013           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2014             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    2015             :                  input, &glcontext_)));
    2016           0 :           set_has_glcontext();
    2017             :         } else {
    2018           0 :           goto handle_unusual;
    2019             :         }
    2020           0 :         if (input->ExpectTag(74)) goto parse_data;
    2021           0 :         break;
    2022             :       }
    2023             : 
    2024             :       // optional bytes data = 9;
    2025             :       case 9: {
    2026           0 :         if (tag == 74) {
    2027             :          parse_data:
    2028           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
    2029             :                 input, this->mutable_data()));
    2030             :         } else {
    2031           0 :           goto handle_unusual;
    2032             :         }
    2033           0 :         if (input->ExpectTag(82)) goto parse_mTextureCoords;
    2034           0 :         break;
    2035             :       }
    2036             : 
    2037             :       // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
    2038             :       case 10: {
    2039           0 :         if (tag == 82) {
    2040             :          parse_mTextureCoords:
    2041           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    2042             :                input, mutable_mtexturecoords()));
    2043             :         } else {
    2044           0 :           goto handle_unusual;
    2045             :         }
    2046           0 :         if (input->ExpectTag(88)) goto parse_mPremultiplied;
    2047           0 :         break;
    2048             :       }
    2049             : 
    2050             :       // optional bool mPremultiplied = 11;
    2051             :       case 11: {
    2052           0 :         if (tag == 88) {
    2053             :          parse_mPremultiplied:
    2054           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2055             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    2056             :                  input, &mpremultiplied_)));
    2057           0 :           set_has_mpremultiplied();
    2058             :         } else {
    2059           0 :           goto handle_unusual;
    2060             :         }
    2061           0 :         if (input->ExpectTag(96)) goto parse_mFilter;
    2062           0 :         break;
    2063             :       }
    2064             : 
    2065             :       // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
    2066             :       case 12: {
    2067           0 :         if (tag == 96) {
    2068             :          parse_mFilter:
    2069             :           int value;
    2070           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2071             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    2072             :                  input, &value)));
    2073           0 :           if (::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value)) {
    2074           0 :             set_mfilter(static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(value));
    2075             :           } else {
    2076           0 :             unknown_fields_stream.WriteVarint32(tag);
    2077           0 :             unknown_fields_stream.WriteVarint32(value);
    2078             :           }
    2079             :         } else {
    2080           0 :           goto handle_unusual;
    2081             :         }
    2082           0 :         if (input->ExpectTag(160)) goto parse_isMask;
    2083           0 :         break;
    2084             :       }
    2085             : 
    2086             :       // optional bool isMask = 20;
    2087             :       case 20: {
    2088           0 :         if (tag == 160) {
    2089             :          parse_isMask:
    2090           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2091             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    2092             :                  input, &ismask_)));
    2093           0 :           set_has_ismask();
    2094             :         } else {
    2095           0 :           goto handle_unusual;
    2096             :         }
    2097           0 :         if (input->ExpectTag(170)) goto parse_mask;
    2098           0 :         break;
    2099             :       }
    2100             : 
    2101             :       // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
    2102             :       case 21: {
    2103           0 :         if (tag == 170) {
    2104             :          parse_mask:
    2105           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    2106             :                input, mutable_mask()));
    2107             :         } else {
    2108           0 :           goto handle_unusual;
    2109             :         }
    2110           0 :         if (input->ExpectAtEnd()) goto success;
    2111           0 :         break;
    2112             :       }
    2113             : 
    2114             :       default: {
    2115             :       handle_unusual:
    2116           0 :         if (tag == 0 ||
    2117           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    2118             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    2119           0 :           goto success;
    2120             :         }
    2121           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    2122             :             input, tag, &unknown_fields_stream));
    2123           0 :         break;
    2124             :       }
    2125             :     }
    2126           0 :   }
    2127             : success:
    2128             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket)
    2129           0 :   return true;
    2130             : failure:
    2131             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket)
    2132           0 :   return false;
    2133             : #undef DO_
    2134             : }
    2135             : 
    2136           0 : void TexturePacket::SerializeWithCachedSizes(
    2137             :     ::google::protobuf::io::CodedOutputStream* output) const {
    2138             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket)
    2139             :   // required uint64 layerref = 1;
    2140           0 :   if (has_layerref()) {
    2141           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output);
    2142             :   }
    2143             : 
    2144             :   // optional uint32 width = 2;
    2145           0 :   if (has_width()) {
    2146           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output);
    2147             :   }
    2148             : 
    2149             :   // optional uint32 height = 3;
    2150           0 :   if (has_height()) {
    2151           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output);
    2152             :   }
    2153             : 
    2154             :   // optional uint32 stride = 4;
    2155           0 :   if (has_stride()) {
    2156           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->stride(), output);
    2157             :   }
    2158             : 
    2159             :   // optional uint32 name = 5;
    2160           0 :   if (has_name()) {
    2161           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->name(), output);
    2162             :   }
    2163             : 
    2164             :   // optional uint32 target = 6;
    2165           0 :   if (has_target()) {
    2166           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->target(), output);
    2167             :   }
    2168             : 
    2169             :   // optional uint32 dataformat = 7;
    2170           0 :   if (has_dataformat()) {
    2171           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->dataformat(), output);
    2172             :   }
    2173             : 
    2174             :   // optional uint64 glcontext = 8;
    2175           0 :   if (has_glcontext()) {
    2176           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->glcontext(), output);
    2177             :   }
    2178             : 
    2179             :   // optional bytes data = 9;
    2180           0 :   if (has_data()) {
    2181           0 :     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
    2182           0 :       9, this->data(), output);
    2183             :   }
    2184             : 
    2185             :   // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
    2186           0 :   if (has_mtexturecoords()) {
    2187           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    2188           0 :       10, this->mtexturecoords(), output);
    2189             :   }
    2190             : 
    2191             :   // optional bool mPremultiplied = 11;
    2192           0 :   if (has_mpremultiplied()) {
    2193           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->mpremultiplied(), output);
    2194             :   }
    2195             : 
    2196             :   // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
    2197           0 :   if (has_mfilter()) {
    2198           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    2199           0 :       12, this->mfilter(), output);
    2200             :   }
    2201             : 
    2202             :   // optional bool isMask = 20;
    2203           0 :   if (has_ismask()) {
    2204           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->ismask(), output);
    2205             :   }
    2206             : 
    2207             :   // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
    2208           0 :   if (has_mask()) {
    2209           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    2210           0 :       21, this->mask(), output);
    2211             :   }
    2212             : 
    2213           0 :   output->WriteRaw(unknown_fields().data(),
    2214           0 :                    unknown_fields().size());
    2215             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket)
    2216           0 : }
    2217             : 
    2218           0 : int TexturePacket::ByteSize() const {
    2219           0 :   int total_size = 0;
    2220             : 
    2221           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2222             :     // required uint64 layerref = 1;
    2223           0 :     if (has_layerref()) {
    2224           0 :       total_size += 1 +
    2225           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    2226             :           this->layerref());
    2227             :     }
    2228             : 
    2229             :     // optional uint32 width = 2;
    2230           0 :     if (has_width()) {
    2231           0 :       total_size += 1 +
    2232           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2233             :           this->width());
    2234             :     }
    2235             : 
    2236             :     // optional uint32 height = 3;
    2237           0 :     if (has_height()) {
    2238           0 :       total_size += 1 +
    2239           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2240             :           this->height());
    2241             :     }
    2242             : 
    2243             :     // optional uint32 stride = 4;
    2244           0 :     if (has_stride()) {
    2245           0 :       total_size += 1 +
    2246           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2247             :           this->stride());
    2248             :     }
    2249             : 
    2250             :     // optional uint32 name = 5;
    2251           0 :     if (has_name()) {
    2252           0 :       total_size += 1 +
    2253           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2254             :           this->name());
    2255             :     }
    2256             : 
    2257             :     // optional uint32 target = 6;
    2258           0 :     if (has_target()) {
    2259           0 :       total_size += 1 +
    2260           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2261             :           this->target());
    2262             :     }
    2263             : 
    2264             :     // optional uint32 dataformat = 7;
    2265           0 :     if (has_dataformat()) {
    2266           0 :       total_size += 1 +
    2267           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    2268             :           this->dataformat());
    2269             :     }
    2270             : 
    2271             :     // optional uint64 glcontext = 8;
    2272           0 :     if (has_glcontext()) {
    2273           0 :       total_size += 1 +
    2274           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    2275             :           this->glcontext());
    2276             :     }
    2277             : 
    2278             :   }
    2279           0 :   if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
    2280             :     // optional bytes data = 9;
    2281           0 :     if (has_data()) {
    2282           0 :       total_size += 1 +
    2283           0 :         ::google::protobuf::internal::WireFormatLite::BytesSize(
    2284             :           this->data());
    2285             :     }
    2286             : 
    2287             :     // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
    2288           0 :     if (has_mtexturecoords()) {
    2289           0 :       total_size += 1 +
    2290           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    2291             :           this->mtexturecoords());
    2292             :     }
    2293             : 
    2294             :     // optional bool mPremultiplied = 11;
    2295           0 :     if (has_mpremultiplied()) {
    2296           0 :       total_size += 1 + 1;
    2297             :     }
    2298             : 
    2299             :     // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
    2300           0 :     if (has_mfilter()) {
    2301           0 :       total_size += 1 +
    2302           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->mfilter());
    2303             :     }
    2304             : 
    2305             :     // optional bool isMask = 20;
    2306           0 :     if (has_ismask()) {
    2307           0 :       total_size += 2 + 1;
    2308             :     }
    2309             : 
    2310             :     // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
    2311           0 :     if (has_mask()) {
    2312           0 :       total_size += 2 +
    2313           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    2314             :           this->mask());
    2315             :     }
    2316             : 
    2317             :   }
    2318           0 :   total_size += unknown_fields().size();
    2319             : 
    2320             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    2321           0 :   _cached_size_ = total_size;
    2322             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    2323           0 :   return total_size;
    2324             : }
    2325             : 
    2326           0 : void TexturePacket::CheckTypeAndMergeFrom(
    2327             :     const ::google::protobuf::MessageLite& from) {
    2328           0 :   MergeFrom(*::google::protobuf::down_cast<const TexturePacket*>(&from));
    2329           0 : }
    2330             : 
    2331           0 : void TexturePacket::MergeFrom(const TexturePacket& from) {
    2332           0 :   GOOGLE_CHECK_NE(&from, this);
    2333           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2334           0 :     if (from.has_layerref()) {
    2335           0 :       set_layerref(from.layerref());
    2336             :     }
    2337           0 :     if (from.has_width()) {
    2338           0 :       set_width(from.width());
    2339             :     }
    2340           0 :     if (from.has_height()) {
    2341           0 :       set_height(from.height());
    2342             :     }
    2343           0 :     if (from.has_stride()) {
    2344           0 :       set_stride(from.stride());
    2345             :     }
    2346           0 :     if (from.has_name()) {
    2347           0 :       set_name(from.name());
    2348             :     }
    2349           0 :     if (from.has_target()) {
    2350           0 :       set_target(from.target());
    2351             :     }
    2352           0 :     if (from.has_dataformat()) {
    2353           0 :       set_dataformat(from.dataformat());
    2354             :     }
    2355           0 :     if (from.has_glcontext()) {
    2356           0 :       set_glcontext(from.glcontext());
    2357             :     }
    2358             :   }
    2359           0 :   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
    2360           0 :     if (from.has_data()) {
    2361           0 :       set_data(from.data());
    2362             :     }
    2363           0 :     if (from.has_mtexturecoords()) {
    2364           0 :       mutable_mtexturecoords()->::mozilla::layers::layerscope::TexturePacket_Rect::MergeFrom(from.mtexturecoords());
    2365             :     }
    2366           0 :     if (from.has_mpremultiplied()) {
    2367           0 :       set_mpremultiplied(from.mpremultiplied());
    2368             :     }
    2369           0 :     if (from.has_mfilter()) {
    2370           0 :       set_mfilter(from.mfilter());
    2371             :     }
    2372           0 :     if (from.has_ismask()) {
    2373           0 :       set_ismask(from.ismask());
    2374             :     }
    2375           0 :     if (from.has_mask()) {
    2376           0 :       mutable_mask()->::mozilla::layers::layerscope::TexturePacket_EffectMask::MergeFrom(from.mask());
    2377             :     }
    2378             :   }
    2379           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    2380           0 : }
    2381             : 
    2382           0 : void TexturePacket::CopyFrom(const TexturePacket& from) {
    2383           0 :   if (&from == this) return;
    2384           0 :   Clear();
    2385           0 :   MergeFrom(from);
    2386             : }
    2387             : 
    2388           0 : bool TexturePacket::IsInitialized() const {
    2389           0 :   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
    2390             : 
    2391           0 :   return true;
    2392             : }
    2393             : 
    2394           0 : void TexturePacket::Swap(TexturePacket* other) {
    2395           0 :   if (other != this) {
    2396           0 :     std::swap(layerref_, other->layerref_);
    2397           0 :     std::swap(width_, other->width_);
    2398           0 :     std::swap(height_, other->height_);
    2399           0 :     std::swap(stride_, other->stride_);
    2400           0 :     std::swap(name_, other->name_);
    2401           0 :     std::swap(target_, other->target_);
    2402           0 :     std::swap(dataformat_, other->dataformat_);
    2403           0 :     std::swap(glcontext_, other->glcontext_);
    2404           0 :     std::swap(data_, other->data_);
    2405           0 :     std::swap(mtexturecoords_, other->mtexturecoords_);
    2406           0 :     std::swap(mpremultiplied_, other->mpremultiplied_);
    2407           0 :     std::swap(mfilter_, other->mfilter_);
    2408           0 :     std::swap(ismask_, other->ismask_);
    2409           0 :     std::swap(mask_, other->mask_);
    2410           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    2411           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    2412           0 :     std::swap(_cached_size_, other->_cached_size_);
    2413             :   }
    2414           0 : }
    2415             : 
    2416           0 : ::std::string TexturePacket::GetTypeName() const {
    2417           0 :   return "mozilla.layers.layerscope.TexturePacket";
    2418             : }
    2419             : 
    2420             : 
    2421             : // ===================================================================
    2422             : 
    2423           0 : bool LayersPacket_Layer_LayerType_IsValid(int value) {
    2424           0 :   switch(value) {
    2425             :     case 0:
    2426             :     case 1:
    2427             :     case 2:
    2428             :     case 3:
    2429             :     case 4:
    2430             :     case 5:
    2431             :     case 6:
    2432             :     case 7:
    2433             :     case 8:
    2434           0 :       return true;
    2435             :     default:
    2436           0 :       return false;
    2437             :   }
    2438             : }
    2439             : 
    2440             : #ifndef _MSC_VER
    2441             : const LayersPacket_Layer_LayerType LayersPacket_Layer::UnknownLayer;
    2442             : const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerManager;
    2443             : const LayersPacket_Layer_LayerType LayersPacket_Layer::ContainerLayer;
    2444             : const LayersPacket_Layer_LayerType LayersPacket_Layer::PaintedLayer;
    2445             : const LayersPacket_Layer_LayerType LayersPacket_Layer::CanvasLayer;
    2446             : const LayersPacket_Layer_LayerType LayersPacket_Layer::ImageLayer;
    2447             : const LayersPacket_Layer_LayerType LayersPacket_Layer::ColorLayer;
    2448             : const LayersPacket_Layer_LayerType LayersPacket_Layer::RefLayer;
    2449             : const LayersPacket_Layer_LayerType LayersPacket_Layer::ReadbackLayer;
    2450             : const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MIN;
    2451             : const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MAX;
    2452             : const int LayersPacket_Layer::LayerType_ARRAYSIZE;
    2453             : #endif  // _MSC_VER
    2454           0 : bool LayersPacket_Layer_ScrollingDirect_IsValid(int value) {
    2455           0 :   switch(value) {
    2456             :     case 1:
    2457             :     case 2:
    2458           0 :       return true;
    2459             :     default:
    2460           0 :       return false;
    2461             :   }
    2462             : }
    2463             : 
    2464             : #ifndef _MSC_VER
    2465             : const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::VERTICAL;
    2466             : const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::HORIZONTAL;
    2467             : const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MIN;
    2468             : const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MAX;
    2469             : const int LayersPacket_Layer::ScrollingDirect_ARRAYSIZE;
    2470             : #endif  // _MSC_VER
    2471           0 : bool LayersPacket_Layer_Filter_IsValid(int value) {
    2472           0 :   switch(value) {
    2473             :     case 0:
    2474             :     case 1:
    2475             :     case 2:
    2476             :     case 3:
    2477             :     case 4:
    2478             :     case 5:
    2479             :     case 6:
    2480             :     case 7:
    2481             :     case 8:
    2482           0 :       return true;
    2483             :     default:
    2484           0 :       return false;
    2485             :   }
    2486             : }
    2487             : 
    2488             : #ifndef _MSC_VER
    2489             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_FAST;
    2490             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GOOD;
    2491             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BEST;
    2492             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_NEAREST;
    2493             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BILINEAR;
    2494             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GAUSSIAN;
    2495             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_SENTINEL;
    2496             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_LINEAR;
    2497             : const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_POINT;
    2498             : const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MIN;
    2499             : const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MAX;
    2500             : const int LayersPacket_Layer::Filter_ARRAYSIZE;
    2501             : #endif  // _MSC_VER
    2502             : #ifndef _MSC_VER
    2503             : const int LayersPacket_Layer_Size::kWFieldNumber;
    2504             : const int LayersPacket_Layer_Size::kHFieldNumber;
    2505             : #endif  // !_MSC_VER
    2506             : 
    2507           3 : LayersPacket_Layer_Size::LayersPacket_Layer_Size()
    2508           3 :   : ::google::protobuf::MessageLite() {
    2509           3 :   SharedCtor();
    2510             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2511           3 : }
    2512             : 
    2513           3 : void LayersPacket_Layer_Size::InitAsDefaultInstance() {
    2514           3 : }
    2515             : 
    2516           0 : LayersPacket_Layer_Size::LayersPacket_Layer_Size(const LayersPacket_Layer_Size& from)
    2517           0 :   : ::google::protobuf::MessageLite() {
    2518           0 :   SharedCtor();
    2519           0 :   MergeFrom(from);
    2520             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2521           0 : }
    2522             : 
    2523           3 : void LayersPacket_Layer_Size::SharedCtor() {
    2524           3 :   _cached_size_ = 0;
    2525           3 :   w_ = 0;
    2526           3 :   h_ = 0;
    2527           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    2528           3 : }
    2529             : 
    2530           0 : LayersPacket_Layer_Size::~LayersPacket_Layer_Size() {
    2531             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2532           0 :   SharedDtor();
    2533           0 : }
    2534             : 
    2535           0 : void LayersPacket_Layer_Size::SharedDtor() {
    2536             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    2537             :   if (this != &default_instance()) {
    2538             :   #else
    2539           0 :   if (this != default_instance_) {
    2540             :   #endif
    2541             :   }
    2542           0 : }
    2543             : 
    2544           0 : void LayersPacket_Layer_Size::SetCachedSize(int size) const {
    2545             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    2546           0 :   _cached_size_ = size;
    2547             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    2548           0 : }
    2549           3 : const LayersPacket_Layer_Size& LayersPacket_Layer_Size::default_instance() {
    2550             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    2551             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    2552             : #else
    2553           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    2554             : #endif
    2555           3 :   return *default_instance_;
    2556             : }
    2557             : 
    2558             : LayersPacket_Layer_Size* LayersPacket_Layer_Size::default_instance_ = NULL;
    2559             : 
    2560           0 : LayersPacket_Layer_Size* LayersPacket_Layer_Size::New() const {
    2561           0 :   return new LayersPacket_Layer_Size;
    2562             : }
    2563             : 
    2564           0 : void LayersPacket_Layer_Size::Clear() {
    2565             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    2566             :   &reinterpret_cast<LayersPacket_Layer_Size*>(16)->f) - \
    2567             :    reinterpret_cast<char*>(16))
    2568             : 
    2569             : #define ZR_(first, last) do {                              \
    2570             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    2571             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    2572             :     ::memset(&first, 0, n);                                \
    2573             :   } while (0)
    2574             : 
    2575           0 :   ZR_(w_, h_);
    2576             : 
    2577             : #undef OFFSET_OF_FIELD_
    2578             : #undef ZR_
    2579             : 
    2580           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    2581           0 :   mutable_unknown_fields()->clear();
    2582           0 : }
    2583             : 
    2584           0 : bool LayersPacket_Layer_Size::MergePartialFromCodedStream(
    2585             :     ::google::protobuf::io::CodedInputStream* input) {
    2586             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    2587             :   ::google::protobuf::uint32 tag;
    2588             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    2589           0 :       mutable_unknown_fields());
    2590             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    2591           0 :       &unknown_fields_string);
    2592             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2593             :   for (;;) {
    2594             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    2595           0 :     tag = p.first;
    2596           0 :     if (!p.second) goto handle_unusual;
    2597           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    2598             :       // optional int32 w = 1;
    2599             :       case 1: {
    2600           0 :         if (tag == 8) {
    2601           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2602             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2603             :                  input, &w_)));
    2604           0 :           set_has_w();
    2605             :         } else {
    2606           0 :           goto handle_unusual;
    2607             :         }
    2608           0 :         if (input->ExpectTag(16)) goto parse_h;
    2609           0 :         break;
    2610             :       }
    2611             : 
    2612             :       // optional int32 h = 2;
    2613             :       case 2: {
    2614           0 :         if (tag == 16) {
    2615             :          parse_h:
    2616           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2617             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2618             :                  input, &h_)));
    2619           0 :           set_has_h();
    2620             :         } else {
    2621           0 :           goto handle_unusual;
    2622             :         }
    2623           0 :         if (input->ExpectAtEnd()) goto success;
    2624           0 :         break;
    2625             :       }
    2626             : 
    2627             :       default: {
    2628             :       handle_unusual:
    2629           0 :         if (tag == 0 ||
    2630           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    2631             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    2632           0 :           goto success;
    2633             :         }
    2634           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    2635             :             input, tag, &unknown_fields_stream));
    2636           0 :         break;
    2637             :       }
    2638             :     }
    2639           0 :   }
    2640             : success:
    2641             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2642           0 :   return true;
    2643             : failure:
    2644             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2645           0 :   return false;
    2646             : #undef DO_
    2647             : }
    2648             : 
    2649           0 : void LayersPacket_Layer_Size::SerializeWithCachedSizes(
    2650             :     ::google::protobuf::io::CodedOutputStream* output) const {
    2651             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2652             :   // optional int32 w = 1;
    2653           0 :   if (has_w()) {
    2654           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output);
    2655             :   }
    2656             : 
    2657             :   // optional int32 h = 2;
    2658           0 :   if (has_h()) {
    2659           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output);
    2660             :   }
    2661             : 
    2662           0 :   output->WriteRaw(unknown_fields().data(),
    2663           0 :                    unknown_fields().size());
    2664             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Size)
    2665           0 : }
    2666             : 
    2667           0 : int LayersPacket_Layer_Size::ByteSize() const {
    2668           0 :   int total_size = 0;
    2669             : 
    2670           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2671             :     // optional int32 w = 1;
    2672           0 :     if (has_w()) {
    2673           0 :       total_size += 1 +
    2674           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2675             :           this->w());
    2676             :     }
    2677             : 
    2678             :     // optional int32 h = 2;
    2679           0 :     if (has_h()) {
    2680           0 :       total_size += 1 +
    2681           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2682             :           this->h());
    2683             :     }
    2684             : 
    2685             :   }
    2686           0 :   total_size += unknown_fields().size();
    2687             : 
    2688             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    2689           0 :   _cached_size_ = total_size;
    2690             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    2691           0 :   return total_size;
    2692             : }
    2693             : 
    2694           0 : void LayersPacket_Layer_Size::CheckTypeAndMergeFrom(
    2695             :     const ::google::protobuf::MessageLite& from) {
    2696           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Size*>(&from));
    2697           0 : }
    2698             : 
    2699           0 : void LayersPacket_Layer_Size::MergeFrom(const LayersPacket_Layer_Size& from) {
    2700           0 :   GOOGLE_CHECK_NE(&from, this);
    2701           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2702           0 :     if (from.has_w()) {
    2703           0 :       set_w(from.w());
    2704             :     }
    2705           0 :     if (from.has_h()) {
    2706           0 :       set_h(from.h());
    2707             :     }
    2708             :   }
    2709           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    2710           0 : }
    2711             : 
    2712           0 : void LayersPacket_Layer_Size::CopyFrom(const LayersPacket_Layer_Size& from) {
    2713           0 :   if (&from == this) return;
    2714           0 :   Clear();
    2715           0 :   MergeFrom(from);
    2716             : }
    2717             : 
    2718           0 : bool LayersPacket_Layer_Size::IsInitialized() const {
    2719             : 
    2720           0 :   return true;
    2721             : }
    2722             : 
    2723           0 : void LayersPacket_Layer_Size::Swap(LayersPacket_Layer_Size* other) {
    2724           0 :   if (other != this) {
    2725           0 :     std::swap(w_, other->w_);
    2726           0 :     std::swap(h_, other->h_);
    2727           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    2728           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    2729           0 :     std::swap(_cached_size_, other->_cached_size_);
    2730             :   }
    2731           0 : }
    2732             : 
    2733           0 : ::std::string LayersPacket_Layer_Size::GetTypeName() const {
    2734           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer.Size";
    2735             : }
    2736             : 
    2737             : 
    2738             : // -------------------------------------------------------------------
    2739             : 
    2740             : #ifndef _MSC_VER
    2741             : const int LayersPacket_Layer_Rect::kXFieldNumber;
    2742             : const int LayersPacket_Layer_Rect::kYFieldNumber;
    2743             : const int LayersPacket_Layer_Rect::kWFieldNumber;
    2744             : const int LayersPacket_Layer_Rect::kHFieldNumber;
    2745             : #endif  // !_MSC_VER
    2746             : 
    2747           3 : LayersPacket_Layer_Rect::LayersPacket_Layer_Rect()
    2748           3 :   : ::google::protobuf::MessageLite() {
    2749           3 :   SharedCtor();
    2750             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2751           3 : }
    2752             : 
    2753           3 : void LayersPacket_Layer_Rect::InitAsDefaultInstance() {
    2754           3 : }
    2755             : 
    2756           0 : LayersPacket_Layer_Rect::LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect& from)
    2757           0 :   : ::google::protobuf::MessageLite() {
    2758           0 :   SharedCtor();
    2759           0 :   MergeFrom(from);
    2760             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2761           0 : }
    2762             : 
    2763           3 : void LayersPacket_Layer_Rect::SharedCtor() {
    2764           3 :   _cached_size_ = 0;
    2765           3 :   x_ = 0;
    2766           3 :   y_ = 0;
    2767           3 :   w_ = 0;
    2768           3 :   h_ = 0;
    2769           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    2770           3 : }
    2771             : 
    2772           0 : LayersPacket_Layer_Rect::~LayersPacket_Layer_Rect() {
    2773             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2774           0 :   SharedDtor();
    2775           0 : }
    2776             : 
    2777           0 : void LayersPacket_Layer_Rect::SharedDtor() {
    2778             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    2779             :   if (this != &default_instance()) {
    2780             :   #else
    2781           0 :   if (this != default_instance_) {
    2782             :   #endif
    2783             :   }
    2784           0 : }
    2785             : 
    2786           0 : void LayersPacket_Layer_Rect::SetCachedSize(int size) const {
    2787             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    2788           0 :   _cached_size_ = size;
    2789             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    2790           0 : }
    2791           6 : const LayersPacket_Layer_Rect& LayersPacket_Layer_Rect::default_instance() {
    2792             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    2793             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    2794             : #else
    2795           6 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    2796             : #endif
    2797           6 :   return *default_instance_;
    2798             : }
    2799             : 
    2800             : LayersPacket_Layer_Rect* LayersPacket_Layer_Rect::default_instance_ = NULL;
    2801             : 
    2802           0 : LayersPacket_Layer_Rect* LayersPacket_Layer_Rect::New() const {
    2803           0 :   return new LayersPacket_Layer_Rect;
    2804             : }
    2805             : 
    2806           0 : void LayersPacket_Layer_Rect::Clear() {
    2807             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    2808             :   &reinterpret_cast<LayersPacket_Layer_Rect*>(16)->f) - \
    2809             :    reinterpret_cast<char*>(16))
    2810             : 
    2811             : #define ZR_(first, last) do {                              \
    2812             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    2813             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    2814             :     ::memset(&first, 0, n);                                \
    2815             :   } while (0)
    2816             : 
    2817           0 :   ZR_(x_, h_);
    2818             : 
    2819             : #undef OFFSET_OF_FIELD_
    2820             : #undef ZR_
    2821             : 
    2822           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    2823           0 :   mutable_unknown_fields()->clear();
    2824           0 : }
    2825             : 
    2826           0 : bool LayersPacket_Layer_Rect::MergePartialFromCodedStream(
    2827             :     ::google::protobuf::io::CodedInputStream* input) {
    2828             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    2829             :   ::google::protobuf::uint32 tag;
    2830             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    2831           0 :       mutable_unknown_fields());
    2832             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    2833           0 :       &unknown_fields_string);
    2834             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2835             :   for (;;) {
    2836             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    2837           0 :     tag = p.first;
    2838           0 :     if (!p.second) goto handle_unusual;
    2839           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    2840             :       // optional int32 x = 1;
    2841             :       case 1: {
    2842           0 :         if (tag == 8) {
    2843           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2844             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2845             :                  input, &x_)));
    2846           0 :           set_has_x();
    2847             :         } else {
    2848           0 :           goto handle_unusual;
    2849             :         }
    2850           0 :         if (input->ExpectTag(16)) goto parse_y;
    2851           0 :         break;
    2852             :       }
    2853             : 
    2854             :       // optional int32 y = 2;
    2855             :       case 2: {
    2856           0 :         if (tag == 16) {
    2857             :          parse_y:
    2858           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2859             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2860             :                  input, &y_)));
    2861           0 :           set_has_y();
    2862             :         } else {
    2863           0 :           goto handle_unusual;
    2864             :         }
    2865           0 :         if (input->ExpectTag(24)) goto parse_w;
    2866           0 :         break;
    2867             :       }
    2868             : 
    2869             :       // optional int32 w = 3;
    2870             :       case 3: {
    2871           0 :         if (tag == 24) {
    2872             :          parse_w:
    2873           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2874             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2875             :                  input, &w_)));
    2876           0 :           set_has_w();
    2877             :         } else {
    2878           0 :           goto handle_unusual;
    2879             :         }
    2880           0 :         if (input->ExpectTag(32)) goto parse_h;
    2881           0 :         break;
    2882             :       }
    2883             : 
    2884             :       // optional int32 h = 4;
    2885             :       case 4: {
    2886           0 :         if (tag == 32) {
    2887             :          parse_h:
    2888           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    2889             :                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    2890             :                  input, &h_)));
    2891           0 :           set_has_h();
    2892             :         } else {
    2893           0 :           goto handle_unusual;
    2894             :         }
    2895           0 :         if (input->ExpectAtEnd()) goto success;
    2896           0 :         break;
    2897             :       }
    2898             : 
    2899             :       default: {
    2900             :       handle_unusual:
    2901           0 :         if (tag == 0 ||
    2902           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    2903             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    2904           0 :           goto success;
    2905             :         }
    2906           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    2907             :             input, tag, &unknown_fields_stream));
    2908           0 :         break;
    2909             :       }
    2910             :     }
    2911           0 :   }
    2912             : success:
    2913             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2914           0 :   return true;
    2915             : failure:
    2916             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2917           0 :   return false;
    2918             : #undef DO_
    2919             : }
    2920             : 
    2921           0 : void LayersPacket_Layer_Rect::SerializeWithCachedSizes(
    2922             :     ::google::protobuf::io::CodedOutputStream* output) const {
    2923             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2924             :   // optional int32 x = 1;
    2925           0 :   if (has_x()) {
    2926           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->x(), output);
    2927             :   }
    2928             : 
    2929             :   // optional int32 y = 2;
    2930           0 :   if (has_y()) {
    2931           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->y(), output);
    2932             :   }
    2933             : 
    2934             :   // optional int32 w = 3;
    2935           0 :   if (has_w()) {
    2936           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->w(), output);
    2937             :   }
    2938             : 
    2939             :   // optional int32 h = 4;
    2940           0 :   if (has_h()) {
    2941           0 :     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->h(), output);
    2942             :   }
    2943             : 
    2944           0 :   output->WriteRaw(unknown_fields().data(),
    2945           0 :                    unknown_fields().size());
    2946             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
    2947           0 : }
    2948             : 
    2949           0 : int LayersPacket_Layer_Rect::ByteSize() const {
    2950           0 :   int total_size = 0;
    2951             : 
    2952           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2953             :     // optional int32 x = 1;
    2954           0 :     if (has_x()) {
    2955           0 :       total_size += 1 +
    2956           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2957             :           this->x());
    2958             :     }
    2959             : 
    2960             :     // optional int32 y = 2;
    2961           0 :     if (has_y()) {
    2962           0 :       total_size += 1 +
    2963           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2964             :           this->y());
    2965             :     }
    2966             : 
    2967             :     // optional int32 w = 3;
    2968           0 :     if (has_w()) {
    2969           0 :       total_size += 1 +
    2970           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2971             :           this->w());
    2972             :     }
    2973             : 
    2974             :     // optional int32 h = 4;
    2975           0 :     if (has_h()) {
    2976           0 :       total_size += 1 +
    2977           0 :         ::google::protobuf::internal::WireFormatLite::Int32Size(
    2978             :           this->h());
    2979             :     }
    2980             : 
    2981             :   }
    2982           0 :   total_size += unknown_fields().size();
    2983             : 
    2984             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    2985           0 :   _cached_size_ = total_size;
    2986             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    2987           0 :   return total_size;
    2988             : }
    2989             : 
    2990           0 : void LayersPacket_Layer_Rect::CheckTypeAndMergeFrom(
    2991             :     const ::google::protobuf::MessageLite& from) {
    2992           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Rect*>(&from));
    2993           0 : }
    2994             : 
    2995           0 : void LayersPacket_Layer_Rect::MergeFrom(const LayersPacket_Layer_Rect& from) {
    2996           0 :   GOOGLE_CHECK_NE(&from, this);
    2997           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    2998           0 :     if (from.has_x()) {
    2999           0 :       set_x(from.x());
    3000             :     }
    3001           0 :     if (from.has_y()) {
    3002           0 :       set_y(from.y());
    3003             :     }
    3004           0 :     if (from.has_w()) {
    3005           0 :       set_w(from.w());
    3006             :     }
    3007           0 :     if (from.has_h()) {
    3008           0 :       set_h(from.h());
    3009             :     }
    3010             :   }
    3011           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    3012           0 : }
    3013             : 
    3014           0 : void LayersPacket_Layer_Rect::CopyFrom(const LayersPacket_Layer_Rect& from) {
    3015           0 :   if (&from == this) return;
    3016           0 :   Clear();
    3017           0 :   MergeFrom(from);
    3018             : }
    3019             : 
    3020           0 : bool LayersPacket_Layer_Rect::IsInitialized() const {
    3021             : 
    3022           0 :   return true;
    3023             : }
    3024             : 
    3025           0 : void LayersPacket_Layer_Rect::Swap(LayersPacket_Layer_Rect* other) {
    3026           0 :   if (other != this) {
    3027           0 :     std::swap(x_, other->x_);
    3028           0 :     std::swap(y_, other->y_);
    3029           0 :     std::swap(w_, other->w_);
    3030           0 :     std::swap(h_, other->h_);
    3031           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    3032           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    3033           0 :     std::swap(_cached_size_, other->_cached_size_);
    3034             :   }
    3035           0 : }
    3036             : 
    3037           0 : ::std::string LayersPacket_Layer_Rect::GetTypeName() const {
    3038           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer.Rect";
    3039             : }
    3040             : 
    3041             : 
    3042             : // -------------------------------------------------------------------
    3043             : 
    3044             : #ifndef _MSC_VER
    3045             : const int LayersPacket_Layer_Region::kRFieldNumber;
    3046             : #endif  // !_MSC_VER
    3047             : 
    3048           3 : LayersPacket_Layer_Region::LayersPacket_Layer_Region()
    3049           3 :   : ::google::protobuf::MessageLite() {
    3050           3 :   SharedCtor();
    3051             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3052           3 : }
    3053             : 
    3054           3 : void LayersPacket_Layer_Region::InitAsDefaultInstance() {
    3055           3 : }
    3056             : 
    3057           0 : LayersPacket_Layer_Region::LayersPacket_Layer_Region(const LayersPacket_Layer_Region& from)
    3058           0 :   : ::google::protobuf::MessageLite() {
    3059           0 :   SharedCtor();
    3060           0 :   MergeFrom(from);
    3061             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3062           0 : }
    3063             : 
    3064           3 : void LayersPacket_Layer_Region::SharedCtor() {
    3065           3 :   _cached_size_ = 0;
    3066           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3067           3 : }
    3068             : 
    3069           0 : LayersPacket_Layer_Region::~LayersPacket_Layer_Region() {
    3070             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3071           0 :   SharedDtor();
    3072           0 : }
    3073             : 
    3074           0 : void LayersPacket_Layer_Region::SharedDtor() {
    3075             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3076             :   if (this != &default_instance()) {
    3077             :   #else
    3078           0 :   if (this != default_instance_) {
    3079             :   #endif
    3080             :   }
    3081           0 : }
    3082             : 
    3083           0 : void LayersPacket_Layer_Region::SetCachedSize(int size) const {
    3084             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3085           0 :   _cached_size_ = size;
    3086             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3087           0 : }
    3088          24 : const LayersPacket_Layer_Region& LayersPacket_Layer_Region::default_instance() {
    3089             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3090             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    3091             : #else
    3092          24 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    3093             : #endif
    3094          24 :   return *default_instance_;
    3095             : }
    3096             : 
    3097             : LayersPacket_Layer_Region* LayersPacket_Layer_Region::default_instance_ = NULL;
    3098             : 
    3099           0 : LayersPacket_Layer_Region* LayersPacket_Layer_Region::New() const {
    3100           0 :   return new LayersPacket_Layer_Region;
    3101             : }
    3102             : 
    3103           0 : void LayersPacket_Layer_Region::Clear() {
    3104           0 :   r_.Clear();
    3105           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3106           0 :   mutable_unknown_fields()->clear();
    3107           0 : }
    3108             : 
    3109           0 : bool LayersPacket_Layer_Region::MergePartialFromCodedStream(
    3110             :     ::google::protobuf::io::CodedInputStream* input) {
    3111             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    3112             :   ::google::protobuf::uint32 tag;
    3113             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    3114           0 :       mutable_unknown_fields());
    3115             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    3116           0 :       &unknown_fields_string);
    3117             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3118             :   for (;;) {
    3119             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    3120           0 :     tag = p.first;
    3121           0 :     if (!p.second) goto handle_unusual;
    3122           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    3123             :       // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
    3124             :       case 1: {
    3125           0 :         if (tag == 10) {
    3126             :          parse_r:
    3127           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    3128             :                 input, add_r()));
    3129             :         } else {
    3130           0 :           goto handle_unusual;
    3131             :         }
    3132           0 :         if (input->ExpectTag(10)) goto parse_r;
    3133           0 :         if (input->ExpectAtEnd()) goto success;
    3134           0 :         break;
    3135             :       }
    3136             : 
    3137             :       default: {
    3138             :       handle_unusual:
    3139           0 :         if (tag == 0 ||
    3140           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    3141             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    3142           0 :           goto success;
    3143             :         }
    3144           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    3145             :             input, tag, &unknown_fields_stream));
    3146           0 :         break;
    3147             :       }
    3148             :     }
    3149           0 :   }
    3150             : success:
    3151             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3152           0 :   return true;
    3153             : failure:
    3154             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3155           0 :   return false;
    3156             : #undef DO_
    3157             : }
    3158             : 
    3159           0 : void LayersPacket_Layer_Region::SerializeWithCachedSizes(
    3160             :     ::google::protobuf::io::CodedOutputStream* output) const {
    3161             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3162             :   // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
    3163           0 :   for (int i = 0; i < this->r_size(); i++) {
    3164           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    3165           0 :       1, this->r(i), output);
    3166             :   }
    3167             : 
    3168           0 :   output->WriteRaw(unknown_fields().data(),
    3169           0 :                    unknown_fields().size());
    3170             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Region)
    3171           0 : }
    3172             : 
    3173           0 : int LayersPacket_Layer_Region::ByteSize() const {
    3174           0 :   int total_size = 0;
    3175             : 
    3176             :   // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
    3177           0 :   total_size += 1 * this->r_size();
    3178           0 :   for (int i = 0; i < this->r_size(); i++) {
    3179           0 :     total_size +=
    3180           0 :       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    3181             :         this->r(i));
    3182             :   }
    3183             : 
    3184           0 :   total_size += unknown_fields().size();
    3185             : 
    3186             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3187           0 :   _cached_size_ = total_size;
    3188             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3189           0 :   return total_size;
    3190             : }
    3191             : 
    3192           0 : void LayersPacket_Layer_Region::CheckTypeAndMergeFrom(
    3193             :     const ::google::protobuf::MessageLite& from) {
    3194           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Region*>(&from));
    3195           0 : }
    3196             : 
    3197           0 : void LayersPacket_Layer_Region::MergeFrom(const LayersPacket_Layer_Region& from) {
    3198           0 :   GOOGLE_CHECK_NE(&from, this);
    3199           0 :   r_.MergeFrom(from.r_);
    3200           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    3201           0 : }
    3202             : 
    3203           0 : void LayersPacket_Layer_Region::CopyFrom(const LayersPacket_Layer_Region& from) {
    3204           0 :   if (&from == this) return;
    3205           0 :   Clear();
    3206           0 :   MergeFrom(from);
    3207             : }
    3208             : 
    3209           0 : bool LayersPacket_Layer_Region::IsInitialized() const {
    3210             : 
    3211           0 :   return true;
    3212             : }
    3213             : 
    3214           0 : void LayersPacket_Layer_Region::Swap(LayersPacket_Layer_Region* other) {
    3215           0 :   if (other != this) {
    3216           0 :     r_.Swap(&other->r_);
    3217           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    3218           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    3219           0 :     std::swap(_cached_size_, other->_cached_size_);
    3220             :   }
    3221           0 : }
    3222             : 
    3223           0 : ::std::string LayersPacket_Layer_Region::GetTypeName() const {
    3224           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer.Region";
    3225             : }
    3226             : 
    3227             : 
    3228             : // -------------------------------------------------------------------
    3229             : 
    3230             : #ifndef _MSC_VER
    3231             : const int LayersPacket_Layer_Matrix::kIs2DFieldNumber;
    3232             : const int LayersPacket_Layer_Matrix::kIsIdFieldNumber;
    3233             : const int LayersPacket_Layer_Matrix::kMFieldNumber;
    3234             : #endif  // !_MSC_VER
    3235             : 
    3236           3 : LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix()
    3237           3 :   : ::google::protobuf::MessageLite() {
    3238           3 :   SharedCtor();
    3239             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3240           3 : }
    3241             : 
    3242           3 : void LayersPacket_Layer_Matrix::InitAsDefaultInstance() {
    3243           3 : }
    3244             : 
    3245           0 : LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix& from)
    3246           0 :   : ::google::protobuf::MessageLite() {
    3247           0 :   SharedCtor();
    3248           0 :   MergeFrom(from);
    3249             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3250           0 : }
    3251             : 
    3252           3 : void LayersPacket_Layer_Matrix::SharedCtor() {
    3253           3 :   _cached_size_ = 0;
    3254           3 :   is2d_ = false;
    3255           3 :   isid_ = false;
    3256           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3257           3 : }
    3258             : 
    3259           0 : LayersPacket_Layer_Matrix::~LayersPacket_Layer_Matrix() {
    3260             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3261           0 :   SharedDtor();
    3262           0 : }
    3263             : 
    3264           0 : void LayersPacket_Layer_Matrix::SharedDtor() {
    3265             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3266             :   if (this != &default_instance()) {
    3267             :   #else
    3268           0 :   if (this != default_instance_) {
    3269             :   #endif
    3270             :   }
    3271           0 : }
    3272             : 
    3273           0 : void LayersPacket_Layer_Matrix::SetCachedSize(int size) const {
    3274             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3275           0 :   _cached_size_ = size;
    3276             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3277           0 : }
    3278           6 : const LayersPacket_Layer_Matrix& LayersPacket_Layer_Matrix::default_instance() {
    3279             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3280             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    3281             : #else
    3282           6 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    3283             : #endif
    3284           6 :   return *default_instance_;
    3285             : }
    3286             : 
    3287             : LayersPacket_Layer_Matrix* LayersPacket_Layer_Matrix::default_instance_ = NULL;
    3288             : 
    3289           0 : LayersPacket_Layer_Matrix* LayersPacket_Layer_Matrix::New() const {
    3290           0 :   return new LayersPacket_Layer_Matrix;
    3291             : }
    3292             : 
    3293           0 : void LayersPacket_Layer_Matrix::Clear() {
    3294             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    3295             :   &reinterpret_cast<LayersPacket_Layer_Matrix*>(16)->f) - \
    3296             :    reinterpret_cast<char*>(16))
    3297             : 
    3298             : #define ZR_(first, last) do {                              \
    3299             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    3300             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    3301             :     ::memset(&first, 0, n);                                \
    3302             :   } while (0)
    3303             : 
    3304           0 :   ZR_(is2d_, isid_);
    3305             : 
    3306             : #undef OFFSET_OF_FIELD_
    3307             : #undef ZR_
    3308             : 
    3309           0 :   m_.Clear();
    3310           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3311           0 :   mutable_unknown_fields()->clear();
    3312           0 : }
    3313             : 
    3314           0 : bool LayersPacket_Layer_Matrix::MergePartialFromCodedStream(
    3315             :     ::google::protobuf::io::CodedInputStream* input) {
    3316             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    3317             :   ::google::protobuf::uint32 tag;
    3318             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    3319           0 :       mutable_unknown_fields());
    3320             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    3321           0 :       &unknown_fields_string);
    3322             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3323             :   for (;;) {
    3324             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    3325           0 :     tag = p.first;
    3326           0 :     if (!p.second) goto handle_unusual;
    3327           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    3328             :       // optional bool is2D = 1;
    3329             :       case 1: {
    3330           0 :         if (tag == 8) {
    3331           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    3332             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    3333             :                  input, &is2d_)));
    3334           0 :           set_has_is2d();
    3335             :         } else {
    3336           0 :           goto handle_unusual;
    3337             :         }
    3338           0 :         if (input->ExpectTag(16)) goto parse_isId;
    3339           0 :         break;
    3340             :       }
    3341             : 
    3342             :       // optional bool isId = 2;
    3343             :       case 2: {
    3344           0 :         if (tag == 16) {
    3345             :          parse_isId:
    3346           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    3347             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    3348             :                  input, &isid_)));
    3349           0 :           set_has_isid();
    3350             :         } else {
    3351           0 :           goto handle_unusual;
    3352             :         }
    3353           0 :         if (input->ExpectTag(29)) goto parse_m;
    3354           0 :         break;
    3355             :       }
    3356             : 
    3357             :       // repeated float m = 3;
    3358             :       case 3: {
    3359           0 :         if (tag == 29) {
    3360             :          parse_m:
    3361           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
    3362             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    3363             :                  1, 29, input, this->mutable_m())));
    3364           0 :         } else if (tag == 26) {
    3365           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
    3366             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    3367             :                  input, this->mutable_m())));
    3368             :         } else {
    3369           0 :           goto handle_unusual;
    3370             :         }
    3371           0 :         if (input->ExpectTag(29)) goto parse_m;
    3372           0 :         if (input->ExpectAtEnd()) goto success;
    3373           0 :         break;
    3374             :       }
    3375             : 
    3376             :       default: {
    3377             :       handle_unusual:
    3378           0 :         if (tag == 0 ||
    3379           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    3380             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    3381           0 :           goto success;
    3382             :         }
    3383           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    3384             :             input, tag, &unknown_fields_stream));
    3385           0 :         break;
    3386             :       }
    3387             :     }
    3388           0 :   }
    3389             : success:
    3390             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3391           0 :   return true;
    3392             : failure:
    3393             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3394           0 :   return false;
    3395             : #undef DO_
    3396             : }
    3397             : 
    3398           0 : void LayersPacket_Layer_Matrix::SerializeWithCachedSizes(
    3399             :     ::google::protobuf::io::CodedOutputStream* output) const {
    3400             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3401             :   // optional bool is2D = 1;
    3402           0 :   if (has_is2d()) {
    3403           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output);
    3404             :   }
    3405             : 
    3406             :   // optional bool isId = 2;
    3407           0 :   if (has_isid()) {
    3408           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output);
    3409             :   }
    3410             : 
    3411             :   // repeated float m = 3;
    3412           0 :   for (int i = 0; i < this->m_size(); i++) {
    3413           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(
    3414           0 :       3, this->m(i), output);
    3415             :   }
    3416             : 
    3417           0 :   output->WriteRaw(unknown_fields().data(),
    3418           0 :                    unknown_fields().size());
    3419             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
    3420           0 : }
    3421             : 
    3422           0 : int LayersPacket_Layer_Matrix::ByteSize() const {
    3423           0 :   int total_size = 0;
    3424             : 
    3425           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    3426             :     // optional bool is2D = 1;
    3427           0 :     if (has_is2d()) {
    3428           0 :       total_size += 1 + 1;
    3429             :     }
    3430             : 
    3431             :     // optional bool isId = 2;
    3432           0 :     if (has_isid()) {
    3433           0 :       total_size += 1 + 1;
    3434             :     }
    3435             : 
    3436             :   }
    3437             :   // repeated float m = 3;
    3438             :   {
    3439           0 :     int data_size = 0;
    3440           0 :     data_size = 4 * this->m_size();
    3441           0 :     total_size += 1 * this->m_size() + data_size;
    3442             :   }
    3443             : 
    3444           0 :   total_size += unknown_fields().size();
    3445             : 
    3446             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3447           0 :   _cached_size_ = total_size;
    3448             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3449           0 :   return total_size;
    3450             : }
    3451             : 
    3452           0 : void LayersPacket_Layer_Matrix::CheckTypeAndMergeFrom(
    3453             :     const ::google::protobuf::MessageLite& from) {
    3454           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Matrix*>(&from));
    3455           0 : }
    3456             : 
    3457           0 : void LayersPacket_Layer_Matrix::MergeFrom(const LayersPacket_Layer_Matrix& from) {
    3458           0 :   GOOGLE_CHECK_NE(&from, this);
    3459           0 :   m_.MergeFrom(from.m_);
    3460           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    3461           0 :     if (from.has_is2d()) {
    3462           0 :       set_is2d(from.is2d());
    3463             :     }
    3464           0 :     if (from.has_isid()) {
    3465           0 :       set_isid(from.isid());
    3466             :     }
    3467             :   }
    3468           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    3469           0 : }
    3470             : 
    3471           0 : void LayersPacket_Layer_Matrix::CopyFrom(const LayersPacket_Layer_Matrix& from) {
    3472           0 :   if (&from == this) return;
    3473           0 :   Clear();
    3474           0 :   MergeFrom(from);
    3475             : }
    3476             : 
    3477           0 : bool LayersPacket_Layer_Matrix::IsInitialized() const {
    3478             : 
    3479           0 :   return true;
    3480             : }
    3481             : 
    3482           0 : void LayersPacket_Layer_Matrix::Swap(LayersPacket_Layer_Matrix* other) {
    3483           0 :   if (other != this) {
    3484           0 :     std::swap(is2d_, other->is2d_);
    3485           0 :     std::swap(isid_, other->isid_);
    3486           0 :     m_.Swap(&other->m_);
    3487           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    3488           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    3489           0 :     std::swap(_cached_size_, other->_cached_size_);
    3490             :   }
    3491           0 : }
    3492             : 
    3493           0 : ::std::string LayersPacket_Layer_Matrix::GetTypeName() const {
    3494           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer.Matrix";
    3495             : }
    3496             : 
    3497             : 
    3498             : // -------------------------------------------------------------------
    3499             : 
    3500             : #ifndef _MSC_VER
    3501             : const int LayersPacket_Layer_Shadow::kClipFieldNumber;
    3502             : const int LayersPacket_Layer_Shadow::kTransformFieldNumber;
    3503             : const int LayersPacket_Layer_Shadow::kVRegionFieldNumber;
    3504             : #endif  // !_MSC_VER
    3505             : 
    3506           3 : LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow()
    3507           3 :   : ::google::protobuf::MessageLite() {
    3508           3 :   SharedCtor();
    3509             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3510           3 : }
    3511             : 
    3512           3 : void LayersPacket_Layer_Shadow::InitAsDefaultInstance() {
    3513             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3514             :   clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
    3515             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
    3516             : #else
    3517           3 :   clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Rect::default_instance());
    3518             : #endif
    3519             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3520             :   transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
    3521             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
    3522             : #else
    3523           3 :   transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::default_instance());
    3524             : #endif
    3525             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3526             :   vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3527             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3528             : #else
    3529           3 :   vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3530             : #endif
    3531           3 : }
    3532             : 
    3533           0 : LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow& from)
    3534           0 :   : ::google::protobuf::MessageLite() {
    3535           0 :   SharedCtor();
    3536           0 :   MergeFrom(from);
    3537             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3538           0 : }
    3539             : 
    3540           3 : void LayersPacket_Layer_Shadow::SharedCtor() {
    3541           3 :   _cached_size_ = 0;
    3542           3 :   clip_ = NULL;
    3543           3 :   transform_ = NULL;
    3544           3 :   vregion_ = NULL;
    3545           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3546           3 : }
    3547             : 
    3548           0 : LayersPacket_Layer_Shadow::~LayersPacket_Layer_Shadow() {
    3549             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3550           0 :   SharedDtor();
    3551           0 : }
    3552             : 
    3553           0 : void LayersPacket_Layer_Shadow::SharedDtor() {
    3554             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3555             :   if (this != &default_instance()) {
    3556             :   #else
    3557           0 :   if (this != default_instance_) {
    3558             :   #endif
    3559           0 :     delete clip_;
    3560           0 :     delete transform_;
    3561           0 :     delete vregion_;
    3562             :   }
    3563           0 : }
    3564             : 
    3565           0 : void LayersPacket_Layer_Shadow::SetCachedSize(int size) const {
    3566             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3567           0 :   _cached_size_ = size;
    3568             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3569           0 : }
    3570           3 : const LayersPacket_Layer_Shadow& LayersPacket_Layer_Shadow::default_instance() {
    3571             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3572             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    3573             : #else
    3574           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    3575             : #endif
    3576           3 :   return *default_instance_;
    3577             : }
    3578             : 
    3579             : LayersPacket_Layer_Shadow* LayersPacket_Layer_Shadow::default_instance_ = NULL;
    3580             : 
    3581           0 : LayersPacket_Layer_Shadow* LayersPacket_Layer_Shadow::New() const {
    3582           0 :   return new LayersPacket_Layer_Shadow;
    3583             : }
    3584             : 
    3585           0 : void LayersPacket_Layer_Shadow::Clear() {
    3586           0 :   if (_has_bits_[0 / 32] & 7) {
    3587           0 :     if (has_clip()) {
    3588           0 :       if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
    3589             :     }
    3590           0 :     if (has_transform()) {
    3591           0 :       if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
    3592             :     }
    3593           0 :     if (has_vregion()) {
    3594           0 :       if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    3595             :     }
    3596             :   }
    3597           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3598           0 :   mutable_unknown_fields()->clear();
    3599           0 : }
    3600             : 
    3601           0 : bool LayersPacket_Layer_Shadow::MergePartialFromCodedStream(
    3602             :     ::google::protobuf::io::CodedInputStream* input) {
    3603             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    3604             :   ::google::protobuf::uint32 tag;
    3605             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    3606           0 :       mutable_unknown_fields());
    3607             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    3608           0 :       &unknown_fields_string);
    3609             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3610             :   for (;;) {
    3611             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    3612           0 :     tag = p.first;
    3613           0 :     if (!p.second) goto handle_unusual;
    3614           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    3615             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
    3616             :       case 1: {
    3617           0 :         if (tag == 10) {
    3618           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    3619             :                input, mutable_clip()));
    3620             :         } else {
    3621           0 :           goto handle_unusual;
    3622             :         }
    3623           0 :         if (input->ExpectTag(18)) goto parse_transform;
    3624           0 :         break;
    3625             :       }
    3626             : 
    3627             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
    3628             :       case 2: {
    3629           0 :         if (tag == 18) {
    3630             :          parse_transform:
    3631           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    3632             :                input, mutable_transform()));
    3633             :         } else {
    3634           0 :           goto handle_unusual;
    3635             :         }
    3636           0 :         if (input->ExpectTag(26)) goto parse_vRegion;
    3637           0 :         break;
    3638             :       }
    3639             : 
    3640             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
    3641             :       case 3: {
    3642           0 :         if (tag == 26) {
    3643             :          parse_vRegion:
    3644           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    3645             :                input, mutable_vregion()));
    3646             :         } else {
    3647           0 :           goto handle_unusual;
    3648             :         }
    3649           0 :         if (input->ExpectAtEnd()) goto success;
    3650           0 :         break;
    3651             :       }
    3652             : 
    3653             :       default: {
    3654             :       handle_unusual:
    3655           0 :         if (tag == 0 ||
    3656           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    3657             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    3658           0 :           goto success;
    3659             :         }
    3660           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    3661             :             input, tag, &unknown_fields_stream));
    3662           0 :         break;
    3663             :       }
    3664             :     }
    3665           0 :   }
    3666             : success:
    3667             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3668           0 :   return true;
    3669             : failure:
    3670             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3671           0 :   return false;
    3672             : #undef DO_
    3673             : }
    3674             : 
    3675           0 : void LayersPacket_Layer_Shadow::SerializeWithCachedSizes(
    3676             :     ::google::protobuf::io::CodedOutputStream* output) const {
    3677             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3678             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
    3679           0 :   if (has_clip()) {
    3680           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    3681           0 :       1, this->clip(), output);
    3682             :   }
    3683             : 
    3684             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
    3685           0 :   if (has_transform()) {
    3686           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    3687           0 :       2, this->transform(), output);
    3688             :   }
    3689             : 
    3690             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
    3691           0 :   if (has_vregion()) {
    3692           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    3693           0 :       3, this->vregion(), output);
    3694             :   }
    3695             : 
    3696           0 :   output->WriteRaw(unknown_fields().data(),
    3697           0 :                    unknown_fields().size());
    3698             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
    3699           0 : }
    3700             : 
    3701           0 : int LayersPacket_Layer_Shadow::ByteSize() const {
    3702           0 :   int total_size = 0;
    3703             : 
    3704           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    3705             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
    3706           0 :     if (has_clip()) {
    3707           0 :       total_size += 1 +
    3708           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    3709             :           this->clip());
    3710             :     }
    3711             : 
    3712             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
    3713           0 :     if (has_transform()) {
    3714           0 :       total_size += 1 +
    3715           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    3716             :           this->transform());
    3717             :     }
    3718             : 
    3719             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
    3720           0 :     if (has_vregion()) {
    3721           0 :       total_size += 1 +
    3722           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    3723             :           this->vregion());
    3724             :     }
    3725             : 
    3726             :   }
    3727           0 :   total_size += unknown_fields().size();
    3728             : 
    3729             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3730           0 :   _cached_size_ = total_size;
    3731             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3732           0 :   return total_size;
    3733             : }
    3734             : 
    3735           0 : void LayersPacket_Layer_Shadow::CheckTypeAndMergeFrom(
    3736             :     const ::google::protobuf::MessageLite& from) {
    3737           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Shadow*>(&from));
    3738           0 : }
    3739             : 
    3740           0 : void LayersPacket_Layer_Shadow::MergeFrom(const LayersPacket_Layer_Shadow& from) {
    3741           0 :   GOOGLE_CHECK_NE(&from, this);
    3742           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    3743           0 :     if (from.has_clip()) {
    3744           0 :       mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip());
    3745             :     }
    3746           0 :     if (from.has_transform()) {
    3747           0 :       mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform());
    3748             :     }
    3749           0 :     if (from.has_vregion()) {
    3750           0 :       mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion());
    3751             :     }
    3752             :   }
    3753           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    3754           0 : }
    3755             : 
    3756           0 : void LayersPacket_Layer_Shadow::CopyFrom(const LayersPacket_Layer_Shadow& from) {
    3757           0 :   if (&from == this) return;
    3758           0 :   Clear();
    3759           0 :   MergeFrom(from);
    3760             : }
    3761             : 
    3762           0 : bool LayersPacket_Layer_Shadow::IsInitialized() const {
    3763             : 
    3764           0 :   return true;
    3765             : }
    3766             : 
    3767           0 : void LayersPacket_Layer_Shadow::Swap(LayersPacket_Layer_Shadow* other) {
    3768           0 :   if (other != this) {
    3769           0 :     std::swap(clip_, other->clip_);
    3770           0 :     std::swap(transform_, other->transform_);
    3771           0 :     std::swap(vregion_, other->vregion_);
    3772           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    3773           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    3774           0 :     std::swap(_cached_size_, other->_cached_size_);
    3775             :   }
    3776           0 : }
    3777             : 
    3778           0 : ::std::string LayersPacket_Layer_Shadow::GetTypeName() const {
    3779           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer.Shadow";
    3780             : }
    3781             : 
    3782             : 
    3783             : // -------------------------------------------------------------------
    3784             : 
    3785             : #ifndef _MSC_VER
    3786             : const int LayersPacket_Layer::kTypeFieldNumber;
    3787             : const int LayersPacket_Layer::kPtrFieldNumber;
    3788             : const int LayersPacket_Layer::kParentPtrFieldNumber;
    3789             : const int LayersPacket_Layer::kClipFieldNumber;
    3790             : const int LayersPacket_Layer::kTransformFieldNumber;
    3791             : const int LayersPacket_Layer::kVRegionFieldNumber;
    3792             : const int LayersPacket_Layer::kShadowFieldNumber;
    3793             : const int LayersPacket_Layer::kOpacityFieldNumber;
    3794             : const int LayersPacket_Layer::kCOpaqueFieldNumber;
    3795             : const int LayersPacket_Layer::kCAlphaFieldNumber;
    3796             : const int LayersPacket_Layer::kDirectFieldNumber;
    3797             : const int LayersPacket_Layer::kBarIDFieldNumber;
    3798             : const int LayersPacket_Layer::kMaskFieldNumber;
    3799             : const int LayersPacket_Layer::kHitRegionFieldNumber;
    3800             : const int LayersPacket_Layer::kDispatchRegionFieldNumber;
    3801             : const int LayersPacket_Layer::kNoActionRegionFieldNumber;
    3802             : const int LayersPacket_Layer::kHPanRegionFieldNumber;
    3803             : const int LayersPacket_Layer::kVPanRegionFieldNumber;
    3804             : const int LayersPacket_Layer::kValidFieldNumber;
    3805             : const int LayersPacket_Layer::kColorFieldNumber;
    3806             : const int LayersPacket_Layer::kFilterFieldNumber;
    3807             : const int LayersPacket_Layer::kRefIDFieldNumber;
    3808             : const int LayersPacket_Layer::kSizeFieldNumber;
    3809             : const int LayersPacket_Layer::kDisplayListLogLengthFieldNumber;
    3810             : const int LayersPacket_Layer::kDisplayListLogFieldNumber;
    3811             : #endif  // !_MSC_VER
    3812             : 
    3813           3 : LayersPacket_Layer::LayersPacket_Layer()
    3814           3 :   : ::google::protobuf::MessageLite() {
    3815           3 :   SharedCtor();
    3816             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer)
    3817           3 : }
    3818             : 
    3819           3 : void LayersPacket_Layer::InitAsDefaultInstance() {
    3820             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3821             :   clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
    3822             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
    3823             : #else
    3824           3 :   clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Rect::default_instance());
    3825             : #endif
    3826             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3827             :   transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
    3828             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
    3829             : #else
    3830           3 :   transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::default_instance());
    3831             : #endif
    3832             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3833             :   vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3834             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3835             : #else
    3836           3 :   vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3837             : #endif
    3838             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3839             :   shadow_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(
    3840             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::internal_default_instance());
    3841             : #else
    3842           3 :   shadow_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::default_instance());
    3843             : #endif
    3844             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3845             :   hitregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3846             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3847             : #else
    3848           3 :   hitregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3849             : #endif
    3850             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3851             :   dispatchregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3852             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3853             : #else
    3854           3 :   dispatchregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3855             : #endif
    3856             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3857             :   noactionregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3858             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3859             : #else
    3860           3 :   noactionregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3861             : #endif
    3862             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3863             :   hpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3864             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3865             : #else
    3866           3 :   hpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3867             : #endif
    3868             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3869             :   vpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3870             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3871             : #else
    3872           3 :   vpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3873             : #endif
    3874             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3875             :   valid_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
    3876             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
    3877             : #else
    3878           3 :   valid_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Region::default_instance());
    3879             : #endif
    3880             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3881             :   size_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(
    3882             :       ::mozilla::layers::layerscope::LayersPacket_Layer_Size::internal_default_instance());
    3883             : #else
    3884           3 :   size_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(&::mozilla::layers::layerscope::LayersPacket_Layer_Size::default_instance());
    3885             : #endif
    3886           3 : }
    3887             : 
    3888           0 : LayersPacket_Layer::LayersPacket_Layer(const LayersPacket_Layer& from)
    3889           0 :   : ::google::protobuf::MessageLite() {
    3890           0 :   SharedCtor();
    3891           0 :   MergeFrom(from);
    3892             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer)
    3893           0 : }
    3894             : 
    3895           3 : void LayersPacket_Layer::SharedCtor() {
    3896           3 :   ::google::protobuf::internal::GetEmptyString();
    3897           3 :   _cached_size_ = 0;
    3898           3 :   type_ = 0;
    3899           3 :   ptr_ = GOOGLE_ULONGLONG(0);
    3900           3 :   parentptr_ = GOOGLE_ULONGLONG(0);
    3901           3 :   clip_ = NULL;
    3902           3 :   transform_ = NULL;
    3903           3 :   vregion_ = NULL;
    3904           3 :   shadow_ = NULL;
    3905           3 :   opacity_ = 0;
    3906           3 :   copaque_ = false;
    3907           3 :   calpha_ = false;
    3908           3 :   direct_ = 1;
    3909           3 :   barid_ = GOOGLE_ULONGLONG(0);
    3910           3 :   mask_ = GOOGLE_ULONGLONG(0);
    3911           3 :   hitregion_ = NULL;
    3912           3 :   dispatchregion_ = NULL;
    3913           3 :   noactionregion_ = NULL;
    3914           3 :   hpanregion_ = NULL;
    3915           3 :   vpanregion_ = NULL;
    3916           3 :   valid_ = NULL;
    3917           3 :   color_ = 0u;
    3918           3 :   filter_ = 0;
    3919           3 :   refid_ = GOOGLE_ULONGLONG(0);
    3920           3 :   size_ = NULL;
    3921           3 :   displaylistloglength_ = 0u;
    3922           3 :   displaylistlog_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    3923           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    3924           3 : }
    3925             : 
    3926           0 : LayersPacket_Layer::~LayersPacket_Layer() {
    3927             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer)
    3928           0 :   SharedDtor();
    3929           0 : }
    3930             : 
    3931           0 : void LayersPacket_Layer::SharedDtor() {
    3932           0 :   if (displaylistlog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    3933           0 :     delete displaylistlog_;
    3934             :   }
    3935             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3936             :   if (this != &default_instance()) {
    3937             :   #else
    3938           0 :   if (this != default_instance_) {
    3939             :   #endif
    3940           0 :     delete clip_;
    3941           0 :     delete transform_;
    3942           0 :     delete vregion_;
    3943           0 :     delete shadow_;
    3944           0 :     delete hitregion_;
    3945           0 :     delete dispatchregion_;
    3946           0 :     delete noactionregion_;
    3947           0 :     delete hpanregion_;
    3948           0 :     delete vpanregion_;
    3949           0 :     delete valid_;
    3950           0 :     delete size_;
    3951             :   }
    3952           0 : }
    3953             : 
    3954           0 : void LayersPacket_Layer::SetCachedSize(int size) const {
    3955             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    3956           0 :   _cached_size_ = size;
    3957             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    3958           0 : }
    3959           0 : const LayersPacket_Layer& LayersPacket_Layer::default_instance() {
    3960             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    3961             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    3962             : #else
    3963           0 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    3964             : #endif
    3965           0 :   return *default_instance_;
    3966             : }
    3967             : 
    3968             : LayersPacket_Layer* LayersPacket_Layer::default_instance_ = NULL;
    3969             : 
    3970           0 : LayersPacket_Layer* LayersPacket_Layer::New() const {
    3971           0 :   return new LayersPacket_Layer;
    3972             : }
    3973             : 
    3974           0 : void LayersPacket_Layer::Clear() {
    3975             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    3976             :   &reinterpret_cast<LayersPacket_Layer*>(16)->f) - \
    3977             :    reinterpret_cast<char*>(16))
    3978             : 
    3979             : #define ZR_(first, last) do {                              \
    3980             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    3981             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    3982             :     ::memset(&first, 0, n);                                \
    3983             :   } while (0)
    3984             : 
    3985           0 :   if (_has_bits_[0 / 32] & 255) {
    3986           0 :     ZR_(ptr_, parentptr_);
    3987           0 :     ZR_(type_, opacity_);
    3988           0 :     if (has_clip()) {
    3989           0 :       if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear();
    3990             :     }
    3991           0 :     if (has_transform()) {
    3992           0 :       if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear();
    3993             :     }
    3994           0 :     if (has_vregion()) {
    3995           0 :       if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    3996             :     }
    3997           0 :     if (has_shadow()) {
    3998           0 :       if (shadow_ != NULL) shadow_->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::Clear();
    3999             :     }
    4000             :   }
    4001           0 :   if (_has_bits_[8 / 32] & 65280) {
    4002           0 :     ZR_(copaque_, calpha_);
    4003           0 :     ZR_(barid_, mask_);
    4004           0 :     direct_ = 1;
    4005           0 :     if (has_hitregion()) {
    4006           0 :       if (hitregion_ != NULL) hitregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4007             :     }
    4008           0 :     if (has_dispatchregion()) {
    4009           0 :       if (dispatchregion_ != NULL) dispatchregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4010             :     }
    4011           0 :     if (has_noactionregion()) {
    4012           0 :       if (noactionregion_ != NULL) noactionregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4013             :     }
    4014             :   }
    4015           0 :   if (_has_bits_[16 / 32] & 16711680) {
    4016           0 :     ZR_(color_, refid_);
    4017           0 :     if (has_hpanregion()) {
    4018           0 :       if (hpanregion_ != NULL) hpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4019             :     }
    4020           0 :     if (has_vpanregion()) {
    4021           0 :       if (vpanregion_ != NULL) vpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4022             :     }
    4023           0 :     if (has_valid()) {
    4024           0 :       if (valid_ != NULL) valid_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear();
    4025             :     }
    4026           0 :     if (has_size()) {
    4027           0 :       if (size_ != NULL) size_->::mozilla::layers::layerscope::LayersPacket_Layer_Size::Clear();
    4028             :     }
    4029           0 :     displaylistloglength_ = 0u;
    4030             :   }
    4031           0 :   if (has_displaylistlog()) {
    4032           0 :     if (displaylistlog_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    4033           0 :       displaylistlog_->clear();
    4034             :     }
    4035             :   }
    4036             : 
    4037             : #undef OFFSET_OF_FIELD_
    4038             : #undef ZR_
    4039             : 
    4040           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    4041           0 :   mutable_unknown_fields()->clear();
    4042           0 : }
    4043             : 
    4044           0 : bool LayersPacket_Layer::MergePartialFromCodedStream(
    4045             :     ::google::protobuf::io::CodedInputStream* input) {
    4046             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    4047             :   ::google::protobuf::uint32 tag;
    4048             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    4049           0 :       mutable_unknown_fields());
    4050             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    4051           0 :       &unknown_fields_string);
    4052             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer)
    4053             :   for (;;) {
    4054             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
    4055           0 :     tag = p.first;
    4056           0 :     if (!p.second) goto handle_unusual;
    4057           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    4058             :       // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
    4059             :       case 1: {
    4060           0 :         if (tag == 8) {
    4061             :           int value;
    4062           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4063             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    4064             :                  input, &value)));
    4065           0 :           if (::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value)) {
    4066           0 :             set_type(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(value));
    4067             :           } else {
    4068           0 :             unknown_fields_stream.WriteVarint32(tag);
    4069           0 :             unknown_fields_stream.WriteVarint32(value);
    4070             :           }
    4071             :         } else {
    4072           0 :           goto handle_unusual;
    4073             :         }
    4074           0 :         if (input->ExpectTag(16)) goto parse_ptr;
    4075           0 :         break;
    4076             :       }
    4077             : 
    4078             :       // required uint64 ptr = 2;
    4079             :       case 2: {
    4080           0 :         if (tag == 16) {
    4081             :          parse_ptr:
    4082           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4083             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    4084             :                  input, &ptr_)));
    4085           0 :           set_has_ptr();
    4086             :         } else {
    4087           0 :           goto handle_unusual;
    4088             :         }
    4089           0 :         if (input->ExpectTag(24)) goto parse_parentPtr;
    4090           0 :         break;
    4091             :       }
    4092             : 
    4093             :       // required uint64 parentPtr = 3;
    4094             :       case 3: {
    4095           0 :         if (tag == 24) {
    4096             :          parse_parentPtr:
    4097           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4098             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    4099             :                  input, &parentptr_)));
    4100           0 :           set_has_parentptr();
    4101             :         } else {
    4102           0 :           goto handle_unusual;
    4103             :         }
    4104           0 :         if (input->ExpectTag(82)) goto parse_clip;
    4105           0 :         break;
    4106             :       }
    4107             : 
    4108             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
    4109             :       case 10: {
    4110           0 :         if (tag == 82) {
    4111             :          parse_clip:
    4112           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4113             :                input, mutable_clip()));
    4114             :         } else {
    4115           0 :           goto handle_unusual;
    4116             :         }
    4117           0 :         if (input->ExpectTag(90)) goto parse_transform;
    4118           0 :         break;
    4119             :       }
    4120             : 
    4121             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
    4122             :       case 11: {
    4123           0 :         if (tag == 90) {
    4124             :          parse_transform:
    4125           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4126             :                input, mutable_transform()));
    4127             :         } else {
    4128           0 :           goto handle_unusual;
    4129             :         }
    4130           0 :         if (input->ExpectTag(98)) goto parse_vRegion;
    4131           0 :         break;
    4132             :       }
    4133             : 
    4134             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
    4135             :       case 12: {
    4136           0 :         if (tag == 98) {
    4137             :          parse_vRegion:
    4138           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4139             :                input, mutable_vregion()));
    4140             :         } else {
    4141           0 :           goto handle_unusual;
    4142             :         }
    4143           0 :         if (input->ExpectTag(106)) goto parse_shadow;
    4144           0 :         break;
    4145             :       }
    4146             : 
    4147             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
    4148             :       case 13: {
    4149           0 :         if (tag == 106) {
    4150             :          parse_shadow:
    4151           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4152             :                input, mutable_shadow()));
    4153             :         } else {
    4154           0 :           goto handle_unusual;
    4155             :         }
    4156           0 :         if (input->ExpectTag(117)) goto parse_opacity;
    4157           0 :         break;
    4158             :       }
    4159             : 
    4160             :       // optional float opacity = 14;
    4161             :       case 14: {
    4162           0 :         if (tag == 117) {
    4163             :          parse_opacity:
    4164           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4165             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    4166             :                  input, &opacity_)));
    4167           0 :           set_has_opacity();
    4168             :         } else {
    4169           0 :           goto handle_unusual;
    4170             :         }
    4171           0 :         if (input->ExpectTag(120)) goto parse_cOpaque;
    4172           0 :         break;
    4173             :       }
    4174             : 
    4175             :       // optional bool cOpaque = 15;
    4176             :       case 15: {
    4177           0 :         if (tag == 120) {
    4178             :          parse_cOpaque:
    4179           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4180             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    4181             :                  input, &copaque_)));
    4182           0 :           set_has_copaque();
    4183             :         } else {
    4184           0 :           goto handle_unusual;
    4185             :         }
    4186           0 :         if (input->ExpectTag(128)) goto parse_cAlpha;
    4187           0 :         break;
    4188             :       }
    4189             : 
    4190             :       // optional bool cAlpha = 16;
    4191             :       case 16: {
    4192           0 :         if (tag == 128) {
    4193             :          parse_cAlpha:
    4194           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4195             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    4196             :                  input, &calpha_)));
    4197           0 :           set_has_calpha();
    4198             :         } else {
    4199           0 :           goto handle_unusual;
    4200             :         }
    4201           0 :         if (input->ExpectTag(136)) goto parse_direct;
    4202           0 :         break;
    4203             :       }
    4204             : 
    4205             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
    4206             :       case 17: {
    4207           0 :         if (tag == 136) {
    4208             :          parse_direct:
    4209             :           int value;
    4210           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4211             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    4212             :                  input, &value)));
    4213           0 :           if (::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value)) {
    4214           0 :             set_direct(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(value));
    4215             :           } else {
    4216           0 :             unknown_fields_stream.WriteVarint32(tag);
    4217           0 :             unknown_fields_stream.WriteVarint32(value);
    4218             :           }
    4219             :         } else {
    4220           0 :           goto handle_unusual;
    4221             :         }
    4222           0 :         if (input->ExpectTag(144)) goto parse_barID;
    4223           0 :         break;
    4224             :       }
    4225             : 
    4226             :       // optional uint64 barID = 18;
    4227             :       case 18: {
    4228           0 :         if (tag == 144) {
    4229             :          parse_barID:
    4230           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4231             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    4232             :                  input, &barid_)));
    4233           0 :           set_has_barid();
    4234             :         } else {
    4235           0 :           goto handle_unusual;
    4236             :         }
    4237           0 :         if (input->ExpectTag(152)) goto parse_mask;
    4238           0 :         break;
    4239             :       }
    4240             : 
    4241             :       // optional uint64 mask = 19;
    4242             :       case 19: {
    4243           0 :         if (tag == 152) {
    4244             :          parse_mask:
    4245           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4246             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    4247             :                  input, &mask_)));
    4248           0 :           set_has_mask();
    4249             :         } else {
    4250           0 :           goto handle_unusual;
    4251             :         }
    4252           0 :         if (input->ExpectTag(162)) goto parse_hitRegion;
    4253           0 :         break;
    4254             :       }
    4255             : 
    4256             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
    4257             :       case 20: {
    4258           0 :         if (tag == 162) {
    4259             :          parse_hitRegion:
    4260           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4261             :                input, mutable_hitregion()));
    4262             :         } else {
    4263           0 :           goto handle_unusual;
    4264             :         }
    4265           0 :         if (input->ExpectTag(170)) goto parse_dispatchRegion;
    4266           0 :         break;
    4267             :       }
    4268             : 
    4269             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
    4270             :       case 21: {
    4271           0 :         if (tag == 170) {
    4272             :          parse_dispatchRegion:
    4273           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4274             :                input, mutable_dispatchregion()));
    4275             :         } else {
    4276           0 :           goto handle_unusual;
    4277             :         }
    4278           0 :         if (input->ExpectTag(178)) goto parse_noActionRegion;
    4279           0 :         break;
    4280             :       }
    4281             : 
    4282             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
    4283             :       case 22: {
    4284           0 :         if (tag == 178) {
    4285             :          parse_noActionRegion:
    4286           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4287             :                input, mutable_noactionregion()));
    4288             :         } else {
    4289           0 :           goto handle_unusual;
    4290             :         }
    4291           0 :         if (input->ExpectTag(186)) goto parse_hPanRegion;
    4292           0 :         break;
    4293             :       }
    4294             : 
    4295             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
    4296             :       case 23: {
    4297           0 :         if (tag == 186) {
    4298             :          parse_hPanRegion:
    4299           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4300             :                input, mutable_hpanregion()));
    4301             :         } else {
    4302           0 :           goto handle_unusual;
    4303             :         }
    4304           0 :         if (input->ExpectTag(194)) goto parse_vPanRegion;
    4305           0 :         break;
    4306             :       }
    4307             : 
    4308             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
    4309             :       case 24: {
    4310           0 :         if (tag == 194) {
    4311             :          parse_vPanRegion:
    4312           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4313             :                input, mutable_vpanregion()));
    4314             :         } else {
    4315           0 :           goto handle_unusual;
    4316             :         }
    4317           0 :         if (input->ExpectTag(802)) goto parse_valid;
    4318           0 :         break;
    4319             :       }
    4320             : 
    4321             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
    4322             :       case 100: {
    4323           0 :         if (tag == 802) {
    4324             :          parse_valid:
    4325           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4326             :                input, mutable_valid()));
    4327             :         } else {
    4328           0 :           goto handle_unusual;
    4329             :         }
    4330           0 :         if (input->ExpectTag(808)) goto parse_color;
    4331           0 :         break;
    4332             :       }
    4333             : 
    4334             :       // optional uint32 color = 101;
    4335             :       case 101: {
    4336           0 :         if (tag == 808) {
    4337             :          parse_color:
    4338           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4339             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    4340             :                  input, &color_)));
    4341           0 :           set_has_color();
    4342             :         } else {
    4343           0 :           goto handle_unusual;
    4344             :         }
    4345           0 :         if (input->ExpectTag(816)) goto parse_filter;
    4346           0 :         break;
    4347             :       }
    4348             : 
    4349             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
    4350             :       case 102: {
    4351           0 :         if (tag == 816) {
    4352             :          parse_filter:
    4353             :           int value;
    4354           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4355             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    4356             :                  input, &value)));
    4357           0 :           if (::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value)) {
    4358           0 :             set_filter(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(value));
    4359             :           } else {
    4360           0 :             unknown_fields_stream.WriteVarint32(tag);
    4361           0 :             unknown_fields_stream.WriteVarint32(value);
    4362             :           }
    4363             :         } else {
    4364           0 :           goto handle_unusual;
    4365             :         }
    4366           0 :         if (input->ExpectTag(824)) goto parse_refID;
    4367           0 :         break;
    4368             :       }
    4369             : 
    4370             :       // optional uint64 refID = 103;
    4371             :       case 103: {
    4372           0 :         if (tag == 824) {
    4373             :          parse_refID:
    4374           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4375             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    4376             :                  input, &refid_)));
    4377           0 :           set_has_refid();
    4378             :         } else {
    4379           0 :           goto handle_unusual;
    4380             :         }
    4381           0 :         if (input->ExpectTag(834)) goto parse_size;
    4382           0 :         break;
    4383             :       }
    4384             : 
    4385             :       // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
    4386             :       case 104: {
    4387           0 :         if (tag == 834) {
    4388             :          parse_size:
    4389           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    4390             :                input, mutable_size()));
    4391             :         } else {
    4392           0 :           goto handle_unusual;
    4393             :         }
    4394           0 :         if (input->ExpectTag(840)) goto parse_displayListLogLength;
    4395           0 :         break;
    4396             :       }
    4397             : 
    4398             :       // optional uint32 displayListLogLength = 105;
    4399             :       case 105: {
    4400           0 :         if (tag == 840) {
    4401             :          parse_displayListLogLength:
    4402           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    4403             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    4404             :                  input, &displaylistloglength_)));
    4405           0 :           set_has_displaylistloglength();
    4406             :         } else {
    4407           0 :           goto handle_unusual;
    4408             :         }
    4409           0 :         if (input->ExpectTag(850)) goto parse_displayListLog;
    4410           0 :         break;
    4411             :       }
    4412             : 
    4413             :       // optional bytes displayListLog = 106;
    4414             :       case 106: {
    4415           0 :         if (tag == 850) {
    4416             :          parse_displayListLog:
    4417           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
    4418             :                 input, this->mutable_displaylistlog()));
    4419             :         } else {
    4420           0 :           goto handle_unusual;
    4421             :         }
    4422           0 :         if (input->ExpectAtEnd()) goto success;
    4423           0 :         break;
    4424             :       }
    4425             : 
    4426             :       default: {
    4427             :       handle_unusual:
    4428           0 :         if (tag == 0 ||
    4429           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    4430             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    4431           0 :           goto success;
    4432             :         }
    4433           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    4434             :             input, tag, &unknown_fields_stream));
    4435           0 :         break;
    4436             :       }
    4437             :     }
    4438           0 :   }
    4439             : success:
    4440             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer)
    4441           0 :   return true;
    4442             : failure:
    4443             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer)
    4444           0 :   return false;
    4445             : #undef DO_
    4446             : }
    4447             : 
    4448           0 : void LayersPacket_Layer::SerializeWithCachedSizes(
    4449             :     ::google::protobuf::io::CodedOutputStream* output) const {
    4450             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer)
    4451             :   // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
    4452           0 :   if (has_type()) {
    4453           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    4454           0 :       1, this->type(), output);
    4455             :   }
    4456             : 
    4457             :   // required uint64 ptr = 2;
    4458           0 :   if (has_ptr()) {
    4459           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ptr(), output);
    4460             :   }
    4461             : 
    4462             :   // required uint64 parentPtr = 3;
    4463           0 :   if (has_parentptr()) {
    4464           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->parentptr(), output);
    4465             :   }
    4466             : 
    4467             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
    4468           0 :   if (has_clip()) {
    4469           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4470           0 :       10, this->clip(), output);
    4471             :   }
    4472             : 
    4473             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
    4474           0 :   if (has_transform()) {
    4475           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4476           0 :       11, this->transform(), output);
    4477             :   }
    4478             : 
    4479             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
    4480           0 :   if (has_vregion()) {
    4481           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4482           0 :       12, this->vregion(), output);
    4483             :   }
    4484             : 
    4485             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
    4486           0 :   if (has_shadow()) {
    4487           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4488           0 :       13, this->shadow(), output);
    4489             :   }
    4490             : 
    4491             :   // optional float opacity = 14;
    4492           0 :   if (has_opacity()) {
    4493           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->opacity(), output);
    4494             :   }
    4495             : 
    4496             :   // optional bool cOpaque = 15;
    4497           0 :   if (has_copaque()) {
    4498           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->copaque(), output);
    4499             :   }
    4500             : 
    4501             :   // optional bool cAlpha = 16;
    4502           0 :   if (has_calpha()) {
    4503           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->calpha(), output);
    4504             :   }
    4505             : 
    4506             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
    4507           0 :   if (has_direct()) {
    4508           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    4509           0 :       17, this->direct(), output);
    4510             :   }
    4511             : 
    4512             :   // optional uint64 barID = 18;
    4513           0 :   if (has_barid()) {
    4514           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->barid(), output);
    4515             :   }
    4516             : 
    4517             :   // optional uint64 mask = 19;
    4518           0 :   if (has_mask()) {
    4519           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(19, this->mask(), output);
    4520             :   }
    4521             : 
    4522             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
    4523           0 :   if (has_hitregion()) {
    4524           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4525           0 :       20, this->hitregion(), output);
    4526             :   }
    4527             : 
    4528             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
    4529           0 :   if (has_dispatchregion()) {
    4530           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4531           0 :       21, this->dispatchregion(), output);
    4532             :   }
    4533             : 
    4534             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
    4535           0 :   if (has_noactionregion()) {
    4536           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4537           0 :       22, this->noactionregion(), output);
    4538             :   }
    4539             : 
    4540             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
    4541           0 :   if (has_hpanregion()) {
    4542           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4543           0 :       23, this->hpanregion(), output);
    4544             :   }
    4545             : 
    4546             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
    4547           0 :   if (has_vpanregion()) {
    4548           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4549           0 :       24, this->vpanregion(), output);
    4550             :   }
    4551             : 
    4552             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
    4553           0 :   if (has_valid()) {
    4554           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4555           0 :       100, this->valid(), output);
    4556             :   }
    4557             : 
    4558             :   // optional uint32 color = 101;
    4559           0 :   if (has_color()) {
    4560           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(101, this->color(), output);
    4561             :   }
    4562             : 
    4563             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
    4564           0 :   if (has_filter()) {
    4565           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    4566           0 :       102, this->filter(), output);
    4567             :   }
    4568             : 
    4569             :   // optional uint64 refID = 103;
    4570           0 :   if (has_refid()) {
    4571           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(103, this->refid(), output);
    4572             :   }
    4573             : 
    4574             :   // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
    4575           0 :   if (has_size()) {
    4576           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    4577           0 :       104, this->size(), output);
    4578             :   }
    4579             : 
    4580             :   // optional uint32 displayListLogLength = 105;
    4581           0 :   if (has_displaylistloglength()) {
    4582           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(105, this->displaylistloglength(), output);
    4583             :   }
    4584             : 
    4585             :   // optional bytes displayListLog = 106;
    4586           0 :   if (has_displaylistlog()) {
    4587           0 :     ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
    4588           0 :       106, this->displaylistlog(), output);
    4589             :   }
    4590             : 
    4591           0 :   output->WriteRaw(unknown_fields().data(),
    4592           0 :                    unknown_fields().size());
    4593             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer)
    4594           0 : }
    4595             : 
    4596           0 : int LayersPacket_Layer::ByteSize() const {
    4597           0 :   int total_size = 0;
    4598             : 
    4599           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    4600             :     // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
    4601           0 :     if (has_type()) {
    4602           0 :       total_size += 1 +
    4603           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
    4604             :     }
    4605             : 
    4606             :     // required uint64 ptr = 2;
    4607           0 :     if (has_ptr()) {
    4608           0 :       total_size += 1 +
    4609           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    4610             :           this->ptr());
    4611             :     }
    4612             : 
    4613             :     // required uint64 parentPtr = 3;
    4614           0 :     if (has_parentptr()) {
    4615           0 :       total_size += 1 +
    4616           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    4617             :           this->parentptr());
    4618             :     }
    4619             : 
    4620             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
    4621           0 :     if (has_clip()) {
    4622           0 :       total_size += 1 +
    4623           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4624             :           this->clip());
    4625             :     }
    4626             : 
    4627             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
    4628           0 :     if (has_transform()) {
    4629           0 :       total_size += 1 +
    4630           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4631             :           this->transform());
    4632             :     }
    4633             : 
    4634             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
    4635           0 :     if (has_vregion()) {
    4636           0 :       total_size += 1 +
    4637           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4638             :           this->vregion());
    4639             :     }
    4640             : 
    4641             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
    4642           0 :     if (has_shadow()) {
    4643           0 :       total_size += 1 +
    4644           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4645             :           this->shadow());
    4646             :     }
    4647             : 
    4648             :     // optional float opacity = 14;
    4649           0 :     if (has_opacity()) {
    4650           0 :       total_size += 1 + 4;
    4651             :     }
    4652             : 
    4653             :   }
    4654           0 :   if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
    4655             :     // optional bool cOpaque = 15;
    4656           0 :     if (has_copaque()) {
    4657           0 :       total_size += 1 + 1;
    4658             :     }
    4659             : 
    4660             :     // optional bool cAlpha = 16;
    4661           0 :     if (has_calpha()) {
    4662           0 :       total_size += 2 + 1;
    4663             :     }
    4664             : 
    4665             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
    4666           0 :     if (has_direct()) {
    4667           0 :       total_size += 2 +
    4668           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->direct());
    4669             :     }
    4670             : 
    4671             :     // optional uint64 barID = 18;
    4672           0 :     if (has_barid()) {
    4673           0 :       total_size += 2 +
    4674           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    4675             :           this->barid());
    4676             :     }
    4677             : 
    4678             :     // optional uint64 mask = 19;
    4679           0 :     if (has_mask()) {
    4680           0 :       total_size += 2 +
    4681           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    4682             :           this->mask());
    4683             :     }
    4684             : 
    4685             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
    4686           0 :     if (has_hitregion()) {
    4687           0 :       total_size += 2 +
    4688           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4689             :           this->hitregion());
    4690             :     }
    4691             : 
    4692             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
    4693           0 :     if (has_dispatchregion()) {
    4694           0 :       total_size += 2 +
    4695           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4696             :           this->dispatchregion());
    4697             :     }
    4698             : 
    4699             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
    4700           0 :     if (has_noactionregion()) {
    4701           0 :       total_size += 2 +
    4702           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4703             :           this->noactionregion());
    4704             :     }
    4705             : 
    4706             :   }
    4707           0 :   if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
    4708             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
    4709           0 :     if (has_hpanregion()) {
    4710           0 :       total_size += 2 +
    4711           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4712             :           this->hpanregion());
    4713             :     }
    4714             : 
    4715             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
    4716           0 :     if (has_vpanregion()) {
    4717           0 :       total_size += 2 +
    4718           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4719             :           this->vpanregion());
    4720             :     }
    4721             : 
    4722             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
    4723           0 :     if (has_valid()) {
    4724           0 :       total_size += 2 +
    4725           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4726             :           this->valid());
    4727             :     }
    4728             : 
    4729             :     // optional uint32 color = 101;
    4730           0 :     if (has_color()) {
    4731           0 :       total_size += 2 +
    4732           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    4733             :           this->color());
    4734             :     }
    4735             : 
    4736             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
    4737           0 :     if (has_filter()) {
    4738           0 :       total_size += 2 +
    4739           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->filter());
    4740             :     }
    4741             : 
    4742             :     // optional uint64 refID = 103;
    4743           0 :     if (has_refid()) {
    4744           0 :       total_size += 2 +
    4745           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    4746             :           this->refid());
    4747             :     }
    4748             : 
    4749             :     // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
    4750           0 :     if (has_size()) {
    4751           0 :       total_size += 2 +
    4752           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    4753             :           this->size());
    4754             :     }
    4755             : 
    4756             :     // optional uint32 displayListLogLength = 105;
    4757           0 :     if (has_displaylistloglength()) {
    4758           0 :       total_size += 2 +
    4759           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    4760             :           this->displaylistloglength());
    4761             :     }
    4762             : 
    4763             :   }
    4764           0 :   if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) {
    4765             :     // optional bytes displayListLog = 106;
    4766           0 :     if (has_displaylistlog()) {
    4767           0 :       total_size += 2 +
    4768           0 :         ::google::protobuf::internal::WireFormatLite::BytesSize(
    4769             :           this->displaylistlog());
    4770             :     }
    4771             : 
    4772             :   }
    4773           0 :   total_size += unknown_fields().size();
    4774             : 
    4775             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    4776           0 :   _cached_size_ = total_size;
    4777             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    4778           0 :   return total_size;
    4779             : }
    4780             : 
    4781           0 : void LayersPacket_Layer::CheckTypeAndMergeFrom(
    4782             :     const ::google::protobuf::MessageLite& from) {
    4783           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer*>(&from));
    4784           0 : }
    4785             : 
    4786           0 : void LayersPacket_Layer::MergeFrom(const LayersPacket_Layer& from) {
    4787           0 :   GOOGLE_CHECK_NE(&from, this);
    4788           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    4789           0 :     if (from.has_type()) {
    4790           0 :       set_type(from.type());
    4791             :     }
    4792           0 :     if (from.has_ptr()) {
    4793           0 :       set_ptr(from.ptr());
    4794             :     }
    4795           0 :     if (from.has_parentptr()) {
    4796           0 :       set_parentptr(from.parentptr());
    4797             :     }
    4798           0 :     if (from.has_clip()) {
    4799           0 :       mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip());
    4800             :     }
    4801           0 :     if (from.has_transform()) {
    4802           0 :       mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform());
    4803             :     }
    4804           0 :     if (from.has_vregion()) {
    4805           0 :       mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion());
    4806             :     }
    4807           0 :     if (from.has_shadow()) {
    4808           0 :       mutable_shadow()->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::MergeFrom(from.shadow());
    4809             :     }
    4810           0 :     if (from.has_opacity()) {
    4811           0 :       set_opacity(from.opacity());
    4812             :     }
    4813             :   }
    4814           0 :   if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
    4815           0 :     if (from.has_copaque()) {
    4816           0 :       set_copaque(from.copaque());
    4817             :     }
    4818           0 :     if (from.has_calpha()) {
    4819           0 :       set_calpha(from.calpha());
    4820             :     }
    4821           0 :     if (from.has_direct()) {
    4822           0 :       set_direct(from.direct());
    4823             :     }
    4824           0 :     if (from.has_barid()) {
    4825           0 :       set_barid(from.barid());
    4826             :     }
    4827           0 :     if (from.has_mask()) {
    4828           0 :       set_mask(from.mask());
    4829             :     }
    4830           0 :     if (from.has_hitregion()) {
    4831           0 :       mutable_hitregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hitregion());
    4832             :     }
    4833           0 :     if (from.has_dispatchregion()) {
    4834           0 :       mutable_dispatchregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.dispatchregion());
    4835             :     }
    4836           0 :     if (from.has_noactionregion()) {
    4837           0 :       mutable_noactionregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.noactionregion());
    4838             :     }
    4839             :   }
    4840           0 :   if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
    4841           0 :     if (from.has_hpanregion()) {
    4842           0 :       mutable_hpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hpanregion());
    4843             :     }
    4844           0 :     if (from.has_vpanregion()) {
    4845           0 :       mutable_vpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vpanregion());
    4846             :     }
    4847           0 :     if (from.has_valid()) {
    4848           0 :       mutable_valid()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.valid());
    4849             :     }
    4850           0 :     if (from.has_color()) {
    4851           0 :       set_color(from.color());
    4852             :     }
    4853           0 :     if (from.has_filter()) {
    4854           0 :       set_filter(from.filter());
    4855             :     }
    4856           0 :     if (from.has_refid()) {
    4857           0 :       set_refid(from.refid());
    4858             :     }
    4859           0 :     if (from.has_size()) {
    4860           0 :       mutable_size()->::mozilla::layers::layerscope::LayersPacket_Layer_Size::MergeFrom(from.size());
    4861             :     }
    4862           0 :     if (from.has_displaylistloglength()) {
    4863           0 :       set_displaylistloglength(from.displaylistloglength());
    4864             :     }
    4865             :   }
    4866           0 :   if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) {
    4867           0 :     if (from.has_displaylistlog()) {
    4868           0 :       set_displaylistlog(from.displaylistlog());
    4869             :     }
    4870             :   }
    4871           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    4872           0 : }
    4873             : 
    4874           0 : void LayersPacket_Layer::CopyFrom(const LayersPacket_Layer& from) {
    4875           0 :   if (&from == this) return;
    4876           0 :   Clear();
    4877           0 :   MergeFrom(from);
    4878             : }
    4879             : 
    4880           0 : bool LayersPacket_Layer::IsInitialized() const {
    4881           0 :   if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
    4882             : 
    4883           0 :   return true;
    4884             : }
    4885             : 
    4886           0 : void LayersPacket_Layer::Swap(LayersPacket_Layer* other) {
    4887           0 :   if (other != this) {
    4888           0 :     std::swap(type_, other->type_);
    4889           0 :     std::swap(ptr_, other->ptr_);
    4890           0 :     std::swap(parentptr_, other->parentptr_);
    4891           0 :     std::swap(clip_, other->clip_);
    4892           0 :     std::swap(transform_, other->transform_);
    4893           0 :     std::swap(vregion_, other->vregion_);
    4894           0 :     std::swap(shadow_, other->shadow_);
    4895           0 :     std::swap(opacity_, other->opacity_);
    4896           0 :     std::swap(copaque_, other->copaque_);
    4897           0 :     std::swap(calpha_, other->calpha_);
    4898           0 :     std::swap(direct_, other->direct_);
    4899           0 :     std::swap(barid_, other->barid_);
    4900           0 :     std::swap(mask_, other->mask_);
    4901           0 :     std::swap(hitregion_, other->hitregion_);
    4902           0 :     std::swap(dispatchregion_, other->dispatchregion_);
    4903           0 :     std::swap(noactionregion_, other->noactionregion_);
    4904           0 :     std::swap(hpanregion_, other->hpanregion_);
    4905           0 :     std::swap(vpanregion_, other->vpanregion_);
    4906           0 :     std::swap(valid_, other->valid_);
    4907           0 :     std::swap(color_, other->color_);
    4908           0 :     std::swap(filter_, other->filter_);
    4909           0 :     std::swap(refid_, other->refid_);
    4910           0 :     std::swap(size_, other->size_);
    4911           0 :     std::swap(displaylistloglength_, other->displaylistloglength_);
    4912           0 :     std::swap(displaylistlog_, other->displaylistlog_);
    4913           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    4914           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    4915           0 :     std::swap(_cached_size_, other->_cached_size_);
    4916             :   }
    4917           0 : }
    4918             : 
    4919           0 : ::std::string LayersPacket_Layer::GetTypeName() const {
    4920           0 :   return "mozilla.layers.layerscope.LayersPacket.Layer";
    4921             : }
    4922             : 
    4923             : 
    4924             : // -------------------------------------------------------------------
    4925             : 
    4926             : #ifndef _MSC_VER
    4927             : const int LayersPacket::kLayerFieldNumber;
    4928             : #endif  // !_MSC_VER
    4929             : 
    4930           3 : LayersPacket::LayersPacket()
    4931           3 :   : ::google::protobuf::MessageLite() {
    4932           3 :   SharedCtor();
    4933             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket)
    4934           3 : }
    4935             : 
    4936           3 : void LayersPacket::InitAsDefaultInstance() {
    4937           3 : }
    4938             : 
    4939           0 : LayersPacket::LayersPacket(const LayersPacket& from)
    4940           0 :   : ::google::protobuf::MessageLite() {
    4941           0 :   SharedCtor();
    4942           0 :   MergeFrom(from);
    4943             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket)
    4944           0 : }
    4945             : 
    4946           3 : void LayersPacket::SharedCtor() {
    4947           3 :   _cached_size_ = 0;
    4948           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    4949           3 : }
    4950             : 
    4951           0 : LayersPacket::~LayersPacket() {
    4952             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket)
    4953           0 :   SharedDtor();
    4954           0 : }
    4955             : 
    4956           0 : void LayersPacket::SharedDtor() {
    4957             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    4958             :   if (this != &default_instance()) {
    4959             :   #else
    4960           0 :   if (this != default_instance_) {
    4961             :   #endif
    4962             :   }
    4963           0 : }
    4964             : 
    4965           0 : void LayersPacket::SetCachedSize(int size) const {
    4966             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    4967           0 :   _cached_size_ = size;
    4968             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    4969           0 : }
    4970           3 : const LayersPacket& LayersPacket::default_instance() {
    4971             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    4972             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    4973             : #else
    4974           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    4975             : #endif
    4976           3 :   return *default_instance_;
    4977             : }
    4978             : 
    4979             : LayersPacket* LayersPacket::default_instance_ = NULL;
    4980             : 
    4981           0 : LayersPacket* LayersPacket::New() const {
    4982           0 :   return new LayersPacket;
    4983             : }
    4984             : 
    4985           0 : void LayersPacket::Clear() {
    4986           0 :   layer_.Clear();
    4987           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    4988           0 :   mutable_unknown_fields()->clear();
    4989           0 : }
    4990             : 
    4991           0 : bool LayersPacket::MergePartialFromCodedStream(
    4992             :     ::google::protobuf::io::CodedInputStream* input) {
    4993             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    4994             :   ::google::protobuf::uint32 tag;
    4995             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    4996           0 :       mutable_unknown_fields());
    4997             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    4998           0 :       &unknown_fields_string);
    4999             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket)
    5000             :   for (;;) {
    5001             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    5002           0 :     tag = p.first;
    5003           0 :     if (!p.second) goto handle_unusual;
    5004           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    5005             :       // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
    5006             :       case 1: {
    5007           0 :         if (tag == 10) {
    5008             :          parse_layer:
    5009           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    5010             :                 input, add_layer()));
    5011             :         } else {
    5012           0 :           goto handle_unusual;
    5013             :         }
    5014           0 :         if (input->ExpectTag(10)) goto parse_layer;
    5015           0 :         if (input->ExpectAtEnd()) goto success;
    5016           0 :         break;
    5017             :       }
    5018             : 
    5019             :       default: {
    5020             :       handle_unusual:
    5021           0 :         if (tag == 0 ||
    5022           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    5023             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    5024           0 :           goto success;
    5025             :         }
    5026           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    5027             :             input, tag, &unknown_fields_stream));
    5028           0 :         break;
    5029             :       }
    5030             :     }
    5031           0 :   }
    5032             : success:
    5033             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket)
    5034           0 :   return true;
    5035             : failure:
    5036             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket)
    5037           0 :   return false;
    5038             : #undef DO_
    5039             : }
    5040             : 
    5041           0 : void LayersPacket::SerializeWithCachedSizes(
    5042             :     ::google::protobuf::io::CodedOutputStream* output) const {
    5043             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket)
    5044             :   // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
    5045           0 :   for (int i = 0; i < this->layer_size(); i++) {
    5046           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    5047           0 :       1, this->layer(i), output);
    5048             :   }
    5049             : 
    5050           0 :   output->WriteRaw(unknown_fields().data(),
    5051           0 :                    unknown_fields().size());
    5052             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket)
    5053           0 : }
    5054             : 
    5055           0 : int LayersPacket::ByteSize() const {
    5056           0 :   int total_size = 0;
    5057             : 
    5058             :   // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
    5059           0 :   total_size += 1 * this->layer_size();
    5060           0 :   for (int i = 0; i < this->layer_size(); i++) {
    5061           0 :     total_size +=
    5062           0 :       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    5063             :         this->layer(i));
    5064             :   }
    5065             : 
    5066           0 :   total_size += unknown_fields().size();
    5067             : 
    5068             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5069           0 :   _cached_size_ = total_size;
    5070             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5071           0 :   return total_size;
    5072             : }
    5073             : 
    5074           0 : void LayersPacket::CheckTypeAndMergeFrom(
    5075             :     const ::google::protobuf::MessageLite& from) {
    5076           0 :   MergeFrom(*::google::protobuf::down_cast<const LayersPacket*>(&from));
    5077           0 : }
    5078             : 
    5079           0 : void LayersPacket::MergeFrom(const LayersPacket& from) {
    5080           0 :   GOOGLE_CHECK_NE(&from, this);
    5081           0 :   layer_.MergeFrom(from.layer_);
    5082           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    5083           0 : }
    5084             : 
    5085           0 : void LayersPacket::CopyFrom(const LayersPacket& from) {
    5086           0 :   if (&from == this) return;
    5087           0 :   Clear();
    5088           0 :   MergeFrom(from);
    5089             : }
    5090             : 
    5091           0 : bool LayersPacket::IsInitialized() const {
    5092             : 
    5093           0 :   if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false;
    5094           0 :   return true;
    5095             : }
    5096             : 
    5097           0 : void LayersPacket::Swap(LayersPacket* other) {
    5098           0 :   if (other != this) {
    5099           0 :     layer_.Swap(&other->layer_);
    5100           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    5101           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    5102           0 :     std::swap(_cached_size_, other->_cached_size_);
    5103             :   }
    5104           0 : }
    5105             : 
    5106           0 : ::std::string LayersPacket::GetTypeName() const {
    5107           0 :   return "mozilla.layers.layerscope.LayersPacket";
    5108             : }
    5109             : 
    5110             : 
    5111             : // ===================================================================
    5112             : 
    5113             : #ifndef _MSC_VER
    5114             : const int MetaPacket::kComposedByHwcFieldNumber;
    5115             : #endif  // !_MSC_VER
    5116             : 
    5117           3 : MetaPacket::MetaPacket()
    5118           3 :   : ::google::protobuf::MessageLite() {
    5119           3 :   SharedCtor();
    5120             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.MetaPacket)
    5121           3 : }
    5122             : 
    5123           3 : void MetaPacket::InitAsDefaultInstance() {
    5124           3 : }
    5125             : 
    5126           0 : MetaPacket::MetaPacket(const MetaPacket& from)
    5127           0 :   : ::google::protobuf::MessageLite() {
    5128           0 :   SharedCtor();
    5129           0 :   MergeFrom(from);
    5130             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.MetaPacket)
    5131           0 : }
    5132             : 
    5133           3 : void MetaPacket::SharedCtor() {
    5134           3 :   _cached_size_ = 0;
    5135           3 :   composedbyhwc_ = false;
    5136           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5137           3 : }
    5138             : 
    5139           0 : MetaPacket::~MetaPacket() {
    5140             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.MetaPacket)
    5141           0 :   SharedDtor();
    5142           0 : }
    5143             : 
    5144           0 : void MetaPacket::SharedDtor() {
    5145             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5146             :   if (this != &default_instance()) {
    5147             :   #else
    5148           0 :   if (this != default_instance_) {
    5149             :   #endif
    5150             :   }
    5151           0 : }
    5152             : 
    5153           0 : void MetaPacket::SetCachedSize(int size) const {
    5154             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5155           0 :   _cached_size_ = size;
    5156             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5157           0 : }
    5158           3 : const MetaPacket& MetaPacket::default_instance() {
    5159             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5160             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    5161             : #else
    5162           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    5163             : #endif
    5164           3 :   return *default_instance_;
    5165             : }
    5166             : 
    5167             : MetaPacket* MetaPacket::default_instance_ = NULL;
    5168             : 
    5169           0 : MetaPacket* MetaPacket::New() const {
    5170           0 :   return new MetaPacket;
    5171             : }
    5172             : 
    5173           0 : void MetaPacket::Clear() {
    5174           0 :   composedbyhwc_ = false;
    5175           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5176           0 :   mutable_unknown_fields()->clear();
    5177           0 : }
    5178             : 
    5179           0 : bool MetaPacket::MergePartialFromCodedStream(
    5180             :     ::google::protobuf::io::CodedInputStream* input) {
    5181             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    5182             :   ::google::protobuf::uint32 tag;
    5183             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    5184           0 :       mutable_unknown_fields());
    5185             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    5186           0 :       &unknown_fields_string);
    5187             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.MetaPacket)
    5188             :   for (;;) {
    5189             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    5190           0 :     tag = p.first;
    5191           0 :     if (!p.second) goto handle_unusual;
    5192           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    5193             :       // optional bool composedByHwc = 1;
    5194             :       case 1: {
    5195           0 :         if (tag == 8) {
    5196           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5197             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    5198             :                  input, &composedbyhwc_)));
    5199           0 :           set_has_composedbyhwc();
    5200             :         } else {
    5201           0 :           goto handle_unusual;
    5202             :         }
    5203           0 :         if (input->ExpectAtEnd()) goto success;
    5204           0 :         break;
    5205             :       }
    5206             : 
    5207             :       default: {
    5208             :       handle_unusual:
    5209           0 :         if (tag == 0 ||
    5210           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    5211             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    5212           0 :           goto success;
    5213             :         }
    5214           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    5215             :             input, tag, &unknown_fields_stream));
    5216           0 :         break;
    5217             :       }
    5218             :     }
    5219           0 :   }
    5220             : success:
    5221             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.MetaPacket)
    5222           0 :   return true;
    5223             : failure:
    5224             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.MetaPacket)
    5225           0 :   return false;
    5226             : #undef DO_
    5227             : }
    5228             : 
    5229           0 : void MetaPacket::SerializeWithCachedSizes(
    5230             :     ::google::protobuf::io::CodedOutputStream* output) const {
    5231             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.MetaPacket)
    5232             :   // optional bool composedByHwc = 1;
    5233           0 :   if (has_composedbyhwc()) {
    5234           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->composedbyhwc(), output);
    5235             :   }
    5236             : 
    5237           0 :   output->WriteRaw(unknown_fields().data(),
    5238           0 :                    unknown_fields().size());
    5239             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.MetaPacket)
    5240           0 : }
    5241             : 
    5242           0 : int MetaPacket::ByteSize() const {
    5243           0 :   int total_size = 0;
    5244             : 
    5245           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5246             :     // optional bool composedByHwc = 1;
    5247           0 :     if (has_composedbyhwc()) {
    5248           0 :       total_size += 1 + 1;
    5249             :     }
    5250             : 
    5251             :   }
    5252           0 :   total_size += unknown_fields().size();
    5253             : 
    5254             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5255           0 :   _cached_size_ = total_size;
    5256             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5257           0 :   return total_size;
    5258             : }
    5259             : 
    5260           0 : void MetaPacket::CheckTypeAndMergeFrom(
    5261             :     const ::google::protobuf::MessageLite& from) {
    5262           0 :   MergeFrom(*::google::protobuf::down_cast<const MetaPacket*>(&from));
    5263           0 : }
    5264             : 
    5265           0 : void MetaPacket::MergeFrom(const MetaPacket& from) {
    5266           0 :   GOOGLE_CHECK_NE(&from, this);
    5267           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5268           0 :     if (from.has_composedbyhwc()) {
    5269           0 :       set_composedbyhwc(from.composedbyhwc());
    5270             :     }
    5271             :   }
    5272           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    5273           0 : }
    5274             : 
    5275           0 : void MetaPacket::CopyFrom(const MetaPacket& from) {
    5276           0 :   if (&from == this) return;
    5277           0 :   Clear();
    5278           0 :   MergeFrom(from);
    5279             : }
    5280             : 
    5281           0 : bool MetaPacket::IsInitialized() const {
    5282             : 
    5283           0 :   return true;
    5284             : }
    5285             : 
    5286           0 : void MetaPacket::Swap(MetaPacket* other) {
    5287           0 :   if (other != this) {
    5288           0 :     std::swap(composedbyhwc_, other->composedbyhwc_);
    5289           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    5290           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    5291           0 :     std::swap(_cached_size_, other->_cached_size_);
    5292             :   }
    5293           0 : }
    5294             : 
    5295           0 : ::std::string MetaPacket::GetTypeName() const {
    5296           0 :   return "mozilla.layers.layerscope.MetaPacket";
    5297             : }
    5298             : 
    5299             : 
    5300             : // ===================================================================
    5301             : 
    5302             : #ifndef _MSC_VER
    5303             : const int DrawPacket_Rect::kXFieldNumber;
    5304             : const int DrawPacket_Rect::kYFieldNumber;
    5305             : const int DrawPacket_Rect::kWFieldNumber;
    5306             : const int DrawPacket_Rect::kHFieldNumber;
    5307             : #endif  // !_MSC_VER
    5308             : 
    5309           3 : DrawPacket_Rect::DrawPacket_Rect()
    5310           3 :   : ::google::protobuf::MessageLite() {
    5311           3 :   SharedCtor();
    5312             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket.Rect)
    5313           3 : }
    5314             : 
    5315           3 : void DrawPacket_Rect::InitAsDefaultInstance() {
    5316           3 : }
    5317             : 
    5318           0 : DrawPacket_Rect::DrawPacket_Rect(const DrawPacket_Rect& from)
    5319           0 :   : ::google::protobuf::MessageLite() {
    5320           0 :   SharedCtor();
    5321           0 :   MergeFrom(from);
    5322             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket.Rect)
    5323           0 : }
    5324             : 
    5325           3 : void DrawPacket_Rect::SharedCtor() {
    5326           3 :   _cached_size_ = 0;
    5327           3 :   x_ = 0;
    5328           3 :   y_ = 0;
    5329           3 :   w_ = 0;
    5330           3 :   h_ = 0;
    5331           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5332           3 : }
    5333             : 
    5334           0 : DrawPacket_Rect::~DrawPacket_Rect() {
    5335             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket.Rect)
    5336           0 :   SharedDtor();
    5337           0 : }
    5338             : 
    5339           0 : void DrawPacket_Rect::SharedDtor() {
    5340             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5341             :   if (this != &default_instance()) {
    5342             :   #else
    5343           0 :   if (this != default_instance_) {
    5344             :   #endif
    5345             :   }
    5346           0 : }
    5347             : 
    5348           0 : void DrawPacket_Rect::SetCachedSize(int size) const {
    5349             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5350           0 :   _cached_size_ = size;
    5351             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5352           0 : }
    5353           0 : const DrawPacket_Rect& DrawPacket_Rect::default_instance() {
    5354             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5355             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    5356             : #else
    5357           0 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    5358             : #endif
    5359           0 :   return *default_instance_;
    5360             : }
    5361             : 
    5362             : DrawPacket_Rect* DrawPacket_Rect::default_instance_ = NULL;
    5363             : 
    5364           0 : DrawPacket_Rect* DrawPacket_Rect::New() const {
    5365           0 :   return new DrawPacket_Rect;
    5366             : }
    5367             : 
    5368           0 : void DrawPacket_Rect::Clear() {
    5369             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    5370             :   &reinterpret_cast<DrawPacket_Rect*>(16)->f) - \
    5371             :    reinterpret_cast<char*>(16))
    5372             : 
    5373             : #define ZR_(first, last) do {                              \
    5374             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    5375             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    5376             :     ::memset(&first, 0, n);                                \
    5377             :   } while (0)
    5378             : 
    5379           0 :   ZR_(x_, h_);
    5380             : 
    5381             : #undef OFFSET_OF_FIELD_
    5382             : #undef ZR_
    5383             : 
    5384           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5385           0 :   mutable_unknown_fields()->clear();
    5386           0 : }
    5387             : 
    5388           0 : bool DrawPacket_Rect::MergePartialFromCodedStream(
    5389             :     ::google::protobuf::io::CodedInputStream* input) {
    5390             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    5391             :   ::google::protobuf::uint32 tag;
    5392             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    5393           0 :       mutable_unknown_fields());
    5394             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    5395           0 :       &unknown_fields_string);
    5396             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket.Rect)
    5397             :   for (;;) {
    5398             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    5399           0 :     tag = p.first;
    5400           0 :     if (!p.second) goto handle_unusual;
    5401           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    5402             :       // required float x = 1;
    5403             :       case 1: {
    5404           0 :         if (tag == 13) {
    5405           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5406             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5407             :                  input, &x_)));
    5408           0 :           set_has_x();
    5409             :         } else {
    5410           0 :           goto handle_unusual;
    5411             :         }
    5412           0 :         if (input->ExpectTag(21)) goto parse_y;
    5413           0 :         break;
    5414             :       }
    5415             : 
    5416             :       // required float y = 2;
    5417             :       case 2: {
    5418           0 :         if (tag == 21) {
    5419             :          parse_y:
    5420           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5421             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5422             :                  input, &y_)));
    5423           0 :           set_has_y();
    5424             :         } else {
    5425           0 :           goto handle_unusual;
    5426             :         }
    5427           0 :         if (input->ExpectTag(29)) goto parse_w;
    5428           0 :         break;
    5429             :       }
    5430             : 
    5431             :       // required float w = 3;
    5432             :       case 3: {
    5433           0 :         if (tag == 29) {
    5434             :          parse_w:
    5435           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5436             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5437             :                  input, &w_)));
    5438           0 :           set_has_w();
    5439             :         } else {
    5440           0 :           goto handle_unusual;
    5441             :         }
    5442           0 :         if (input->ExpectTag(37)) goto parse_h;
    5443           0 :         break;
    5444             :       }
    5445             : 
    5446             :       // required float h = 4;
    5447             :       case 4: {
    5448           0 :         if (tag == 37) {
    5449             :          parse_h:
    5450           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5451             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5452             :                  input, &h_)));
    5453           0 :           set_has_h();
    5454             :         } else {
    5455           0 :           goto handle_unusual;
    5456             :         }
    5457           0 :         if (input->ExpectAtEnd()) goto success;
    5458           0 :         break;
    5459             :       }
    5460             : 
    5461             :       default: {
    5462             :       handle_unusual:
    5463           0 :         if (tag == 0 ||
    5464           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    5465             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    5466           0 :           goto success;
    5467             :         }
    5468           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    5469             :             input, tag, &unknown_fields_stream));
    5470           0 :         break;
    5471             :       }
    5472             :     }
    5473           0 :   }
    5474             : success:
    5475             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket.Rect)
    5476           0 :   return true;
    5477             : failure:
    5478             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket.Rect)
    5479           0 :   return false;
    5480             : #undef DO_
    5481             : }
    5482             : 
    5483           0 : void DrawPacket_Rect::SerializeWithCachedSizes(
    5484             :     ::google::protobuf::io::CodedOutputStream* output) const {
    5485             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket.Rect)
    5486             :   // required float x = 1;
    5487           0 :   if (has_x()) {
    5488           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
    5489             :   }
    5490             : 
    5491             :   // required float y = 2;
    5492           0 :   if (has_y()) {
    5493           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
    5494             :   }
    5495             : 
    5496             :   // required float w = 3;
    5497           0 :   if (has_w()) {
    5498           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output);
    5499             :   }
    5500             : 
    5501             :   // required float h = 4;
    5502           0 :   if (has_h()) {
    5503           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output);
    5504             :   }
    5505             : 
    5506           0 :   output->WriteRaw(unknown_fields().data(),
    5507           0 :                    unknown_fields().size());
    5508             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket.Rect)
    5509           0 : }
    5510             : 
    5511           0 : int DrawPacket_Rect::ByteSize() const {
    5512           0 :   int total_size = 0;
    5513             : 
    5514           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5515             :     // required float x = 1;
    5516           0 :     if (has_x()) {
    5517           0 :       total_size += 1 + 4;
    5518             :     }
    5519             : 
    5520             :     // required float y = 2;
    5521           0 :     if (has_y()) {
    5522           0 :       total_size += 1 + 4;
    5523             :     }
    5524             : 
    5525             :     // required float w = 3;
    5526           0 :     if (has_w()) {
    5527           0 :       total_size += 1 + 4;
    5528             :     }
    5529             : 
    5530             :     // required float h = 4;
    5531           0 :     if (has_h()) {
    5532           0 :       total_size += 1 + 4;
    5533             :     }
    5534             : 
    5535             :   }
    5536           0 :   total_size += unknown_fields().size();
    5537             : 
    5538             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5539           0 :   _cached_size_ = total_size;
    5540             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5541           0 :   return total_size;
    5542             : }
    5543             : 
    5544           0 : void DrawPacket_Rect::CheckTypeAndMergeFrom(
    5545             :     const ::google::protobuf::MessageLite& from) {
    5546           0 :   MergeFrom(*::google::protobuf::down_cast<const DrawPacket_Rect*>(&from));
    5547           0 : }
    5548             : 
    5549           0 : void DrawPacket_Rect::MergeFrom(const DrawPacket_Rect& from) {
    5550           0 :   GOOGLE_CHECK_NE(&from, this);
    5551           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5552           0 :     if (from.has_x()) {
    5553           0 :       set_x(from.x());
    5554             :     }
    5555           0 :     if (from.has_y()) {
    5556           0 :       set_y(from.y());
    5557             :     }
    5558           0 :     if (from.has_w()) {
    5559           0 :       set_w(from.w());
    5560             :     }
    5561           0 :     if (from.has_h()) {
    5562           0 :       set_h(from.h());
    5563             :     }
    5564             :   }
    5565           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    5566           0 : }
    5567             : 
    5568           0 : void DrawPacket_Rect::CopyFrom(const DrawPacket_Rect& from) {
    5569           0 :   if (&from == this) return;
    5570           0 :   Clear();
    5571           0 :   MergeFrom(from);
    5572             : }
    5573             : 
    5574           0 : bool DrawPacket_Rect::IsInitialized() const {
    5575           0 :   if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
    5576             : 
    5577           0 :   return true;
    5578             : }
    5579             : 
    5580           0 : void DrawPacket_Rect::Swap(DrawPacket_Rect* other) {
    5581           0 :   if (other != this) {
    5582           0 :     std::swap(x_, other->x_);
    5583           0 :     std::swap(y_, other->y_);
    5584           0 :     std::swap(w_, other->w_);
    5585           0 :     std::swap(h_, other->h_);
    5586           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    5587           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    5588           0 :     std::swap(_cached_size_, other->_cached_size_);
    5589             :   }
    5590           0 : }
    5591             : 
    5592           0 : ::std::string DrawPacket_Rect::GetTypeName() const {
    5593           0 :   return "mozilla.layers.layerscope.DrawPacket.Rect";
    5594             : }
    5595             : 
    5596             : 
    5597             : // -------------------------------------------------------------------
    5598             : 
    5599             : #ifndef _MSC_VER
    5600             : const int DrawPacket::kOffsetXFieldNumber;
    5601             : const int DrawPacket::kOffsetYFieldNumber;
    5602             : const int DrawPacket::kMvMatrixFieldNumber;
    5603             : const int DrawPacket::kTotalRectsFieldNumber;
    5604             : const int DrawPacket::kLayerRectFieldNumber;
    5605             : const int DrawPacket::kLayerrefFieldNumber;
    5606             : const int DrawPacket::kTexIDsFieldNumber;
    5607             : const int DrawPacket::kTextureRectFieldNumber;
    5608             : #endif  // !_MSC_VER
    5609             : 
    5610           3 : DrawPacket::DrawPacket()
    5611           3 :   : ::google::protobuf::MessageLite() {
    5612           3 :   SharedCtor();
    5613             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket)
    5614           3 : }
    5615             : 
    5616           3 : void DrawPacket::InitAsDefaultInstance() {
    5617           3 : }
    5618             : 
    5619           0 : DrawPacket::DrawPacket(const DrawPacket& from)
    5620           0 :   : ::google::protobuf::MessageLite() {
    5621           0 :   SharedCtor();
    5622           0 :   MergeFrom(from);
    5623             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket)
    5624           0 : }
    5625             : 
    5626           3 : void DrawPacket::SharedCtor() {
    5627           3 :   _cached_size_ = 0;
    5628           3 :   offsetx_ = 0;
    5629           3 :   offsety_ = 0;
    5630           3 :   totalrects_ = 0u;
    5631           3 :   layerref_ = GOOGLE_ULONGLONG(0);
    5632           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5633           3 : }
    5634             : 
    5635           0 : DrawPacket::~DrawPacket() {
    5636             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket)
    5637           0 :   SharedDtor();
    5638           0 : }
    5639             : 
    5640           0 : void DrawPacket::SharedDtor() {
    5641             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5642             :   if (this != &default_instance()) {
    5643             :   #else
    5644           0 :   if (this != default_instance_) {
    5645             :   #endif
    5646             :   }
    5647           0 : }
    5648             : 
    5649           0 : void DrawPacket::SetCachedSize(int size) const {
    5650             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5651           0 :   _cached_size_ = size;
    5652             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5653           0 : }
    5654           3 : const DrawPacket& DrawPacket::default_instance() {
    5655             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    5656             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    5657             : #else
    5658           3 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    5659             : #endif
    5660           3 :   return *default_instance_;
    5661             : }
    5662             : 
    5663             : DrawPacket* DrawPacket::default_instance_ = NULL;
    5664             : 
    5665           0 : DrawPacket* DrawPacket::New() const {
    5666           0 :   return new DrawPacket;
    5667             : }
    5668             : 
    5669           0 : void DrawPacket::Clear() {
    5670             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    5671             :   &reinterpret_cast<DrawPacket*>(16)->f) - \
    5672             :    reinterpret_cast<char*>(16))
    5673             : 
    5674             : #define ZR_(first, last) do {                              \
    5675             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    5676             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    5677             :     ::memset(&first, 0, n);                                \
    5678             :   } while (0)
    5679             : 
    5680           0 :   if (_has_bits_[0 / 32] & 43) {
    5681           0 :     ZR_(offsetx_, offsety_);
    5682           0 :     totalrects_ = 0u;
    5683           0 :     layerref_ = GOOGLE_ULONGLONG(0);
    5684             :   }
    5685             : 
    5686             : #undef OFFSET_OF_FIELD_
    5687             : #undef ZR_
    5688             : 
    5689           0 :   mvmatrix_.Clear();
    5690           0 :   layerrect_.Clear();
    5691           0 :   texids_.Clear();
    5692           0 :   texturerect_.Clear();
    5693           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    5694           0 :   mutable_unknown_fields()->clear();
    5695           0 : }
    5696             : 
    5697           0 : bool DrawPacket::MergePartialFromCodedStream(
    5698             :     ::google::protobuf::io::CodedInputStream* input) {
    5699             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    5700             :   ::google::protobuf::uint32 tag;
    5701             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    5702           0 :       mutable_unknown_fields());
    5703             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    5704           0 :       &unknown_fields_string);
    5705             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket)
    5706             :   for (;;) {
    5707             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    5708           0 :     tag = p.first;
    5709           0 :     if (!p.second) goto handle_unusual;
    5710           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    5711             :       // required float offsetX = 1;
    5712             :       case 1: {
    5713           0 :         if (tag == 13) {
    5714           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5715             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5716             :                  input, &offsetx_)));
    5717           0 :           set_has_offsetx();
    5718             :         } else {
    5719           0 :           goto handle_unusual;
    5720             :         }
    5721           0 :         if (input->ExpectTag(21)) goto parse_offsetY;
    5722           0 :         break;
    5723             :       }
    5724             : 
    5725             :       // required float offsetY = 2;
    5726             :       case 2: {
    5727           0 :         if (tag == 21) {
    5728             :          parse_offsetY:
    5729           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5730             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5731             :                  input, &offsety_)));
    5732           0 :           set_has_offsety();
    5733             :         } else {
    5734           0 :           goto handle_unusual;
    5735             :         }
    5736           0 :         if (input->ExpectTag(29)) goto parse_mvMatrix;
    5737           0 :         break;
    5738             :       }
    5739             : 
    5740             :       // repeated float mvMatrix = 3;
    5741             :       case 3: {
    5742           0 :         if (tag == 29) {
    5743             :          parse_mvMatrix:
    5744           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
    5745             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5746             :                  1, 29, input, this->mutable_mvmatrix())));
    5747           0 :         } else if (tag == 26) {
    5748           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
    5749             :                    float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
    5750             :                  input, this->mutable_mvmatrix())));
    5751             :         } else {
    5752           0 :           goto handle_unusual;
    5753             :         }
    5754           0 :         if (input->ExpectTag(29)) goto parse_mvMatrix;
    5755           0 :         if (input->ExpectTag(32)) goto parse_totalRects;
    5756           0 :         break;
    5757             :       }
    5758             : 
    5759             :       // required uint32 totalRects = 4;
    5760             :       case 4: {
    5761           0 :         if (tag == 32) {
    5762             :          parse_totalRects:
    5763           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5764             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    5765             :                  input, &totalrects_)));
    5766           0 :           set_has_totalrects();
    5767             :         } else {
    5768           0 :           goto handle_unusual;
    5769             :         }
    5770           0 :         if (input->ExpectTag(42)) goto parse_layerRect;
    5771           0 :         break;
    5772             :       }
    5773             : 
    5774             :       // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
    5775             :       case 5: {
    5776           0 :         if (tag == 42) {
    5777             :          parse_layerRect:
    5778           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    5779             :                 input, add_layerrect()));
    5780             :         } else {
    5781           0 :           goto handle_unusual;
    5782             :         }
    5783           0 :         if (input->ExpectTag(42)) goto parse_layerRect;
    5784           0 :         if (input->ExpectTag(48)) goto parse_layerref;
    5785           0 :         break;
    5786             :       }
    5787             : 
    5788             :       // required uint64 layerref = 6;
    5789             :       case 6: {
    5790           0 :         if (tag == 48) {
    5791             :          parse_layerref:
    5792           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    5793             :                    ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
    5794             :                  input, &layerref_)));
    5795           0 :           set_has_layerref();
    5796             :         } else {
    5797           0 :           goto handle_unusual;
    5798             :         }
    5799           0 :         if (input->ExpectTag(56)) goto parse_texIDs;
    5800           0 :         break;
    5801             :       }
    5802             : 
    5803             :       // repeated uint32 texIDs = 7;
    5804             :       case 7: {
    5805           0 :         if (tag == 56) {
    5806             :          parse_texIDs:
    5807           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
    5808             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    5809             :                  1, 56, input, this->mutable_texids())));
    5810           0 :         } else if (tag == 58) {
    5811           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
    5812             :                    ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
    5813             :                  input, this->mutable_texids())));
    5814             :         } else {
    5815           0 :           goto handle_unusual;
    5816             :         }
    5817           0 :         if (input->ExpectTag(56)) goto parse_texIDs;
    5818           0 :         if (input->ExpectTag(66)) goto parse_textureRect;
    5819           0 :         break;
    5820             :       }
    5821             : 
    5822             :       // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
    5823             :       case 8: {
    5824           0 :         if (tag == 66) {
    5825             :          parse_textureRect:
    5826           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    5827             :                 input, add_texturerect()));
    5828             :         } else {
    5829           0 :           goto handle_unusual;
    5830             :         }
    5831           0 :         if (input->ExpectTag(66)) goto parse_textureRect;
    5832           0 :         if (input->ExpectAtEnd()) goto success;
    5833           0 :         break;
    5834             :       }
    5835             : 
    5836             :       default: {
    5837             :       handle_unusual:
    5838           0 :         if (tag == 0 ||
    5839           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    5840             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    5841           0 :           goto success;
    5842             :         }
    5843           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    5844             :             input, tag, &unknown_fields_stream));
    5845           0 :         break;
    5846             :       }
    5847             :     }
    5848           0 :   }
    5849             : success:
    5850             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket)
    5851           0 :   return true;
    5852             : failure:
    5853             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket)
    5854           0 :   return false;
    5855             : #undef DO_
    5856             : }
    5857             : 
    5858           0 : void DrawPacket::SerializeWithCachedSizes(
    5859             :     ::google::protobuf::io::CodedOutputStream* output) const {
    5860             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket)
    5861             :   // required float offsetX = 1;
    5862           0 :   if (has_offsetx()) {
    5863           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->offsetx(), output);
    5864             :   }
    5865             : 
    5866             :   // required float offsetY = 2;
    5867           0 :   if (has_offsety()) {
    5868           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->offsety(), output);
    5869             :   }
    5870             : 
    5871             :   // repeated float mvMatrix = 3;
    5872           0 :   for (int i = 0; i < this->mvmatrix_size(); i++) {
    5873           0 :     ::google::protobuf::internal::WireFormatLite::WriteFloat(
    5874           0 :       3, this->mvmatrix(i), output);
    5875             :   }
    5876             : 
    5877             :   // required uint32 totalRects = 4;
    5878           0 :   if (has_totalrects()) {
    5879           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->totalrects(), output);
    5880             :   }
    5881             : 
    5882             :   // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
    5883           0 :   for (int i = 0; i < this->layerrect_size(); i++) {
    5884           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    5885           0 :       5, this->layerrect(i), output);
    5886             :   }
    5887             : 
    5888             :   // required uint64 layerref = 6;
    5889           0 :   if (has_layerref()) {
    5890           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->layerref(), output);
    5891             :   }
    5892             : 
    5893             :   // repeated uint32 texIDs = 7;
    5894           0 :   for (int i = 0; i < this->texids_size(); i++) {
    5895           0 :     ::google::protobuf::internal::WireFormatLite::WriteUInt32(
    5896           0 :       7, this->texids(i), output);
    5897             :   }
    5898             : 
    5899             :   // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
    5900           0 :   for (int i = 0; i < this->texturerect_size(); i++) {
    5901           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    5902           0 :       8, this->texturerect(i), output);
    5903             :   }
    5904             : 
    5905           0 :   output->WriteRaw(unknown_fields().data(),
    5906           0 :                    unknown_fields().size());
    5907             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket)
    5908           0 : }
    5909             : 
    5910           0 : int DrawPacket::ByteSize() const {
    5911           0 :   int total_size = 0;
    5912             : 
    5913           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5914             :     // required float offsetX = 1;
    5915           0 :     if (has_offsetx()) {
    5916           0 :       total_size += 1 + 4;
    5917             :     }
    5918             : 
    5919             :     // required float offsetY = 2;
    5920           0 :     if (has_offsety()) {
    5921           0 :       total_size += 1 + 4;
    5922             :     }
    5923             : 
    5924             :     // required uint32 totalRects = 4;
    5925           0 :     if (has_totalrects()) {
    5926           0 :       total_size += 1 +
    5927           0 :         ::google::protobuf::internal::WireFormatLite::UInt32Size(
    5928             :           this->totalrects());
    5929             :     }
    5930             : 
    5931             :     // required uint64 layerref = 6;
    5932           0 :     if (has_layerref()) {
    5933           0 :       total_size += 1 +
    5934           0 :         ::google::protobuf::internal::WireFormatLite::UInt64Size(
    5935             :           this->layerref());
    5936             :     }
    5937             : 
    5938             :   }
    5939             :   // repeated float mvMatrix = 3;
    5940             :   {
    5941           0 :     int data_size = 0;
    5942           0 :     data_size = 4 * this->mvmatrix_size();
    5943           0 :     total_size += 1 * this->mvmatrix_size() + data_size;
    5944             :   }
    5945             : 
    5946             :   // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
    5947           0 :   total_size += 1 * this->layerrect_size();
    5948           0 :   for (int i = 0; i < this->layerrect_size(); i++) {
    5949           0 :     total_size +=
    5950           0 :       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    5951             :         this->layerrect(i));
    5952             :   }
    5953             : 
    5954             :   // repeated uint32 texIDs = 7;
    5955             :   {
    5956           0 :     int data_size = 0;
    5957           0 :     for (int i = 0; i < this->texids_size(); i++) {
    5958           0 :       data_size += ::google::protobuf::internal::WireFormatLite::
    5959           0 :         UInt32Size(this->texids(i));
    5960             :     }
    5961           0 :     total_size += 1 * this->texids_size() + data_size;
    5962             :   }
    5963             : 
    5964             :   // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
    5965           0 :   total_size += 1 * this->texturerect_size();
    5966           0 :   for (int i = 0; i < this->texturerect_size(); i++) {
    5967           0 :     total_size +=
    5968           0 :       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    5969             :         this->texturerect(i));
    5970             :   }
    5971             : 
    5972           0 :   total_size += unknown_fields().size();
    5973             : 
    5974             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    5975           0 :   _cached_size_ = total_size;
    5976             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    5977           0 :   return total_size;
    5978             : }
    5979             : 
    5980           0 : void DrawPacket::CheckTypeAndMergeFrom(
    5981             :     const ::google::protobuf::MessageLite& from) {
    5982           0 :   MergeFrom(*::google::protobuf::down_cast<const DrawPacket*>(&from));
    5983           0 : }
    5984             : 
    5985           0 : void DrawPacket::MergeFrom(const DrawPacket& from) {
    5986           0 :   GOOGLE_CHECK_NE(&from, this);
    5987           0 :   mvmatrix_.MergeFrom(from.mvmatrix_);
    5988           0 :   layerrect_.MergeFrom(from.layerrect_);
    5989           0 :   texids_.MergeFrom(from.texids_);
    5990           0 :   texturerect_.MergeFrom(from.texturerect_);
    5991           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    5992           0 :     if (from.has_offsetx()) {
    5993           0 :       set_offsetx(from.offsetx());
    5994             :     }
    5995           0 :     if (from.has_offsety()) {
    5996           0 :       set_offsety(from.offsety());
    5997             :     }
    5998           0 :     if (from.has_totalrects()) {
    5999           0 :       set_totalrects(from.totalrects());
    6000             :     }
    6001           0 :     if (from.has_layerref()) {
    6002           0 :       set_layerref(from.layerref());
    6003             :     }
    6004             :   }
    6005           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    6006           0 : }
    6007             : 
    6008           0 : void DrawPacket::CopyFrom(const DrawPacket& from) {
    6009           0 :   if (&from == this) return;
    6010           0 :   Clear();
    6011           0 :   MergeFrom(from);
    6012             : }
    6013             : 
    6014           0 : bool DrawPacket::IsInitialized() const {
    6015           0 :   if ((_has_bits_[0] & 0x0000002b) != 0x0000002b) return false;
    6016             : 
    6017           0 :   if (!::google::protobuf::internal::AllAreInitialized(this->layerrect())) return false;
    6018           0 :   if (!::google::protobuf::internal::AllAreInitialized(this->texturerect())) return false;
    6019           0 :   return true;
    6020             : }
    6021             : 
    6022           0 : void DrawPacket::Swap(DrawPacket* other) {
    6023           0 :   if (other != this) {
    6024           0 :     std::swap(offsetx_, other->offsetx_);
    6025           0 :     std::swap(offsety_, other->offsety_);
    6026           0 :     mvmatrix_.Swap(&other->mvmatrix_);
    6027           0 :     std::swap(totalrects_, other->totalrects_);
    6028           0 :     layerrect_.Swap(&other->layerrect_);
    6029           0 :     std::swap(layerref_, other->layerref_);
    6030           0 :     texids_.Swap(&other->texids_);
    6031           0 :     texturerect_.Swap(&other->texturerect_);
    6032           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    6033           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    6034           0 :     std::swap(_cached_size_, other->_cached_size_);
    6035             :   }
    6036           0 : }
    6037             : 
    6038           0 : ::std::string DrawPacket::GetTypeName() const {
    6039           0 :   return "mozilla.layers.layerscope.DrawPacket";
    6040             : }
    6041             : 
    6042             : 
    6043             : // ===================================================================
    6044             : 
    6045           0 : bool Packet_DataType_IsValid(int value) {
    6046           0 :   switch(value) {
    6047             :     case 1:
    6048             :     case 2:
    6049             :     case 3:
    6050             :     case 4:
    6051             :     case 5:
    6052             :     case 6:
    6053             :     case 7:
    6054           0 :       return true;
    6055             :     default:
    6056           0 :       return false;
    6057             :   }
    6058             : }
    6059             : 
    6060             : #ifndef _MSC_VER
    6061             : const Packet_DataType Packet::FRAMESTART;
    6062             : const Packet_DataType Packet::FRAMEEND;
    6063             : const Packet_DataType Packet::COLOR;
    6064             : const Packet_DataType Packet::TEXTURE;
    6065             : const Packet_DataType Packet::LAYERS;
    6066             : const Packet_DataType Packet::META;
    6067             : const Packet_DataType Packet::DRAW;
    6068             : const Packet_DataType Packet::DataType_MIN;
    6069             : const Packet_DataType Packet::DataType_MAX;
    6070             : const int Packet::DataType_ARRAYSIZE;
    6071             : #endif  // _MSC_VER
    6072             : #ifndef _MSC_VER
    6073             : const int Packet::kTypeFieldNumber;
    6074             : const int Packet::kFrameFieldNumber;
    6075             : const int Packet::kColorFieldNumber;
    6076             : const int Packet::kTextureFieldNumber;
    6077             : const int Packet::kLayersFieldNumber;
    6078             : const int Packet::kMetaFieldNumber;
    6079             : const int Packet::kDrawFieldNumber;
    6080             : #endif  // !_MSC_VER
    6081             : 
    6082           3 : Packet::Packet()
    6083           3 :   : ::google::protobuf::MessageLite() {
    6084           3 :   SharedCtor();
    6085             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.Packet)
    6086           3 : }
    6087             : 
    6088           3 : void Packet::InitAsDefaultInstance() {
    6089             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6090             :   frame_ = const_cast< ::mozilla::layers::layerscope::FramePacket*>(
    6091             :       ::mozilla::layers::layerscope::FramePacket::internal_default_instance());
    6092             : #else
    6093           3 :   frame_ = const_cast< ::mozilla::layers::layerscope::FramePacket*>(&::mozilla::layers::layerscope::FramePacket::default_instance());
    6094             : #endif
    6095             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6096             :   color_ = const_cast< ::mozilla::layers::layerscope::ColorPacket*>(
    6097             :       ::mozilla::layers::layerscope::ColorPacket::internal_default_instance());
    6098             : #else
    6099           3 :   color_ = const_cast< ::mozilla::layers::layerscope::ColorPacket*>(&::mozilla::layers::layerscope::ColorPacket::default_instance());
    6100             : #endif
    6101             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6102             :   texture_ = const_cast< ::mozilla::layers::layerscope::TexturePacket*>(
    6103             :       ::mozilla::layers::layerscope::TexturePacket::internal_default_instance());
    6104             : #else
    6105           3 :   texture_ = const_cast< ::mozilla::layers::layerscope::TexturePacket*>(&::mozilla::layers::layerscope::TexturePacket::default_instance());
    6106             : #endif
    6107             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6108             :   layers_ = const_cast< ::mozilla::layers::layerscope::LayersPacket*>(
    6109             :       ::mozilla::layers::layerscope::LayersPacket::internal_default_instance());
    6110             : #else
    6111           3 :   layers_ = const_cast< ::mozilla::layers::layerscope::LayersPacket*>(&::mozilla::layers::layerscope::LayersPacket::default_instance());
    6112             : #endif
    6113             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6114             :   meta_ = const_cast< ::mozilla::layers::layerscope::MetaPacket*>(
    6115             :       ::mozilla::layers::layerscope::MetaPacket::internal_default_instance());
    6116             : #else
    6117           3 :   meta_ = const_cast< ::mozilla::layers::layerscope::MetaPacket*>(&::mozilla::layers::layerscope::MetaPacket::default_instance());
    6118             : #endif
    6119             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6120             :   draw_ = const_cast< ::mozilla::layers::layerscope::DrawPacket*>(
    6121             :       ::mozilla::layers::layerscope::DrawPacket::internal_default_instance());
    6122             : #else
    6123           3 :   draw_ = const_cast< ::mozilla::layers::layerscope::DrawPacket*>(&::mozilla::layers::layerscope::DrawPacket::default_instance());
    6124             : #endif
    6125           3 : }
    6126             : 
    6127           0 : Packet::Packet(const Packet& from)
    6128           0 :   : ::google::protobuf::MessageLite() {
    6129           0 :   SharedCtor();
    6130           0 :   MergeFrom(from);
    6131             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.Packet)
    6132           0 : }
    6133             : 
    6134           3 : void Packet::SharedCtor() {
    6135           3 :   _cached_size_ = 0;
    6136           3 :   type_ = 1;
    6137           3 :   frame_ = NULL;
    6138           3 :   color_ = NULL;
    6139           3 :   texture_ = NULL;
    6140           3 :   layers_ = NULL;
    6141           3 :   meta_ = NULL;
    6142           3 :   draw_ = NULL;
    6143           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    6144           3 : }
    6145             : 
    6146           0 : Packet::~Packet() {
    6147             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.Packet)
    6148           0 :   SharedDtor();
    6149           0 : }
    6150             : 
    6151           0 : void Packet::SharedDtor() {
    6152             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6153             :   if (this != &default_instance()) {
    6154             :   #else
    6155           0 :   if (this != default_instance_) {
    6156             :   #endif
    6157           0 :     delete frame_;
    6158           0 :     delete color_;
    6159           0 :     delete texture_;
    6160           0 :     delete layers_;
    6161           0 :     delete meta_;
    6162           0 :     delete draw_;
    6163             :   }
    6164           0 : }
    6165             : 
    6166           0 : void Packet::SetCachedSize(int size) const {
    6167             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    6168           0 :   _cached_size_ = size;
    6169             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    6170           0 : }
    6171           0 : const Packet& Packet::default_instance() {
    6172             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6173             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    6174             : #else
    6175           0 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    6176             : #endif
    6177           0 :   return *default_instance_;
    6178             : }
    6179             : 
    6180             : Packet* Packet::default_instance_ = NULL;
    6181             : 
    6182           0 : Packet* Packet::New() const {
    6183           0 :   return new Packet;
    6184             : }
    6185             : 
    6186           0 : void Packet::Clear() {
    6187           0 :   if (_has_bits_[0 / 32] & 127) {
    6188           0 :     type_ = 1;
    6189           0 :     if (has_frame()) {
    6190           0 :       if (frame_ != NULL) frame_->::mozilla::layers::layerscope::FramePacket::Clear();
    6191             :     }
    6192           0 :     if (has_color()) {
    6193           0 :       if (color_ != NULL) color_->::mozilla::layers::layerscope::ColorPacket::Clear();
    6194             :     }
    6195           0 :     if (has_texture()) {
    6196           0 :       if (texture_ != NULL) texture_->::mozilla::layers::layerscope::TexturePacket::Clear();
    6197             :     }
    6198           0 :     if (has_layers()) {
    6199           0 :       if (layers_ != NULL) layers_->::mozilla::layers::layerscope::LayersPacket::Clear();
    6200             :     }
    6201           0 :     if (has_meta()) {
    6202           0 :       if (meta_ != NULL) meta_->::mozilla::layers::layerscope::MetaPacket::Clear();
    6203             :     }
    6204           0 :     if (has_draw()) {
    6205           0 :       if (draw_ != NULL) draw_->::mozilla::layers::layerscope::DrawPacket::Clear();
    6206             :     }
    6207             :   }
    6208           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    6209           0 :   mutable_unknown_fields()->clear();
    6210           0 : }
    6211             : 
    6212           0 : bool Packet::MergePartialFromCodedStream(
    6213             :     ::google::protobuf::io::CodedInputStream* input) {
    6214             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    6215             :   ::google::protobuf::uint32 tag;
    6216             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    6217           0 :       mutable_unknown_fields());
    6218             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    6219           0 :       &unknown_fields_string);
    6220             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.Packet)
    6221             :   for (;;) {
    6222             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    6223           0 :     tag = p.first;
    6224           0 :     if (!p.second) goto handle_unusual;
    6225           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    6226             :       // required .mozilla.layers.layerscope.Packet.DataType type = 1;
    6227             :       case 1: {
    6228           0 :         if (tag == 8) {
    6229             :           int value;
    6230           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    6231             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    6232             :                  input, &value)));
    6233           0 :           if (::mozilla::layers::layerscope::Packet_DataType_IsValid(value)) {
    6234           0 :             set_type(static_cast< ::mozilla::layers::layerscope::Packet_DataType >(value));
    6235             :           } else {
    6236           0 :             unknown_fields_stream.WriteVarint32(tag);
    6237           0 :             unknown_fields_stream.WriteVarint32(value);
    6238             :           }
    6239             :         } else {
    6240           0 :           goto handle_unusual;
    6241             :         }
    6242           0 :         if (input->ExpectTag(18)) goto parse_frame;
    6243           0 :         break;
    6244             :       }
    6245             : 
    6246             :       // optional .mozilla.layers.layerscope.FramePacket frame = 2;
    6247             :       case 2: {
    6248           0 :         if (tag == 18) {
    6249             :          parse_frame:
    6250           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6251             :                input, mutable_frame()));
    6252             :         } else {
    6253           0 :           goto handle_unusual;
    6254             :         }
    6255           0 :         if (input->ExpectTag(26)) goto parse_color;
    6256           0 :         break;
    6257             :       }
    6258             : 
    6259             :       // optional .mozilla.layers.layerscope.ColorPacket color = 3;
    6260             :       case 3: {
    6261           0 :         if (tag == 26) {
    6262             :          parse_color:
    6263           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6264             :                input, mutable_color()));
    6265             :         } else {
    6266           0 :           goto handle_unusual;
    6267             :         }
    6268           0 :         if (input->ExpectTag(34)) goto parse_texture;
    6269           0 :         break;
    6270             :       }
    6271             : 
    6272             :       // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
    6273             :       case 4: {
    6274           0 :         if (tag == 34) {
    6275             :          parse_texture:
    6276           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6277             :                input, mutable_texture()));
    6278             :         } else {
    6279           0 :           goto handle_unusual;
    6280             :         }
    6281           0 :         if (input->ExpectTag(42)) goto parse_layers;
    6282           0 :         break;
    6283             :       }
    6284             : 
    6285             :       // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
    6286             :       case 5: {
    6287           0 :         if (tag == 42) {
    6288             :          parse_layers:
    6289           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6290             :                input, mutable_layers()));
    6291             :         } else {
    6292           0 :           goto handle_unusual;
    6293             :         }
    6294           0 :         if (input->ExpectTag(50)) goto parse_meta;
    6295           0 :         break;
    6296             :       }
    6297             : 
    6298             :       // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
    6299             :       case 6: {
    6300           0 :         if (tag == 50) {
    6301             :          parse_meta:
    6302           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6303             :                input, mutable_meta()));
    6304             :         } else {
    6305           0 :           goto handle_unusual;
    6306             :         }
    6307           0 :         if (input->ExpectTag(58)) goto parse_draw;
    6308           0 :         break;
    6309             :       }
    6310             : 
    6311             :       // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
    6312             :       case 7: {
    6313           0 :         if (tag == 58) {
    6314             :          parse_draw:
    6315           0 :           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    6316             :                input, mutable_draw()));
    6317             :         } else {
    6318           0 :           goto handle_unusual;
    6319             :         }
    6320           0 :         if (input->ExpectAtEnd()) goto success;
    6321           0 :         break;
    6322             :       }
    6323             : 
    6324             :       default: {
    6325             :       handle_unusual:
    6326           0 :         if (tag == 0 ||
    6327           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    6328             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    6329           0 :           goto success;
    6330             :         }
    6331           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    6332             :             input, tag, &unknown_fields_stream));
    6333           0 :         break;
    6334             :       }
    6335             :     }
    6336           0 :   }
    6337             : success:
    6338             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.Packet)
    6339           0 :   return true;
    6340             : failure:
    6341             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.Packet)
    6342           0 :   return false;
    6343             : #undef DO_
    6344             : }
    6345             : 
    6346           0 : void Packet::SerializeWithCachedSizes(
    6347             :     ::google::protobuf::io::CodedOutputStream* output) const {
    6348             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.Packet)
    6349             :   // required .mozilla.layers.layerscope.Packet.DataType type = 1;
    6350           0 :   if (has_type()) {
    6351           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    6352           0 :       1, this->type(), output);
    6353             :   }
    6354             : 
    6355             :   // optional .mozilla.layers.layerscope.FramePacket frame = 2;
    6356           0 :   if (has_frame()) {
    6357           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6358           0 :       2, this->frame(), output);
    6359             :   }
    6360             : 
    6361             :   // optional .mozilla.layers.layerscope.ColorPacket color = 3;
    6362           0 :   if (has_color()) {
    6363           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6364           0 :       3, this->color(), output);
    6365             :   }
    6366             : 
    6367             :   // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
    6368           0 :   if (has_texture()) {
    6369           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6370           0 :       4, this->texture(), output);
    6371             :   }
    6372             : 
    6373             :   // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
    6374           0 :   if (has_layers()) {
    6375           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6376           0 :       5, this->layers(), output);
    6377             :   }
    6378             : 
    6379             :   // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
    6380           0 :   if (has_meta()) {
    6381           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6382           0 :       6, this->meta(), output);
    6383             :   }
    6384             : 
    6385             :   // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
    6386           0 :   if (has_draw()) {
    6387           0 :     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    6388           0 :       7, this->draw(), output);
    6389             :   }
    6390             : 
    6391           0 :   output->WriteRaw(unknown_fields().data(),
    6392           0 :                    unknown_fields().size());
    6393             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.Packet)
    6394           0 : }
    6395             : 
    6396           0 : int Packet::ByteSize() const {
    6397           0 :   int total_size = 0;
    6398             : 
    6399           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    6400             :     // required .mozilla.layers.layerscope.Packet.DataType type = 1;
    6401           0 :     if (has_type()) {
    6402           0 :       total_size += 1 +
    6403           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
    6404             :     }
    6405             : 
    6406             :     // optional .mozilla.layers.layerscope.FramePacket frame = 2;
    6407           0 :     if (has_frame()) {
    6408           0 :       total_size += 1 +
    6409           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6410             :           this->frame());
    6411             :     }
    6412             : 
    6413             :     // optional .mozilla.layers.layerscope.ColorPacket color = 3;
    6414           0 :     if (has_color()) {
    6415           0 :       total_size += 1 +
    6416           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6417             :           this->color());
    6418             :     }
    6419             : 
    6420             :     // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
    6421           0 :     if (has_texture()) {
    6422           0 :       total_size += 1 +
    6423           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6424             :           this->texture());
    6425             :     }
    6426             : 
    6427             :     // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
    6428           0 :     if (has_layers()) {
    6429           0 :       total_size += 1 +
    6430           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6431             :           this->layers());
    6432             :     }
    6433             : 
    6434             :     // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
    6435           0 :     if (has_meta()) {
    6436           0 :       total_size += 1 +
    6437           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6438             :           this->meta());
    6439             :     }
    6440             : 
    6441             :     // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
    6442           0 :     if (has_draw()) {
    6443           0 :       total_size += 1 +
    6444           0 :         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    6445             :           this->draw());
    6446             :     }
    6447             : 
    6448             :   }
    6449           0 :   total_size += unknown_fields().size();
    6450             : 
    6451             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    6452           0 :   _cached_size_ = total_size;
    6453             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    6454           0 :   return total_size;
    6455             : }
    6456             : 
    6457           0 : void Packet::CheckTypeAndMergeFrom(
    6458             :     const ::google::protobuf::MessageLite& from) {
    6459           0 :   MergeFrom(*::google::protobuf::down_cast<const Packet*>(&from));
    6460           0 : }
    6461             : 
    6462           0 : void Packet::MergeFrom(const Packet& from) {
    6463           0 :   GOOGLE_CHECK_NE(&from, this);
    6464           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    6465           0 :     if (from.has_type()) {
    6466           0 :       set_type(from.type());
    6467             :     }
    6468           0 :     if (from.has_frame()) {
    6469           0 :       mutable_frame()->::mozilla::layers::layerscope::FramePacket::MergeFrom(from.frame());
    6470             :     }
    6471           0 :     if (from.has_color()) {
    6472           0 :       mutable_color()->::mozilla::layers::layerscope::ColorPacket::MergeFrom(from.color());
    6473             :     }
    6474           0 :     if (from.has_texture()) {
    6475           0 :       mutable_texture()->::mozilla::layers::layerscope::TexturePacket::MergeFrom(from.texture());
    6476             :     }
    6477           0 :     if (from.has_layers()) {
    6478           0 :       mutable_layers()->::mozilla::layers::layerscope::LayersPacket::MergeFrom(from.layers());
    6479             :     }
    6480           0 :     if (from.has_meta()) {
    6481           0 :       mutable_meta()->::mozilla::layers::layerscope::MetaPacket::MergeFrom(from.meta());
    6482             :     }
    6483           0 :     if (from.has_draw()) {
    6484           0 :       mutable_draw()->::mozilla::layers::layerscope::DrawPacket::MergeFrom(from.draw());
    6485             :     }
    6486             :   }
    6487           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    6488           0 : }
    6489             : 
    6490           0 : void Packet::CopyFrom(const Packet& from) {
    6491           0 :   if (&from == this) return;
    6492           0 :   Clear();
    6493           0 :   MergeFrom(from);
    6494             : }
    6495             : 
    6496           0 : bool Packet::IsInitialized() const {
    6497           0 :   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
    6498             : 
    6499           0 :   if (has_color()) {
    6500           0 :     if (!this->color().IsInitialized()) return false;
    6501             :   }
    6502           0 :   if (has_texture()) {
    6503           0 :     if (!this->texture().IsInitialized()) return false;
    6504             :   }
    6505           0 :   if (has_layers()) {
    6506           0 :     if (!this->layers().IsInitialized()) return false;
    6507             :   }
    6508           0 :   if (has_draw()) {
    6509           0 :     if (!this->draw().IsInitialized()) return false;
    6510             :   }
    6511           0 :   return true;
    6512             : }
    6513             : 
    6514           0 : void Packet::Swap(Packet* other) {
    6515           0 :   if (other != this) {
    6516           0 :     std::swap(type_, other->type_);
    6517           0 :     std::swap(frame_, other->frame_);
    6518           0 :     std::swap(color_, other->color_);
    6519           0 :     std::swap(texture_, other->texture_);
    6520           0 :     std::swap(layers_, other->layers_);
    6521           0 :     std::swap(meta_, other->meta_);
    6522           0 :     std::swap(draw_, other->draw_);
    6523           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    6524           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    6525           0 :     std::swap(_cached_size_, other->_cached_size_);
    6526             :   }
    6527           0 : }
    6528             : 
    6529           0 : ::std::string Packet::GetTypeName() const {
    6530           0 :   return "mozilla.layers.layerscope.Packet";
    6531             : }
    6532             : 
    6533             : 
    6534             : // ===================================================================
    6535             : 
    6536           0 : bool CommandPacket_CmdType_IsValid(int value) {
    6537           0 :   switch(value) {
    6538             :     case 0:
    6539             :     case 1:
    6540             :     case 2:
    6541           0 :       return true;
    6542             :     default:
    6543           0 :       return false;
    6544             :   }
    6545             : }
    6546             : 
    6547             : #ifndef _MSC_VER
    6548             : const CommandPacket_CmdType CommandPacket::NO_OP;
    6549             : const CommandPacket_CmdType CommandPacket::LAYERS_TREE;
    6550             : const CommandPacket_CmdType CommandPacket::LAYERS_BUFFER;
    6551             : const CommandPacket_CmdType CommandPacket::CmdType_MIN;
    6552             : const CommandPacket_CmdType CommandPacket::CmdType_MAX;
    6553             : const int CommandPacket::CmdType_ARRAYSIZE;
    6554             : #endif  // _MSC_VER
    6555             : #ifndef _MSC_VER
    6556             : const int CommandPacket::kTypeFieldNumber;
    6557             : const int CommandPacket::kValueFieldNumber;
    6558             : #endif  // !_MSC_VER
    6559             : 
    6560           3 : CommandPacket::CommandPacket()
    6561           3 :   : ::google::protobuf::MessageLite() {
    6562           3 :   SharedCtor();
    6563             :   // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.CommandPacket)
    6564           3 : }
    6565             : 
    6566           3 : void CommandPacket::InitAsDefaultInstance() {
    6567           3 : }
    6568             : 
    6569           0 : CommandPacket::CommandPacket(const CommandPacket& from)
    6570           0 :   : ::google::protobuf::MessageLite() {
    6571           0 :   SharedCtor();
    6572           0 :   MergeFrom(from);
    6573             :   // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.CommandPacket)
    6574           0 : }
    6575             : 
    6576           3 : void CommandPacket::SharedCtor() {
    6577           3 :   _cached_size_ = 0;
    6578           3 :   type_ = 0;
    6579           3 :   value_ = false;
    6580           3 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    6581           3 : }
    6582             : 
    6583           0 : CommandPacket::~CommandPacket() {
    6584             :   // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.CommandPacket)
    6585           0 :   SharedDtor();
    6586           0 : }
    6587             : 
    6588           0 : void CommandPacket::SharedDtor() {
    6589             :   #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6590             :   if (this != &default_instance()) {
    6591             :   #else
    6592           0 :   if (this != default_instance_) {
    6593             :   #endif
    6594             :   }
    6595           0 : }
    6596             : 
    6597           0 : void CommandPacket::SetCachedSize(int size) const {
    6598             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    6599           0 :   _cached_size_ = size;
    6600             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    6601           0 : }
    6602           0 : const CommandPacket& CommandPacket::default_instance() {
    6603             : #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
    6604             :   protobuf_AddDesc_LayerScopePacket_2eproto();
    6605             : #else
    6606           0 :   if (default_instance_ == NULL) protobuf_AddDesc_LayerScopePacket_2eproto();
    6607             : #endif
    6608           0 :   return *default_instance_;
    6609             : }
    6610             : 
    6611             : CommandPacket* CommandPacket::default_instance_ = NULL;
    6612             : 
    6613           0 : CommandPacket* CommandPacket::New() const {
    6614           0 :   return new CommandPacket;
    6615             : }
    6616             : 
    6617           0 : void CommandPacket::Clear() {
    6618             : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>(      \
    6619             :   &reinterpret_cast<CommandPacket*>(16)->f) - \
    6620             :    reinterpret_cast<char*>(16))
    6621             : 
    6622             : #define ZR_(first, last) do {                              \
    6623             :     size_t f = OFFSET_OF_FIELD_(first);                    \
    6624             :     size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last);  \
    6625             :     ::memset(&first, 0, n);                                \
    6626             :   } while (0)
    6627             : 
    6628           0 :   ZR_(type_, value_);
    6629             : 
    6630             : #undef OFFSET_OF_FIELD_
    6631             : #undef ZR_
    6632             : 
    6633           0 :   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    6634           0 :   mutable_unknown_fields()->clear();
    6635           0 : }
    6636             : 
    6637           0 : bool CommandPacket::MergePartialFromCodedStream(
    6638             :     ::google::protobuf::io::CodedInputStream* input) {
    6639             : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
    6640             :   ::google::protobuf::uint32 tag;
    6641             :   ::google::protobuf::io::StringOutputStream unknown_fields_string(
    6642           0 :       mutable_unknown_fields());
    6643             :   ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
    6644           0 :       &unknown_fields_string);
    6645             :   // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.CommandPacket)
    6646             :   for (;;) {
    6647             :     ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
    6648           0 :     tag = p.first;
    6649           0 :     if (!p.second) goto handle_unusual;
    6650           0 :     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    6651             :       // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
    6652             :       case 1: {
    6653           0 :         if (tag == 8) {
    6654             :           int value;
    6655           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    6656             :                    int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
    6657             :                  input, &value)));
    6658           0 :           if (::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value)) {
    6659           0 :             set_type(static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(value));
    6660             :           } else {
    6661           0 :             unknown_fields_stream.WriteVarint32(tag);
    6662           0 :             unknown_fields_stream.WriteVarint32(value);
    6663             :           }
    6664             :         } else {
    6665           0 :           goto handle_unusual;
    6666             :         }
    6667           0 :         if (input->ExpectTag(16)) goto parse_value;
    6668           0 :         break;
    6669             :       }
    6670             : 
    6671             :       // optional bool value = 2;
    6672             :       case 2: {
    6673           0 :         if (tag == 16) {
    6674             :          parse_value:
    6675           0 :           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    6676             :                    bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
    6677             :                  input, &value_)));
    6678           0 :           set_has_value();
    6679             :         } else {
    6680           0 :           goto handle_unusual;
    6681             :         }
    6682           0 :         if (input->ExpectAtEnd()) goto success;
    6683           0 :         break;
    6684             :       }
    6685             : 
    6686             :       default: {
    6687             :       handle_unusual:
    6688           0 :         if (tag == 0 ||
    6689           0 :             ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    6690             :             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    6691           0 :           goto success;
    6692             :         }
    6693           0 :         DO_(::google::protobuf::internal::WireFormatLite::SkipField(
    6694             :             input, tag, &unknown_fields_stream));
    6695           0 :         break;
    6696             :       }
    6697             :     }
    6698           0 :   }
    6699             : success:
    6700             :   // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.CommandPacket)
    6701           0 :   return true;
    6702             : failure:
    6703             :   // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.CommandPacket)
    6704           0 :   return false;
    6705             : #undef DO_
    6706             : }
    6707             : 
    6708           0 : void CommandPacket::SerializeWithCachedSizes(
    6709             :     ::google::protobuf::io::CodedOutputStream* output) const {
    6710             :   // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.CommandPacket)
    6711             :   // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
    6712           0 :   if (has_type()) {
    6713           0 :     ::google::protobuf::internal::WireFormatLite::WriteEnum(
    6714           0 :       1, this->type(), output);
    6715             :   }
    6716             : 
    6717             :   // optional bool value = 2;
    6718           0 :   if (has_value()) {
    6719           0 :     ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value(), output);
    6720             :   }
    6721             : 
    6722           0 :   output->WriteRaw(unknown_fields().data(),
    6723           0 :                    unknown_fields().size());
    6724             :   // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.CommandPacket)
    6725           0 : }
    6726             : 
    6727           0 : int CommandPacket::ByteSize() const {
    6728           0 :   int total_size = 0;
    6729             : 
    6730           0 :   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    6731             :     // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
    6732           0 :     if (has_type()) {
    6733           0 :       total_size += 1 +
    6734           0 :         ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
    6735             :     }
    6736             : 
    6737             :     // optional bool value = 2;
    6738           0 :     if (has_value()) {
    6739           0 :       total_size += 1 + 1;
    6740             :     }
    6741             : 
    6742             :   }
    6743           0 :   total_size += unknown_fields().size();
    6744             : 
    6745             :   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    6746           0 :   _cached_size_ = total_size;
    6747             :   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    6748           0 :   return total_size;
    6749             : }
    6750             : 
    6751           0 : void CommandPacket::CheckTypeAndMergeFrom(
    6752             :     const ::google::protobuf::MessageLite& from) {
    6753           0 :   MergeFrom(*::google::protobuf::down_cast<const CommandPacket*>(&from));
    6754           0 : }
    6755             : 
    6756           0 : void CommandPacket::MergeFrom(const CommandPacket& from) {
    6757           0 :   GOOGLE_CHECK_NE(&from, this);
    6758           0 :   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    6759           0 :     if (from.has_type()) {
    6760           0 :       set_type(from.type());
    6761             :     }
    6762           0 :     if (from.has_value()) {
    6763           0 :       set_value(from.value());
    6764             :     }
    6765             :   }
    6766           0 :   mutable_unknown_fields()->append(from.unknown_fields());
    6767           0 : }
    6768             : 
    6769           0 : void CommandPacket::CopyFrom(const CommandPacket& from) {
    6770           0 :   if (&from == this) return;
    6771           0 :   Clear();
    6772           0 :   MergeFrom(from);
    6773             : }
    6774             : 
    6775           0 : bool CommandPacket::IsInitialized() const {
    6776           0 :   if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
    6777             : 
    6778           0 :   return true;
    6779             : }
    6780             : 
    6781           0 : void CommandPacket::Swap(CommandPacket* other) {
    6782           0 :   if (other != this) {
    6783           0 :     std::swap(type_, other->type_);
    6784           0 :     std::swap(value_, other->value_);
    6785           0 :     std::swap(_has_bits_[0], other->_has_bits_[0]);
    6786           0 :     _unknown_fields_.swap(other->_unknown_fields_);
    6787           0 :     std::swap(_cached_size_, other->_cached_size_);
    6788             :   }
    6789           0 : }
    6790             : 
    6791           0 : ::std::string CommandPacket::GetTypeName() const {
    6792           0 :   return "mozilla.layers.layerscope.CommandPacket";
    6793             : }
    6794             : 
    6795             : 
    6796             : // @@protoc_insertion_point(namespace_scope)
    6797             : 
    6798             : }  // namespace layerscope
    6799             : }  // namespace layers
    6800             : }  // namespace mozilla
    6801             : 
    6802             : // @@protoc_insertion_point(global_scope)

Generated by: LCOV version 1.13