Bug 1195653 - Part1.4: Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury (v1, carry r+)

This commit is contained in:
Jeremy Chen 2015-09-29 23:24:00 +02:00
Родитель 9387f36033
Коммит e6234471ad
2 изменённых файлов: 72 добавлений и 4 удалений

Просмотреть файл

@ -648,6 +648,7 @@ const int TexturePacket::kTargetFieldNumber;
const int TexturePacket::kDataformatFieldNumber;
const int TexturePacket::kGlcontextFieldNumber;
const int TexturePacket::kDataFieldNumber;
const int TexturePacket::kIsMaskFieldNumber;
#endif // !_MSC_VER
TexturePacket::TexturePacket()
@ -678,6 +679,7 @@ void TexturePacket::SharedCtor() {
dataformat_ = 0u;
glcontext_ = GOOGLE_ULONGLONG(0);
data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ismask_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
@ -732,10 +734,13 @@ void TexturePacket::Clear() {
if (_has_bits_[0 / 32] & 255) {
ZR_(layerref_, glcontext_);
}
if (has_data()) {
if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
data_->clear();
if (_has_bits_[8 / 32] & 768) {
if (has_data()) {
if (data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
data_->clear();
}
}
ismask_ = false;
}
#undef OFFSET_OF_FIELD_
@ -755,7 +760,7 @@ bool TexturePacket::MergePartialFromCodedStream(
&unknown_fields_string);
// @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket)
for (;;) {
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383);
tag = p.first;
if (!p.second) goto handle_unusual;
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
@ -887,6 +892,21 @@ bool TexturePacket::MergePartialFromCodedStream(
} else {
goto handle_unusual;
}
if (input->ExpectTag(160)) goto parse_isMask;
break;
}
// optional bool isMask = 20;
case 20: {
if (tag == 160) {
parse_isMask:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &ismask_)));
set_has_ismask();
} else {
goto handle_unusual;
}
if (input->ExpectAtEnd()) goto success;
break;
}
@ -962,6 +982,11 @@ void TexturePacket::SerializeWithCachedSizes(
9, this->data(), output);
}
// optional bool isMask = 20;
if (has_ismask()) {
::google::protobuf::internal::WireFormatLite::WriteBool(20, this->ismask(), output);
}
output->WriteRaw(unknown_fields().data(),
unknown_fields().size());
// @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket)
@ -1036,6 +1061,11 @@ int TexturePacket::ByteSize() const {
this->data());
}
// optional bool isMask = 20;
if (has_ismask()) {
total_size += 2 + 1;
}
}
total_size += unknown_fields().size();
@ -1082,6 +1112,9 @@ void TexturePacket::MergeFrom(const TexturePacket& from) {
if (from.has_data()) {
set_data(from.data());
}
if (from.has_ismask()) {
set_ismask(from.ismask());
}
}
mutable_unknown_fields()->append(from.unknown_fields());
}
@ -1109,6 +1142,7 @@ void TexturePacket::Swap(TexturePacket* other) {
std::swap(dataformat_, other->dataformat_);
std::swap(glcontext_, other->glcontext_);
std::swap(data_, other->data_);
std::swap(ismask_, other->ismask_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.swap(other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);

Просмотреть файл

@ -460,6 +460,13 @@ class TexturePacket : public ::google::protobuf::MessageLite {
inline ::std::string* release_data();
inline void set_allocated_data(::std::string* data);
// optional bool isMask = 20;
inline bool has_ismask() const;
inline void clear_ismask();
static const int kIsMaskFieldNumber = 20;
inline bool ismask() const;
inline void set_ismask(bool value);
// @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket)
private:
inline void set_has_layerref();
@ -480,6 +487,8 @@ class TexturePacket : public ::google::protobuf::MessageLite {
inline void clear_has_glcontext();
inline void set_has_data();
inline void clear_has_data();
inline void set_has_ismask();
inline void clear_has_ismask();
::std::string _unknown_fields_;
@ -494,6 +503,7 @@ class TexturePacket : public ::google::protobuf::MessageLite {
::google::protobuf::uint32 dataformat_;
::google::protobuf::uint64 glcontext_;
::std::string* data_;
bool ismask_;
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
friend void protobuf_AddDesc_LayerScopePacket_2eproto_impl();
#else
@ -2664,6 +2674,30 @@ inline void TexturePacket::set_allocated_data(::std::string* data) {
// @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.data)
}
// optional bool isMask = 20;
inline bool TexturePacket::has_ismask() const {
return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void TexturePacket::set_has_ismask() {
_has_bits_[0] |= 0x00000200u;
}
inline void TexturePacket::clear_has_ismask() {
_has_bits_[0] &= ~0x00000200u;
}
inline void TexturePacket::clear_ismask() {
ismask_ = false;
clear_has_ismask();
}
inline bool TexturePacket::ismask() const {
// @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.isMask)
return ismask_;
}
inline void TexturePacket::set_ismask(bool value) {
set_has_ismask();
ismask_ = value;
// @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.isMask)
}
// -------------------------------------------------------------------
// LayersPacket_Layer_Size