summaryrefslogtreecommitdiffstats
path: root/gfx/layers/protobuf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/layers/protobuf
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/layers/protobuf')
-rw-r--r--gfx/layers/protobuf/LayerScopePacket.pb.cc7236
-rw-r--r--gfx/layers/protobuf/LayerScopePacket.pb.h7833
-rw-r--r--gfx/layers/protobuf/LayerScopePacket.proto221
3 files changed, 15290 insertions, 0 deletions
diff --git a/gfx/layers/protobuf/LayerScopePacket.pb.cc b/gfx/layers/protobuf/LayerScopePacket.pb.cc
new file mode 100644
index 0000000000..35f181d672
--- /dev/null
+++ b/gfx/layers/protobuf/LayerScopePacket.pb.cc
@@ -0,0 +1,7236 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: LayerScopePacket.proto
+
+#include "LayerScopePacket.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/extension_set.h>
+#include <google/protobuf/wire_format_lite.h>
+#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
+// @@protoc_insertion_point(includes)
+#include <google/protobuf/port_def.inc>
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ColorPacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DrawPacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DrawPacket_Rect_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FramePacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayersPacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_LayersPacket_Layer_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaPacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TexturePacket_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Matrix_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Rect_LayerScopePacket_2eproto;
+extern PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Size_LayerScopePacket_2eproto;
+namespace mozilla {
+namespace layers {
+namespace layerscope {
+class FramePacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FramePacket> _instance;
+} _FramePacket_default_instance_;
+class ColorPacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ColorPacket> _instance;
+} _ColorPacket_default_instance_;
+class TexturePacket_RectDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TexturePacket_Rect> _instance;
+} _TexturePacket_Rect_default_instance_;
+class TexturePacket_SizeDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TexturePacket_Size> _instance;
+} _TexturePacket_Size_default_instance_;
+class TexturePacket_MatrixDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TexturePacket_Matrix> _instance;
+} _TexturePacket_Matrix_default_instance_;
+class TexturePacket_EffectMaskDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TexturePacket_EffectMask> _instance;
+} _TexturePacket_EffectMask_default_instance_;
+class TexturePacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TexturePacket> _instance;
+} _TexturePacket_default_instance_;
+class LayersPacket_Layer_SizeDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer_Size> _instance;
+} _LayersPacket_Layer_Size_default_instance_;
+class LayersPacket_Layer_RectDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer_Rect> _instance;
+} _LayersPacket_Layer_Rect_default_instance_;
+class LayersPacket_Layer_RegionDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer_Region> _instance;
+} _LayersPacket_Layer_Region_default_instance_;
+class LayersPacket_Layer_MatrixDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer_Matrix> _instance;
+} _LayersPacket_Layer_Matrix_default_instance_;
+class LayersPacket_Layer_ShadowDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer_Shadow> _instance;
+} _LayersPacket_Layer_Shadow_default_instance_;
+class LayersPacket_LayerDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket_Layer> _instance;
+} _LayersPacket_Layer_default_instance_;
+class LayersPacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<LayersPacket> _instance;
+} _LayersPacket_default_instance_;
+class MetaPacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MetaPacket> _instance;
+} _MetaPacket_default_instance_;
+class DrawPacket_RectDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DrawPacket_Rect> _instance;
+} _DrawPacket_Rect_default_instance_;
+class DrawPacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<DrawPacket> _instance;
+} _DrawPacket_default_instance_;
+class PacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Packet> _instance;
+} _Packet_default_instance_;
+class CommandPacketDefaultTypeInternal {
+ public:
+ ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CommandPacket> _instance;
+} _CommandPacket_default_instance_;
+} // namespace layerscope
+} // namespace layers
+} // namespace mozilla
+static void InitDefaultsscc_info_ColorPacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_ColorPacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::ColorPacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::ColorPacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ColorPacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ColorPacket_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_CommandPacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_CommandPacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::CommandPacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::CommandPacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CommandPacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CommandPacket_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_DrawPacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_DrawPacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::DrawPacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::DrawPacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DrawPacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_DrawPacket_LayerScopePacket_2eproto}, {
+ &scc_info_DrawPacket_Rect_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_DrawPacket_Rect_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_DrawPacket_Rect_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::DrawPacket_Rect();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::DrawPacket_Rect::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DrawPacket_Rect_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DrawPacket_Rect_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_FramePacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_FramePacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::FramePacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::FramePacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FramePacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FramePacket_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_LayersPacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayersPacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_LayersPacket_LayerScopePacket_2eproto}, {
+ &scc_info_LayersPacket_Layer_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<5> scc_info_LayersPacket_Layer_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 5, 0, InitDefaultsscc_info_LayersPacket_Layer_LayerScopePacket_2eproto}, {
+ &scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer_Rect();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer_Region();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto}, {
+ &scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto}, {
+ &scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_LayersPacket_Layer_Size_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::LayersPacket_Layer_Size();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_MetaPacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_MetaPacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::MetaPacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::MetaPacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MetaPacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MetaPacket_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_Packet_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_Packet_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::Packet();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::Packet::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<6> scc_info_Packet_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 6, 0, InitDefaultsscc_info_Packet_LayerScopePacket_2eproto}, {
+ &scc_info_FramePacket_LayerScopePacket_2eproto.base,
+ &scc_info_ColorPacket_LayerScopePacket_2eproto.base,
+ &scc_info_TexturePacket_LayerScopePacket_2eproto.base,
+ &scc_info_LayersPacket_LayerScopePacket_2eproto.base,
+ &scc_info_MetaPacket_LayerScopePacket_2eproto.base,
+ &scc_info_DrawPacket_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_TexturePacket_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_TexturePacket_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::TexturePacket();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::TexturePacket::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TexturePacket_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_TexturePacket_LayerScopePacket_2eproto}, {
+ &scc_info_TexturePacket_Rect_LayerScopePacket_2eproto.base,
+ &scc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::TexturePacket_EffectMask();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto}, {
+ &scc_info_TexturePacket_Size_LayerScopePacket_2eproto.base,
+ &scc_info_TexturePacket_Matrix_LayerScopePacket_2eproto.base,}};
+
+static void InitDefaultsscc_info_TexturePacket_Matrix_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_TexturePacket_Matrix_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::TexturePacket_Matrix();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::TexturePacket_Matrix::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Matrix_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TexturePacket_Matrix_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_TexturePacket_Rect_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_TexturePacket_Rect_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::TexturePacket_Rect();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::TexturePacket_Rect::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Rect_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TexturePacket_Rect_LayerScopePacket_2eproto}, {}};
+
+static void InitDefaultsscc_info_TexturePacket_Size_LayerScopePacket_2eproto() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ {
+ void* ptr = &::mozilla::layers::layerscope::_TexturePacket_Size_default_instance_;
+ new (ptr) ::mozilla::layers::layerscope::TexturePacket_Size();
+ ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::mozilla::layers::layerscope::TexturePacket_Size::InitAsDefaultInstance();
+}
+
+::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TexturePacket_Size_LayerScopePacket_2eproto =
+ {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TexturePacket_Size_LayerScopePacket_2eproto}, {}};
+
+namespace mozilla {
+namespace layers {
+namespace layerscope {
+bool TexturePacket_Filter_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> TexturePacket_Filter_strings[3] = {};
+
+static const char TexturePacket_Filter_names[] =
+ "GOOD"
+ "LINEAR"
+ "POINT";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry TexturePacket_Filter_entries[] = {
+ { {TexturePacket_Filter_names + 0, 4}, 0 },
+ { {TexturePacket_Filter_names + 4, 6}, 1 },
+ { {TexturePacket_Filter_names + 10, 5}, 2 },
+};
+
+static const int TexturePacket_Filter_entries_by_number[] = {
+ 0, // 0 -> GOOD
+ 1, // 1 -> LINEAR
+ 2, // 2 -> POINT
+};
+
+const std::string& TexturePacket_Filter_Name(
+ TexturePacket_Filter value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ TexturePacket_Filter_entries,
+ TexturePacket_Filter_entries_by_number,
+ 3, TexturePacket_Filter_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ TexturePacket_Filter_entries,
+ TexturePacket_Filter_entries_by_number,
+ 3, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ TexturePacket_Filter_strings[idx].get();
+}
+bool TexturePacket_Filter_Parse(
+ const std::string& name, TexturePacket_Filter* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ TexturePacket_Filter_entries, 3, name, &int_value);
+ if (success) {
+ *value = static_cast<TexturePacket_Filter>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr TexturePacket_Filter TexturePacket::GOOD;
+constexpr TexturePacket_Filter TexturePacket::LINEAR;
+constexpr TexturePacket_Filter TexturePacket::POINT;
+constexpr TexturePacket_Filter TexturePacket::Filter_MIN;
+constexpr TexturePacket_Filter TexturePacket::Filter_MAX;
+constexpr int TexturePacket::Filter_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+bool LayersPacket_Layer_LayerType_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 8:
+ case 9:
+ case 10:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> LayersPacket_Layer_LayerType_strings[10] = {};
+
+static const char LayersPacket_Layer_LayerType_names[] =
+ "CanvasLayer"
+ "ColorLayer"
+ "ContainerLayer"
+ "DisplayItemLayer"
+ "ImageLayer"
+ "LayerManager"
+ "PaintedLayer"
+ "ReadbackLayer"
+ "RefLayer"
+ "UnknownLayer";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LayersPacket_Layer_LayerType_entries[] = {
+ { {LayersPacket_Layer_LayerType_names + 0, 11}, 4 },
+ { {LayersPacket_Layer_LayerType_names + 11, 10}, 6 },
+ { {LayersPacket_Layer_LayerType_names + 21, 14}, 2 },
+ { {LayersPacket_Layer_LayerType_names + 35, 16}, 10 },
+ { {LayersPacket_Layer_LayerType_names + 51, 10}, 5 },
+ { {LayersPacket_Layer_LayerType_names + 61, 12}, 1 },
+ { {LayersPacket_Layer_LayerType_names + 73, 12}, 3 },
+ { {LayersPacket_Layer_LayerType_names + 85, 13}, 9 },
+ { {LayersPacket_Layer_LayerType_names + 98, 8}, 8 },
+ { {LayersPacket_Layer_LayerType_names + 106, 12}, 0 },
+};
+
+static const int LayersPacket_Layer_LayerType_entries_by_number[] = {
+ 9, // 0 -> UnknownLayer
+ 5, // 1 -> LayerManager
+ 2, // 2 -> ContainerLayer
+ 6, // 3 -> PaintedLayer
+ 0, // 4 -> CanvasLayer
+ 4, // 5 -> ImageLayer
+ 1, // 6 -> ColorLayer
+ 8, // 8 -> RefLayer
+ 7, // 9 -> ReadbackLayer
+ 3, // 10 -> DisplayItemLayer
+};
+
+const std::string& LayersPacket_Layer_LayerType_Name(
+ LayersPacket_Layer_LayerType value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ LayersPacket_Layer_LayerType_entries,
+ LayersPacket_Layer_LayerType_entries_by_number,
+ 10, LayersPacket_Layer_LayerType_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ LayersPacket_Layer_LayerType_entries,
+ LayersPacket_Layer_LayerType_entries_by_number,
+ 10, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ LayersPacket_Layer_LayerType_strings[idx].get();
+}
+bool LayersPacket_Layer_LayerType_Parse(
+ const std::string& name, LayersPacket_Layer_LayerType* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ LayersPacket_Layer_LayerType_entries, 10, name, &int_value);
+ if (success) {
+ *value = static_cast<LayersPacket_Layer_LayerType>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::UnknownLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::LayerManager;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::ContainerLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::PaintedLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::CanvasLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::ImageLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::ColorLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::RefLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::ReadbackLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::DisplayItemLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MIN;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MAX;
+constexpr int LayersPacket_Layer::LayerType_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+bool LayersPacket_Layer_ScrollingDirect_IsValid(int value) {
+ switch (value) {
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> LayersPacket_Layer_ScrollingDirect_strings[2] = {};
+
+static const char LayersPacket_Layer_ScrollingDirect_names[] =
+ "HORIZONTAL"
+ "VERTICAL";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LayersPacket_Layer_ScrollingDirect_entries[] = {
+ { {LayersPacket_Layer_ScrollingDirect_names + 0, 10}, 2 },
+ { {LayersPacket_Layer_ScrollingDirect_names + 10, 8}, 1 },
+};
+
+static const int LayersPacket_Layer_ScrollingDirect_entries_by_number[] = {
+ 1, // 1 -> VERTICAL
+ 0, // 2 -> HORIZONTAL
+};
+
+const std::string& LayersPacket_Layer_ScrollingDirect_Name(
+ LayersPacket_Layer_ScrollingDirect value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ LayersPacket_Layer_ScrollingDirect_entries,
+ LayersPacket_Layer_ScrollingDirect_entries_by_number,
+ 2, LayersPacket_Layer_ScrollingDirect_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ LayersPacket_Layer_ScrollingDirect_entries,
+ LayersPacket_Layer_ScrollingDirect_entries_by_number,
+ 2, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ LayersPacket_Layer_ScrollingDirect_strings[idx].get();
+}
+bool LayersPacket_Layer_ScrollingDirect_Parse(
+ const std::string& name, LayersPacket_Layer_ScrollingDirect* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ LayersPacket_Layer_ScrollingDirect_entries, 2, name, &int_value);
+ if (success) {
+ *value = static_cast<LayersPacket_Layer_ScrollingDirect>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::VERTICAL;
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::HORIZONTAL;
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MIN;
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MAX;
+constexpr int LayersPacket_Layer::ScrollingDirect_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+bool LayersPacket_Layer_Filter_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ case 8:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> LayersPacket_Layer_Filter_strings[9] = {};
+
+static const char LayersPacket_Layer_Filter_names[] =
+ "FILTER_BEST"
+ "FILTER_BILINEAR"
+ "FILTER_FAST"
+ "FILTER_GAUSSIAN"
+ "FILTER_GOOD"
+ "FILTER_LINEAR"
+ "FILTER_NEAREST"
+ "FILTER_POINT"
+ "FILTER_SENTINEL";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LayersPacket_Layer_Filter_entries[] = {
+ { {LayersPacket_Layer_Filter_names + 0, 11}, 2 },
+ { {LayersPacket_Layer_Filter_names + 11, 15}, 4 },
+ { {LayersPacket_Layer_Filter_names + 26, 11}, 0 },
+ { {LayersPacket_Layer_Filter_names + 37, 15}, 5 },
+ { {LayersPacket_Layer_Filter_names + 52, 11}, 1 },
+ { {LayersPacket_Layer_Filter_names + 63, 13}, 7 },
+ { {LayersPacket_Layer_Filter_names + 76, 14}, 3 },
+ { {LayersPacket_Layer_Filter_names + 90, 12}, 8 },
+ { {LayersPacket_Layer_Filter_names + 102, 15}, 6 },
+};
+
+static const int LayersPacket_Layer_Filter_entries_by_number[] = {
+ 2, // 0 -> FILTER_FAST
+ 4, // 1 -> FILTER_GOOD
+ 0, // 2 -> FILTER_BEST
+ 6, // 3 -> FILTER_NEAREST
+ 1, // 4 -> FILTER_BILINEAR
+ 3, // 5 -> FILTER_GAUSSIAN
+ 8, // 6 -> FILTER_SENTINEL
+ 5, // 7 -> FILTER_LINEAR
+ 7, // 8 -> FILTER_POINT
+};
+
+const std::string& LayersPacket_Layer_Filter_Name(
+ LayersPacket_Layer_Filter value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ LayersPacket_Layer_Filter_entries,
+ LayersPacket_Layer_Filter_entries_by_number,
+ 9, LayersPacket_Layer_Filter_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ LayersPacket_Layer_Filter_entries,
+ LayersPacket_Layer_Filter_entries_by_number,
+ 9, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ LayersPacket_Layer_Filter_strings[idx].get();
+}
+bool LayersPacket_Layer_Filter_Parse(
+ const std::string& name, LayersPacket_Layer_Filter* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ LayersPacket_Layer_Filter_entries, 9, name, &int_value);
+ if (success) {
+ *value = static_cast<LayersPacket_Layer_Filter>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_FAST;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GOOD;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BEST;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_NEAREST;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BILINEAR;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GAUSSIAN;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_SENTINEL;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_LINEAR;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_POINT;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MIN;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MAX;
+constexpr int LayersPacket_Layer::Filter_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+bool Packet_DataType_IsValid(int value) {
+ switch (value) {
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> Packet_DataType_strings[7] = {};
+
+static const char Packet_DataType_names[] =
+ "COLOR"
+ "DRAW"
+ "FRAMEEND"
+ "FRAMESTART"
+ "LAYERS"
+ "META"
+ "TEXTURE";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Packet_DataType_entries[] = {
+ { {Packet_DataType_names + 0, 5}, 3 },
+ { {Packet_DataType_names + 5, 4}, 7 },
+ { {Packet_DataType_names + 9, 8}, 2 },
+ { {Packet_DataType_names + 17, 10}, 1 },
+ { {Packet_DataType_names + 27, 6}, 5 },
+ { {Packet_DataType_names + 33, 4}, 6 },
+ { {Packet_DataType_names + 37, 7}, 4 },
+};
+
+static const int Packet_DataType_entries_by_number[] = {
+ 3, // 1 -> FRAMESTART
+ 2, // 2 -> FRAMEEND
+ 0, // 3 -> COLOR
+ 6, // 4 -> TEXTURE
+ 4, // 5 -> LAYERS
+ 5, // 6 -> META
+ 1, // 7 -> DRAW
+};
+
+const std::string& Packet_DataType_Name(
+ Packet_DataType value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ Packet_DataType_entries,
+ Packet_DataType_entries_by_number,
+ 7, Packet_DataType_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ Packet_DataType_entries,
+ Packet_DataType_entries_by_number,
+ 7, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ Packet_DataType_strings[idx].get();
+}
+bool Packet_DataType_Parse(
+ const std::string& name, Packet_DataType* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ Packet_DataType_entries, 7, name, &int_value);
+ if (success) {
+ *value = static_cast<Packet_DataType>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr Packet_DataType Packet::FRAMESTART;
+constexpr Packet_DataType Packet::FRAMEEND;
+constexpr Packet_DataType Packet::COLOR;
+constexpr Packet_DataType Packet::TEXTURE;
+constexpr Packet_DataType Packet::LAYERS;
+constexpr Packet_DataType Packet::META;
+constexpr Packet_DataType Packet::DRAW;
+constexpr Packet_DataType Packet::DataType_MIN;
+constexpr Packet_DataType Packet::DataType_MAX;
+constexpr int Packet::DataType_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+bool CommandPacket_CmdType_IsValid(int value) {
+ switch (value) {
+ case 0:
+ case 1:
+ case 2:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CommandPacket_CmdType_strings[3] = {};
+
+static const char CommandPacket_CmdType_names[] =
+ "LAYERS_BUFFER"
+ "LAYERS_TREE"
+ "NO_OP";
+
+static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CommandPacket_CmdType_entries[] = {
+ { {CommandPacket_CmdType_names + 0, 13}, 2 },
+ { {CommandPacket_CmdType_names + 13, 11}, 1 },
+ { {CommandPacket_CmdType_names + 24, 5}, 0 },
+};
+
+static const int CommandPacket_CmdType_entries_by_number[] = {
+ 2, // 0 -> NO_OP
+ 1, // 1 -> LAYERS_TREE
+ 0, // 2 -> LAYERS_BUFFER
+};
+
+const std::string& CommandPacket_CmdType_Name(
+ CommandPacket_CmdType value) {
+ static const bool dummy =
+ ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
+ CommandPacket_CmdType_entries,
+ CommandPacket_CmdType_entries_by_number,
+ 3, CommandPacket_CmdType_strings);
+ (void) dummy;
+ int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
+ CommandPacket_CmdType_entries,
+ CommandPacket_CmdType_entries_by_number,
+ 3, value);
+ return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
+ CommandPacket_CmdType_strings[idx].get();
+}
+bool CommandPacket_CmdType_Parse(
+ const std::string& name, CommandPacket_CmdType* value) {
+ int int_value;
+ bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
+ CommandPacket_CmdType_entries, 3, name, &int_value);
+ if (success) {
+ *value = static_cast<CommandPacket_CmdType>(int_value);
+ }
+ return success;
+}
+#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+constexpr CommandPacket_CmdType CommandPacket::NO_OP;
+constexpr CommandPacket_CmdType CommandPacket::LAYERS_TREE;
+constexpr CommandPacket_CmdType CommandPacket::LAYERS_BUFFER;
+constexpr CommandPacket_CmdType CommandPacket::CmdType_MIN;
+constexpr CommandPacket_CmdType CommandPacket::CmdType_MAX;
+constexpr int CommandPacket::CmdType_ARRAYSIZE;
+#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
+
+// ===================================================================
+
+void FramePacket::InitAsDefaultInstance() {
+}
+class FramePacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<FramePacket>()._has_bits_);
+ static void set_has_value(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_scale(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+FramePacket::FramePacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.FramePacket)
+}
+FramePacket::FramePacket(const FramePacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&value_, &from.value_,
+ static_cast<size_t>(reinterpret_cast<char*>(&scale_) -
+ reinterpret_cast<char*>(&value_)) + sizeof(scale_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.FramePacket)
+}
+
+void FramePacket::SharedCtor() {
+ ::memset(&value_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&scale_) -
+ reinterpret_cast<char*>(&value_)) + sizeof(scale_));
+}
+
+FramePacket::~FramePacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.FramePacket)
+ SharedDtor();
+}
+
+void FramePacket::SharedDtor() {
+}
+
+void FramePacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const FramePacket& FramePacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FramePacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void FramePacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.FramePacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ ::memset(&value_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&scale_) -
+ reinterpret_cast<char*>(&value_)) + sizeof(scale_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* FramePacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional uint64 value = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_value(&has_bits);
+ value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional float scale = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
+ _Internal::set_has_scale(&has_bits);
+ scale_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* FramePacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.FramePacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional uint64 value = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_value(), target);
+ }
+
+ // optional float scale = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_scale(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.FramePacket)
+ return target;
+}
+
+size_t FramePacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.FramePacket)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ // optional uint64 value = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_value());
+ }
+
+ // optional float scale = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 + 4;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void FramePacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const FramePacket*>(
+ &from));
+}
+
+void FramePacket::MergeFrom(const FramePacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.FramePacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ value_ = from.value_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ scale_ = from.scale_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void FramePacket::CopyFrom(const FramePacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.FramePacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool FramePacket::IsInitialized() const {
+ return true;
+}
+
+void FramePacket::InternalSwap(FramePacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(value_, other->value_);
+ swap(scale_, other->scale_);
+}
+
+std::string FramePacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.FramePacket";
+}
+
+
+// ===================================================================
+
+void ColorPacket::InitAsDefaultInstance() {
+}
+class ColorPacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<ColorPacket>()._has_bits_);
+ static void set_has_layerref(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_width(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_height(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_color(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+};
+
+ColorPacket::ColorPacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.ColorPacket)
+}
+ColorPacket::ColorPacket(const ColorPacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&layerref_, &from.layerref_,
+ static_cast<size_t>(reinterpret_cast<char*>(&color_) -
+ reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.ColorPacket)
+}
+
+void ColorPacket::SharedCtor() {
+ ::memset(&layerref_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&color_) -
+ reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
+}
+
+ColorPacket::~ColorPacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.ColorPacket)
+ SharedDtor();
+}
+
+void ColorPacket::SharedDtor() {
+}
+
+void ColorPacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const ColorPacket& ColorPacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ColorPacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void ColorPacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.ColorPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ ::memset(&layerref_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&color_) -
+ reinterpret_cast<char*>(&layerref_)) + sizeof(color_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* ColorPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required uint64 layerref = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_layerref(&has_bits);
+ layerref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 width = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_width(&has_bits);
+ width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 height = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_height(&has_bits);
+ height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 color = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
+ _Internal::set_has_color(&has_bits);
+ color_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* ColorPacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.ColorPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required uint64 layerref = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_layerref(), target);
+ }
+
+ // optional uint32 width = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_width(), target);
+ }
+
+ // optional uint32 height = 3;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_height(), target);
+ }
+
+ // optional uint32 color = 4;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_color(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.ColorPacket)
+ return target;
+}
+
+size_t ColorPacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.ColorPacket)
+ size_t total_size = 0;
+
+ // required uint64 layerref = 1;
+ if (_internal_has_layerref()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_layerref());
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000eu) {
+ // optional uint32 width = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_width());
+ }
+
+ // optional uint32 height = 3;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_height());
+ }
+
+ // optional uint32 color = 4;
+ if (cached_has_bits & 0x00000008u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_color());
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void ColorPacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ColorPacket*>(
+ &from));
+}
+
+void ColorPacket::MergeFrom(const ColorPacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.ColorPacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ if (cached_has_bits & 0x00000001u) {
+ layerref_ = from.layerref_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ width_ = from.width_;
+ }
+ if (cached_has_bits & 0x00000004u) {
+ height_ = from.height_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ color_ = from.color_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void ColorPacket::CopyFrom(const ColorPacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.ColorPacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool ColorPacket::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
+ return true;
+}
+
+void ColorPacket::InternalSwap(ColorPacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(layerref_, other->layerref_);
+ swap(width_, other->width_);
+ swap(height_, other->height_);
+ swap(color_, other->color_);
+}
+
+std::string ColorPacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.ColorPacket";
+}
+
+
+// ===================================================================
+
+void TexturePacket_Rect::InitAsDefaultInstance() {
+}
+class TexturePacket_Rect::_Internal {
+ public:
+ using HasBits = decltype(std::declval<TexturePacket_Rect>()._has_bits_);
+ static void set_has_x(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_y(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_w(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_h(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+};
+
+TexturePacket_Rect::TexturePacket_Rect()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Rect)
+}
+TexturePacket_Rect::TexturePacket_Rect(const TexturePacket_Rect& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&x_, &from.x_,
+ static_cast<size_t>(reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Rect)
+}
+
+void TexturePacket_Rect::SharedCtor() {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+}
+
+TexturePacket_Rect::~TexturePacket_Rect() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Rect)
+ SharedDtor();
+}
+
+void TexturePacket_Rect::SharedDtor() {
+}
+
+void TexturePacket_Rect::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const TexturePacket_Rect& TexturePacket_Rect::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TexturePacket_Rect_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void TexturePacket_Rect::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* TexturePacket_Rect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional float x = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
+ _Internal::set_has_x(&has_bits);
+ x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // optional float y = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
+ _Internal::set_has_y(&has_bits);
+ y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // optional float w = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
+ _Internal::set_has_w(&has_bits);
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // optional float h = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
+ _Internal::set_has_h(&has_bits);
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* TexturePacket_Rect::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.TexturePacket.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional float x = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
+ }
+
+ // optional float y = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
+ }
+
+ // optional float w = 3;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_w(), target);
+ }
+
+ // optional float h = 4;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_h(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.TexturePacket.Rect)
+ return target;
+}
+
+size_t TexturePacket_Rect::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Rect)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ // optional float x = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 + 4;
+ }
+
+ // optional float y = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 + 4;
+ }
+
+ // optional float w = 3;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 + 4;
+ }
+
+ // optional float h = 4;
+ if (cached_has_bits & 0x00000008u) {
+ total_size += 1 + 4;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void TexturePacket_Rect::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TexturePacket_Rect*>(
+ &from));
+}
+
+void TexturePacket_Rect::MergeFrom(const TexturePacket_Rect& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Rect)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ if (cached_has_bits & 0x00000001u) {
+ x_ = from.x_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ y_ = from.y_;
+ }
+ if (cached_has_bits & 0x00000004u) {
+ w_ = from.w_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ h_ = from.h_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void TexturePacket_Rect::CopyFrom(const TexturePacket_Rect& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Rect)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TexturePacket_Rect::IsInitialized() const {
+ return true;
+}
+
+void TexturePacket_Rect::InternalSwap(TexturePacket_Rect* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(x_, other->x_);
+ swap(y_, other->y_);
+ swap(w_, other->w_);
+ swap(h_, other->h_);
+}
+
+std::string TexturePacket_Rect::GetTypeName() const {
+ return "mozilla.layers.layerscope.TexturePacket.Rect";
+}
+
+
+// ===================================================================
+
+void TexturePacket_Size::InitAsDefaultInstance() {
+}
+class TexturePacket_Size::_Internal {
+ public:
+ using HasBits = decltype(std::declval<TexturePacket_Size>()._has_bits_);
+ static void set_has_w(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_h(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+TexturePacket_Size::TexturePacket_Size()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Size)
+}
+TexturePacket_Size::TexturePacket_Size(const TexturePacket_Size& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&w_, &from.w_,
+ static_cast<size_t>(reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Size)
+}
+
+void TexturePacket_Size::SharedCtor() {
+ ::memset(&w_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+}
+
+TexturePacket_Size::~TexturePacket_Size() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Size)
+ SharedDtor();
+}
+
+void TexturePacket_Size::SharedDtor() {
+}
+
+void TexturePacket_Size::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const TexturePacket_Size& TexturePacket_Size::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TexturePacket_Size_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void TexturePacket_Size::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Size)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ ::memset(&w_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* TexturePacket_Size::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional int32 w = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_w(&has_bits);
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional int32 h = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_h(&has_bits);
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* TexturePacket_Size::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.TexturePacket.Size)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional int32 w = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_w(), target);
+ }
+
+ // optional int32 h = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_h(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.TexturePacket.Size)
+ return target;
+}
+
+size_t TexturePacket_Size::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Size)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ // optional int32 w = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_w());
+ }
+
+ // optional int32 h = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_h());
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void TexturePacket_Size::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TexturePacket_Size*>(
+ &from));
+}
+
+void TexturePacket_Size::MergeFrom(const TexturePacket_Size& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Size)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ w_ = from.w_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ h_ = from.h_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void TexturePacket_Size::CopyFrom(const TexturePacket_Size& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Size)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TexturePacket_Size::IsInitialized() const {
+ return true;
+}
+
+void TexturePacket_Size::InternalSwap(TexturePacket_Size* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(w_, other->w_);
+ swap(h_, other->h_);
+}
+
+std::string TexturePacket_Size::GetTypeName() const {
+ return "mozilla.layers.layerscope.TexturePacket.Size";
+}
+
+
+// ===================================================================
+
+void TexturePacket_Matrix::InitAsDefaultInstance() {
+}
+class TexturePacket_Matrix::_Internal {
+ public:
+ using HasBits = decltype(std::declval<TexturePacket_Matrix>()._has_bits_);
+ static void set_has_is2d(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_isid(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+TexturePacket_Matrix::TexturePacket_Matrix()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
+}
+TexturePacket_Matrix::TexturePacket_Matrix(const TexturePacket_Matrix& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_),
+ m_(from.m_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&is2d_, &from.is2d_,
+ static_cast<size_t>(reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Matrix)
+}
+
+void TexturePacket_Matrix::SharedCtor() {
+ ::memset(&is2d_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+}
+
+TexturePacket_Matrix::~TexturePacket_Matrix() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Matrix)
+ SharedDtor();
+}
+
+void TexturePacket_Matrix::SharedDtor() {
+}
+
+void TexturePacket_Matrix::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const TexturePacket_Matrix& TexturePacket_Matrix::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TexturePacket_Matrix_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void TexturePacket_Matrix::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Matrix)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ m_.Clear();
+ ::memset(&is2d_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* TexturePacket_Matrix::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional bool is2D = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_is2d(&has_bits);
+ is2d_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bool isId = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_isid(&has_bits);
+ isid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated float m = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ _internal_add_m(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
+ ptr += sizeof(float);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<29>(ptr));
+ } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26) {
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_m(), ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* TexturePacket_Matrix::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.TexturePacket.Matrix)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional bool is2D = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_is2d(), target);
+ }
+
+ // optional bool isId = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_isid(), target);
+ }
+
+ // repeated float m = 3;
+ for (int i = 0, n = this->_internal_m_size(); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_m(i), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.TexturePacket.Matrix)
+ return target;
+}
+
+size_t TexturePacket_Matrix::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Matrix)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated float m = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->_internal_m_size());
+ size_t data_size = 4UL * count;
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_m_size());
+ total_size += data_size;
+ }
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ // optional bool is2D = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool isId = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 + 1;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void TexturePacket_Matrix::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TexturePacket_Matrix*>(
+ &from));
+}
+
+void TexturePacket_Matrix::MergeFrom(const TexturePacket_Matrix& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Matrix)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ m_.MergeFrom(from.m_);
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ is2d_ = from.is2d_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ isid_ = from.isid_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void TexturePacket_Matrix::CopyFrom(const TexturePacket_Matrix& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Matrix)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TexturePacket_Matrix::IsInitialized() const {
+ return true;
+}
+
+void TexturePacket_Matrix::InternalSwap(TexturePacket_Matrix* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ m_.InternalSwap(&other->m_);
+ swap(is2d_, other->is2d_);
+ swap(isid_, other->isid_);
+}
+
+std::string TexturePacket_Matrix::GetTypeName() const {
+ return "mozilla.layers.layerscope.TexturePacket.Matrix";
+}
+
+
+// ===================================================================
+
+void TexturePacket_EffectMask::InitAsDefaultInstance() {
+ ::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_._instance.get_mutable()->msize_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Size*>(
+ ::mozilla::layers::layerscope::TexturePacket_Size::internal_default_instance());
+ ::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_._instance.get_mutable()->mmasktransform_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Matrix*>(
+ ::mozilla::layers::layerscope::TexturePacket_Matrix::internal_default_instance());
+}
+class TexturePacket_EffectMask::_Internal {
+ public:
+ using HasBits = decltype(std::declval<TexturePacket_EffectMask>()._has_bits_);
+ static void set_has_mis3d(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static const ::mozilla::layers::layerscope::TexturePacket_Size& msize(const TexturePacket_EffectMask* msg);
+ static void set_has_msize(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::mozilla::layers::layerscope::TexturePacket_Matrix& mmasktransform(const TexturePacket_EffectMask* msg);
+ static void set_has_mmasktransform(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+const ::mozilla::layers::layerscope::TexturePacket_Size&
+TexturePacket_EffectMask::_Internal::msize(const TexturePacket_EffectMask* msg) {
+ return *msg->msize_;
+}
+const ::mozilla::layers::layerscope::TexturePacket_Matrix&
+TexturePacket_EffectMask::_Internal::mmasktransform(const TexturePacket_EffectMask* msg) {
+ return *msg->mmasktransform_;
+}
+TexturePacket_EffectMask::TexturePacket_EffectMask()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
+}
+TexturePacket_EffectMask::TexturePacket_EffectMask(const TexturePacket_EffectMask& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from._internal_has_msize()) {
+ msize_ = new ::mozilla::layers::layerscope::TexturePacket_Size(*from.msize_);
+ } else {
+ msize_ = nullptr;
+ }
+ if (from._internal_has_mmasktransform()) {
+ mmasktransform_ = new ::mozilla::layers::layerscope::TexturePacket_Matrix(*from.mmasktransform_);
+ } else {
+ mmasktransform_ = nullptr;
+ }
+ mis3d_ = from.mis3d_;
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
+}
+
+void TexturePacket_EffectMask::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto.base);
+ ::memset(&msize_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&mis3d_) -
+ reinterpret_cast<char*>(&msize_)) + sizeof(mis3d_));
+}
+
+TexturePacket_EffectMask::~TexturePacket_EffectMask() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ SharedDtor();
+}
+
+void TexturePacket_EffectMask::SharedDtor() {
+ if (this != internal_default_instance()) delete msize_;
+ if (this != internal_default_instance()) delete mmasktransform_;
+}
+
+void TexturePacket_EffectMask::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const TexturePacket_EffectMask& TexturePacket_EffectMask::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TexturePacket_EffectMask_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void TexturePacket_EffectMask::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(msize_ != nullptr);
+ msize_->Clear();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(mmasktransform_ != nullptr);
+ mmasktransform_->Clear();
+ }
+ }
+ mis3d_ = false;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* TexturePacket_EffectMask::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional bool mIs3D = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_mis3d(&has_bits);
+ mis3d_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_msize(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_mmasktransform(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* TexturePacket_EffectMask::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional bool mIs3D = 1;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_mis3d(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::msize(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::mmasktransform(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ return target;
+}
+
+size_t TexturePacket_EffectMask::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *msize_);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *mmasktransform_);
+ }
+
+ // optional bool mIs3D = 1;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 + 1;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void TexturePacket_EffectMask::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TexturePacket_EffectMask*>(
+ &from));
+}
+
+void TexturePacket_EffectMask::MergeFrom(const TexturePacket_EffectMask& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ if (cached_has_bits & 0x00000001u) {
+ _internal_mutable_msize()->::mozilla::layers::layerscope::TexturePacket_Size::MergeFrom(from._internal_msize());
+ }
+ if (cached_has_bits & 0x00000002u) {
+ _internal_mutable_mmasktransform()->::mozilla::layers::layerscope::TexturePacket_Matrix::MergeFrom(from._internal_mmasktransform());
+ }
+ if (cached_has_bits & 0x00000004u) {
+ mis3d_ = from.mis3d_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void TexturePacket_EffectMask::CopyFrom(const TexturePacket_EffectMask& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TexturePacket_EffectMask::IsInitialized() const {
+ return true;
+}
+
+void TexturePacket_EffectMask::InternalSwap(TexturePacket_EffectMask* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(msize_, other->msize_);
+ swap(mmasktransform_, other->mmasktransform_);
+ swap(mis3d_, other->mis3d_);
+}
+
+std::string TexturePacket_EffectMask::GetTypeName() const {
+ return "mozilla.layers.layerscope.TexturePacket.EffectMask";
+}
+
+
+// ===================================================================
+
+void TexturePacket::InitAsDefaultInstance() {
+ ::mozilla::layers::layerscope::_TexturePacket_default_instance_._instance.get_mutable()->mtexturecoords_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Rect*>(
+ ::mozilla::layers::layerscope::TexturePacket_Rect::internal_default_instance());
+ ::mozilla::layers::layerscope::_TexturePacket_default_instance_._instance.get_mutable()->mask_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask::internal_default_instance());
+}
+class TexturePacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<TexturePacket>()._has_bits_);
+ static void set_has_layerref(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static void set_has_width(HasBits* has_bits) {
+ (*has_bits)[0] |= 16u;
+ }
+ static void set_has_height(HasBits* has_bits) {
+ (*has_bits)[0] |= 32u;
+ }
+ static void set_has_stride(HasBits* has_bits) {
+ (*has_bits)[0] |= 64u;
+ }
+ static void set_has_name(HasBits* has_bits) {
+ (*has_bits)[0] |= 128u;
+ }
+ static void set_has_target(HasBits* has_bits) {
+ (*has_bits)[0] |= 256u;
+ }
+ static void set_has_dataformat(HasBits* has_bits) {
+ (*has_bits)[0] |= 512u;
+ }
+ static void set_has_glcontext(HasBits* has_bits) {
+ (*has_bits)[0] |= 1024u;
+ }
+ static void set_has_data(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::mozilla::layers::layerscope::TexturePacket_Rect& mtexturecoords(const TexturePacket* msg);
+ static void set_has_mtexturecoords(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_mpremultiplied(HasBits* has_bits) {
+ (*has_bits)[0] |= 4096u;
+ }
+ static void set_has_mfilter(HasBits* has_bits) {
+ (*has_bits)[0] |= 2048u;
+ }
+ static void set_has_ismask(HasBits* has_bits) {
+ (*has_bits)[0] |= 8192u;
+ }
+ static const ::mozilla::layers::layerscope::TexturePacket_EffectMask& mask(const TexturePacket* msg);
+ static void set_has_mask(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+};
+
+const ::mozilla::layers::layerscope::TexturePacket_Rect&
+TexturePacket::_Internal::mtexturecoords(const TexturePacket* msg) {
+ return *msg->mtexturecoords_;
+}
+const ::mozilla::layers::layerscope::TexturePacket_EffectMask&
+TexturePacket::_Internal::mask(const TexturePacket* msg) {
+ return *msg->mask_;
+}
+TexturePacket::TexturePacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket)
+}
+TexturePacket::TexturePacket(const TexturePacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_data()) {
+ data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_);
+ }
+ if (from._internal_has_mtexturecoords()) {
+ mtexturecoords_ = new ::mozilla::layers::layerscope::TexturePacket_Rect(*from.mtexturecoords_);
+ } else {
+ mtexturecoords_ = nullptr;
+ }
+ if (from._internal_has_mask()) {
+ mask_ = new ::mozilla::layers::layerscope::TexturePacket_EffectMask(*from.mask_);
+ } else {
+ mask_ = nullptr;
+ }
+ ::memcpy(&layerref_, &from.layerref_,
+ static_cast<size_t>(reinterpret_cast<char*>(&ismask_) -
+ reinterpret_cast<char*>(&layerref_)) + sizeof(ismask_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket)
+}
+
+void TexturePacket::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TexturePacket_LayerScopePacket_2eproto.base);
+ data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ ::memset(&mtexturecoords_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&ismask_) -
+ reinterpret_cast<char*>(&mtexturecoords_)) + sizeof(ismask_));
+}
+
+TexturePacket::~TexturePacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket)
+ SharedDtor();
+}
+
+void TexturePacket::SharedDtor() {
+ data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete mtexturecoords_;
+ if (this != internal_default_instance()) delete mask_;
+}
+
+void TexturePacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const TexturePacket& TexturePacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TexturePacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void TexturePacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ if (cached_has_bits & 0x00000001u) {
+ data_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(mtexturecoords_ != nullptr);
+ mtexturecoords_->Clear();
+ }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(mask_ != nullptr);
+ mask_->Clear();
+ }
+ }
+ if (cached_has_bits & 0x000000f8u) {
+ ::memset(&layerref_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&name_) -
+ reinterpret_cast<char*>(&layerref_)) + sizeof(name_));
+ }
+ if (cached_has_bits & 0x00003f00u) {
+ ::memset(&target_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&ismask_) -
+ reinterpret_cast<char*>(&target_)) + sizeof(ismask_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* TexturePacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required uint64 layerref = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_layerref(&has_bits);
+ layerref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 width = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_width(&has_bits);
+ width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 height = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_height(&has_bits);
+ height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 stride = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
+ _Internal::set_has_stride(&has_bits);
+ stride_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 name = 5;
+ case 5:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
+ _Internal::set_has_name(&has_bits);
+ name_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 target = 6;
+ case 6:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
+ _Internal::set_has_target(&has_bits);
+ target_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 dataformat = 7;
+ case 7:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
+ _Internal::set_has_dataformat(&has_bits);
+ dataformat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint64 glcontext = 8;
+ case 8:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
+ _Internal::set_has_glcontext(&has_bits);
+ glcontext_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bytes data = 9;
+ case 9:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
+ auto str = _internal_mutable_data();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
+ case 10:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
+ ptr = ctx->ParseMessage(_internal_mutable_mtexturecoords(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bool mPremultiplied = 11;
+ case 11:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
+ _Internal::set_has_mpremultiplied(&has_bits);
+ mpremultiplied_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
+ case 12:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 96)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(val))) {
+ _internal_set_mfilter(static_cast<::mozilla::layers::layerscope::TexturePacket_Filter>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // optional bool isMask = 20;
+ case 20:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 160)) {
+ _Internal::set_has_ismask(&has_bits);
+ ismask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
+ case 21:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) {
+ ptr = ctx->ParseMessage(_internal_mutable_mask(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* TexturePacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.TexturePacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required uint64 layerref = 1;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_layerref(), target);
+ }
+
+ // optional uint32 width = 2;
+ if (cached_has_bits & 0x00000010u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_width(), target);
+ }
+
+ // optional uint32 height = 3;
+ if (cached_has_bits & 0x00000020u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_height(), target);
+ }
+
+ // optional uint32 stride = 4;
+ if (cached_has_bits & 0x00000040u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_stride(), target);
+ }
+
+ // optional uint32 name = 5;
+ if (cached_has_bits & 0x00000080u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(5, this->_internal_name(), target);
+ }
+
+ // optional uint32 target = 6;
+ if (cached_has_bits & 0x00000100u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(6, this->_internal_target(), target);
+ }
+
+ // optional uint32 dataformat = 7;
+ if (cached_has_bits & 0x00000200u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_dataformat(), target);
+ }
+
+ // optional uint64 glcontext = 8;
+ if (cached_has_bits & 0x00000400u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(8, this->_internal_glcontext(), target);
+ }
+
+ // optional bytes data = 9;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->WriteBytesMaybeAliased(
+ 9, this->_internal_data(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 10, _Internal::mtexturecoords(this), target, stream);
+ }
+
+ // optional bool mPremultiplied = 11;
+ if (cached_has_bits & 0x00001000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_mpremultiplied(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
+ if (cached_has_bits & 0x00000800u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 12, this->_internal_mfilter(), target);
+ }
+
+ // optional bool isMask = 20;
+ if (cached_has_bits & 0x00002000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(20, this->_internal_ismask(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 21, _Internal::mask(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.TexturePacket)
+ return target;
+}
+
+size_t TexturePacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket)
+ size_t total_size = 0;
+
+ // required uint64 layerref = 1;
+ if (_internal_has_layerref()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_layerref());
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ // optional bytes data = 9;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
+ this->_internal_data());
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *mtexturecoords_);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *mask_);
+ }
+
+ }
+ if (cached_has_bits & 0x000000f0u) {
+ // optional uint32 width = 2;
+ if (cached_has_bits & 0x00000010u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_width());
+ }
+
+ // optional uint32 height = 3;
+ if (cached_has_bits & 0x00000020u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_height());
+ }
+
+ // optional uint32 stride = 4;
+ if (cached_has_bits & 0x00000040u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_stride());
+ }
+
+ // optional uint32 name = 5;
+ if (cached_has_bits & 0x00000080u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_name());
+ }
+
+ }
+ if (cached_has_bits & 0x00003f00u) {
+ // optional uint32 target = 6;
+ if (cached_has_bits & 0x00000100u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_target());
+ }
+
+ // optional uint32 dataformat = 7;
+ if (cached_has_bits & 0x00000200u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_dataformat());
+ }
+
+ // optional uint64 glcontext = 8;
+ if (cached_has_bits & 0x00000400u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_glcontext());
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
+ if (cached_has_bits & 0x00000800u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_mfilter());
+ }
+
+ // optional bool mPremultiplied = 11;
+ if (cached_has_bits & 0x00001000u) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool isMask = 20;
+ if (cached_has_bits & 0x00002000u) {
+ total_size += 2 + 1;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void TexturePacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const TexturePacket*>(
+ &from));
+}
+
+void TexturePacket::MergeFrom(const TexturePacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x000000ffu) {
+ if (cached_has_bits & 0x00000001u) {
+ _has_bits_[0] |= 0x00000001u;
+ data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_);
+ }
+ if (cached_has_bits & 0x00000002u) {
+ _internal_mutable_mtexturecoords()->::mozilla::layers::layerscope::TexturePacket_Rect::MergeFrom(from._internal_mtexturecoords());
+ }
+ if (cached_has_bits & 0x00000004u) {
+ _internal_mutable_mask()->::mozilla::layers::layerscope::TexturePacket_EffectMask::MergeFrom(from._internal_mask());
+ }
+ if (cached_has_bits & 0x00000008u) {
+ layerref_ = from.layerref_;
+ }
+ if (cached_has_bits & 0x00000010u) {
+ width_ = from.width_;
+ }
+ if (cached_has_bits & 0x00000020u) {
+ height_ = from.height_;
+ }
+ if (cached_has_bits & 0x00000040u) {
+ stride_ = from.stride_;
+ }
+ if (cached_has_bits & 0x00000080u) {
+ name_ = from.name_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+ if (cached_has_bits & 0x00003f00u) {
+ if (cached_has_bits & 0x00000100u) {
+ target_ = from.target_;
+ }
+ if (cached_has_bits & 0x00000200u) {
+ dataformat_ = from.dataformat_;
+ }
+ if (cached_has_bits & 0x00000400u) {
+ glcontext_ = from.glcontext_;
+ }
+ if (cached_has_bits & 0x00000800u) {
+ mfilter_ = from.mfilter_;
+ }
+ if (cached_has_bits & 0x00001000u) {
+ mpremultiplied_ = from.mpremultiplied_;
+ }
+ if (cached_has_bits & 0x00002000u) {
+ ismask_ = from.ismask_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void TexturePacket::CopyFrom(const TexturePacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool TexturePacket::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
+ return true;
+}
+
+void TexturePacket::InternalSwap(TexturePacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ data_.Swap(&other->data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(mtexturecoords_, other->mtexturecoords_);
+ swap(mask_, other->mask_);
+ swap(layerref_, other->layerref_);
+ swap(width_, other->width_);
+ swap(height_, other->height_);
+ swap(stride_, other->stride_);
+ swap(name_, other->name_);
+ swap(target_, other->target_);
+ swap(dataformat_, other->dataformat_);
+ swap(glcontext_, other->glcontext_);
+ swap(mfilter_, other->mfilter_);
+ swap(mpremultiplied_, other->mpremultiplied_);
+ swap(ismask_, other->ismask_);
+}
+
+std::string TexturePacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.TexturePacket";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer_Size::InitAsDefaultInstance() {
+}
+class LayersPacket_Layer_Size::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer_Size>()._has_bits_);
+ static void set_has_w(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_h(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+LayersPacket_Layer_Size::LayersPacket_Layer_Size()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+}
+LayersPacket_Layer_Size::LayersPacket_Layer_Size(const LayersPacket_Layer_Size& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&w_, &from.w_,
+ static_cast<size_t>(reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+}
+
+void LayersPacket_Layer_Size::SharedCtor() {
+ ::memset(&w_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+}
+
+LayersPacket_Layer_Size::~LayersPacket_Layer_Size() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ SharedDtor();
+}
+
+void LayersPacket_Layer_Size::SharedDtor() {
+}
+
+void LayersPacket_Layer_Size::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer_Size& LayersPacket_Layer_Size::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_Size_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer_Size::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ ::memset(&w_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&w_)) + sizeof(h_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer_Size::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional int32 w = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_w(&has_bits);
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional int32 h = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_h(&has_bits);
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer_Size::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional int32 w = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_w(), target);
+ }
+
+ // optional int32 h = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_h(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ return target;
+}
+
+size_t LayersPacket_Layer_Size::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ // optional int32 w = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_w());
+ }
+
+ // optional int32 h = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_h());
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer_Size::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer_Size*>(
+ &from));
+}
+
+void LayersPacket_Layer_Size::MergeFrom(const LayersPacket_Layer_Size& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ w_ = from.w_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ h_ = from.h_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void LayersPacket_Layer_Size::CopyFrom(const LayersPacket_Layer_Size& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer_Size::IsInitialized() const {
+ return true;
+}
+
+void LayersPacket_Layer_Size::InternalSwap(LayersPacket_Layer_Size* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(w_, other->w_);
+ swap(h_, other->h_);
+}
+
+std::string LayersPacket_Layer_Size::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Size";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer_Rect::InitAsDefaultInstance() {
+}
+class LayersPacket_Layer_Rect::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer_Rect>()._has_bits_);
+ static void set_has_x(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_y(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_w(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_h(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+};
+
+LayersPacket_Layer_Rect::LayersPacket_Layer_Rect()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+}
+LayersPacket_Layer_Rect::LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&x_, &from.x_,
+ static_cast<size_t>(reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+}
+
+void LayersPacket_Layer_Rect::SharedCtor() {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+}
+
+LayersPacket_Layer_Rect::~LayersPacket_Layer_Rect() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ SharedDtor();
+}
+
+void LayersPacket_Layer_Rect::SharedDtor() {
+}
+
+void LayersPacket_Layer_Rect::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer_Rect& LayersPacket_Layer_Rect::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_Rect_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer_Rect::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer_Rect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional int32 x = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_x(&has_bits);
+ x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional int32 y = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_y(&has_bits);
+ y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional int32 w = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_w(&has_bits);
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional int32 h = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
+ _Internal::set_has_h(&has_bits);
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer_Rect::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional int32 x = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target);
+ }
+
+ // optional int32 y = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target);
+ }
+
+ // optional int32 w = 3;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_w(), target);
+ }
+
+ // optional int32 h = 4;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_h(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ return target;
+}
+
+size_t LayersPacket_Layer_Rect::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ // optional int32 x = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_x());
+ }
+
+ // optional int32 y = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_y());
+ }
+
+ // optional int32 w = 3;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_w());
+ }
+
+ // optional int32 h = 4;
+ if (cached_has_bits & 0x00000008u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
+ this->_internal_h());
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer_Rect::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer_Rect*>(
+ &from));
+}
+
+void LayersPacket_Layer_Rect::MergeFrom(const LayersPacket_Layer_Rect& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ if (cached_has_bits & 0x00000001u) {
+ x_ = from.x_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ y_ = from.y_;
+ }
+ if (cached_has_bits & 0x00000004u) {
+ w_ = from.w_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ h_ = from.h_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void LayersPacket_Layer_Rect::CopyFrom(const LayersPacket_Layer_Rect& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer_Rect::IsInitialized() const {
+ return true;
+}
+
+void LayersPacket_Layer_Rect::InternalSwap(LayersPacket_Layer_Rect* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(x_, other->x_);
+ swap(y_, other->y_);
+ swap(w_, other->w_);
+ swap(h_, other->h_);
+}
+
+std::string LayersPacket_Layer_Rect::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Rect";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer_Region::InitAsDefaultInstance() {
+}
+class LayersPacket_Layer_Region::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer_Region>()._has_bits_);
+};
+
+LayersPacket_Layer_Region::LayersPacket_Layer_Region()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+}
+LayersPacket_Layer_Region::LayersPacket_Layer_Region(const LayersPacket_Layer_Region& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_),
+ r_(from.r_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+}
+
+void LayersPacket_Layer_Region::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto.base);
+}
+
+LayersPacket_Layer_Region::~LayersPacket_Layer_Region() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ SharedDtor();
+}
+
+void LayersPacket_Layer_Region::SharedDtor() {
+}
+
+void LayersPacket_Layer_Region::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer_Region& LayersPacket_Layer_Region::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_Region_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer_Region::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ r_.Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer_Region::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_r(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer_Region::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_r_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_r(i), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ return target;
+}
+
+size_t LayersPacket_Layer_Region::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
+ total_size += 1UL * this->_internal_r_size();
+ for (const auto& msg : this->r_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer_Region::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer_Region*>(
+ &from));
+}
+
+void LayersPacket_Layer_Region::MergeFrom(const LayersPacket_Layer_Region& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ r_.MergeFrom(from.r_);
+}
+
+void LayersPacket_Layer_Region::CopyFrom(const LayersPacket_Layer_Region& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer_Region::IsInitialized() const {
+ return true;
+}
+
+void LayersPacket_Layer_Region::InternalSwap(LayersPacket_Layer_Region* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ r_.InternalSwap(&other->r_);
+}
+
+std::string LayersPacket_Layer_Region::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Region";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer_Matrix::InitAsDefaultInstance() {
+}
+class LayersPacket_Layer_Matrix::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer_Matrix>()._has_bits_);
+ static void set_has_is2d(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_isid(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+}
+LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_),
+ m_(from.m_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&is2d_, &from.is2d_,
+ static_cast<size_t>(reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+}
+
+void LayersPacket_Layer_Matrix::SharedCtor() {
+ ::memset(&is2d_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+}
+
+LayersPacket_Layer_Matrix::~LayersPacket_Layer_Matrix() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ SharedDtor();
+}
+
+void LayersPacket_Layer_Matrix::SharedDtor() {
+}
+
+void LayersPacket_Layer_Matrix::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer_Matrix& LayersPacket_Layer_Matrix::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_Matrix_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer_Matrix::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ m_.Clear();
+ ::memset(&is2d_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&isid_) -
+ reinterpret_cast<char*>(&is2d_)) + sizeof(isid_));
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer_Matrix::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional bool is2D = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_is2d(&has_bits);
+ is2d_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bool isId = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_isid(&has_bits);
+ isid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated float m = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ _internal_add_m(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
+ ptr += sizeof(float);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<29>(ptr));
+ } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26) {
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_m(), ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer_Matrix::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional bool is2D = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_is2d(), target);
+ }
+
+ // optional bool isId = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_isid(), target);
+ }
+
+ // repeated float m = 3;
+ for (int i = 0, n = this->_internal_m_size(); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_m(i), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ return target;
+}
+
+size_t LayersPacket_Layer_Matrix::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated float m = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->_internal_m_size());
+ size_t data_size = 4UL * count;
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_m_size());
+ total_size += data_size;
+ }
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ // optional bool is2D = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool isId = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 + 1;
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer_Matrix::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer_Matrix*>(
+ &from));
+}
+
+void LayersPacket_Layer_Matrix::MergeFrom(const LayersPacket_Layer_Matrix& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ m_.MergeFrom(from.m_);
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ is2d_ = from.is2d_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ isid_ = from.isid_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void LayersPacket_Layer_Matrix::CopyFrom(const LayersPacket_Layer_Matrix& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer_Matrix::IsInitialized() const {
+ return true;
+}
+
+void LayersPacket_Layer_Matrix::InternalSwap(LayersPacket_Layer_Matrix* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ m_.InternalSwap(&other->m_);
+ swap(is2d_, other->is2d_);
+ swap(isid_, other->isid_);
+}
+
+std::string LayersPacket_Layer_Matrix::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Matrix";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer_Shadow::InitAsDefaultInstance() {
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+}
+class LayersPacket_Layer_Shadow::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer_Shadow>()._has_bits_);
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& clip(const LayersPacket_Layer_Shadow* msg);
+ static void set_has_clip(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& transform(const LayersPacket_Layer_Shadow* msg);
+ static void set_has_transform(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vregion(const LayersPacket_Layer_Shadow* msg);
+ static void set_has_vregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+};
+
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect&
+LayersPacket_Layer_Shadow::_Internal::clip(const LayersPacket_Layer_Shadow* msg) {
+ return *msg->clip_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix&
+LayersPacket_Layer_Shadow::_Internal::transform(const LayersPacket_Layer_Shadow* msg) {
+ return *msg->transform_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer_Shadow::_Internal::vregion(const LayersPacket_Layer_Shadow* msg) {
+ return *msg->vregion_;
+}
+LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+}
+LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from._internal_has_clip()) {
+ clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_);
+ } else {
+ clip_ = nullptr;
+ }
+ if (from._internal_has_transform()) {
+ transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_);
+ } else {
+ transform_ = nullptr;
+ }
+ if (from._internal_has_vregion()) {
+ vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_);
+ } else {
+ vregion_ = nullptr;
+ }
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+}
+
+void LayersPacket_Layer_Shadow::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto.base);
+ ::memset(&clip_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&vregion_) -
+ reinterpret_cast<char*>(&clip_)) + sizeof(vregion_));
+}
+
+LayersPacket_Layer_Shadow::~LayersPacket_Layer_Shadow() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ SharedDtor();
+}
+
+void LayersPacket_Layer_Shadow::SharedDtor() {
+ if (this != internal_default_instance()) delete clip_;
+ if (this != internal_default_instance()) delete transform_;
+ if (this != internal_default_instance()) delete vregion_;
+}
+
+void LayersPacket_Layer_Shadow::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer_Shadow& LayersPacket_Layer_Shadow::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_Shadow_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer_Shadow::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(clip_ != nullptr);
+ clip_->Clear();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(transform_ != nullptr);
+ transform_->Clear();
+ }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(vregion_ != nullptr);
+ vregion_->Clear();
+ }
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer_Shadow::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr = ctx->ParseMessage(_internal_mutable_clip(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_transform(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer_Shadow::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 1, _Internal::clip(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::transform(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::vregion(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ return target;
+}
+
+size_t LayersPacket_Layer_Shadow::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *clip_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *transform_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *vregion_);
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer_Shadow::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer_Shadow*>(
+ &from));
+}
+
+void LayersPacket_Layer_Shadow::MergeFrom(const LayersPacket_Layer_Shadow& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000007u) {
+ if (cached_has_bits & 0x00000001u) {
+ _internal_mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from._internal_clip());
+ }
+ if (cached_has_bits & 0x00000002u) {
+ _internal_mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from._internal_transform());
+ }
+ if (cached_has_bits & 0x00000004u) {
+ _internal_mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_vregion());
+ }
+ }
+}
+
+void LayersPacket_Layer_Shadow::CopyFrom(const LayersPacket_Layer_Shadow& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer_Shadow::IsInitialized() const {
+ return true;
+}
+
+void LayersPacket_Layer_Shadow::InternalSwap(LayersPacket_Layer_Shadow* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(clip_, other->clip_);
+ swap(transform_, other->transform_);
+ swap(vregion_, other->vregion_);
+}
+
+std::string LayersPacket_Layer_Shadow::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Shadow";
+}
+
+
+// ===================================================================
+
+void LayersPacket_Layer::InitAsDefaultInstance() {
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->shadow_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->hitregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->dispatchregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->noactionregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->hpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->vpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->valid_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance());
+ ::mozilla::layers::layerscope::_LayersPacket_Layer_default_instance_._instance.get_mutable()->size_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size::internal_default_instance());
+}
+class LayersPacket_Layer::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket_Layer>()._has_bits_);
+ static void set_has_type(HasBits* has_bits) {
+ (*has_bits)[0] |= 16384u;
+ }
+ static void set_has_ptr(HasBits* has_bits) {
+ (*has_bits)[0] |= 4096u;
+ }
+ static void set_has_parentptr(HasBits* has_bits) {
+ (*has_bits)[0] |= 8192u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& clip(const LayersPacket_Layer* msg);
+ static void set_has_clip(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& transform(const LayersPacket_Layer* msg);
+ static void set_has_transform(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vregion(const LayersPacket_Layer* msg);
+ static void set_has_vregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& shadow(const LayersPacket_Layer* msg);
+ static void set_has_shadow(HasBits* has_bits) {
+ (*has_bits)[0] |= 16u;
+ }
+ static void set_has_opacity(HasBits* has_bits) {
+ (*has_bits)[0] |= 32768u;
+ }
+ static void set_has_copaque(HasBits* has_bits) {
+ (*has_bits)[0] |= 262144u;
+ }
+ static void set_has_calpha(HasBits* has_bits) {
+ (*has_bits)[0] |= 524288u;
+ }
+ static void set_has_direct(HasBits* has_bits) {
+ (*has_bits)[0] |= 16777216u;
+ }
+ static void set_has_barid(HasBits* has_bits) {
+ (*has_bits)[0] |= 65536u;
+ }
+ static void set_has_mask(HasBits* has_bits) {
+ (*has_bits)[0] |= 131072u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& hitregion(const LayersPacket_Layer* msg);
+ static void set_has_hitregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 32u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& dispatchregion(const LayersPacket_Layer* msg);
+ static void set_has_dispatchregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 64u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& noactionregion(const LayersPacket_Layer* msg);
+ static void set_has_noactionregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 128u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& hpanregion(const LayersPacket_Layer* msg);
+ static void set_has_hpanregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 256u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vpanregion(const LayersPacket_Layer* msg);
+ static void set_has_vpanregion(HasBits* has_bits) {
+ (*has_bits)[0] |= 512u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& valid(const LayersPacket_Layer* msg);
+ static void set_has_valid(HasBits* has_bits) {
+ (*has_bits)[0] |= 1024u;
+ }
+ static void set_has_color(HasBits* has_bits) {
+ (*has_bits)[0] |= 1048576u;
+ }
+ static void set_has_filter(HasBits* has_bits) {
+ (*has_bits)[0] |= 4194304u;
+ }
+ static void set_has_refid(HasBits* has_bits) {
+ (*has_bits)[0] |= 2097152u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& size(const LayersPacket_Layer* msg);
+ static void set_has_size(HasBits* has_bits) {
+ (*has_bits)[0] |= 2048u;
+ }
+ static void set_has_displaylistloglength(HasBits* has_bits) {
+ (*has_bits)[0] |= 8388608u;
+ }
+ static void set_has_displaylistlog(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+};
+
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect&
+LayersPacket_Layer::_Internal::clip(const LayersPacket_Layer* msg) {
+ return *msg->clip_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix&
+LayersPacket_Layer::_Internal::transform(const LayersPacket_Layer* msg) {
+ return *msg->transform_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::vregion(const LayersPacket_Layer* msg) {
+ return *msg->vregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow&
+LayersPacket_Layer::_Internal::shadow(const LayersPacket_Layer* msg) {
+ return *msg->shadow_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::hitregion(const LayersPacket_Layer* msg) {
+ return *msg->hitregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::dispatchregion(const LayersPacket_Layer* msg) {
+ return *msg->dispatchregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::noactionregion(const LayersPacket_Layer* msg) {
+ return *msg->noactionregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::hpanregion(const LayersPacket_Layer* msg) {
+ return *msg->hpanregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::vpanregion(const LayersPacket_Layer* msg) {
+ return *msg->vpanregion_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Region&
+LayersPacket_Layer::_Internal::valid(const LayersPacket_Layer* msg) {
+ return *msg->valid_;
+}
+const ::mozilla::layers::layerscope::LayersPacket_Layer_Size&
+LayersPacket_Layer::_Internal::size(const LayersPacket_Layer* msg) {
+ return *msg->size_;
+}
+LayersPacket_Layer::LayersPacket_Layer()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer)
+}
+LayersPacket_Layer::LayersPacket_Layer(const LayersPacket_Layer& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ displaylistlog_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (from._internal_has_displaylistlog()) {
+ displaylistlog_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_);
+ }
+ if (from._internal_has_clip()) {
+ clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_);
+ } else {
+ clip_ = nullptr;
+ }
+ if (from._internal_has_transform()) {
+ transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_);
+ } else {
+ transform_ = nullptr;
+ }
+ if (from._internal_has_vregion()) {
+ vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_);
+ } else {
+ vregion_ = nullptr;
+ }
+ if (from._internal_has_shadow()) {
+ shadow_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow(*from.shadow_);
+ } else {
+ shadow_ = nullptr;
+ }
+ if (from._internal_has_hitregion()) {
+ hitregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hitregion_);
+ } else {
+ hitregion_ = nullptr;
+ }
+ if (from._internal_has_dispatchregion()) {
+ dispatchregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.dispatchregion_);
+ } else {
+ dispatchregion_ = nullptr;
+ }
+ if (from._internal_has_noactionregion()) {
+ noactionregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.noactionregion_);
+ } else {
+ noactionregion_ = nullptr;
+ }
+ if (from._internal_has_hpanregion()) {
+ hpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hpanregion_);
+ } else {
+ hpanregion_ = nullptr;
+ }
+ if (from._internal_has_vpanregion()) {
+ vpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vpanregion_);
+ } else {
+ vpanregion_ = nullptr;
+ }
+ if (from._internal_has_valid()) {
+ valid_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.valid_);
+ } else {
+ valid_ = nullptr;
+ }
+ if (from._internal_has_size()) {
+ size_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Size(*from.size_);
+ } else {
+ size_ = nullptr;
+ }
+ ::memcpy(&ptr_, &from.ptr_,
+ static_cast<size_t>(reinterpret_cast<char*>(&direct_) -
+ reinterpret_cast<char*>(&ptr_)) + sizeof(direct_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer)
+}
+
+void LayersPacket_Layer::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayersPacket_Layer_LayerScopePacket_2eproto.base);
+ displaylistlog_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ ::memset(&clip_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&displaylistloglength_) -
+ reinterpret_cast<char*>(&clip_)) + sizeof(displaylistloglength_));
+ direct_ = 1;
+}
+
+LayersPacket_Layer::~LayersPacket_Layer() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer)
+ SharedDtor();
+}
+
+void LayersPacket_Layer::SharedDtor() {
+ displaylistlog_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ if (this != internal_default_instance()) delete clip_;
+ if (this != internal_default_instance()) delete transform_;
+ if (this != internal_default_instance()) delete vregion_;
+ if (this != internal_default_instance()) delete shadow_;
+ if (this != internal_default_instance()) delete hitregion_;
+ if (this != internal_default_instance()) delete dispatchregion_;
+ if (this != internal_default_instance()) delete noactionregion_;
+ if (this != internal_default_instance()) delete hpanregion_;
+ if (this != internal_default_instance()) delete vpanregion_;
+ if (this != internal_default_instance()) delete valid_;
+ if (this != internal_default_instance()) delete size_;
+}
+
+void LayersPacket_Layer::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket_Layer& LayersPacket_Layer::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_Layer_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket_Layer::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x000000ffu) {
+ if (cached_has_bits & 0x00000001u) {
+ displaylistlog_.ClearNonDefaultToEmptyNoArena();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(clip_ != nullptr);
+ clip_->Clear();
+ }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(transform_ != nullptr);
+ transform_->Clear();
+ }
+ if (cached_has_bits & 0x00000008u) {
+ GOOGLE_DCHECK(vregion_ != nullptr);
+ vregion_->Clear();
+ }
+ if (cached_has_bits & 0x00000010u) {
+ GOOGLE_DCHECK(shadow_ != nullptr);
+ shadow_->Clear();
+ }
+ if (cached_has_bits & 0x00000020u) {
+ GOOGLE_DCHECK(hitregion_ != nullptr);
+ hitregion_->Clear();
+ }
+ if (cached_has_bits & 0x00000040u) {
+ GOOGLE_DCHECK(dispatchregion_ != nullptr);
+ dispatchregion_->Clear();
+ }
+ if (cached_has_bits & 0x00000080u) {
+ GOOGLE_DCHECK(noactionregion_ != nullptr);
+ noactionregion_->Clear();
+ }
+ }
+ if (cached_has_bits & 0x00000f00u) {
+ if (cached_has_bits & 0x00000100u) {
+ GOOGLE_DCHECK(hpanregion_ != nullptr);
+ hpanregion_->Clear();
+ }
+ if (cached_has_bits & 0x00000200u) {
+ GOOGLE_DCHECK(vpanregion_ != nullptr);
+ vpanregion_->Clear();
+ }
+ if (cached_has_bits & 0x00000400u) {
+ GOOGLE_DCHECK(valid_ != nullptr);
+ valid_->Clear();
+ }
+ if (cached_has_bits & 0x00000800u) {
+ GOOGLE_DCHECK(size_ != nullptr);
+ size_->Clear();
+ }
+ }
+ if (cached_has_bits & 0x0000f000u) {
+ ::memset(&ptr_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&opacity_) -
+ reinterpret_cast<char*>(&ptr_)) + sizeof(opacity_));
+ }
+ if (cached_has_bits & 0x00ff0000u) {
+ ::memset(&barid_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&displaylistloglength_) -
+ reinterpret_cast<char*>(&barid_)) + sizeof(displaylistloglength_));
+ }
+ direct_ = 1;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket_Layer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(val))) {
+ _internal_set_type(static_cast<::mozilla::layers::layerscope::LayersPacket_Layer_LayerType>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // required uint64 ptr = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_ptr(&has_bits);
+ ptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // required uint64 parentPtr = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
+ _Internal::set_has_parentptr(&has_bits);
+ parentptr_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
+ case 10:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
+ ptr = ctx->ParseMessage(_internal_mutable_clip(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
+ case 11:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
+ ptr = ctx->ParseMessage(_internal_mutable_transform(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
+ case 12:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
+ case 13:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) {
+ ptr = ctx->ParseMessage(_internal_mutable_shadow(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional float opacity = 14;
+ case 14:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 117)) {
+ _Internal::set_has_opacity(&has_bits);
+ opacity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // optional bool cOpaque = 15;
+ case 15:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 120)) {
+ _Internal::set_has_copaque(&has_bits);
+ copaque_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bool cAlpha = 16;
+ case 16:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 128)) {
+ _Internal::set_has_calpha(&has_bits);
+ calpha_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
+ case 17:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 136)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(val))) {
+ _internal_set_direct(static_cast<::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(17, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // optional uint64 barID = 18;
+ case 18:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) {
+ _Internal::set_has_barid(&has_bits);
+ barid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint64 mask = 19;
+ case 19:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) {
+ _Internal::set_has_mask(&has_bits);
+ mask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
+ case 20:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 162)) {
+ ptr = ctx->ParseMessage(_internal_mutable_hitregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
+ case 21:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) {
+ ptr = ctx->ParseMessage(_internal_mutable_dispatchregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
+ case 22:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) {
+ ptr = ctx->ParseMessage(_internal_mutable_noactionregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
+ case 23:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 186)) {
+ ptr = ctx->ParseMessage(_internal_mutable_hpanregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
+ case 24:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) {
+ ptr = ctx->ParseMessage(_internal_mutable_vpanregion(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
+ case 100:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ ptr = ctx->ParseMessage(_internal_mutable_valid(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 color = 101;
+ case 101:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
+ _Internal::set_has_color(&has_bits);
+ color_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
+ case 102:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(val))) {
+ _internal_set_filter(static_cast<::mozilla::layers::layerscope::LayersPacket_Layer_Filter>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(102, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // optional uint64 refID = 103;
+ case 103:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
+ _Internal::set_has_refid(&has_bits);
+ refid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
+ case 104:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
+ ptr = ctx->ParseMessage(_internal_mutable_size(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional uint32 displayListLogLength = 105;
+ case 105:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) {
+ _Internal::set_has_displaylistloglength(&has_bits);
+ displaylistloglength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional bytes displayListLog = 106;
+ case 106:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
+ auto str = _internal_mutable_displaylistlog();
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket_Layer::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+ if (cached_has_bits & 0x00004000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_type(), target);
+ }
+
+ // required uint64 ptr = 2;
+ if (cached_has_bits & 0x00001000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->_internal_ptr(), target);
+ }
+
+ // required uint64 parentPtr = 3;
+ if (cached_has_bits & 0x00002000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->_internal_parentptr(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 10, _Internal::clip(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 11, _Internal::transform(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 12, _Internal::vregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
+ if (cached_has_bits & 0x00000010u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 13, _Internal::shadow(this), target, stream);
+ }
+
+ // optional float opacity = 14;
+ if (cached_has_bits & 0x00008000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(14, this->_internal_opacity(), target);
+ }
+
+ // optional bool cOpaque = 15;
+ if (cached_has_bits & 0x00040000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_copaque(), target);
+ }
+
+ // optional bool cAlpha = 16;
+ if (cached_has_bits & 0x00080000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_calpha(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
+ if (cached_has_bits & 0x01000000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 17, this->_internal_direct(), target);
+ }
+
+ // optional uint64 barID = 18;
+ if (cached_has_bits & 0x00010000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(18, this->_internal_barid(), target);
+ }
+
+ // optional uint64 mask = 19;
+ if (cached_has_bits & 0x00020000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(19, this->_internal_mask(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
+ if (cached_has_bits & 0x00000020u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 20, _Internal::hitregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
+ if (cached_has_bits & 0x00000040u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 21, _Internal::dispatchregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
+ if (cached_has_bits & 0x00000080u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 22, _Internal::noactionregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
+ if (cached_has_bits & 0x00000100u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 23, _Internal::hpanregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
+ if (cached_has_bits & 0x00000200u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 24, _Internal::vpanregion(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
+ if (cached_has_bits & 0x00000400u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 100, _Internal::valid(this), target, stream);
+ }
+
+ // optional uint32 color = 101;
+ if (cached_has_bits & 0x00100000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(101, this->_internal_color(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
+ if (cached_has_bits & 0x00400000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 102, this->_internal_filter(), target);
+ }
+
+ // optional uint64 refID = 103;
+ if (cached_has_bits & 0x00200000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(103, this->_internal_refid(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
+ if (cached_has_bits & 0x00000800u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 104, _Internal::size(this), target, stream);
+ }
+
+ // optional uint32 displayListLogLength = 105;
+ if (cached_has_bits & 0x00800000u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(105, this->_internal_displaylistloglength(), target);
+ }
+
+ // optional bytes displayListLog = 106;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->WriteBytesMaybeAliased(
+ 106, this->_internal_displaylistlog(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket.Layer)
+ return target;
+}
+
+size_t LayersPacket_Layer::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ size_t total_size = 0;
+
+ if (_internal_has_ptr()) {
+ // required uint64 ptr = 2;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_ptr());
+ }
+
+ if (_internal_has_parentptr()) {
+ // required uint64 parentPtr = 3;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_parentptr());
+ }
+
+ if (_internal_has_type()) {
+ // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
+ }
+
+ return total_size;
+}
+size_t LayersPacket_Layer::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ size_t total_size = 0;
+
+ if (((_has_bits_[0] & 0x00007000) ^ 0x00007000) == 0) { // All required fields are present.
+ // required uint64 ptr = 2;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_ptr());
+
+ // required uint64 parentPtr = 3;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_parentptr());
+
+ // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
+
+ } else {
+ total_size += RequiredFieldsByteSizeFallback();
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x000000ffu) {
+ // optional bytes displayListLog = 106;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
+ this->_internal_displaylistlog());
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *clip_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *transform_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
+ if (cached_has_bits & 0x00000008u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *vregion_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
+ if (cached_has_bits & 0x00000010u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *shadow_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
+ if (cached_has_bits & 0x00000020u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *hitregion_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
+ if (cached_has_bits & 0x00000040u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *dispatchregion_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
+ if (cached_has_bits & 0x00000080u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *noactionregion_);
+ }
+
+ }
+ if (cached_has_bits & 0x00000f00u) {
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
+ if (cached_has_bits & 0x00000100u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *hpanregion_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
+ if (cached_has_bits & 0x00000200u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *vpanregion_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
+ if (cached_has_bits & 0x00000400u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *valid_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
+ if (cached_has_bits & 0x00000800u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *size_);
+ }
+
+ }
+ // optional float opacity = 14;
+ if (cached_has_bits & 0x00008000u) {
+ total_size += 1 + 4;
+ }
+
+ if (cached_has_bits & 0x00ff0000u) {
+ // optional uint64 barID = 18;
+ if (cached_has_bits & 0x00010000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_barid());
+ }
+
+ // optional uint64 mask = 19;
+ if (cached_has_bits & 0x00020000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_mask());
+ }
+
+ // optional bool cOpaque = 15;
+ if (cached_has_bits & 0x00040000u) {
+ total_size += 1 + 1;
+ }
+
+ // optional bool cAlpha = 16;
+ if (cached_has_bits & 0x00080000u) {
+ total_size += 2 + 1;
+ }
+
+ // optional uint32 color = 101;
+ if (cached_has_bits & 0x00100000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_color());
+ }
+
+ // optional uint64 refID = 103;
+ if (cached_has_bits & 0x00200000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_refid());
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
+ if (cached_has_bits & 0x00400000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_filter());
+ }
+
+ // optional uint32 displayListLogLength = 105;
+ if (cached_has_bits & 0x00800000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_displaylistloglength());
+ }
+
+ }
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
+ if (cached_has_bits & 0x01000000u) {
+ total_size += 2 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_direct());
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket_Layer::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket_Layer*>(
+ &from));
+}
+
+void LayersPacket_Layer::MergeFrom(const LayersPacket_Layer& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x000000ffu) {
+ if (cached_has_bits & 0x00000001u) {
+ _has_bits_[0] |= 0x00000001u;
+ displaylistlog_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_);
+ }
+ if (cached_has_bits & 0x00000002u) {
+ _internal_mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from._internal_clip());
+ }
+ if (cached_has_bits & 0x00000004u) {
+ _internal_mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from._internal_transform());
+ }
+ if (cached_has_bits & 0x00000008u) {
+ _internal_mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_vregion());
+ }
+ if (cached_has_bits & 0x00000010u) {
+ _internal_mutable_shadow()->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::MergeFrom(from._internal_shadow());
+ }
+ if (cached_has_bits & 0x00000020u) {
+ _internal_mutable_hitregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_hitregion());
+ }
+ if (cached_has_bits & 0x00000040u) {
+ _internal_mutable_dispatchregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_dispatchregion());
+ }
+ if (cached_has_bits & 0x00000080u) {
+ _internal_mutable_noactionregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_noactionregion());
+ }
+ }
+ if (cached_has_bits & 0x0000ff00u) {
+ if (cached_has_bits & 0x00000100u) {
+ _internal_mutable_hpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_hpanregion());
+ }
+ if (cached_has_bits & 0x00000200u) {
+ _internal_mutable_vpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_vpanregion());
+ }
+ if (cached_has_bits & 0x00000400u) {
+ _internal_mutable_valid()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from._internal_valid());
+ }
+ if (cached_has_bits & 0x00000800u) {
+ _internal_mutable_size()->::mozilla::layers::layerscope::LayersPacket_Layer_Size::MergeFrom(from._internal_size());
+ }
+ if (cached_has_bits & 0x00001000u) {
+ ptr_ = from.ptr_;
+ }
+ if (cached_has_bits & 0x00002000u) {
+ parentptr_ = from.parentptr_;
+ }
+ if (cached_has_bits & 0x00004000u) {
+ type_ = from.type_;
+ }
+ if (cached_has_bits & 0x00008000u) {
+ opacity_ = from.opacity_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+ if (cached_has_bits & 0x00ff0000u) {
+ if (cached_has_bits & 0x00010000u) {
+ barid_ = from.barid_;
+ }
+ if (cached_has_bits & 0x00020000u) {
+ mask_ = from.mask_;
+ }
+ if (cached_has_bits & 0x00040000u) {
+ copaque_ = from.copaque_;
+ }
+ if (cached_has_bits & 0x00080000u) {
+ calpha_ = from.calpha_;
+ }
+ if (cached_has_bits & 0x00100000u) {
+ color_ = from.color_;
+ }
+ if (cached_has_bits & 0x00200000u) {
+ refid_ = from.refid_;
+ }
+ if (cached_has_bits & 0x00400000u) {
+ filter_ = from.filter_;
+ }
+ if (cached_has_bits & 0x00800000u) {
+ displaylistloglength_ = from.displaylistloglength_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+ if (cached_has_bits & 0x01000000u) {
+ _internal_set_direct(from._internal_direct());
+ }
+}
+
+void LayersPacket_Layer::CopyFrom(const LayersPacket_Layer& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket_Layer::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00007000) != 0x00007000) return false;
+ return true;
+}
+
+void LayersPacket_Layer::InternalSwap(LayersPacket_Layer* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ displaylistlog_.Swap(&other->displaylistlog_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ swap(clip_, other->clip_);
+ swap(transform_, other->transform_);
+ swap(vregion_, other->vregion_);
+ swap(shadow_, other->shadow_);
+ swap(hitregion_, other->hitregion_);
+ swap(dispatchregion_, other->dispatchregion_);
+ swap(noactionregion_, other->noactionregion_);
+ swap(hpanregion_, other->hpanregion_);
+ swap(vpanregion_, other->vpanregion_);
+ swap(valid_, other->valid_);
+ swap(size_, other->size_);
+ swap(ptr_, other->ptr_);
+ swap(parentptr_, other->parentptr_);
+ swap(type_, other->type_);
+ swap(opacity_, other->opacity_);
+ swap(barid_, other->barid_);
+ swap(mask_, other->mask_);
+ swap(copaque_, other->copaque_);
+ swap(calpha_, other->calpha_);
+ swap(color_, other->color_);
+ swap(refid_, other->refid_);
+ swap(filter_, other->filter_);
+ swap(displaylistloglength_, other->displaylistloglength_);
+ swap(direct_, other->direct_);
+}
+
+std::string LayersPacket_Layer::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket.Layer";
+}
+
+
+// ===================================================================
+
+void LayersPacket::InitAsDefaultInstance() {
+}
+class LayersPacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<LayersPacket>()._has_bits_);
+};
+
+LayersPacket::LayersPacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket)
+}
+LayersPacket::LayersPacket(const LayersPacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_),
+ layer_(from.layer_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket)
+}
+
+void LayersPacket::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LayersPacket_LayerScopePacket_2eproto.base);
+}
+
+LayersPacket::~LayersPacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket)
+ SharedDtor();
+}
+
+void LayersPacket::SharedDtor() {
+}
+
+void LayersPacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const LayersPacket& LayersPacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LayersPacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void LayersPacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ layer_.Clear();
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* LayersPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_layer(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* LayersPacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.LayersPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_layer_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(1, this->_internal_layer(i), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.LayersPacket)
+ return target;
+}
+
+size_t LayersPacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
+ total_size += 1UL * this->_internal_layer_size();
+ for (const auto& msg : this->layer_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void LayersPacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const LayersPacket*>(
+ &from));
+}
+
+void LayersPacket::MergeFrom(const LayersPacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ layer_.MergeFrom(from.layer_);
+}
+
+void LayersPacket::CopyFrom(const LayersPacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool LayersPacket::IsInitialized() const {
+ if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(layer_)) return false;
+ return true;
+}
+
+void LayersPacket::InternalSwap(LayersPacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ layer_.InternalSwap(&other->layer_);
+}
+
+std::string LayersPacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.LayersPacket";
+}
+
+
+// ===================================================================
+
+void MetaPacket::InitAsDefaultInstance() {
+}
+class MetaPacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<MetaPacket>()._has_bits_);
+ static void set_has_composedbyhwc(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+};
+
+MetaPacket::MetaPacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.MetaPacket)
+}
+MetaPacket::MetaPacket(const MetaPacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ composedbyhwc_ = from.composedbyhwc_;
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.MetaPacket)
+}
+
+void MetaPacket::SharedCtor() {
+ composedbyhwc_ = false;
+}
+
+MetaPacket::~MetaPacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.MetaPacket)
+ SharedDtor();
+}
+
+void MetaPacket::SharedDtor() {
+}
+
+void MetaPacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const MetaPacket& MetaPacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MetaPacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void MetaPacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.MetaPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ composedbyhwc_ = false;
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* MetaPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // optional bool composedByHwc = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ _Internal::set_has_composedbyhwc(&has_bits);
+ composedbyhwc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* MetaPacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.MetaPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // optional bool composedByHwc = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_composedbyhwc(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.MetaPacket)
+ return target;
+}
+
+size_t MetaPacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.MetaPacket)
+ size_t total_size = 0;
+
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // optional bool composedByHwc = 1;
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 + 1;
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void MetaPacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const MetaPacket*>(
+ &from));
+}
+
+void MetaPacket::MergeFrom(const MetaPacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.MetaPacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from._internal_has_composedbyhwc()) {
+ _internal_set_composedbyhwc(from._internal_composedbyhwc());
+ }
+}
+
+void MetaPacket::CopyFrom(const MetaPacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.MetaPacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool MetaPacket::IsInitialized() const {
+ return true;
+}
+
+void MetaPacket::InternalSwap(MetaPacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(composedbyhwc_, other->composedbyhwc_);
+}
+
+std::string MetaPacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.MetaPacket";
+}
+
+
+// ===================================================================
+
+void DrawPacket_Rect::InitAsDefaultInstance() {
+}
+class DrawPacket_Rect::_Internal {
+ public:
+ using HasBits = decltype(std::declval<DrawPacket_Rect>()._has_bits_);
+ static void set_has_x(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_y(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_w(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static void set_has_h(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+};
+
+DrawPacket_Rect::DrawPacket_Rect()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket.Rect)
+}
+DrawPacket_Rect::DrawPacket_Rect(const DrawPacket_Rect& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&x_, &from.x_,
+ static_cast<size_t>(reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket.Rect)
+}
+
+void DrawPacket_Rect::SharedCtor() {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+}
+
+DrawPacket_Rect::~DrawPacket_Rect() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket.Rect)
+ SharedDtor();
+}
+
+void DrawPacket_Rect::SharedDtor() {
+}
+
+void DrawPacket_Rect::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const DrawPacket_Rect& DrawPacket_Rect::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DrawPacket_Rect_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void DrawPacket_Rect::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ ::memset(&x_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&h_) -
+ reinterpret_cast<char*>(&x_)) + sizeof(h_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* DrawPacket_Rect::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required float x = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
+ _Internal::set_has_x(&has_bits);
+ x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // required float y = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
+ _Internal::set_has_y(&has_bits);
+ y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // required float w = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
+ _Internal::set_has_w(&has_bits);
+ w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // required float h = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 37)) {
+ _Internal::set_has_h(&has_bits);
+ h_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* DrawPacket_Rect::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required float x = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_x(), target);
+ }
+
+ // required float y = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_y(), target);
+ }
+
+ // required float w = 3;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_w(), target);
+ }
+
+ // required float h = 4;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(4, this->_internal_h(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.DrawPacket.Rect)
+ return target;
+}
+
+size_t DrawPacket_Rect::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ size_t total_size = 0;
+
+ if (_internal_has_x()) {
+ // required float x = 1;
+ total_size += 1 + 4;
+ }
+
+ if (_internal_has_y()) {
+ // required float y = 2;
+ total_size += 1 + 4;
+ }
+
+ if (_internal_has_w()) {
+ // required float w = 3;
+ total_size += 1 + 4;
+ }
+
+ if (_internal_has_h()) {
+ // required float h = 4;
+ total_size += 1 + 4;
+ }
+
+ return total_size;
+}
+size_t DrawPacket_Rect::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ size_t total_size = 0;
+
+ if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
+ // required float x = 1;
+ total_size += 1 + 4;
+
+ // required float y = 2;
+ total_size += 1 + 4;
+
+ // required float w = 3;
+ total_size += 1 + 4;
+
+ // required float h = 4;
+ total_size += 1 + 4;
+
+ } else {
+ total_size += RequiredFieldsByteSizeFallback();
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void DrawPacket_Rect::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const DrawPacket_Rect*>(
+ &from));
+}
+
+void DrawPacket_Rect::MergeFrom(const DrawPacket_Rect& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ if (cached_has_bits & 0x00000001u) {
+ x_ = from.x_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ y_ = from.y_;
+ }
+ if (cached_has_bits & 0x00000004u) {
+ w_ = from.w_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ h_ = from.h_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void DrawPacket_Rect::CopyFrom(const DrawPacket_Rect& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket.Rect)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DrawPacket_Rect::IsInitialized() const {
+ if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
+ return true;
+}
+
+void DrawPacket_Rect::InternalSwap(DrawPacket_Rect* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(x_, other->x_);
+ swap(y_, other->y_);
+ swap(w_, other->w_);
+ swap(h_, other->h_);
+}
+
+std::string DrawPacket_Rect::GetTypeName() const {
+ return "mozilla.layers.layerscope.DrawPacket.Rect";
+}
+
+
+// ===================================================================
+
+void DrawPacket::InitAsDefaultInstance() {
+}
+class DrawPacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<DrawPacket>()._has_bits_);
+ static void set_has_offsetx(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_offsety(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static void set_has_totalrects(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static void set_has_layerref(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+};
+
+DrawPacket::DrawPacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket)
+}
+DrawPacket::DrawPacket(const DrawPacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_),
+ mvmatrix_(from.mvmatrix_),
+ layerrect_(from.layerrect_),
+ texids_(from.texids_),
+ texturerect_(from.texturerect_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&offsetx_, &from.offsetx_,
+ static_cast<size_t>(reinterpret_cast<char*>(&totalrects_) -
+ reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket)
+}
+
+void DrawPacket::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DrawPacket_LayerScopePacket_2eproto.base);
+ ::memset(&offsetx_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&totalrects_) -
+ reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
+}
+
+DrawPacket::~DrawPacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket)
+ SharedDtor();
+}
+
+void DrawPacket::SharedDtor() {
+}
+
+void DrawPacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const DrawPacket& DrawPacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DrawPacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void DrawPacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ mvmatrix_.Clear();
+ layerrect_.Clear();
+ texids_.Clear();
+ texturerect_.Clear();
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ ::memset(&offsetx_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&totalrects_) -
+ reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* DrawPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required float offsetX = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13)) {
+ _Internal::set_has_offsetx(&has_bits);
+ offsetx_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // required float offsetY = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 21)) {
+ _Internal::set_has_offsety(&has_bits);
+ offsety_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
+ ptr += sizeof(float);
+ } else goto handle_unusual;
+ continue;
+ // repeated float mvMatrix = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 29)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ _internal_add_mvmatrix(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
+ ptr += sizeof(float);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<29>(ptr));
+ } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26) {
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_mvmatrix(), ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // required uint32 totalRects = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
+ _Internal::set_has_totalrects(&has_bits);
+ totalrects_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
+ case 5:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_layerrect(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
+ } else goto handle_unusual;
+ continue;
+ // required uint64 layerref = 6;
+ case 6:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
+ _Internal::set_has_layerref(&has_bits);
+ layerref_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated uint32 texIDs = 7;
+ case 7:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ _internal_add_texids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<56>(ptr));
+ } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58) {
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_texids(), ptr, ctx);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
+ case 8:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
+ ptr -= 1;
+ do {
+ ptr += 1;
+ ptr = ctx->ParseMessage(_internal_add_texturerect(), ptr);
+ CHK_(ptr);
+ if (!ctx->DataAvailable(ptr)) break;
+ } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* DrawPacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.DrawPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required float offsetX = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(1, this->_internal_offsetx(), target);
+ }
+
+ // required float offsetY = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(2, this->_internal_offsety(), target);
+ }
+
+ // repeated float mvMatrix = 3;
+ for (int i = 0, n = this->_internal_mvmatrix_size(); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(3, this->_internal_mvmatrix(i), target);
+ }
+
+ // required uint32 totalRects = 4;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_totalrects(), target);
+ }
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_layerrect_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(5, this->_internal_layerrect(i), target, stream);
+ }
+
+ // required uint64 layerref = 6;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_layerref(), target);
+ }
+
+ // repeated uint32 texIDs = 7;
+ for (int i = 0, n = this->_internal_texids_size(); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(7, this->_internal_texids(i), target);
+ }
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->_internal_texturerect_size()); i < n; i++) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(8, this->_internal_texturerect(i), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.DrawPacket)
+ return target;
+}
+
+size_t DrawPacket::RequiredFieldsByteSizeFallback() const {
+// @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket)
+ size_t total_size = 0;
+
+ if (_internal_has_offsetx()) {
+ // required float offsetX = 1;
+ total_size += 1 + 4;
+ }
+
+ if (_internal_has_offsety()) {
+ // required float offsetY = 2;
+ total_size += 1 + 4;
+ }
+
+ if (_internal_has_layerref()) {
+ // required uint64 layerref = 6;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_layerref());
+ }
+
+ if (_internal_has_totalrects()) {
+ // required uint32 totalRects = 4;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_totalrects());
+ }
+
+ return total_size;
+}
+size_t DrawPacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket)
+ size_t total_size = 0;
+
+ if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
+ // required float offsetX = 1;
+ total_size += 1 + 4;
+
+ // required float offsetY = 2;
+ total_size += 1 + 4;
+
+ // required uint64 layerref = 6;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
+ this->_internal_layerref());
+
+ // required uint32 totalRects = 4;
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(
+ this->_internal_totalrects());
+
+ } else {
+ total_size += RequiredFieldsByteSizeFallback();
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // repeated float mvMatrix = 3;
+ {
+ unsigned int count = static_cast<unsigned int>(this->_internal_mvmatrix_size());
+ size_t data_size = 4UL * count;
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_mvmatrix_size());
+ total_size += data_size;
+ }
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
+ total_size += 1UL * this->_internal_layerrect_size();
+ for (const auto& msg : this->layerrect_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ // repeated uint32 texIDs = 7;
+ {
+ size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ UInt32Size(this->texids_);
+ total_size += 1 *
+ ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_texids_size());
+ total_size += data_size;
+ }
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
+ total_size += 1UL * this->_internal_texturerect_size();
+ for (const auto& msg : this->texturerect_) {
+ total_size +=
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void DrawPacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const DrawPacket*>(
+ &from));
+}
+
+void DrawPacket::MergeFrom(const DrawPacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ mvmatrix_.MergeFrom(from.mvmatrix_);
+ layerrect_.MergeFrom(from.layerrect_);
+ texids_.MergeFrom(from.texids_);
+ texturerect_.MergeFrom(from.texturerect_);
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000000fu) {
+ if (cached_has_bits & 0x00000001u) {
+ offsetx_ = from.offsetx_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ offsety_ = from.offsety_;
+ }
+ if (cached_has_bits & 0x00000004u) {
+ layerref_ = from.layerref_;
+ }
+ if (cached_has_bits & 0x00000008u) {
+ totalrects_ = from.totalrects_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void DrawPacket::CopyFrom(const DrawPacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool DrawPacket::IsInitialized() const {
+ if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
+ if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(layerrect_)) return false;
+ if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(texturerect_)) return false;
+ return true;
+}
+
+void DrawPacket::InternalSwap(DrawPacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ mvmatrix_.InternalSwap(&other->mvmatrix_);
+ layerrect_.InternalSwap(&other->layerrect_);
+ texids_.InternalSwap(&other->texids_);
+ texturerect_.InternalSwap(&other->texturerect_);
+ swap(offsetx_, other->offsetx_);
+ swap(offsety_, other->offsety_);
+ swap(layerref_, other->layerref_);
+ swap(totalrects_, other->totalrects_);
+}
+
+std::string DrawPacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.DrawPacket";
+}
+
+
+// ===================================================================
+
+void Packet::InitAsDefaultInstance() {
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->frame_ = const_cast< ::mozilla::layers::layerscope::FramePacket*>(
+ ::mozilla::layers::layerscope::FramePacket::internal_default_instance());
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->color_ = const_cast< ::mozilla::layers::layerscope::ColorPacket*>(
+ ::mozilla::layers::layerscope::ColorPacket::internal_default_instance());
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->texture_ = const_cast< ::mozilla::layers::layerscope::TexturePacket*>(
+ ::mozilla::layers::layerscope::TexturePacket::internal_default_instance());
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->layers_ = const_cast< ::mozilla::layers::layerscope::LayersPacket*>(
+ ::mozilla::layers::layerscope::LayersPacket::internal_default_instance());
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->meta_ = const_cast< ::mozilla::layers::layerscope::MetaPacket*>(
+ ::mozilla::layers::layerscope::MetaPacket::internal_default_instance());
+ ::mozilla::layers::layerscope::_Packet_default_instance_._instance.get_mutable()->draw_ = const_cast< ::mozilla::layers::layerscope::DrawPacket*>(
+ ::mozilla::layers::layerscope::DrawPacket::internal_default_instance());
+}
+class Packet::_Internal {
+ public:
+ using HasBits = decltype(std::declval<Packet>()._has_bits_);
+ static void set_has_type(HasBits* has_bits) {
+ (*has_bits)[0] |= 64u;
+ }
+ static const ::mozilla::layers::layerscope::FramePacket& frame(const Packet* msg);
+ static void set_has_frame(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static const ::mozilla::layers::layerscope::ColorPacket& color(const Packet* msg);
+ static void set_has_color(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+ static const ::mozilla::layers::layerscope::TexturePacket& texture(const Packet* msg);
+ static void set_has_texture(HasBits* has_bits) {
+ (*has_bits)[0] |= 4u;
+ }
+ static const ::mozilla::layers::layerscope::LayersPacket& layers(const Packet* msg);
+ static void set_has_layers(HasBits* has_bits) {
+ (*has_bits)[0] |= 8u;
+ }
+ static const ::mozilla::layers::layerscope::MetaPacket& meta(const Packet* msg);
+ static void set_has_meta(HasBits* has_bits) {
+ (*has_bits)[0] |= 16u;
+ }
+ static const ::mozilla::layers::layerscope::DrawPacket& draw(const Packet* msg);
+ static void set_has_draw(HasBits* has_bits) {
+ (*has_bits)[0] |= 32u;
+ }
+};
+
+const ::mozilla::layers::layerscope::FramePacket&
+Packet::_Internal::frame(const Packet* msg) {
+ return *msg->frame_;
+}
+const ::mozilla::layers::layerscope::ColorPacket&
+Packet::_Internal::color(const Packet* msg) {
+ return *msg->color_;
+}
+const ::mozilla::layers::layerscope::TexturePacket&
+Packet::_Internal::texture(const Packet* msg) {
+ return *msg->texture_;
+}
+const ::mozilla::layers::layerscope::LayersPacket&
+Packet::_Internal::layers(const Packet* msg) {
+ return *msg->layers_;
+}
+const ::mozilla::layers::layerscope::MetaPacket&
+Packet::_Internal::meta(const Packet* msg) {
+ return *msg->meta_;
+}
+const ::mozilla::layers::layerscope::DrawPacket&
+Packet::_Internal::draw(const Packet* msg) {
+ return *msg->draw_;
+}
+Packet::Packet()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.Packet)
+}
+Packet::Packet(const Packet& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ if (from._internal_has_frame()) {
+ frame_ = new ::mozilla::layers::layerscope::FramePacket(*from.frame_);
+ } else {
+ frame_ = nullptr;
+ }
+ if (from._internal_has_color()) {
+ color_ = new ::mozilla::layers::layerscope::ColorPacket(*from.color_);
+ } else {
+ color_ = nullptr;
+ }
+ if (from._internal_has_texture()) {
+ texture_ = new ::mozilla::layers::layerscope::TexturePacket(*from.texture_);
+ } else {
+ texture_ = nullptr;
+ }
+ if (from._internal_has_layers()) {
+ layers_ = new ::mozilla::layers::layerscope::LayersPacket(*from.layers_);
+ } else {
+ layers_ = nullptr;
+ }
+ if (from._internal_has_meta()) {
+ meta_ = new ::mozilla::layers::layerscope::MetaPacket(*from.meta_);
+ } else {
+ meta_ = nullptr;
+ }
+ if (from._internal_has_draw()) {
+ draw_ = new ::mozilla::layers::layerscope::DrawPacket(*from.draw_);
+ } else {
+ draw_ = nullptr;
+ }
+ type_ = from.type_;
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.Packet)
+}
+
+void Packet::SharedCtor() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Packet_LayerScopePacket_2eproto.base);
+ ::memset(&frame_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&draw_) -
+ reinterpret_cast<char*>(&frame_)) + sizeof(draw_));
+ type_ = 1;
+}
+
+Packet::~Packet() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.Packet)
+ SharedDtor();
+}
+
+void Packet::SharedDtor() {
+ if (this != internal_default_instance()) delete frame_;
+ if (this != internal_default_instance()) delete color_;
+ if (this != internal_default_instance()) delete texture_;
+ if (this != internal_default_instance()) delete layers_;
+ if (this != internal_default_instance()) delete meta_;
+ if (this != internal_default_instance()) delete draw_;
+}
+
+void Packet::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const Packet& Packet::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Packet_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void Packet::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.Packet)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000007fu) {
+ if (cached_has_bits & 0x00000001u) {
+ GOOGLE_DCHECK(frame_ != nullptr);
+ frame_->Clear();
+ }
+ if (cached_has_bits & 0x00000002u) {
+ GOOGLE_DCHECK(color_ != nullptr);
+ color_->Clear();
+ }
+ if (cached_has_bits & 0x00000004u) {
+ GOOGLE_DCHECK(texture_ != nullptr);
+ texture_->Clear();
+ }
+ if (cached_has_bits & 0x00000008u) {
+ GOOGLE_DCHECK(layers_ != nullptr);
+ layers_->Clear();
+ }
+ if (cached_has_bits & 0x00000010u) {
+ GOOGLE_DCHECK(meta_ != nullptr);
+ meta_->Clear();
+ }
+ if (cached_has_bits & 0x00000020u) {
+ GOOGLE_DCHECK(draw_ != nullptr);
+ draw_->Clear();
+ }
+ type_ = 1;
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* Packet::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required .mozilla.layers.layerscope.Packet.DataType type = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::Packet_DataType_IsValid(val))) {
+ _internal_set_type(static_cast<::mozilla::layers::layerscope::Packet_DataType>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.FramePacket frame = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
+ ptr = ctx->ParseMessage(_internal_mutable_frame(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.ColorPacket color = 3;
+ case 3:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
+ ptr = ctx->ParseMessage(_internal_mutable_color(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
+ case 4:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
+ ptr = ctx->ParseMessage(_internal_mutable_texture(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
+ case 5:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
+ ptr = ctx->ParseMessage(_internal_mutable_layers(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
+ case 6:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
+ ptr = ctx->ParseMessage(_internal_mutable_meta(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
+ case 7:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
+ ptr = ctx->ParseMessage(_internal_mutable_draw(), ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* Packet::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.Packet)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required .mozilla.layers.layerscope.Packet.DataType type = 1;
+ if (cached_has_bits & 0x00000040u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_type(), target);
+ }
+
+ // optional .mozilla.layers.layerscope.FramePacket frame = 2;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 2, _Internal::frame(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.ColorPacket color = 3;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 3, _Internal::color(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
+ if (cached_has_bits & 0x00000004u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 4, _Internal::texture(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
+ if (cached_has_bits & 0x00000008u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 5, _Internal::layers(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
+ if (cached_has_bits & 0x00000010u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 6, _Internal::meta(this), target, stream);
+ }
+
+ // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
+ if (cached_has_bits & 0x00000020u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+ InternalWriteMessage(
+ 7, _Internal::draw(this), target, stream);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.Packet)
+ return target;
+}
+
+size_t Packet::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.Packet)
+ size_t total_size = 0;
+
+ // required .mozilla.layers.layerscope.Packet.DataType type = 1;
+ if (_internal_has_type()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x0000003fu) {
+ // optional .mozilla.layers.layerscope.FramePacket frame = 2;
+ if (cached_has_bits & 0x00000001u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *frame_);
+ }
+
+ // optional .mozilla.layers.layerscope.ColorPacket color = 3;
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *color_);
+ }
+
+ // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
+ if (cached_has_bits & 0x00000004u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *texture_);
+ }
+
+ // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
+ if (cached_has_bits & 0x00000008u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *layers_);
+ }
+
+ // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
+ if (cached_has_bits & 0x00000010u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *meta_);
+ }
+
+ // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
+ if (cached_has_bits & 0x00000020u) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+ *draw_);
+ }
+
+ }
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void Packet::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const Packet*>(
+ &from));
+}
+
+void Packet::MergeFrom(const Packet& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.Packet)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x0000007fu) {
+ if (cached_has_bits & 0x00000001u) {
+ _internal_mutable_frame()->::mozilla::layers::layerscope::FramePacket::MergeFrom(from._internal_frame());
+ }
+ if (cached_has_bits & 0x00000002u) {
+ _internal_mutable_color()->::mozilla::layers::layerscope::ColorPacket::MergeFrom(from._internal_color());
+ }
+ if (cached_has_bits & 0x00000004u) {
+ _internal_mutable_texture()->::mozilla::layers::layerscope::TexturePacket::MergeFrom(from._internal_texture());
+ }
+ if (cached_has_bits & 0x00000008u) {
+ _internal_mutable_layers()->::mozilla::layers::layerscope::LayersPacket::MergeFrom(from._internal_layers());
+ }
+ if (cached_has_bits & 0x00000010u) {
+ _internal_mutable_meta()->::mozilla::layers::layerscope::MetaPacket::MergeFrom(from._internal_meta());
+ }
+ if (cached_has_bits & 0x00000020u) {
+ _internal_mutable_draw()->::mozilla::layers::layerscope::DrawPacket::MergeFrom(from._internal_draw());
+ }
+ if (cached_has_bits & 0x00000040u) {
+ type_ = from.type_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void Packet::CopyFrom(const Packet& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.Packet)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Packet::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000040) != 0x00000040) return false;
+ if (_internal_has_color()) {
+ if (!color_->IsInitialized()) return false;
+ }
+ if (_internal_has_texture()) {
+ if (!texture_->IsInitialized()) return false;
+ }
+ if (_internal_has_layers()) {
+ if (!layers_->IsInitialized()) return false;
+ }
+ if (_internal_has_draw()) {
+ if (!draw_->IsInitialized()) return false;
+ }
+ return true;
+}
+
+void Packet::InternalSwap(Packet* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(frame_, other->frame_);
+ swap(color_, other->color_);
+ swap(texture_, other->texture_);
+ swap(layers_, other->layers_);
+ swap(meta_, other->meta_);
+ swap(draw_, other->draw_);
+ swap(type_, other->type_);
+}
+
+std::string Packet::GetTypeName() const {
+ return "mozilla.layers.layerscope.Packet";
+}
+
+
+// ===================================================================
+
+void CommandPacket::InitAsDefaultInstance() {
+}
+class CommandPacket::_Internal {
+ public:
+ using HasBits = decltype(std::declval<CommandPacket>()._has_bits_);
+ static void set_has_type(HasBits* has_bits) {
+ (*has_bits)[0] |= 1u;
+ }
+ static void set_has_value(HasBits* has_bits) {
+ (*has_bits)[0] |= 2u;
+ }
+};
+
+CommandPacket::CommandPacket()
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _internal_metadata_(nullptr) {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.CommandPacket)
+}
+CommandPacket::CommandPacket(const CommandPacket& from)
+ : ::PROTOBUF_NAMESPACE_ID::MessageLite(),
+ _internal_metadata_(nullptr),
+ _has_bits_(from._has_bits_) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::memcpy(&type_, &from.type_,
+ static_cast<size_t>(reinterpret_cast<char*>(&value_) -
+ reinterpret_cast<char*>(&type_)) + sizeof(value_));
+ // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.CommandPacket)
+}
+
+void CommandPacket::SharedCtor() {
+ ::memset(&type_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&value_) -
+ reinterpret_cast<char*>(&type_)) + sizeof(value_));
+}
+
+CommandPacket::~CommandPacket() {
+ // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.CommandPacket)
+ SharedDtor();
+}
+
+void CommandPacket::SharedDtor() {
+}
+
+void CommandPacket::SetCachedSize(int size) const {
+ _cached_size_.Set(size);
+}
+const CommandPacket& CommandPacket::default_instance() {
+ ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CommandPacket_LayerScopePacket_2eproto.base);
+ return *internal_default_instance();
+}
+
+
+void CommandPacket::Clear() {
+// @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.CommandPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ ::memset(&type_, 0, static_cast<size_t>(
+ reinterpret_cast<char*>(&value_) -
+ reinterpret_cast<char*>(&type_)) + sizeof(value_));
+ }
+ _has_bits_.Clear();
+ _internal_metadata_.Clear();
+}
+
+const char* CommandPacket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
+#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+ _Internal::HasBits has_bits{};
+ while (!ctx->Done(&ptr)) {
+ ::PROTOBUF_NAMESPACE_ID::uint32 tag;
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
+ CHK_(ptr);
+ switch (tag >> 3) {
+ // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
+ case 1:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ if (PROTOBUF_PREDICT_TRUE(::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(val))) {
+ _internal_set_type(static_cast<::mozilla::layers::layerscope::CommandPacket_CmdType>(val));
+ } else {
+ ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
+ }
+ } else goto handle_unusual;
+ continue;
+ // optional bool value = 2;
+ case 2:
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
+ _Internal::set_has_value(&has_bits);
+ value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
+ CHK_(ptr);
+ } else goto handle_unusual;
+ continue;
+ default: {
+ handle_unusual:
+ if ((tag & 7) == 4 || tag == 0) {
+ ctx->SetLastTag(tag);
+ goto success;
+ }
+ ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
+ CHK_(ptr != nullptr);
+ continue;
+ }
+ } // switch
+ } // while
+success:
+ _has_bits_.Or(has_bits);
+ return ptr;
+failure:
+ ptr = nullptr;
+ goto success;
+#undef CHK_
+}
+
+::PROTOBUF_NAMESPACE_ID::uint8* CommandPacket::_InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+ // @@protoc_insertion_point(serialize_to_array_start:mozilla.layers.layerscope.CommandPacket)
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = _has_bits_[0];
+ // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
+ if (cached_has_bits & 0x00000001u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
+ 1, this->_internal_type(), target);
+ }
+
+ // optional bool value = 2;
+ if (cached_has_bits & 0x00000002u) {
+ target = stream->EnsureSpace(target);
+ target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_value(), target);
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ target = stream->WriteRaw(_internal_metadata_.unknown_fields().data(),
+ static_cast<int>(_internal_metadata_.unknown_fields().size()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:mozilla.layers.layerscope.CommandPacket)
+ return target;
+}
+
+size_t CommandPacket::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.CommandPacket)
+ size_t total_size = 0;
+
+ // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
+ if (_internal_has_type()) {
+ total_size += 1 +
+ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
+ }
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ // optional bool value = 2;
+ cached_has_bits = _has_bits_[0];
+ if (cached_has_bits & 0x00000002u) {
+ total_size += 1 + 1;
+ }
+
+ if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
+ total_size += _internal_metadata_.unknown_fields().size();
+ }
+ int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
+ SetCachedSize(cached_size);
+ return total_size;
+}
+
+void CommandPacket::CheckTypeAndMergeFrom(
+ const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
+ MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const CommandPacket*>(
+ &from));
+}
+
+void CommandPacket::MergeFrom(const CommandPacket& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.CommandPacket)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ cached_has_bits = from._has_bits_[0];
+ if (cached_has_bits & 0x00000003u) {
+ if (cached_has_bits & 0x00000001u) {
+ type_ = from.type_;
+ }
+ if (cached_has_bits & 0x00000002u) {
+ value_ = from.value_;
+ }
+ _has_bits_[0] |= cached_has_bits;
+ }
+}
+
+void CommandPacket::CopyFrom(const CommandPacket& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.CommandPacket)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CommandPacket::IsInitialized() const {
+ if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
+ return true;
+}
+
+void CommandPacket::InternalSwap(CommandPacket* other) {
+ using std::swap;
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_has_bits_[0], other->_has_bits_[0]);
+ swap(type_, other->type_);
+ swap(value_, other->value_);
+}
+
+std::string CommandPacket::GetTypeName() const {
+ return "mozilla.layers.layerscope.CommandPacket";
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace layerscope
+} // namespace layers
+} // namespace mozilla
+PROTOBUF_NAMESPACE_OPEN
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::FramePacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::FramePacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::FramePacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::ColorPacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::ColorPacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::ColorPacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::TexturePacket_Rect* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::TexturePacket_Rect >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::TexturePacket_Rect >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::TexturePacket_Size* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::TexturePacket_Size >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::TexturePacket_Size >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::TexturePacket_Matrix* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::TexturePacket_Matrix >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::TexturePacket_Matrix >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::TexturePacket_EffectMask* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::TexturePacket_EffectMask >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::TexturePacket_EffectMask >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::TexturePacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::TexturePacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::TexturePacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer_Size* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer_Size >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer_Size >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer_Region* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer_Region >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer_Region >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket_Layer* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket_Layer >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket_Layer >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::LayersPacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::LayersPacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::LayersPacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::MetaPacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::MetaPacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::MetaPacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::DrawPacket_Rect* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::DrawPacket_Rect >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::DrawPacket_Rect >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::DrawPacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::DrawPacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::DrawPacket >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::Packet* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::Packet >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::Packet >(arena);
+}
+template<> PROTOBUF_NOINLINE ::mozilla::layers::layerscope::CommandPacket* Arena::CreateMaybeMessage< ::mozilla::layers::layerscope::CommandPacket >(Arena* arena) {
+ return Arena::CreateInternal< ::mozilla::layers::layerscope::CommandPacket >(arena);
+}
+PROTOBUF_NAMESPACE_CLOSE
+
+// @@protoc_insertion_point(global_scope)
+#include <google/protobuf/port_undef.inc>
diff --git a/gfx/layers/protobuf/LayerScopePacket.pb.h b/gfx/layers/protobuf/LayerScopePacket.pb.h
new file mode 100644
index 0000000000..486c0fbc6c
--- /dev/null
+++ b/gfx/layers/protobuf/LayerScopePacket.pb.h
@@ -0,0 +1,7833 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: LayerScopePacket.proto
+
+#ifndef GOOGLE_PROTOBUF_INCLUDED_LayerScopePacket_2eproto
+#define GOOGLE_PROTOBUF_INCLUDED_LayerScopePacket_2eproto
+
+#include <limits>
+#include <string>
+
+#include <google/protobuf/port_def.inc>
+#if PROTOBUF_VERSION < 3011000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please update
+#error your headers.
+#endif
+#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/port_undef.inc>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
+#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/inlined_string_field.h>
+#include <google/protobuf/metadata_lite.h>
+#include <google/protobuf/message_lite.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
+#include <google/protobuf/generated_enum_util.h>
+// @@protoc_insertion_point(includes)
+#include <google/protobuf/port_def.inc>
+#define PROTOBUF_INTERNAL_EXPORT_LayerScopePacket_2eproto
+PROTOBUF_NAMESPACE_OPEN
+namespace internal {
+class AnyMetadata;
+} // namespace internal
+PROTOBUF_NAMESPACE_CLOSE
+
+// Internal implementation detail -- do not use these members.
+struct TableStruct_LayerScopePacket_2eproto {
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[19]
+ PROTOBUF_SECTION_VARIABLE(protodesc_cold);
+ static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
+ static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
+ static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
+};
+namespace mozilla {
+namespace layers {
+namespace layerscope {
+class ColorPacket;
+class ColorPacketDefaultTypeInternal;
+extern ColorPacketDefaultTypeInternal _ColorPacket_default_instance_;
+class CommandPacket;
+class CommandPacketDefaultTypeInternal;
+extern CommandPacketDefaultTypeInternal _CommandPacket_default_instance_;
+class DrawPacket;
+class DrawPacketDefaultTypeInternal;
+extern DrawPacketDefaultTypeInternal _DrawPacket_default_instance_;
+class DrawPacket_Rect;
+class DrawPacket_RectDefaultTypeInternal;
+extern DrawPacket_RectDefaultTypeInternal _DrawPacket_Rect_default_instance_;
+class FramePacket;
+class FramePacketDefaultTypeInternal;
+extern FramePacketDefaultTypeInternal _FramePacket_default_instance_;
+class LayersPacket;
+class LayersPacketDefaultTypeInternal;
+extern LayersPacketDefaultTypeInternal _LayersPacket_default_instance_;
+class LayersPacket_Layer;
+class LayersPacket_LayerDefaultTypeInternal;
+extern LayersPacket_LayerDefaultTypeInternal _LayersPacket_Layer_default_instance_;
+class LayersPacket_Layer_Matrix;
+class LayersPacket_Layer_MatrixDefaultTypeInternal;
+extern LayersPacket_Layer_MatrixDefaultTypeInternal _LayersPacket_Layer_Matrix_default_instance_;
+class LayersPacket_Layer_Rect;
+class LayersPacket_Layer_RectDefaultTypeInternal;
+extern LayersPacket_Layer_RectDefaultTypeInternal _LayersPacket_Layer_Rect_default_instance_;
+class LayersPacket_Layer_Region;
+class LayersPacket_Layer_RegionDefaultTypeInternal;
+extern LayersPacket_Layer_RegionDefaultTypeInternal _LayersPacket_Layer_Region_default_instance_;
+class LayersPacket_Layer_Shadow;
+class LayersPacket_Layer_ShadowDefaultTypeInternal;
+extern LayersPacket_Layer_ShadowDefaultTypeInternal _LayersPacket_Layer_Shadow_default_instance_;
+class LayersPacket_Layer_Size;
+class LayersPacket_Layer_SizeDefaultTypeInternal;
+extern LayersPacket_Layer_SizeDefaultTypeInternal _LayersPacket_Layer_Size_default_instance_;
+class MetaPacket;
+class MetaPacketDefaultTypeInternal;
+extern MetaPacketDefaultTypeInternal _MetaPacket_default_instance_;
+class Packet;
+class PacketDefaultTypeInternal;
+extern PacketDefaultTypeInternal _Packet_default_instance_;
+class TexturePacket;
+class TexturePacketDefaultTypeInternal;
+extern TexturePacketDefaultTypeInternal _TexturePacket_default_instance_;
+class TexturePacket_EffectMask;
+class TexturePacket_EffectMaskDefaultTypeInternal;
+extern TexturePacket_EffectMaskDefaultTypeInternal _TexturePacket_EffectMask_default_instance_;
+class TexturePacket_Matrix;
+class TexturePacket_MatrixDefaultTypeInternal;
+extern TexturePacket_MatrixDefaultTypeInternal _TexturePacket_Matrix_default_instance_;
+class TexturePacket_Rect;
+class TexturePacket_RectDefaultTypeInternal;
+extern TexturePacket_RectDefaultTypeInternal _TexturePacket_Rect_default_instance_;
+class TexturePacket_Size;
+class TexturePacket_SizeDefaultTypeInternal;
+extern TexturePacket_SizeDefaultTypeInternal _TexturePacket_Size_default_instance_;
+} // namespace layerscope
+} // namespace layers
+} // namespace mozilla
+PROTOBUF_NAMESPACE_OPEN
+template<> ::mozilla::layers::layerscope::ColorPacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::ColorPacket>(Arena*);
+template<> ::mozilla::layers::layerscope::CommandPacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::CommandPacket>(Arena*);
+template<> ::mozilla::layers::layerscope::DrawPacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::DrawPacket>(Arena*);
+template<> ::mozilla::layers::layerscope::DrawPacket_Rect* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::DrawPacket_Rect>(Arena*);
+template<> ::mozilla::layers::layerscope::FramePacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::FramePacket>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Matrix>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Rect>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer_Region* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Shadow>(Arena*);
+template<> ::mozilla::layers::layerscope::LayersPacket_Layer_Size* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Size>(Arena*);
+template<> ::mozilla::layers::layerscope::MetaPacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::MetaPacket>(Arena*);
+template<> ::mozilla::layers::layerscope::Packet* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::Packet>(Arena*);
+template<> ::mozilla::layers::layerscope::TexturePacket* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket>(Arena*);
+template<> ::mozilla::layers::layerscope::TexturePacket_EffectMask* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_EffectMask>(Arena*);
+template<> ::mozilla::layers::layerscope::TexturePacket_Matrix* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Matrix>(Arena*);
+template<> ::mozilla::layers::layerscope::TexturePacket_Rect* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Rect>(Arena*);
+template<> ::mozilla::layers::layerscope::TexturePacket_Size* Arena::CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Size>(Arena*);
+PROTOBUF_NAMESPACE_CLOSE
+namespace mozilla {
+namespace layers {
+namespace layerscope {
+
+enum TexturePacket_Filter : int {
+ TexturePacket_Filter_GOOD = 0,
+ TexturePacket_Filter_LINEAR = 1,
+ TexturePacket_Filter_POINT = 2
+};
+bool TexturePacket_Filter_IsValid(int value);
+constexpr TexturePacket_Filter TexturePacket_Filter_Filter_MIN = TexturePacket_Filter_GOOD;
+constexpr TexturePacket_Filter TexturePacket_Filter_Filter_MAX = TexturePacket_Filter_POINT;
+constexpr int TexturePacket_Filter_Filter_ARRAYSIZE = TexturePacket_Filter_Filter_MAX + 1;
+
+const std::string& TexturePacket_Filter_Name(TexturePacket_Filter value);
+template<typename T>
+inline const std::string& TexturePacket_Filter_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, TexturePacket_Filter>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function TexturePacket_Filter_Name.");
+ return TexturePacket_Filter_Name(static_cast<TexturePacket_Filter>(enum_t_value));
+}
+bool TexturePacket_Filter_Parse(
+ const std::string& name, TexturePacket_Filter* value);
+enum LayersPacket_Layer_LayerType : int {
+ LayersPacket_Layer_LayerType_UnknownLayer = 0,
+ LayersPacket_Layer_LayerType_LayerManager = 1,
+ LayersPacket_Layer_LayerType_ContainerLayer = 2,
+ LayersPacket_Layer_LayerType_PaintedLayer = 3,
+ LayersPacket_Layer_LayerType_CanvasLayer = 4,
+ LayersPacket_Layer_LayerType_ImageLayer = 5,
+ LayersPacket_Layer_LayerType_ColorLayer = 6,
+ LayersPacket_Layer_LayerType_RefLayer = 8,
+ LayersPacket_Layer_LayerType_ReadbackLayer = 9,
+ LayersPacket_Layer_LayerType_DisplayItemLayer = 10
+};
+bool LayersPacket_Layer_LayerType_IsValid(int value);
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer_LayerType_LayerType_MIN = LayersPacket_Layer_LayerType_UnknownLayer;
+constexpr LayersPacket_Layer_LayerType LayersPacket_Layer_LayerType_LayerType_MAX = LayersPacket_Layer_LayerType_DisplayItemLayer;
+constexpr int LayersPacket_Layer_LayerType_LayerType_ARRAYSIZE = LayersPacket_Layer_LayerType_LayerType_MAX + 1;
+
+const std::string& LayersPacket_Layer_LayerType_Name(LayersPacket_Layer_LayerType value);
+template<typename T>
+inline const std::string& LayersPacket_Layer_LayerType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, LayersPacket_Layer_LayerType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function LayersPacket_Layer_LayerType_Name.");
+ return LayersPacket_Layer_LayerType_Name(static_cast<LayersPacket_Layer_LayerType>(enum_t_value));
+}
+bool LayersPacket_Layer_LayerType_Parse(
+ const std::string& name, LayersPacket_Layer_LayerType* value);
+enum LayersPacket_Layer_ScrollingDirect : int {
+ LayersPacket_Layer_ScrollingDirect_VERTICAL = 1,
+ LayersPacket_Layer_ScrollingDirect_HORIZONTAL = 2
+};
+bool LayersPacket_Layer_ScrollingDirect_IsValid(int value);
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer_ScrollingDirect_ScrollingDirect_MIN = LayersPacket_Layer_ScrollingDirect_VERTICAL;
+constexpr LayersPacket_Layer_ScrollingDirect LayersPacket_Layer_ScrollingDirect_ScrollingDirect_MAX = LayersPacket_Layer_ScrollingDirect_HORIZONTAL;
+constexpr int LayersPacket_Layer_ScrollingDirect_ScrollingDirect_ARRAYSIZE = LayersPacket_Layer_ScrollingDirect_ScrollingDirect_MAX + 1;
+
+const std::string& LayersPacket_Layer_ScrollingDirect_Name(LayersPacket_Layer_ScrollingDirect value);
+template<typename T>
+inline const std::string& LayersPacket_Layer_ScrollingDirect_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, LayersPacket_Layer_ScrollingDirect>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function LayersPacket_Layer_ScrollingDirect_Name.");
+ return LayersPacket_Layer_ScrollingDirect_Name(static_cast<LayersPacket_Layer_ScrollingDirect>(enum_t_value));
+}
+bool LayersPacket_Layer_ScrollingDirect_Parse(
+ const std::string& name, LayersPacket_Layer_ScrollingDirect* value);
+enum LayersPacket_Layer_Filter : int {
+ LayersPacket_Layer_Filter_FILTER_FAST = 0,
+ LayersPacket_Layer_Filter_FILTER_GOOD = 1,
+ LayersPacket_Layer_Filter_FILTER_BEST = 2,
+ LayersPacket_Layer_Filter_FILTER_NEAREST = 3,
+ LayersPacket_Layer_Filter_FILTER_BILINEAR = 4,
+ LayersPacket_Layer_Filter_FILTER_GAUSSIAN = 5,
+ LayersPacket_Layer_Filter_FILTER_SENTINEL = 6,
+ LayersPacket_Layer_Filter_FILTER_LINEAR = 7,
+ LayersPacket_Layer_Filter_FILTER_POINT = 8
+};
+bool LayersPacket_Layer_Filter_IsValid(int value);
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer_Filter_Filter_MIN = LayersPacket_Layer_Filter_FILTER_FAST;
+constexpr LayersPacket_Layer_Filter LayersPacket_Layer_Filter_Filter_MAX = LayersPacket_Layer_Filter_FILTER_POINT;
+constexpr int LayersPacket_Layer_Filter_Filter_ARRAYSIZE = LayersPacket_Layer_Filter_Filter_MAX + 1;
+
+const std::string& LayersPacket_Layer_Filter_Name(LayersPacket_Layer_Filter value);
+template<typename T>
+inline const std::string& LayersPacket_Layer_Filter_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, LayersPacket_Layer_Filter>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function LayersPacket_Layer_Filter_Name.");
+ return LayersPacket_Layer_Filter_Name(static_cast<LayersPacket_Layer_Filter>(enum_t_value));
+}
+bool LayersPacket_Layer_Filter_Parse(
+ const std::string& name, LayersPacket_Layer_Filter* value);
+enum Packet_DataType : int {
+ Packet_DataType_FRAMESTART = 1,
+ Packet_DataType_FRAMEEND = 2,
+ Packet_DataType_COLOR = 3,
+ Packet_DataType_TEXTURE = 4,
+ Packet_DataType_LAYERS = 5,
+ Packet_DataType_META = 6,
+ Packet_DataType_DRAW = 7
+};
+bool Packet_DataType_IsValid(int value);
+constexpr Packet_DataType Packet_DataType_DataType_MIN = Packet_DataType_FRAMESTART;
+constexpr Packet_DataType Packet_DataType_DataType_MAX = Packet_DataType_DRAW;
+constexpr int Packet_DataType_DataType_ARRAYSIZE = Packet_DataType_DataType_MAX + 1;
+
+const std::string& Packet_DataType_Name(Packet_DataType value);
+template<typename T>
+inline const std::string& Packet_DataType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, Packet_DataType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function Packet_DataType_Name.");
+ return Packet_DataType_Name(static_cast<Packet_DataType>(enum_t_value));
+}
+bool Packet_DataType_Parse(
+ const std::string& name, Packet_DataType* value);
+enum CommandPacket_CmdType : int {
+ CommandPacket_CmdType_NO_OP = 0,
+ CommandPacket_CmdType_LAYERS_TREE = 1,
+ CommandPacket_CmdType_LAYERS_BUFFER = 2
+};
+bool CommandPacket_CmdType_IsValid(int value);
+constexpr CommandPacket_CmdType CommandPacket_CmdType_CmdType_MIN = CommandPacket_CmdType_NO_OP;
+constexpr CommandPacket_CmdType CommandPacket_CmdType_CmdType_MAX = CommandPacket_CmdType_LAYERS_BUFFER;
+constexpr int CommandPacket_CmdType_CmdType_ARRAYSIZE = CommandPacket_CmdType_CmdType_MAX + 1;
+
+const std::string& CommandPacket_CmdType_Name(CommandPacket_CmdType value);
+template<typename T>
+inline const std::string& CommandPacket_CmdType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, CommandPacket_CmdType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function CommandPacket_CmdType_Name.");
+ return CommandPacket_CmdType_Name(static_cast<CommandPacket_CmdType>(enum_t_value));
+}
+bool CommandPacket_CmdType_Parse(
+ const std::string& name, CommandPacket_CmdType* value);
+// ===================================================================
+
+class FramePacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.FramePacket) */ {
+ public:
+ FramePacket();
+ virtual ~FramePacket();
+
+ FramePacket(const FramePacket& from);
+ FramePacket(FramePacket&& from) noexcept
+ : FramePacket() {
+ *this = ::std::move(from);
+ }
+
+ inline FramePacket& operator=(const FramePacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline FramePacket& operator=(FramePacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const FramePacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const FramePacket* internal_default_instance() {
+ return reinterpret_cast<const FramePacket*>(
+ &_FramePacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 0;
+
+ friend void swap(FramePacket& a, FramePacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(FramePacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline FramePacket* New() const final {
+ return CreateMaybeMessage<FramePacket>(nullptr);
+ }
+
+ FramePacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<FramePacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const FramePacket& from);
+ void MergeFrom(const FramePacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(FramePacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.FramePacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kValueFieldNumber = 1,
+ kScaleFieldNumber = 2,
+ };
+ // optional uint64 value = 1;
+ bool has_value() const;
+ private:
+ bool _internal_has_value() const;
+ public:
+ void clear_value();
+ ::PROTOBUF_NAMESPACE_ID::uint64 value() const;
+ void set_value(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_value() const;
+ void _internal_set_value(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional float scale = 2;
+ bool has_scale() const;
+ private:
+ bool _internal_has_scale() const;
+ public:
+ void clear_scale();
+ float scale() const;
+ void set_scale(float value);
+ private:
+ float _internal_scale() const;
+ void _internal_set_scale(float value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.FramePacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 value_;
+ float scale_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class ColorPacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.ColorPacket) */ {
+ public:
+ ColorPacket();
+ virtual ~ColorPacket();
+
+ ColorPacket(const ColorPacket& from);
+ ColorPacket(ColorPacket&& from) noexcept
+ : ColorPacket() {
+ *this = ::std::move(from);
+ }
+
+ inline ColorPacket& operator=(const ColorPacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline ColorPacket& operator=(ColorPacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const ColorPacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const ColorPacket* internal_default_instance() {
+ return reinterpret_cast<const ColorPacket*>(
+ &_ColorPacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 1;
+
+ friend void swap(ColorPacket& a, ColorPacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(ColorPacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline ColorPacket* New() const final {
+ return CreateMaybeMessage<ColorPacket>(nullptr);
+ }
+
+ ColorPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<ColorPacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const ColorPacket& from);
+ void MergeFrom(const ColorPacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(ColorPacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.ColorPacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kLayerrefFieldNumber = 1,
+ kWidthFieldNumber = 2,
+ kHeightFieldNumber = 3,
+ kColorFieldNumber = 4,
+ };
+ // required uint64 layerref = 1;
+ bool has_layerref() const;
+ private:
+ bool _internal_has_layerref() const;
+ public:
+ void clear_layerref();
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref() const;
+ void set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_layerref() const;
+ void _internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional uint32 width = 2;
+ bool has_width() const;
+ private:
+ bool _internal_has_width() const;
+ public:
+ void clear_width();
+ ::PROTOBUF_NAMESPACE_ID::uint32 width() const;
+ void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width() const;
+ void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 height = 3;
+ bool has_height() const;
+ private:
+ bool _internal_has_height() const;
+ public:
+ void clear_height();
+ ::PROTOBUF_NAMESPACE_ID::uint32 height() const;
+ void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const;
+ void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 color = 4;
+ bool has_color() const;
+ private:
+ bool _internal_has_color() const;
+ public:
+ void clear_color();
+ ::PROTOBUF_NAMESPACE_ID::uint32 color() const;
+ void set_color(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_color() const;
+ void _internal_set_color(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.ColorPacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 width_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 height_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 color_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TexturePacket_Rect :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.TexturePacket.Rect) */ {
+ public:
+ TexturePacket_Rect();
+ virtual ~TexturePacket_Rect();
+
+ TexturePacket_Rect(const TexturePacket_Rect& from);
+ TexturePacket_Rect(TexturePacket_Rect&& from) noexcept
+ : TexturePacket_Rect() {
+ *this = ::std::move(from);
+ }
+
+ inline TexturePacket_Rect& operator=(const TexturePacket_Rect& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline TexturePacket_Rect& operator=(TexturePacket_Rect&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const TexturePacket_Rect& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TexturePacket_Rect* internal_default_instance() {
+ return reinterpret_cast<const TexturePacket_Rect*>(
+ &_TexturePacket_Rect_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 2;
+
+ friend void swap(TexturePacket_Rect& a, TexturePacket_Rect& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(TexturePacket_Rect* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TexturePacket_Rect* New() const final {
+ return CreateMaybeMessage<TexturePacket_Rect>(nullptr);
+ }
+
+ TexturePacket_Rect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<TexturePacket_Rect>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const TexturePacket_Rect& from);
+ void MergeFrom(const TexturePacket_Rect& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(TexturePacket_Rect* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.TexturePacket.Rect";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kXFieldNumber = 1,
+ kYFieldNumber = 2,
+ kWFieldNumber = 3,
+ kHFieldNumber = 4,
+ };
+ // optional float x = 1;
+ bool has_x() const;
+ private:
+ bool _internal_has_x() const;
+ public:
+ void clear_x();
+ float x() const;
+ void set_x(float value);
+ private:
+ float _internal_x() const;
+ void _internal_set_x(float value);
+ public:
+
+ // optional float y = 2;
+ bool has_y() const;
+ private:
+ bool _internal_has_y() const;
+ public:
+ void clear_y();
+ float y() const;
+ void set_y(float value);
+ private:
+ float _internal_y() const;
+ void _internal_set_y(float value);
+ public:
+
+ // optional float w = 3;
+ bool has_w() const;
+ private:
+ bool _internal_has_w() const;
+ public:
+ void clear_w();
+ float w() const;
+ void set_w(float value);
+ private:
+ float _internal_w() const;
+ void _internal_set_w(float value);
+ public:
+
+ // optional float h = 4;
+ bool has_h() const;
+ private:
+ bool _internal_has_h() const;
+ public:
+ void clear_h();
+ float h() const;
+ void set_h(float value);
+ private:
+ float _internal_h() const;
+ void _internal_set_h(float value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket.Rect)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ float x_;
+ float y_;
+ float w_;
+ float h_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TexturePacket_Size :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.TexturePacket.Size) */ {
+ public:
+ TexturePacket_Size();
+ virtual ~TexturePacket_Size();
+
+ TexturePacket_Size(const TexturePacket_Size& from);
+ TexturePacket_Size(TexturePacket_Size&& from) noexcept
+ : TexturePacket_Size() {
+ *this = ::std::move(from);
+ }
+
+ inline TexturePacket_Size& operator=(const TexturePacket_Size& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline TexturePacket_Size& operator=(TexturePacket_Size&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const TexturePacket_Size& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TexturePacket_Size* internal_default_instance() {
+ return reinterpret_cast<const TexturePacket_Size*>(
+ &_TexturePacket_Size_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 3;
+
+ friend void swap(TexturePacket_Size& a, TexturePacket_Size& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(TexturePacket_Size* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TexturePacket_Size* New() const final {
+ return CreateMaybeMessage<TexturePacket_Size>(nullptr);
+ }
+
+ TexturePacket_Size* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<TexturePacket_Size>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const TexturePacket_Size& from);
+ void MergeFrom(const TexturePacket_Size& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(TexturePacket_Size* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.TexturePacket.Size";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kWFieldNumber = 1,
+ kHFieldNumber = 2,
+ };
+ // optional int32 w = 1;
+ bool has_w() const;
+ private:
+ bool _internal_has_w() const;
+ public:
+ void clear_w();
+ ::PROTOBUF_NAMESPACE_ID::int32 w() const;
+ void set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_w() const;
+ void _internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // optional int32 h = 2;
+ bool has_h() const;
+ private:
+ bool _internal_has_h() const;
+ public:
+ void clear_h();
+ ::PROTOBUF_NAMESPACE_ID::int32 h() const;
+ void set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_h() const;
+ void _internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket.Size)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::int32 w_;
+ ::PROTOBUF_NAMESPACE_ID::int32 h_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TexturePacket_Matrix :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.TexturePacket.Matrix) */ {
+ public:
+ TexturePacket_Matrix();
+ virtual ~TexturePacket_Matrix();
+
+ TexturePacket_Matrix(const TexturePacket_Matrix& from);
+ TexturePacket_Matrix(TexturePacket_Matrix&& from) noexcept
+ : TexturePacket_Matrix() {
+ *this = ::std::move(from);
+ }
+
+ inline TexturePacket_Matrix& operator=(const TexturePacket_Matrix& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline TexturePacket_Matrix& operator=(TexturePacket_Matrix&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const TexturePacket_Matrix& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TexturePacket_Matrix* internal_default_instance() {
+ return reinterpret_cast<const TexturePacket_Matrix*>(
+ &_TexturePacket_Matrix_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 4;
+
+ friend void swap(TexturePacket_Matrix& a, TexturePacket_Matrix& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(TexturePacket_Matrix* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TexturePacket_Matrix* New() const final {
+ return CreateMaybeMessage<TexturePacket_Matrix>(nullptr);
+ }
+
+ TexturePacket_Matrix* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<TexturePacket_Matrix>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const TexturePacket_Matrix& from);
+ void MergeFrom(const TexturePacket_Matrix& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(TexturePacket_Matrix* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.TexturePacket.Matrix";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kMFieldNumber = 3,
+ kIs2DFieldNumber = 1,
+ kIsIdFieldNumber = 2,
+ };
+ // repeated float m = 3;
+ int m_size() const;
+ private:
+ int _internal_m_size() const;
+ public:
+ void clear_m();
+ private:
+ float _internal_m(int index) const;
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ _internal_m() const;
+ void _internal_add_m(float value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ _internal_mutable_m();
+ public:
+ float m(int index) const;
+ void set_m(int index, float value);
+ void add_m(float value);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ m() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ mutable_m();
+
+ // optional bool is2D = 1;
+ bool has_is2d() const;
+ private:
+ bool _internal_has_is2d() const;
+ public:
+ void clear_is2d();
+ bool is2d() const;
+ void set_is2d(bool value);
+ private:
+ bool _internal_is2d() const;
+ void _internal_set_is2d(bool value);
+ public:
+
+ // optional bool isId = 2;
+ bool has_isid() const;
+ private:
+ bool _internal_has_isid() const;
+ public:
+ void clear_isid();
+ bool isid() const;
+ void set_isid(bool value);
+ private:
+ bool _internal_isid() const;
+ void _internal_set_isid(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket.Matrix)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > m_;
+ bool is2d_;
+ bool isid_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TexturePacket_EffectMask :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.TexturePacket.EffectMask) */ {
+ public:
+ TexturePacket_EffectMask();
+ virtual ~TexturePacket_EffectMask();
+
+ TexturePacket_EffectMask(const TexturePacket_EffectMask& from);
+ TexturePacket_EffectMask(TexturePacket_EffectMask&& from) noexcept
+ : TexturePacket_EffectMask() {
+ *this = ::std::move(from);
+ }
+
+ inline TexturePacket_EffectMask& operator=(const TexturePacket_EffectMask& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline TexturePacket_EffectMask& operator=(TexturePacket_EffectMask&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const TexturePacket_EffectMask& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TexturePacket_EffectMask* internal_default_instance() {
+ return reinterpret_cast<const TexturePacket_EffectMask*>(
+ &_TexturePacket_EffectMask_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 5;
+
+ friend void swap(TexturePacket_EffectMask& a, TexturePacket_EffectMask& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(TexturePacket_EffectMask* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TexturePacket_EffectMask* New() const final {
+ return CreateMaybeMessage<TexturePacket_EffectMask>(nullptr);
+ }
+
+ TexturePacket_EffectMask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<TexturePacket_EffectMask>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const TexturePacket_EffectMask& from);
+ void MergeFrom(const TexturePacket_EffectMask& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(TexturePacket_EffectMask* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.TexturePacket.EffectMask";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kMSizeFieldNumber = 2,
+ kMMaskTransformFieldNumber = 3,
+ kMIs3DFieldNumber = 1,
+ };
+ // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
+ bool has_msize() const;
+ private:
+ bool _internal_has_msize() const;
+ public:
+ void clear_msize();
+ const ::mozilla::layers::layerscope::TexturePacket_Size& msize() const;
+ ::mozilla::layers::layerscope::TexturePacket_Size* release_msize();
+ ::mozilla::layers::layerscope::TexturePacket_Size* mutable_msize();
+ void set_allocated_msize(::mozilla::layers::layerscope::TexturePacket_Size* msize);
+ private:
+ const ::mozilla::layers::layerscope::TexturePacket_Size& _internal_msize() const;
+ ::mozilla::layers::layerscope::TexturePacket_Size* _internal_mutable_msize();
+ public:
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
+ bool has_mmasktransform() const;
+ private:
+ bool _internal_has_mmasktransform() const;
+ public:
+ void clear_mmasktransform();
+ const ::mozilla::layers::layerscope::TexturePacket_Matrix& mmasktransform() const;
+ ::mozilla::layers::layerscope::TexturePacket_Matrix* release_mmasktransform();
+ ::mozilla::layers::layerscope::TexturePacket_Matrix* mutable_mmasktransform();
+ void set_allocated_mmasktransform(::mozilla::layers::layerscope::TexturePacket_Matrix* mmasktransform);
+ private:
+ const ::mozilla::layers::layerscope::TexturePacket_Matrix& _internal_mmasktransform() const;
+ ::mozilla::layers::layerscope::TexturePacket_Matrix* _internal_mutable_mmasktransform();
+ public:
+
+ // optional bool mIs3D = 1;
+ bool has_mis3d() const;
+ private:
+ bool _internal_has_mis3d() const;
+ public:
+ void clear_mis3d();
+ bool mis3d() const;
+ void set_mis3d(bool value);
+ private:
+ bool _internal_mis3d() const;
+ void _internal_set_mis3d(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket.EffectMask)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::mozilla::layers::layerscope::TexturePacket_Size* msize_;
+ ::mozilla::layers::layerscope::TexturePacket_Matrix* mmasktransform_;
+ bool mis3d_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class TexturePacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.TexturePacket) */ {
+ public:
+ TexturePacket();
+ virtual ~TexturePacket();
+
+ TexturePacket(const TexturePacket& from);
+ TexturePacket(TexturePacket&& from) noexcept
+ : TexturePacket() {
+ *this = ::std::move(from);
+ }
+
+ inline TexturePacket& operator=(const TexturePacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline TexturePacket& operator=(TexturePacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const TexturePacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const TexturePacket* internal_default_instance() {
+ return reinterpret_cast<const TexturePacket*>(
+ &_TexturePacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 6;
+
+ friend void swap(TexturePacket& a, TexturePacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(TexturePacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline TexturePacket* New() const final {
+ return CreateMaybeMessage<TexturePacket>(nullptr);
+ }
+
+ TexturePacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<TexturePacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const TexturePacket& from);
+ void MergeFrom(const TexturePacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(TexturePacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.TexturePacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef TexturePacket_Rect Rect;
+ typedef TexturePacket_Size Size;
+ typedef TexturePacket_Matrix Matrix;
+ typedef TexturePacket_EffectMask EffectMask;
+
+ typedef TexturePacket_Filter Filter;
+ static constexpr Filter GOOD =
+ TexturePacket_Filter_GOOD;
+ static constexpr Filter LINEAR =
+ TexturePacket_Filter_LINEAR;
+ static constexpr Filter POINT =
+ TexturePacket_Filter_POINT;
+ static inline bool Filter_IsValid(int value) {
+ return TexturePacket_Filter_IsValid(value);
+ }
+ static constexpr Filter Filter_MIN =
+ TexturePacket_Filter_Filter_MIN;
+ static constexpr Filter Filter_MAX =
+ TexturePacket_Filter_Filter_MAX;
+ static constexpr int Filter_ARRAYSIZE =
+ TexturePacket_Filter_Filter_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& Filter_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, Filter>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function Filter_Name.");
+ return TexturePacket_Filter_Name(enum_t_value);
+ }
+ static inline bool Filter_Parse(const std::string& name,
+ Filter* value) {
+ return TexturePacket_Filter_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kDataFieldNumber = 9,
+ kMTextureCoordsFieldNumber = 10,
+ kMaskFieldNumber = 21,
+ kLayerrefFieldNumber = 1,
+ kWidthFieldNumber = 2,
+ kHeightFieldNumber = 3,
+ kStrideFieldNumber = 4,
+ kNameFieldNumber = 5,
+ kTargetFieldNumber = 6,
+ kDataformatFieldNumber = 7,
+ kGlcontextFieldNumber = 8,
+ kMFilterFieldNumber = 12,
+ kMPremultipliedFieldNumber = 11,
+ kIsMaskFieldNumber = 20,
+ };
+ // optional bytes data = 9;
+ bool has_data() const;
+ private:
+ bool _internal_has_data() const;
+ public:
+ void clear_data();
+ const std::string& data() const;
+ void set_data(const std::string& value);
+ void set_data(std::string&& value);
+ void set_data(const char* value);
+ void set_data(const void* value, size_t size);
+ std::string* mutable_data();
+ std::string* release_data();
+ void set_allocated_data(std::string* data);
+ private:
+ const std::string& _internal_data() const;
+ void _internal_set_data(const std::string& value);
+ std::string* _internal_mutable_data();
+ public:
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
+ bool has_mtexturecoords() const;
+ private:
+ bool _internal_has_mtexturecoords() const;
+ public:
+ void clear_mtexturecoords();
+ const ::mozilla::layers::layerscope::TexturePacket_Rect& mtexturecoords() const;
+ ::mozilla::layers::layerscope::TexturePacket_Rect* release_mtexturecoords();
+ ::mozilla::layers::layerscope::TexturePacket_Rect* mutable_mtexturecoords();
+ void set_allocated_mtexturecoords(::mozilla::layers::layerscope::TexturePacket_Rect* mtexturecoords);
+ private:
+ const ::mozilla::layers::layerscope::TexturePacket_Rect& _internal_mtexturecoords() const;
+ ::mozilla::layers::layerscope::TexturePacket_Rect* _internal_mutable_mtexturecoords();
+ public:
+
+ // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
+ bool has_mask() const;
+ private:
+ bool _internal_has_mask() const;
+ public:
+ void clear_mask();
+ const ::mozilla::layers::layerscope::TexturePacket_EffectMask& mask() const;
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask* release_mask();
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask* mutable_mask();
+ void set_allocated_mask(::mozilla::layers::layerscope::TexturePacket_EffectMask* mask);
+ private:
+ const ::mozilla::layers::layerscope::TexturePacket_EffectMask& _internal_mask() const;
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask* _internal_mutable_mask();
+ public:
+
+ // required uint64 layerref = 1;
+ bool has_layerref() const;
+ private:
+ bool _internal_has_layerref() const;
+ public:
+ void clear_layerref();
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref() const;
+ void set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_layerref() const;
+ void _internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional uint32 width = 2;
+ bool has_width() const;
+ private:
+ bool _internal_has_width() const;
+ public:
+ void clear_width();
+ ::PROTOBUF_NAMESPACE_ID::uint32 width() const;
+ void set_width(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_width() const;
+ void _internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 height = 3;
+ bool has_height() const;
+ private:
+ bool _internal_has_height() const;
+ public:
+ void clear_height();
+ ::PROTOBUF_NAMESPACE_ID::uint32 height() const;
+ void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const;
+ void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 stride = 4;
+ bool has_stride() const;
+ private:
+ bool _internal_has_stride() const;
+ public:
+ void clear_stride();
+ ::PROTOBUF_NAMESPACE_ID::uint32 stride() const;
+ void set_stride(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_stride() const;
+ void _internal_set_stride(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 name = 5;
+ bool has_name() const;
+ private:
+ bool _internal_has_name() const;
+ public:
+ void clear_name();
+ ::PROTOBUF_NAMESPACE_ID::uint32 name() const;
+ void set_name(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_name() const;
+ void _internal_set_name(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 target = 6;
+ bool has_target() const;
+ private:
+ bool _internal_has_target() const;
+ public:
+ void clear_target();
+ ::PROTOBUF_NAMESPACE_ID::uint32 target() const;
+ void set_target(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_target() const;
+ void _internal_set_target(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint32 dataformat = 7;
+ bool has_dataformat() const;
+ private:
+ bool _internal_has_dataformat() const;
+ public:
+ void clear_dataformat();
+ ::PROTOBUF_NAMESPACE_ID::uint32 dataformat() const;
+ void set_dataformat(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_dataformat() const;
+ void _internal_set_dataformat(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint64 glcontext = 8;
+ bool has_glcontext() const;
+ private:
+ bool _internal_has_glcontext() const;
+ public:
+ void clear_glcontext();
+ ::PROTOBUF_NAMESPACE_ID::uint64 glcontext() const;
+ void set_glcontext(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_glcontext() const;
+ void _internal_set_glcontext(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
+ bool has_mfilter() const;
+ private:
+ bool _internal_has_mfilter() const;
+ public:
+ void clear_mfilter();
+ ::mozilla::layers::layerscope::TexturePacket_Filter mfilter() const;
+ void set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value);
+ private:
+ ::mozilla::layers::layerscope::TexturePacket_Filter _internal_mfilter() const;
+ void _internal_set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value);
+ public:
+
+ // optional bool mPremultiplied = 11;
+ bool has_mpremultiplied() const;
+ private:
+ bool _internal_has_mpremultiplied() const;
+ public:
+ void clear_mpremultiplied();
+ bool mpremultiplied() const;
+ void set_mpremultiplied(bool value);
+ private:
+ bool _internal_mpremultiplied() const;
+ void _internal_set_mpremultiplied(bool value);
+ public:
+
+ // optional bool isMask = 20;
+ bool has_ismask() const;
+ private:
+ bool _internal_has_ismask() const;
+ public:
+ void clear_ismask();
+ bool ismask() const;
+ void set_ismask(bool value);
+ private:
+ bool _internal_ismask() const;
+ void _internal_set_ismask(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.TexturePacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
+ ::mozilla::layers::layerscope::TexturePacket_Rect* mtexturecoords_;
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask* mask_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 width_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 height_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 stride_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 name_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 target_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 dataformat_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 glcontext_;
+ int mfilter_;
+ bool mpremultiplied_;
+ bool ismask_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer_Size :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer.Size) */ {
+ public:
+ LayersPacket_Layer_Size();
+ virtual ~LayersPacket_Layer_Size();
+
+ LayersPacket_Layer_Size(const LayersPacket_Layer_Size& from);
+ LayersPacket_Layer_Size(LayersPacket_Layer_Size&& from) noexcept
+ : LayersPacket_Layer_Size() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer_Size& operator=(const LayersPacket_Layer_Size& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer_Size& operator=(LayersPacket_Layer_Size&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer_Size& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer_Size* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer_Size*>(
+ &_LayersPacket_Layer_Size_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 7;
+
+ friend void swap(LayersPacket_Layer_Size& a, LayersPacket_Layer_Size& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer_Size* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer_Size* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Size>(nullptr);
+ }
+
+ LayersPacket_Layer_Size* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Size>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer_Size& from);
+ void MergeFrom(const LayersPacket_Layer_Size& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer_Size* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Size";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kWFieldNumber = 1,
+ kHFieldNumber = 2,
+ };
+ // optional int32 w = 1;
+ bool has_w() const;
+ private:
+ bool _internal_has_w() const;
+ public:
+ void clear_w();
+ ::PROTOBUF_NAMESPACE_ID::int32 w() const;
+ void set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_w() const;
+ void _internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // optional int32 h = 2;
+ bool has_h() const;
+ private:
+ bool _internal_has_h() const;
+ public:
+ void clear_h();
+ ::PROTOBUF_NAMESPACE_ID::int32 h() const;
+ void set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_h() const;
+ void _internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer.Size)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::int32 w_;
+ ::PROTOBUF_NAMESPACE_ID::int32 h_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer_Rect :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer.Rect) */ {
+ public:
+ LayersPacket_Layer_Rect();
+ virtual ~LayersPacket_Layer_Rect();
+
+ LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect& from);
+ LayersPacket_Layer_Rect(LayersPacket_Layer_Rect&& from) noexcept
+ : LayersPacket_Layer_Rect() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer_Rect& operator=(const LayersPacket_Layer_Rect& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer_Rect& operator=(LayersPacket_Layer_Rect&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer_Rect& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer_Rect* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer_Rect*>(
+ &_LayersPacket_Layer_Rect_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 8;
+
+ friend void swap(LayersPacket_Layer_Rect& a, LayersPacket_Layer_Rect& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer_Rect* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer_Rect* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Rect>(nullptr);
+ }
+
+ LayersPacket_Layer_Rect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Rect>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer_Rect& from);
+ void MergeFrom(const LayersPacket_Layer_Rect& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer_Rect* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Rect";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kXFieldNumber = 1,
+ kYFieldNumber = 2,
+ kWFieldNumber = 3,
+ kHFieldNumber = 4,
+ };
+ // optional int32 x = 1;
+ bool has_x() const;
+ private:
+ bool _internal_has_x() const;
+ public:
+ void clear_x();
+ ::PROTOBUF_NAMESPACE_ID::int32 x() const;
+ void set_x(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_x() const;
+ void _internal_set_x(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // optional int32 y = 2;
+ bool has_y() const;
+ private:
+ bool _internal_has_y() const;
+ public:
+ void clear_y();
+ ::PROTOBUF_NAMESPACE_ID::int32 y() const;
+ void set_y(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_y() const;
+ void _internal_set_y(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // optional int32 w = 3;
+ bool has_w() const;
+ private:
+ bool _internal_has_w() const;
+ public:
+ void clear_w();
+ ::PROTOBUF_NAMESPACE_ID::int32 w() const;
+ void set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_w() const;
+ void _internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // optional int32 h = 4;
+ bool has_h() const;
+ private:
+ bool _internal_has_h() const;
+ public:
+ void clear_h();
+ ::PROTOBUF_NAMESPACE_ID::int32 h() const;
+ void set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::int32 _internal_h() const;
+ void _internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer.Rect)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::int32 x_;
+ ::PROTOBUF_NAMESPACE_ID::int32 y_;
+ ::PROTOBUF_NAMESPACE_ID::int32 w_;
+ ::PROTOBUF_NAMESPACE_ID::int32 h_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer_Region :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer.Region) */ {
+ public:
+ LayersPacket_Layer_Region();
+ virtual ~LayersPacket_Layer_Region();
+
+ LayersPacket_Layer_Region(const LayersPacket_Layer_Region& from);
+ LayersPacket_Layer_Region(LayersPacket_Layer_Region&& from) noexcept
+ : LayersPacket_Layer_Region() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer_Region& operator=(const LayersPacket_Layer_Region& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer_Region& operator=(LayersPacket_Layer_Region&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer_Region& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer_Region* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer_Region*>(
+ &_LayersPacket_Layer_Region_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 9;
+
+ friend void swap(LayersPacket_Layer_Region& a, LayersPacket_Layer_Region& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer_Region* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer_Region* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Region>(nullptr);
+ }
+
+ LayersPacket_Layer_Region* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Region>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer_Region& from);
+ void MergeFrom(const LayersPacket_Layer_Region& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer_Region* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Region";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kRFieldNumber = 1,
+ };
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
+ int r_size() const;
+ private:
+ int _internal_r_size() const;
+ public:
+ void clear_r();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* mutable_r(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >*
+ mutable_r();
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& _internal_r(int index) const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* _internal_add_r();
+ public:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& r(int index) const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* add_r();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >&
+ r() const;
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer.Region)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect > r_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer_Matrix :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) */ {
+ public:
+ LayersPacket_Layer_Matrix();
+ virtual ~LayersPacket_Layer_Matrix();
+
+ LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix& from);
+ LayersPacket_Layer_Matrix(LayersPacket_Layer_Matrix&& from) noexcept
+ : LayersPacket_Layer_Matrix() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer_Matrix& operator=(const LayersPacket_Layer_Matrix& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer_Matrix& operator=(LayersPacket_Layer_Matrix&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer_Matrix& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer_Matrix* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer_Matrix*>(
+ &_LayersPacket_Layer_Matrix_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 10;
+
+ friend void swap(LayersPacket_Layer_Matrix& a, LayersPacket_Layer_Matrix& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer_Matrix* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer_Matrix* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Matrix>(nullptr);
+ }
+
+ LayersPacket_Layer_Matrix* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Matrix>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer_Matrix& from);
+ void MergeFrom(const LayersPacket_Layer_Matrix& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer_Matrix* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Matrix";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kMFieldNumber = 3,
+ kIs2DFieldNumber = 1,
+ kIsIdFieldNumber = 2,
+ };
+ // repeated float m = 3;
+ int m_size() const;
+ private:
+ int _internal_m_size() const;
+ public:
+ void clear_m();
+ private:
+ float _internal_m(int index) const;
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ _internal_m() const;
+ void _internal_add_m(float value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ _internal_mutable_m();
+ public:
+ float m(int index) const;
+ void set_m(int index, float value);
+ void add_m(float value);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ m() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ mutable_m();
+
+ // optional bool is2D = 1;
+ bool has_is2d() const;
+ private:
+ bool _internal_has_is2d() const;
+ public:
+ void clear_is2d();
+ bool is2d() const;
+ void set_is2d(bool value);
+ private:
+ bool _internal_is2d() const;
+ void _internal_set_is2d(bool value);
+ public:
+
+ // optional bool isId = 2;
+ bool has_isid() const;
+ private:
+ bool _internal_has_isid() const;
+ public:
+ void clear_isid();
+ bool isid() const;
+ void set_isid(bool value);
+ private:
+ bool _internal_isid() const;
+ void _internal_set_isid(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer.Matrix)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > m_;
+ bool is2d_;
+ bool isid_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer_Shadow :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) */ {
+ public:
+ LayersPacket_Layer_Shadow();
+ virtual ~LayersPacket_Layer_Shadow();
+
+ LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow& from);
+ LayersPacket_Layer_Shadow(LayersPacket_Layer_Shadow&& from) noexcept
+ : LayersPacket_Layer_Shadow() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer_Shadow& operator=(const LayersPacket_Layer_Shadow& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer_Shadow& operator=(LayersPacket_Layer_Shadow&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer_Shadow& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer_Shadow* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer_Shadow*>(
+ &_LayersPacket_Layer_Shadow_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 11;
+
+ friend void swap(LayersPacket_Layer_Shadow& a, LayersPacket_Layer_Shadow& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer_Shadow* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer_Shadow* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Shadow>(nullptr);
+ }
+
+ LayersPacket_Layer_Shadow* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer_Shadow>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer_Shadow& from);
+ void MergeFrom(const LayersPacket_Layer_Shadow& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer_Shadow* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer.Shadow";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kClipFieldNumber = 1,
+ kTransformFieldNumber = 2,
+ kVRegionFieldNumber = 3,
+ };
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
+ bool has_clip() const;
+ private:
+ bool _internal_has_clip() const;
+ public:
+ void clear_clip();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& clip() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* release_clip();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* mutable_clip();
+ void set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& _internal_clip() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* _internal_mutable_clip();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
+ bool has_transform() const;
+ private:
+ bool _internal_has_transform() const;
+ public:
+ void clear_transform();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& transform() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* release_transform();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* mutable_transform();
+ void set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& _internal_transform() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* _internal_mutable_transform();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
+ bool has_vregion() const;
+ private:
+ bool _internal_has_vregion() const;
+ public:
+ void clear_vregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_vregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_vregion();
+ void set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_vregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_vregion();
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer.Shadow)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket_Layer :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket.Layer) */ {
+ public:
+ LayersPacket_Layer();
+ virtual ~LayersPacket_Layer();
+
+ LayersPacket_Layer(const LayersPacket_Layer& from);
+ LayersPacket_Layer(LayersPacket_Layer&& from) noexcept
+ : LayersPacket_Layer() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket_Layer& operator=(const LayersPacket_Layer& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket_Layer& operator=(LayersPacket_Layer&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket_Layer& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket_Layer* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket_Layer*>(
+ &_LayersPacket_Layer_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 12;
+
+ friend void swap(LayersPacket_Layer& a, LayersPacket_Layer& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket_Layer* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket_Layer* New() const final {
+ return CreateMaybeMessage<LayersPacket_Layer>(nullptr);
+ }
+
+ LayersPacket_Layer* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket_Layer>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket_Layer& from);
+ void MergeFrom(const LayersPacket_Layer& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket_Layer* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket.Layer";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef LayersPacket_Layer_Size Size;
+ typedef LayersPacket_Layer_Rect Rect;
+ typedef LayersPacket_Layer_Region Region;
+ typedef LayersPacket_Layer_Matrix Matrix;
+ typedef LayersPacket_Layer_Shadow Shadow;
+
+ typedef LayersPacket_Layer_LayerType LayerType;
+ static constexpr LayerType UnknownLayer =
+ LayersPacket_Layer_LayerType_UnknownLayer;
+ static constexpr LayerType LayerManager =
+ LayersPacket_Layer_LayerType_LayerManager;
+ static constexpr LayerType ContainerLayer =
+ LayersPacket_Layer_LayerType_ContainerLayer;
+ static constexpr LayerType PaintedLayer =
+ LayersPacket_Layer_LayerType_PaintedLayer;
+ static constexpr LayerType CanvasLayer =
+ LayersPacket_Layer_LayerType_CanvasLayer;
+ static constexpr LayerType ImageLayer =
+ LayersPacket_Layer_LayerType_ImageLayer;
+ static constexpr LayerType ColorLayer =
+ LayersPacket_Layer_LayerType_ColorLayer;
+ static constexpr LayerType RefLayer =
+ LayersPacket_Layer_LayerType_RefLayer;
+ static constexpr LayerType ReadbackLayer =
+ LayersPacket_Layer_LayerType_ReadbackLayer;
+ static constexpr LayerType DisplayItemLayer =
+ LayersPacket_Layer_LayerType_DisplayItemLayer;
+ static inline bool LayerType_IsValid(int value) {
+ return LayersPacket_Layer_LayerType_IsValid(value);
+ }
+ static constexpr LayerType LayerType_MIN =
+ LayersPacket_Layer_LayerType_LayerType_MIN;
+ static constexpr LayerType LayerType_MAX =
+ LayersPacket_Layer_LayerType_LayerType_MAX;
+ static constexpr int LayerType_ARRAYSIZE =
+ LayersPacket_Layer_LayerType_LayerType_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& LayerType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, LayerType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function LayerType_Name.");
+ return LayersPacket_Layer_LayerType_Name(enum_t_value);
+ }
+ static inline bool LayerType_Parse(const std::string& name,
+ LayerType* value) {
+ return LayersPacket_Layer_LayerType_Parse(name, value);
+ }
+
+ typedef LayersPacket_Layer_ScrollingDirect ScrollingDirect;
+ static constexpr ScrollingDirect VERTICAL =
+ LayersPacket_Layer_ScrollingDirect_VERTICAL;
+ static constexpr ScrollingDirect HORIZONTAL =
+ LayersPacket_Layer_ScrollingDirect_HORIZONTAL;
+ static inline bool ScrollingDirect_IsValid(int value) {
+ return LayersPacket_Layer_ScrollingDirect_IsValid(value);
+ }
+ static constexpr ScrollingDirect ScrollingDirect_MIN =
+ LayersPacket_Layer_ScrollingDirect_ScrollingDirect_MIN;
+ static constexpr ScrollingDirect ScrollingDirect_MAX =
+ LayersPacket_Layer_ScrollingDirect_ScrollingDirect_MAX;
+ static constexpr int ScrollingDirect_ARRAYSIZE =
+ LayersPacket_Layer_ScrollingDirect_ScrollingDirect_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& ScrollingDirect_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, ScrollingDirect>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function ScrollingDirect_Name.");
+ return LayersPacket_Layer_ScrollingDirect_Name(enum_t_value);
+ }
+ static inline bool ScrollingDirect_Parse(const std::string& name,
+ ScrollingDirect* value) {
+ return LayersPacket_Layer_ScrollingDirect_Parse(name, value);
+ }
+
+ typedef LayersPacket_Layer_Filter Filter;
+ static constexpr Filter FILTER_FAST =
+ LayersPacket_Layer_Filter_FILTER_FAST;
+ static constexpr Filter FILTER_GOOD =
+ LayersPacket_Layer_Filter_FILTER_GOOD;
+ static constexpr Filter FILTER_BEST =
+ LayersPacket_Layer_Filter_FILTER_BEST;
+ static constexpr Filter FILTER_NEAREST =
+ LayersPacket_Layer_Filter_FILTER_NEAREST;
+ static constexpr Filter FILTER_BILINEAR =
+ LayersPacket_Layer_Filter_FILTER_BILINEAR;
+ static constexpr Filter FILTER_GAUSSIAN =
+ LayersPacket_Layer_Filter_FILTER_GAUSSIAN;
+ static constexpr Filter FILTER_SENTINEL =
+ LayersPacket_Layer_Filter_FILTER_SENTINEL;
+ static constexpr Filter FILTER_LINEAR =
+ LayersPacket_Layer_Filter_FILTER_LINEAR;
+ static constexpr Filter FILTER_POINT =
+ LayersPacket_Layer_Filter_FILTER_POINT;
+ static inline bool Filter_IsValid(int value) {
+ return LayersPacket_Layer_Filter_IsValid(value);
+ }
+ static constexpr Filter Filter_MIN =
+ LayersPacket_Layer_Filter_Filter_MIN;
+ static constexpr Filter Filter_MAX =
+ LayersPacket_Layer_Filter_Filter_MAX;
+ static constexpr int Filter_ARRAYSIZE =
+ LayersPacket_Layer_Filter_Filter_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& Filter_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, Filter>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function Filter_Name.");
+ return LayersPacket_Layer_Filter_Name(enum_t_value);
+ }
+ static inline bool Filter_Parse(const std::string& name,
+ Filter* value) {
+ return LayersPacket_Layer_Filter_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kDisplayListLogFieldNumber = 106,
+ kClipFieldNumber = 10,
+ kTransformFieldNumber = 11,
+ kVRegionFieldNumber = 12,
+ kShadowFieldNumber = 13,
+ kHitRegionFieldNumber = 20,
+ kDispatchRegionFieldNumber = 21,
+ kNoActionRegionFieldNumber = 22,
+ kHPanRegionFieldNumber = 23,
+ kVPanRegionFieldNumber = 24,
+ kValidFieldNumber = 100,
+ kSizeFieldNumber = 104,
+ kPtrFieldNumber = 2,
+ kParentPtrFieldNumber = 3,
+ kTypeFieldNumber = 1,
+ kOpacityFieldNumber = 14,
+ kBarIDFieldNumber = 18,
+ kMaskFieldNumber = 19,
+ kCOpaqueFieldNumber = 15,
+ kCAlphaFieldNumber = 16,
+ kColorFieldNumber = 101,
+ kRefIDFieldNumber = 103,
+ kFilterFieldNumber = 102,
+ kDisplayListLogLengthFieldNumber = 105,
+ kDirectFieldNumber = 17,
+ };
+ // optional bytes displayListLog = 106;
+ bool has_displaylistlog() const;
+ private:
+ bool _internal_has_displaylistlog() const;
+ public:
+ void clear_displaylistlog();
+ const std::string& displaylistlog() const;
+ void set_displaylistlog(const std::string& value);
+ void set_displaylistlog(std::string&& value);
+ void set_displaylistlog(const char* value);
+ void set_displaylistlog(const void* value, size_t size);
+ std::string* mutable_displaylistlog();
+ std::string* release_displaylistlog();
+ void set_allocated_displaylistlog(std::string* displaylistlog);
+ private:
+ const std::string& _internal_displaylistlog() const;
+ void _internal_set_displaylistlog(const std::string& value);
+ std::string* _internal_mutable_displaylistlog();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
+ bool has_clip() const;
+ private:
+ bool _internal_has_clip() const;
+ public:
+ void clear_clip();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& clip() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* release_clip();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* mutable_clip();
+ void set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& _internal_clip() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* _internal_mutable_clip();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
+ bool has_transform() const;
+ private:
+ bool _internal_has_transform() const;
+ public:
+ void clear_transform();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& transform() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* release_transform();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* mutable_transform();
+ void set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& _internal_transform() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* _internal_mutable_transform();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
+ bool has_vregion() const;
+ private:
+ bool _internal_has_vregion() const;
+ public:
+ void clear_vregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_vregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_vregion();
+ void set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_vregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_vregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
+ bool has_shadow() const;
+ private:
+ bool _internal_has_shadow() const;
+ public:
+ void clear_shadow();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& shadow() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* release_shadow();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* mutable_shadow();
+ void set_allocated_shadow(::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* shadow);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& _internal_shadow() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* _internal_mutable_shadow();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
+ bool has_hitregion() const;
+ private:
+ bool _internal_has_hitregion() const;
+ public:
+ void clear_hitregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& hitregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_hitregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_hitregion();
+ void set_allocated_hitregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hitregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_hitregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_hitregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
+ bool has_dispatchregion() const;
+ private:
+ bool _internal_has_dispatchregion() const;
+ public:
+ void clear_dispatchregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& dispatchregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_dispatchregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_dispatchregion();
+ void set_allocated_dispatchregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* dispatchregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_dispatchregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_dispatchregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
+ bool has_noactionregion() const;
+ private:
+ bool _internal_has_noactionregion() const;
+ public:
+ void clear_noactionregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& noactionregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_noactionregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_noactionregion();
+ void set_allocated_noactionregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* noactionregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_noactionregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_noactionregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
+ bool has_hpanregion() const;
+ private:
+ bool _internal_has_hpanregion() const;
+ public:
+ void clear_hpanregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& hpanregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_hpanregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_hpanregion();
+ void set_allocated_hpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hpanregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_hpanregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_hpanregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
+ bool has_vpanregion() const;
+ private:
+ bool _internal_has_vpanregion() const;
+ public:
+ void clear_vpanregion();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& vpanregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_vpanregion();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_vpanregion();
+ void set_allocated_vpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vpanregion);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_vpanregion() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_vpanregion();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
+ bool has_valid() const;
+ private:
+ bool _internal_has_valid() const;
+ public:
+ void clear_valid();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& valid() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* release_valid();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* mutable_valid();
+ void set_allocated_valid(::mozilla::layers::layerscope::LayersPacket_Layer_Region* valid);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& _internal_valid() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* _internal_mutable_valid();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
+ bool has_size() const;
+ private:
+ bool _internal_has_size() const;
+ public:
+ void clear_size();
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& size() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size* release_size();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size* mutable_size();
+ void set_allocated_size(::mozilla::layers::layerscope::LayersPacket_Layer_Size* size);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& _internal_size() const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size* _internal_mutable_size();
+ public:
+
+ // required uint64 ptr = 2;
+ bool has_ptr() const;
+ private:
+ bool _internal_has_ptr() const;
+ public:
+ void clear_ptr();
+ ::PROTOBUF_NAMESPACE_ID::uint64 ptr() const;
+ void set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_ptr() const;
+ void _internal_set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // required uint64 parentPtr = 3;
+ bool has_parentptr() const;
+ private:
+ bool _internal_has_parentptr() const;
+ public:
+ void clear_parentptr();
+ ::PROTOBUF_NAMESPACE_ID::uint64 parentptr() const;
+ void set_parentptr(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_parentptr() const;
+ void _internal_set_parentptr(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+ bool has_type() const;
+ private:
+ bool _internal_has_type() const;
+ public:
+ void clear_type();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType type() const;
+ void set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value);
+ private:
+ ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType _internal_type() const;
+ void _internal_set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value);
+ public:
+
+ // optional float opacity = 14;
+ bool has_opacity() const;
+ private:
+ bool _internal_has_opacity() const;
+ public:
+ void clear_opacity();
+ float opacity() const;
+ void set_opacity(float value);
+ private:
+ float _internal_opacity() const;
+ void _internal_set_opacity(float value);
+ public:
+
+ // optional uint64 barID = 18;
+ bool has_barid() const;
+ private:
+ bool _internal_has_barid() const;
+ public:
+ void clear_barid();
+ ::PROTOBUF_NAMESPACE_ID::uint64 barid() const;
+ void set_barid(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_barid() const;
+ void _internal_set_barid(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional uint64 mask = 19;
+ bool has_mask() const;
+ private:
+ bool _internal_has_mask() const;
+ public:
+ void clear_mask();
+ ::PROTOBUF_NAMESPACE_ID::uint64 mask() const;
+ void set_mask(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_mask() const;
+ void _internal_set_mask(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional bool cOpaque = 15;
+ bool has_copaque() const;
+ private:
+ bool _internal_has_copaque() const;
+ public:
+ void clear_copaque();
+ bool copaque() const;
+ void set_copaque(bool value);
+ private:
+ bool _internal_copaque() const;
+ void _internal_set_copaque(bool value);
+ public:
+
+ // optional bool cAlpha = 16;
+ bool has_calpha() const;
+ private:
+ bool _internal_has_calpha() const;
+ public:
+ void clear_calpha();
+ bool calpha() const;
+ void set_calpha(bool value);
+ private:
+ bool _internal_calpha() const;
+ void _internal_set_calpha(bool value);
+ public:
+
+ // optional uint32 color = 101;
+ bool has_color() const;
+ private:
+ bool _internal_has_color() const;
+ public:
+ void clear_color();
+ ::PROTOBUF_NAMESPACE_ID::uint32 color() const;
+ void set_color(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_color() const;
+ void _internal_set_color(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional uint64 refID = 103;
+ bool has_refid() const;
+ private:
+ bool _internal_has_refid() const;
+ public:
+ void clear_refid();
+ ::PROTOBUF_NAMESPACE_ID::uint64 refid() const;
+ void set_refid(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_refid() const;
+ void _internal_set_refid(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
+ bool has_filter() const;
+ private:
+ bool _internal_has_filter() const;
+ public:
+ void clear_filter();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Filter filter() const;
+ void set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value);
+ private:
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Filter _internal_filter() const;
+ void _internal_set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value);
+ public:
+
+ // optional uint32 displayListLogLength = 105;
+ bool has_displaylistloglength() const;
+ private:
+ bool _internal_has_displaylistloglength() const;
+ public:
+ void clear_displaylistloglength();
+ ::PROTOBUF_NAMESPACE_ID::uint32 displaylistloglength() const;
+ void set_displaylistloglength(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_displaylistloglength() const;
+ void _internal_set_displaylistloglength(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
+ bool has_direct() const;
+ private:
+ bool _internal_has_direct() const;
+ public:
+ void clear_direct();
+ ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect direct() const;
+ void set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value);
+ private:
+ ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect _internal_direct() const;
+ void _internal_set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket.Layer)
+ private:
+ class _Internal;
+
+ // helper for ByteSizeLong()
+ size_t RequiredFieldsByteSizeFallback() const;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr displaylistlog_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* shadow_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* hitregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* dispatchregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* noactionregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* hpanregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* vpanregion_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* valid_;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size* size_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 ptr_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 parentptr_;
+ int type_;
+ float opacity_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 barid_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 mask_;
+ bool copaque_;
+ bool calpha_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 color_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 refid_;
+ int filter_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 displaylistloglength_;
+ int direct_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class LayersPacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.LayersPacket) */ {
+ public:
+ LayersPacket();
+ virtual ~LayersPacket();
+
+ LayersPacket(const LayersPacket& from);
+ LayersPacket(LayersPacket&& from) noexcept
+ : LayersPacket() {
+ *this = ::std::move(from);
+ }
+
+ inline LayersPacket& operator=(const LayersPacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline LayersPacket& operator=(LayersPacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const LayersPacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const LayersPacket* internal_default_instance() {
+ return reinterpret_cast<const LayersPacket*>(
+ &_LayersPacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 13;
+
+ friend void swap(LayersPacket& a, LayersPacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(LayersPacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline LayersPacket* New() const final {
+ return CreateMaybeMessage<LayersPacket>(nullptr);
+ }
+
+ LayersPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<LayersPacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const LayersPacket& from);
+ void MergeFrom(const LayersPacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(LayersPacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.LayersPacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef LayersPacket_Layer Layer;
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kLayerFieldNumber = 1,
+ };
+ // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
+ int layer_size() const;
+ private:
+ int _internal_layer_size() const;
+ public:
+ void clear_layer();
+ ::mozilla::layers::layerscope::LayersPacket_Layer* mutable_layer(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >*
+ mutable_layer();
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer& _internal_layer(int index) const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer* _internal_add_layer();
+ public:
+ const ::mozilla::layers::layerscope::LayersPacket_Layer& layer(int index) const;
+ ::mozilla::layers::layerscope::LayersPacket_Layer* add_layer();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >&
+ layer() const;
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.LayersPacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer > layer_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class MetaPacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.MetaPacket) */ {
+ public:
+ MetaPacket();
+ virtual ~MetaPacket();
+
+ MetaPacket(const MetaPacket& from);
+ MetaPacket(MetaPacket&& from) noexcept
+ : MetaPacket() {
+ *this = ::std::move(from);
+ }
+
+ inline MetaPacket& operator=(const MetaPacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline MetaPacket& operator=(MetaPacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const MetaPacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const MetaPacket* internal_default_instance() {
+ return reinterpret_cast<const MetaPacket*>(
+ &_MetaPacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 14;
+
+ friend void swap(MetaPacket& a, MetaPacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(MetaPacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline MetaPacket* New() const final {
+ return CreateMaybeMessage<MetaPacket>(nullptr);
+ }
+
+ MetaPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<MetaPacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const MetaPacket& from);
+ void MergeFrom(const MetaPacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(MetaPacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.MetaPacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kComposedByHwcFieldNumber = 1,
+ };
+ // optional bool composedByHwc = 1;
+ bool has_composedbyhwc() const;
+ private:
+ bool _internal_has_composedbyhwc() const;
+ public:
+ void clear_composedbyhwc();
+ bool composedbyhwc() const;
+ void set_composedbyhwc(bool value);
+ private:
+ bool _internal_composedbyhwc() const;
+ void _internal_set_composedbyhwc(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.MetaPacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ bool composedbyhwc_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class DrawPacket_Rect :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.DrawPacket.Rect) */ {
+ public:
+ DrawPacket_Rect();
+ virtual ~DrawPacket_Rect();
+
+ DrawPacket_Rect(const DrawPacket_Rect& from);
+ DrawPacket_Rect(DrawPacket_Rect&& from) noexcept
+ : DrawPacket_Rect() {
+ *this = ::std::move(from);
+ }
+
+ inline DrawPacket_Rect& operator=(const DrawPacket_Rect& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline DrawPacket_Rect& operator=(DrawPacket_Rect&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const DrawPacket_Rect& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DrawPacket_Rect* internal_default_instance() {
+ return reinterpret_cast<const DrawPacket_Rect*>(
+ &_DrawPacket_Rect_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 15;
+
+ friend void swap(DrawPacket_Rect& a, DrawPacket_Rect& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(DrawPacket_Rect* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DrawPacket_Rect* New() const final {
+ return CreateMaybeMessage<DrawPacket_Rect>(nullptr);
+ }
+
+ DrawPacket_Rect* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<DrawPacket_Rect>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const DrawPacket_Rect& from);
+ void MergeFrom(const DrawPacket_Rect& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(DrawPacket_Rect* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.DrawPacket.Rect";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kXFieldNumber = 1,
+ kYFieldNumber = 2,
+ kWFieldNumber = 3,
+ kHFieldNumber = 4,
+ };
+ // required float x = 1;
+ bool has_x() const;
+ private:
+ bool _internal_has_x() const;
+ public:
+ void clear_x();
+ float x() const;
+ void set_x(float value);
+ private:
+ float _internal_x() const;
+ void _internal_set_x(float value);
+ public:
+
+ // required float y = 2;
+ bool has_y() const;
+ private:
+ bool _internal_has_y() const;
+ public:
+ void clear_y();
+ float y() const;
+ void set_y(float value);
+ private:
+ float _internal_y() const;
+ void _internal_set_y(float value);
+ public:
+
+ // required float w = 3;
+ bool has_w() const;
+ private:
+ bool _internal_has_w() const;
+ public:
+ void clear_w();
+ float w() const;
+ void set_w(float value);
+ private:
+ float _internal_w() const;
+ void _internal_set_w(float value);
+ public:
+
+ // required float h = 4;
+ bool has_h() const;
+ private:
+ bool _internal_has_h() const;
+ public:
+ void clear_h();
+ float h() const;
+ void set_h(float value);
+ private:
+ float _internal_h() const;
+ void _internal_set_h(float value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.DrawPacket.Rect)
+ private:
+ class _Internal;
+
+ // helper for ByteSizeLong()
+ size_t RequiredFieldsByteSizeFallback() const;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ float x_;
+ float y_;
+ float w_;
+ float h_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class DrawPacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.DrawPacket) */ {
+ public:
+ DrawPacket();
+ virtual ~DrawPacket();
+
+ DrawPacket(const DrawPacket& from);
+ DrawPacket(DrawPacket&& from) noexcept
+ : DrawPacket() {
+ *this = ::std::move(from);
+ }
+
+ inline DrawPacket& operator=(const DrawPacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline DrawPacket& operator=(DrawPacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const DrawPacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const DrawPacket* internal_default_instance() {
+ return reinterpret_cast<const DrawPacket*>(
+ &_DrawPacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 16;
+
+ friend void swap(DrawPacket& a, DrawPacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(DrawPacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline DrawPacket* New() const final {
+ return CreateMaybeMessage<DrawPacket>(nullptr);
+ }
+
+ DrawPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<DrawPacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const DrawPacket& from);
+ void MergeFrom(const DrawPacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(DrawPacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.DrawPacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef DrawPacket_Rect Rect;
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kMvMatrixFieldNumber = 3,
+ kLayerRectFieldNumber = 5,
+ kTexIDsFieldNumber = 7,
+ kTextureRectFieldNumber = 8,
+ kOffsetXFieldNumber = 1,
+ kOffsetYFieldNumber = 2,
+ kLayerrefFieldNumber = 6,
+ kTotalRectsFieldNumber = 4,
+ };
+ // repeated float mvMatrix = 3;
+ int mvmatrix_size() const;
+ private:
+ int _internal_mvmatrix_size() const;
+ public:
+ void clear_mvmatrix();
+ private:
+ float _internal_mvmatrix(int index) const;
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ _internal_mvmatrix() const;
+ void _internal_add_mvmatrix(float value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ _internal_mutable_mvmatrix();
+ public:
+ float mvmatrix(int index) const;
+ void set_mvmatrix(int index, float value);
+ void add_mvmatrix(float value);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+ mvmatrix() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+ mutable_mvmatrix();
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
+ int layerrect_size() const;
+ private:
+ int _internal_layerrect_size() const;
+ public:
+ void clear_layerrect();
+ ::mozilla::layers::layerscope::DrawPacket_Rect* mutable_layerrect(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
+ mutable_layerrect();
+ private:
+ const ::mozilla::layers::layerscope::DrawPacket_Rect& _internal_layerrect(int index) const;
+ ::mozilla::layers::layerscope::DrawPacket_Rect* _internal_add_layerrect();
+ public:
+ const ::mozilla::layers::layerscope::DrawPacket_Rect& layerrect(int index) const;
+ ::mozilla::layers::layerscope::DrawPacket_Rect* add_layerrect();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
+ layerrect() const;
+
+ // repeated uint32 texIDs = 7;
+ int texids_size() const;
+ private:
+ int _internal_texids_size() const;
+ public:
+ void clear_texids();
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_texids(int index) const;
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
+ _internal_texids() const;
+ void _internal_add_texids(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
+ _internal_mutable_texids();
+ public:
+ ::PROTOBUF_NAMESPACE_ID::uint32 texids(int index) const;
+ void set_texids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value);
+ void add_texids(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
+ texids() const;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
+ mutable_texids();
+
+ // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
+ int texturerect_size() const;
+ private:
+ int _internal_texturerect_size() const;
+ public:
+ void clear_texturerect();
+ ::mozilla::layers::layerscope::DrawPacket_Rect* mutable_texturerect(int index);
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
+ mutable_texturerect();
+ private:
+ const ::mozilla::layers::layerscope::DrawPacket_Rect& _internal_texturerect(int index) const;
+ ::mozilla::layers::layerscope::DrawPacket_Rect* _internal_add_texturerect();
+ public:
+ const ::mozilla::layers::layerscope::DrawPacket_Rect& texturerect(int index) const;
+ ::mozilla::layers::layerscope::DrawPacket_Rect* add_texturerect();
+ const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
+ texturerect() const;
+
+ // required float offsetX = 1;
+ bool has_offsetx() const;
+ private:
+ bool _internal_has_offsetx() const;
+ public:
+ void clear_offsetx();
+ float offsetx() const;
+ void set_offsetx(float value);
+ private:
+ float _internal_offsetx() const;
+ void _internal_set_offsetx(float value);
+ public:
+
+ // required float offsetY = 2;
+ bool has_offsety() const;
+ private:
+ bool _internal_has_offsety() const;
+ public:
+ void clear_offsety();
+ float offsety() const;
+ void set_offsety(float value);
+ private:
+ float _internal_offsety() const;
+ void _internal_set_offsety(float value);
+ public:
+
+ // required uint64 layerref = 6;
+ bool has_layerref() const;
+ private:
+ bool _internal_has_layerref() const;
+ public:
+ void clear_layerref();
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref() const;
+ void set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint64 _internal_layerref() const;
+ void _internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value);
+ public:
+
+ // required uint32 totalRects = 4;
+ bool has_totalrects() const;
+ private:
+ bool _internal_has_totalrects() const;
+ public:
+ void clear_totalrects();
+ ::PROTOBUF_NAMESPACE_ID::uint32 totalrects() const;
+ void set_totalrects(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ private:
+ ::PROTOBUF_NAMESPACE_ID::uint32 _internal_totalrects() const;
+ void _internal_set_totalrects(::PROTOBUF_NAMESPACE_ID::uint32 value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.DrawPacket)
+ private:
+ class _Internal;
+
+ // helper for ByteSizeLong()
+ size_t RequiredFieldsByteSizeFallback() const;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > mvmatrix_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect > layerrect_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 > texids_;
+ ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect > texturerect_;
+ float offsetx_;
+ float offsety_;
+ ::PROTOBUF_NAMESPACE_ID::uint64 layerref_;
+ ::PROTOBUF_NAMESPACE_ID::uint32 totalrects_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class Packet :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.Packet) */ {
+ public:
+ Packet();
+ virtual ~Packet();
+
+ Packet(const Packet& from);
+ Packet(Packet&& from) noexcept
+ : Packet() {
+ *this = ::std::move(from);
+ }
+
+ inline Packet& operator=(const Packet& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline Packet& operator=(Packet&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const Packet& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Packet* internal_default_instance() {
+ return reinterpret_cast<const Packet*>(
+ &_Packet_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 17;
+
+ friend void swap(Packet& a, Packet& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(Packet* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Packet* New() const final {
+ return CreateMaybeMessage<Packet>(nullptr);
+ }
+
+ Packet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<Packet>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const Packet& from);
+ void MergeFrom(const Packet& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(Packet* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.Packet";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef Packet_DataType DataType;
+ static constexpr DataType FRAMESTART =
+ Packet_DataType_FRAMESTART;
+ static constexpr DataType FRAMEEND =
+ Packet_DataType_FRAMEEND;
+ static constexpr DataType COLOR =
+ Packet_DataType_COLOR;
+ static constexpr DataType TEXTURE =
+ Packet_DataType_TEXTURE;
+ static constexpr DataType LAYERS =
+ Packet_DataType_LAYERS;
+ static constexpr DataType META =
+ Packet_DataType_META;
+ static constexpr DataType DRAW =
+ Packet_DataType_DRAW;
+ static inline bool DataType_IsValid(int value) {
+ return Packet_DataType_IsValid(value);
+ }
+ static constexpr DataType DataType_MIN =
+ Packet_DataType_DataType_MIN;
+ static constexpr DataType DataType_MAX =
+ Packet_DataType_DataType_MAX;
+ static constexpr int DataType_ARRAYSIZE =
+ Packet_DataType_DataType_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& DataType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, DataType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function DataType_Name.");
+ return Packet_DataType_Name(enum_t_value);
+ }
+ static inline bool DataType_Parse(const std::string& name,
+ DataType* value) {
+ return Packet_DataType_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kFrameFieldNumber = 2,
+ kColorFieldNumber = 3,
+ kTextureFieldNumber = 4,
+ kLayersFieldNumber = 5,
+ kMetaFieldNumber = 6,
+ kDrawFieldNumber = 7,
+ kTypeFieldNumber = 1,
+ };
+ // optional .mozilla.layers.layerscope.FramePacket frame = 2;
+ bool has_frame() const;
+ private:
+ bool _internal_has_frame() const;
+ public:
+ void clear_frame();
+ const ::mozilla::layers::layerscope::FramePacket& frame() const;
+ ::mozilla::layers::layerscope::FramePacket* release_frame();
+ ::mozilla::layers::layerscope::FramePacket* mutable_frame();
+ void set_allocated_frame(::mozilla::layers::layerscope::FramePacket* frame);
+ private:
+ const ::mozilla::layers::layerscope::FramePacket& _internal_frame() const;
+ ::mozilla::layers::layerscope::FramePacket* _internal_mutable_frame();
+ public:
+
+ // optional .mozilla.layers.layerscope.ColorPacket color = 3;
+ bool has_color() const;
+ private:
+ bool _internal_has_color() const;
+ public:
+ void clear_color();
+ const ::mozilla::layers::layerscope::ColorPacket& color() const;
+ ::mozilla::layers::layerscope::ColorPacket* release_color();
+ ::mozilla::layers::layerscope::ColorPacket* mutable_color();
+ void set_allocated_color(::mozilla::layers::layerscope::ColorPacket* color);
+ private:
+ const ::mozilla::layers::layerscope::ColorPacket& _internal_color() const;
+ ::mozilla::layers::layerscope::ColorPacket* _internal_mutable_color();
+ public:
+
+ // optional .mozilla.layers.layerscope.TexturePacket texture = 4;
+ bool has_texture() const;
+ private:
+ bool _internal_has_texture() const;
+ public:
+ void clear_texture();
+ const ::mozilla::layers::layerscope::TexturePacket& texture() const;
+ ::mozilla::layers::layerscope::TexturePacket* release_texture();
+ ::mozilla::layers::layerscope::TexturePacket* mutable_texture();
+ void set_allocated_texture(::mozilla::layers::layerscope::TexturePacket* texture);
+ private:
+ const ::mozilla::layers::layerscope::TexturePacket& _internal_texture() const;
+ ::mozilla::layers::layerscope::TexturePacket* _internal_mutable_texture();
+ public:
+
+ // optional .mozilla.layers.layerscope.LayersPacket layers = 5;
+ bool has_layers() const;
+ private:
+ bool _internal_has_layers() const;
+ public:
+ void clear_layers();
+ const ::mozilla::layers::layerscope::LayersPacket& layers() const;
+ ::mozilla::layers::layerscope::LayersPacket* release_layers();
+ ::mozilla::layers::layerscope::LayersPacket* mutable_layers();
+ void set_allocated_layers(::mozilla::layers::layerscope::LayersPacket* layers);
+ private:
+ const ::mozilla::layers::layerscope::LayersPacket& _internal_layers() const;
+ ::mozilla::layers::layerscope::LayersPacket* _internal_mutable_layers();
+ public:
+
+ // optional .mozilla.layers.layerscope.MetaPacket meta = 6;
+ bool has_meta() const;
+ private:
+ bool _internal_has_meta() const;
+ public:
+ void clear_meta();
+ const ::mozilla::layers::layerscope::MetaPacket& meta() const;
+ ::mozilla::layers::layerscope::MetaPacket* release_meta();
+ ::mozilla::layers::layerscope::MetaPacket* mutable_meta();
+ void set_allocated_meta(::mozilla::layers::layerscope::MetaPacket* meta);
+ private:
+ const ::mozilla::layers::layerscope::MetaPacket& _internal_meta() const;
+ ::mozilla::layers::layerscope::MetaPacket* _internal_mutable_meta();
+ public:
+
+ // optional .mozilla.layers.layerscope.DrawPacket draw = 7;
+ bool has_draw() const;
+ private:
+ bool _internal_has_draw() const;
+ public:
+ void clear_draw();
+ const ::mozilla::layers::layerscope::DrawPacket& draw() const;
+ ::mozilla::layers::layerscope::DrawPacket* release_draw();
+ ::mozilla::layers::layerscope::DrawPacket* mutable_draw();
+ void set_allocated_draw(::mozilla::layers::layerscope::DrawPacket* draw);
+ private:
+ const ::mozilla::layers::layerscope::DrawPacket& _internal_draw() const;
+ ::mozilla::layers::layerscope::DrawPacket* _internal_mutable_draw();
+ public:
+
+ // required .mozilla.layers.layerscope.Packet.DataType type = 1;
+ bool has_type() const;
+ private:
+ bool _internal_has_type() const;
+ public:
+ void clear_type();
+ ::mozilla::layers::layerscope::Packet_DataType type() const;
+ void set_type(::mozilla::layers::layerscope::Packet_DataType value);
+ private:
+ ::mozilla::layers::layerscope::Packet_DataType _internal_type() const;
+ void _internal_set_type(::mozilla::layers::layerscope::Packet_DataType value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.Packet)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ ::mozilla::layers::layerscope::FramePacket* frame_;
+ ::mozilla::layers::layerscope::ColorPacket* color_;
+ ::mozilla::layers::layerscope::TexturePacket* texture_;
+ ::mozilla::layers::layerscope::LayersPacket* layers_;
+ ::mozilla::layers::layerscope::MetaPacket* meta_;
+ ::mozilla::layers::layerscope::DrawPacket* draw_;
+ int type_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// -------------------------------------------------------------------
+
+class CommandPacket :
+ public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.layers.layerscope.CommandPacket) */ {
+ public:
+ CommandPacket();
+ virtual ~CommandPacket();
+
+ CommandPacket(const CommandPacket& from);
+ CommandPacket(CommandPacket&& from) noexcept
+ : CommandPacket() {
+ *this = ::std::move(from);
+ }
+
+ inline CommandPacket& operator=(const CommandPacket& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ inline CommandPacket& operator=(CommandPacket&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+
+ inline const std::string& unknown_fields() const {
+ return _internal_metadata_.unknown_fields();
+ }
+ inline std::string* mutable_unknown_fields() {
+ return _internal_metadata_.mutable_unknown_fields();
+ }
+
+ static const CommandPacket& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CommandPacket* internal_default_instance() {
+ return reinterpret_cast<const CommandPacket*>(
+ &_CommandPacket_default_instance_);
+ }
+ static constexpr int kIndexInFileMessages =
+ 18;
+
+ friend void swap(CommandPacket& a, CommandPacket& b) {
+ a.Swap(&b);
+ }
+ inline void Swap(CommandPacket* other) {
+ if (other == this) return;
+ InternalSwap(other);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CommandPacket* New() const final {
+ return CreateMaybeMessage<CommandPacket>(nullptr);
+ }
+
+ CommandPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
+ return CreateMaybeMessage<CommandPacket>(arena);
+ }
+ void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
+ final;
+ void CopyFrom(const CommandPacket& from);
+ void MergeFrom(const CommandPacket& from);
+ PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
+ bool IsInitialized() const final;
+
+ size_t ByteSizeLong() const final;
+ const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
+ ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
+ ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
+ void DiscardUnknownFields();
+ int GetCachedSize() const final { return _cached_size_.Get(); }
+
+ private:
+ inline void SharedCtor();
+ inline void SharedDtor();
+ void SetCachedSize(int size) const;
+ void InternalSwap(CommandPacket* other);
+ friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+ static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+ return "mozilla.layers.layerscope.CommandPacket";
+ }
+ private:
+ inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
+ return nullptr;
+ }
+ inline void* MaybeArenaPtr() const {
+ return nullptr;
+ }
+ public:
+
+ std::string GetTypeName() const final;
+
+ // nested types ----------------------------------------------------
+
+ typedef CommandPacket_CmdType CmdType;
+ static constexpr CmdType NO_OP =
+ CommandPacket_CmdType_NO_OP;
+ static constexpr CmdType LAYERS_TREE =
+ CommandPacket_CmdType_LAYERS_TREE;
+ static constexpr CmdType LAYERS_BUFFER =
+ CommandPacket_CmdType_LAYERS_BUFFER;
+ static inline bool CmdType_IsValid(int value) {
+ return CommandPacket_CmdType_IsValid(value);
+ }
+ static constexpr CmdType CmdType_MIN =
+ CommandPacket_CmdType_CmdType_MIN;
+ static constexpr CmdType CmdType_MAX =
+ CommandPacket_CmdType_CmdType_MAX;
+ static constexpr int CmdType_ARRAYSIZE =
+ CommandPacket_CmdType_CmdType_ARRAYSIZE;
+ template<typename T>
+ static inline const std::string& CmdType_Name(T enum_t_value) {
+ static_assert(::std::is_same<T, CmdType>::value ||
+ ::std::is_integral<T>::value,
+ "Incorrect type passed to function CmdType_Name.");
+ return CommandPacket_CmdType_Name(enum_t_value);
+ }
+ static inline bool CmdType_Parse(const std::string& name,
+ CmdType* value) {
+ return CommandPacket_CmdType_Parse(name, value);
+ }
+
+ // accessors -------------------------------------------------------
+
+ enum : int {
+ kTypeFieldNumber = 1,
+ kValueFieldNumber = 2,
+ };
+ // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
+ bool has_type() const;
+ private:
+ bool _internal_has_type() const;
+ public:
+ void clear_type();
+ ::mozilla::layers::layerscope::CommandPacket_CmdType type() const;
+ void set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value);
+ private:
+ ::mozilla::layers::layerscope::CommandPacket_CmdType _internal_type() const;
+ void _internal_set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value);
+ public:
+
+ // optional bool value = 2;
+ bool has_value() const;
+ private:
+ bool _internal_has_value() const;
+ public:
+ void clear_value();
+ bool value() const;
+ void set_value(bool value);
+ private:
+ bool _internal_value() const;
+ void _internal_set_value(bool value);
+ public:
+
+ // @@protoc_insertion_point(class_scope:mozilla.layers.layerscope.CommandPacket)
+ private:
+ class _Internal;
+
+ ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_;
+ ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+ mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+ int type_;
+ bool value_;
+ friend struct ::TableStruct_LayerScopePacket_2eproto;
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// FramePacket
+
+// optional uint64 value = 1;
+inline bool FramePacket::_internal_has_value() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool FramePacket::has_value() const {
+ return _internal_has_value();
+}
+inline void FramePacket::clear_value() {
+ value_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 FramePacket::_internal_value() const {
+ return value_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 FramePacket::value() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.value)
+ return _internal_value();
+}
+inline void FramePacket::_internal_set_value(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00000001u;
+ value_ = value;
+}
+inline void FramePacket::set_value(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_value(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.value)
+}
+
+// optional float scale = 2;
+inline bool FramePacket::_internal_has_scale() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool FramePacket::has_scale() const {
+ return _internal_has_scale();
+}
+inline void FramePacket::clear_scale() {
+ scale_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline float FramePacket::_internal_scale() const {
+ return scale_;
+}
+inline float FramePacket::scale() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.scale)
+ return _internal_scale();
+}
+inline void FramePacket::_internal_set_scale(float value) {
+ _has_bits_[0] |= 0x00000002u;
+ scale_ = value;
+}
+inline void FramePacket::set_scale(float value) {
+ _internal_set_scale(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.scale)
+}
+
+// -------------------------------------------------------------------
+
+// ColorPacket
+
+// required uint64 layerref = 1;
+inline bool ColorPacket::_internal_has_layerref() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool ColorPacket::has_layerref() const {
+ return _internal_has_layerref();
+}
+inline void ColorPacket::clear_layerref() {
+ layerref_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 ColorPacket::_internal_layerref() const {
+ return layerref_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 ColorPacket::layerref() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.layerref)
+ return _internal_layerref();
+}
+inline void ColorPacket::_internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00000001u;
+ layerref_ = value;
+}
+inline void ColorPacket::set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_layerref(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.layerref)
+}
+
+// optional uint32 width = 2;
+inline bool ColorPacket::_internal_has_width() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool ColorPacket::has_width() const {
+ return _internal_has_width();
+}
+inline void ColorPacket::clear_width() {
+ width_ = 0u;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::_internal_width() const {
+ return width_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::width() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.width)
+ return _internal_width();
+}
+inline void ColorPacket::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000002u;
+ width_ = value;
+}
+inline void ColorPacket::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_width(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.width)
+}
+
+// optional uint32 height = 3;
+inline bool ColorPacket::_internal_has_height() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool ColorPacket::has_height() const {
+ return _internal_has_height();
+}
+inline void ColorPacket::clear_height() {
+ height_ = 0u;
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::_internal_height() const {
+ return height_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::height() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.height)
+ return _internal_height();
+}
+inline void ColorPacket::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000004u;
+ height_ = value;
+}
+inline void ColorPacket::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_height(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.height)
+}
+
+// optional uint32 color = 4;
+inline bool ColorPacket::_internal_has_color() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool ColorPacket::has_color() const {
+ return _internal_has_color();
+}
+inline void ColorPacket::clear_color() {
+ color_ = 0u;
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::_internal_color() const {
+ return color_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 ColorPacket::color() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.color)
+ return _internal_color();
+}
+inline void ColorPacket::_internal_set_color(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000008u;
+ color_ = value;
+}
+inline void ColorPacket::set_color(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_color(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.color)
+}
+
+// -------------------------------------------------------------------
+
+// TexturePacket_Rect
+
+// optional float x = 1;
+inline bool TexturePacket_Rect::_internal_has_x() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool TexturePacket_Rect::has_x() const {
+ return _internal_has_x();
+}
+inline void TexturePacket_Rect::clear_x() {
+ x_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline float TexturePacket_Rect::_internal_x() const {
+ return x_;
+}
+inline float TexturePacket_Rect::x() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.x)
+ return _internal_x();
+}
+inline void TexturePacket_Rect::_internal_set_x(float value) {
+ _has_bits_[0] |= 0x00000001u;
+ x_ = value;
+}
+inline void TexturePacket_Rect::set_x(float value) {
+ _internal_set_x(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.x)
+}
+
+// optional float y = 2;
+inline bool TexturePacket_Rect::_internal_has_y() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool TexturePacket_Rect::has_y() const {
+ return _internal_has_y();
+}
+inline void TexturePacket_Rect::clear_y() {
+ y_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline float TexturePacket_Rect::_internal_y() const {
+ return y_;
+}
+inline float TexturePacket_Rect::y() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.y)
+ return _internal_y();
+}
+inline void TexturePacket_Rect::_internal_set_y(float value) {
+ _has_bits_[0] |= 0x00000002u;
+ y_ = value;
+}
+inline void TexturePacket_Rect::set_y(float value) {
+ _internal_set_y(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.y)
+}
+
+// optional float w = 3;
+inline bool TexturePacket_Rect::_internal_has_w() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool TexturePacket_Rect::has_w() const {
+ return _internal_has_w();
+}
+inline void TexturePacket_Rect::clear_w() {
+ w_ = 0;
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline float TexturePacket_Rect::_internal_w() const {
+ return w_;
+}
+inline float TexturePacket_Rect::w() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.w)
+ return _internal_w();
+}
+inline void TexturePacket_Rect::_internal_set_w(float value) {
+ _has_bits_[0] |= 0x00000004u;
+ w_ = value;
+}
+inline void TexturePacket_Rect::set_w(float value) {
+ _internal_set_w(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.w)
+}
+
+// optional float h = 4;
+inline bool TexturePacket_Rect::_internal_has_h() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool TexturePacket_Rect::has_h() const {
+ return _internal_has_h();
+}
+inline void TexturePacket_Rect::clear_h() {
+ h_ = 0;
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline float TexturePacket_Rect::_internal_h() const {
+ return h_;
+}
+inline float TexturePacket_Rect::h() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.h)
+ return _internal_h();
+}
+inline void TexturePacket_Rect::_internal_set_h(float value) {
+ _has_bits_[0] |= 0x00000008u;
+ h_ = value;
+}
+inline void TexturePacket_Rect::set_h(float value) {
+ _internal_set_h(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.h)
+}
+
+// -------------------------------------------------------------------
+
+// TexturePacket_Size
+
+// optional int32 w = 1;
+inline bool TexturePacket_Size::_internal_has_w() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool TexturePacket_Size::has_w() const {
+ return _internal_has_w();
+}
+inline void TexturePacket_Size::clear_w() {
+ w_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 TexturePacket_Size::_internal_w() const {
+ return w_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 TexturePacket_Size::w() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.w)
+ return _internal_w();
+}
+inline void TexturePacket_Size::_internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000001u;
+ w_ = value;
+}
+inline void TexturePacket_Size::set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_w(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.w)
+}
+
+// optional int32 h = 2;
+inline bool TexturePacket_Size::_internal_has_h() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool TexturePacket_Size::has_h() const {
+ return _internal_has_h();
+}
+inline void TexturePacket_Size::clear_h() {
+ h_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 TexturePacket_Size::_internal_h() const {
+ return h_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 TexturePacket_Size::h() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.h)
+ return _internal_h();
+}
+inline void TexturePacket_Size::_internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000002u;
+ h_ = value;
+}
+inline void TexturePacket_Size::set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_h(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.h)
+}
+
+// -------------------------------------------------------------------
+
+// TexturePacket_Matrix
+
+// optional bool is2D = 1;
+inline bool TexturePacket_Matrix::_internal_has_is2d() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool TexturePacket_Matrix::has_is2d() const {
+ return _internal_has_is2d();
+}
+inline void TexturePacket_Matrix::clear_is2d() {
+ is2d_ = false;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline bool TexturePacket_Matrix::_internal_is2d() const {
+ return is2d_;
+}
+inline bool TexturePacket_Matrix::is2d() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.is2D)
+ return _internal_is2d();
+}
+inline void TexturePacket_Matrix::_internal_set_is2d(bool value) {
+ _has_bits_[0] |= 0x00000001u;
+ is2d_ = value;
+}
+inline void TexturePacket_Matrix::set_is2d(bool value) {
+ _internal_set_is2d(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.is2D)
+}
+
+// optional bool isId = 2;
+inline bool TexturePacket_Matrix::_internal_has_isid() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool TexturePacket_Matrix::has_isid() const {
+ return _internal_has_isid();
+}
+inline void TexturePacket_Matrix::clear_isid() {
+ isid_ = false;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline bool TexturePacket_Matrix::_internal_isid() const {
+ return isid_;
+}
+inline bool TexturePacket_Matrix::isid() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.isId)
+ return _internal_isid();
+}
+inline void TexturePacket_Matrix::_internal_set_isid(bool value) {
+ _has_bits_[0] |= 0x00000002u;
+ isid_ = value;
+}
+inline void TexturePacket_Matrix::set_isid(bool value) {
+ _internal_set_isid(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.isId)
+}
+
+// repeated float m = 3;
+inline int TexturePacket_Matrix::_internal_m_size() const {
+ return m_.size();
+}
+inline int TexturePacket_Matrix::m_size() const {
+ return _internal_m_size();
+}
+inline void TexturePacket_Matrix::clear_m() {
+ m_.Clear();
+}
+inline float TexturePacket_Matrix::_internal_m(int index) const {
+ return m_.Get(index);
+}
+inline float TexturePacket_Matrix::m(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.m)
+ return _internal_m(index);
+}
+inline void TexturePacket_Matrix::set_m(int index, float value) {
+ m_.Set(index, value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.m)
+}
+inline void TexturePacket_Matrix::_internal_add_m(float value) {
+ m_.Add(value);
+}
+inline void TexturePacket_Matrix::add_m(float value) {
+ _internal_add_m(value);
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.TexturePacket.Matrix.m)
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+TexturePacket_Matrix::_internal_m() const {
+ return m_;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+TexturePacket_Matrix::m() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.TexturePacket.Matrix.m)
+ return _internal_m();
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+TexturePacket_Matrix::_internal_mutable_m() {
+ return &m_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+TexturePacket_Matrix::mutable_m() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.TexturePacket.Matrix.m)
+ return _internal_mutable_m();
+}
+
+// -------------------------------------------------------------------
+
+// TexturePacket_EffectMask
+
+// optional bool mIs3D = 1;
+inline bool TexturePacket_EffectMask::_internal_has_mis3d() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool TexturePacket_EffectMask::has_mis3d() const {
+ return _internal_has_mis3d();
+}
+inline void TexturePacket_EffectMask::clear_mis3d() {
+ mis3d_ = false;
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline bool TexturePacket_EffectMask::_internal_mis3d() const {
+ return mis3d_;
+}
+inline bool TexturePacket_EffectMask::mis3d() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D)
+ return _internal_mis3d();
+}
+inline void TexturePacket_EffectMask::_internal_set_mis3d(bool value) {
+ _has_bits_[0] |= 0x00000004u;
+ mis3d_ = value;
+}
+inline void TexturePacket_EffectMask::set_mis3d(bool value) {
+ _internal_set_mis3d(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2;
+inline bool TexturePacket_EffectMask::_internal_has_msize() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ PROTOBUF_ASSUME(!value || msize_ != nullptr);
+ return value;
+}
+inline bool TexturePacket_EffectMask::has_msize() const {
+ return _internal_has_msize();
+}
+inline void TexturePacket_EffectMask::clear_msize() {
+ if (msize_ != nullptr) msize_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Size& TexturePacket_EffectMask::_internal_msize() const {
+ const ::mozilla::layers::layerscope::TexturePacket_Size* p = msize_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Size*>(
+ &::mozilla::layers::layerscope::_TexturePacket_Size_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Size& TexturePacket_EffectMask::msize() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
+ return _internal_msize();
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::release_msize() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
+ _has_bits_[0] &= ~0x00000001u;
+ ::mozilla::layers::layerscope::TexturePacket_Size* temp = msize_;
+ msize_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::_internal_mutable_msize() {
+ _has_bits_[0] |= 0x00000001u;
+ if (msize_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Size>(GetArenaNoVirtual());
+ msize_ = p;
+ }
+ return msize_;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::mutable_msize() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
+ return _internal_mutable_msize();
+}
+inline void TexturePacket_EffectMask::set_allocated_msize(::mozilla::layers::layerscope::TexturePacket_Size* msize) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete msize_;
+ }
+ if (msize) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ msize = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, msize, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000001u;
+ } else {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ msize_ = msize;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3;
+inline bool TexturePacket_EffectMask::_internal_has_mmasktransform() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || mmasktransform_ != nullptr);
+ return value;
+}
+inline bool TexturePacket_EffectMask::has_mmasktransform() const {
+ return _internal_has_mmasktransform();
+}
+inline void TexturePacket_EffectMask::clear_mmasktransform() {
+ if (mmasktransform_ != nullptr) mmasktransform_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Matrix& TexturePacket_EffectMask::_internal_mmasktransform() const {
+ const ::mozilla::layers::layerscope::TexturePacket_Matrix* p = mmasktransform_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Matrix*>(
+ &::mozilla::layers::layerscope::_TexturePacket_Matrix_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Matrix& TexturePacket_EffectMask::mmasktransform() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
+ return _internal_mmasktransform();
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::release_mmasktransform() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
+ _has_bits_[0] &= ~0x00000002u;
+ ::mozilla::layers::layerscope::TexturePacket_Matrix* temp = mmasktransform_;
+ mmasktransform_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::_internal_mutable_mmasktransform() {
+ _has_bits_[0] |= 0x00000002u;
+ if (mmasktransform_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Matrix>(GetArenaNoVirtual());
+ mmasktransform_ = p;
+ }
+ return mmasktransform_;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::mutable_mmasktransform() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
+ return _internal_mutable_mmasktransform();
+}
+inline void TexturePacket_EffectMask::set_allocated_mmasktransform(::mozilla::layers::layerscope::TexturePacket_Matrix* mmasktransform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete mmasktransform_;
+ }
+ if (mmasktransform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ mmasktransform = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, mmasktransform, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000002u;
+ } else {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ mmasktransform_ = mmasktransform;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform)
+}
+
+// -------------------------------------------------------------------
+
+// TexturePacket
+
+// required uint64 layerref = 1;
+inline bool TexturePacket::_internal_has_layerref() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_layerref() const {
+ return _internal_has_layerref();
+}
+inline void TexturePacket::clear_layerref() {
+ layerref_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 TexturePacket::_internal_layerref() const {
+ return layerref_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 TexturePacket::layerref() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.layerref)
+ return _internal_layerref();
+}
+inline void TexturePacket::_internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00000008u;
+ layerref_ = value;
+}
+inline void TexturePacket::set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_layerref(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.layerref)
+}
+
+// optional uint32 width = 2;
+inline bool TexturePacket::_internal_has_width() const {
+ bool value = (_has_bits_[0] & 0x00000010u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_width() const {
+ return _internal_has_width();
+}
+inline void TexturePacket::clear_width() {
+ width_ = 0u;
+ _has_bits_[0] &= ~0x00000010u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_width() const {
+ return width_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::width() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.width)
+ return _internal_width();
+}
+inline void TexturePacket::_internal_set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000010u;
+ width_ = value;
+}
+inline void TexturePacket::set_width(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_width(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.width)
+}
+
+// optional uint32 height = 3;
+inline bool TexturePacket::_internal_has_height() const {
+ bool value = (_has_bits_[0] & 0x00000020u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_height() const {
+ return _internal_has_height();
+}
+inline void TexturePacket::clear_height() {
+ height_ = 0u;
+ _has_bits_[0] &= ~0x00000020u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_height() const {
+ return height_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::height() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.height)
+ return _internal_height();
+}
+inline void TexturePacket::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000020u;
+ height_ = value;
+}
+inline void TexturePacket::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_height(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.height)
+}
+
+// optional uint32 stride = 4;
+inline bool TexturePacket::_internal_has_stride() const {
+ bool value = (_has_bits_[0] & 0x00000040u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_stride() const {
+ return _internal_has_stride();
+}
+inline void TexturePacket::clear_stride() {
+ stride_ = 0u;
+ _has_bits_[0] &= ~0x00000040u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_stride() const {
+ return stride_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::stride() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.stride)
+ return _internal_stride();
+}
+inline void TexturePacket::_internal_set_stride(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000040u;
+ stride_ = value;
+}
+inline void TexturePacket::set_stride(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_stride(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.stride)
+}
+
+// optional uint32 name = 5;
+inline bool TexturePacket::_internal_has_name() const {
+ bool value = (_has_bits_[0] & 0x00000080u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_name() const {
+ return _internal_has_name();
+}
+inline void TexturePacket::clear_name() {
+ name_ = 0u;
+ _has_bits_[0] &= ~0x00000080u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_name() const {
+ return name_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::name() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.name)
+ return _internal_name();
+}
+inline void TexturePacket::_internal_set_name(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000080u;
+ name_ = value;
+}
+inline void TexturePacket::set_name(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_name(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.name)
+}
+
+// optional uint32 target = 6;
+inline bool TexturePacket::_internal_has_target() const {
+ bool value = (_has_bits_[0] & 0x00000100u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_target() const {
+ return _internal_has_target();
+}
+inline void TexturePacket::clear_target() {
+ target_ = 0u;
+ _has_bits_[0] &= ~0x00000100u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_target() const {
+ return target_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::target() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.target)
+ return _internal_target();
+}
+inline void TexturePacket::_internal_set_target(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000100u;
+ target_ = value;
+}
+inline void TexturePacket::set_target(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_target(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.target)
+}
+
+// optional uint32 dataformat = 7;
+inline bool TexturePacket::_internal_has_dataformat() const {
+ bool value = (_has_bits_[0] & 0x00000200u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_dataformat() const {
+ return _internal_has_dataformat();
+}
+inline void TexturePacket::clear_dataformat() {
+ dataformat_ = 0u;
+ _has_bits_[0] &= ~0x00000200u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::_internal_dataformat() const {
+ return dataformat_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 TexturePacket::dataformat() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.dataformat)
+ return _internal_dataformat();
+}
+inline void TexturePacket::_internal_set_dataformat(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000200u;
+ dataformat_ = value;
+}
+inline void TexturePacket::set_dataformat(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_dataformat(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.dataformat)
+}
+
+// optional uint64 glcontext = 8;
+inline bool TexturePacket::_internal_has_glcontext() const {
+ bool value = (_has_bits_[0] & 0x00000400u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_glcontext() const {
+ return _internal_has_glcontext();
+}
+inline void TexturePacket::clear_glcontext() {
+ glcontext_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00000400u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 TexturePacket::_internal_glcontext() const {
+ return glcontext_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 TexturePacket::glcontext() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.glcontext)
+ return _internal_glcontext();
+}
+inline void TexturePacket::_internal_set_glcontext(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00000400u;
+ glcontext_ = value;
+}
+inline void TexturePacket::set_glcontext(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_glcontext(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.glcontext)
+}
+
+// optional bytes data = 9;
+inline bool TexturePacket::_internal_has_data() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_data() const {
+ return _internal_has_data();
+}
+inline void TexturePacket::clear_data() {
+ data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline const std::string& TexturePacket::data() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.data)
+ return _internal_data();
+}
+inline void TexturePacket::set_data(const std::string& value) {
+ _internal_set_data(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.data)
+}
+inline std::string* TexturePacket::mutable_data() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.data)
+ return _internal_mutable_data();
+}
+inline const std::string& TexturePacket::_internal_data() const {
+ return data_.GetNoArena();
+}
+inline void TexturePacket::_internal_set_data(const std::string& value) {
+ _has_bits_[0] |= 0x00000001u;
+ data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
+}
+inline void TexturePacket::set_data(std::string&& value) {
+ _has_bits_[0] |= 0x00000001u;
+ data_.SetNoArena(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.TexturePacket.data)
+}
+inline void TexturePacket::set_data(const char* value) {
+ GOOGLE_DCHECK(value != nullptr);
+ _has_bits_[0] |= 0x00000001u;
+ data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.TexturePacket.data)
+}
+inline void TexturePacket::set_data(const void* value, size_t size) {
+ _has_bits_[0] |= 0x00000001u;
+ data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.TexturePacket.data)
+}
+inline std::string* TexturePacket::_internal_mutable_data() {
+ _has_bits_[0] |= 0x00000001u;
+ return data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+inline std::string* TexturePacket::release_data() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.data)
+ if (!_internal_has_data()) {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000001u;
+ return data_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+inline void TexturePacket::set_allocated_data(std::string* data) {
+ if (data != nullptr) {
+ _has_bits_[0] |= 0x00000001u;
+ } else {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data);
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.data)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10;
+inline bool TexturePacket::_internal_has_mtexturecoords() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || mtexturecoords_ != nullptr);
+ return value;
+}
+inline bool TexturePacket::has_mtexturecoords() const {
+ return _internal_has_mtexturecoords();
+}
+inline void TexturePacket::clear_mtexturecoords() {
+ if (mtexturecoords_ != nullptr) mtexturecoords_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Rect& TexturePacket::_internal_mtexturecoords() const {
+ const ::mozilla::layers::layerscope::TexturePacket_Rect* p = mtexturecoords_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Rect*>(
+ &::mozilla::layers::layerscope::_TexturePacket_Rect_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_Rect& TexturePacket::mtexturecoords() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
+ return _internal_mtexturecoords();
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::release_mtexturecoords() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
+ _has_bits_[0] &= ~0x00000002u;
+ ::mozilla::layers::layerscope::TexturePacket_Rect* temp = mtexturecoords_;
+ mtexturecoords_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::_internal_mutable_mtexturecoords() {
+ _has_bits_[0] |= 0x00000002u;
+ if (mtexturecoords_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_Rect>(GetArenaNoVirtual());
+ mtexturecoords_ = p;
+ }
+ return mtexturecoords_;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::mutable_mtexturecoords() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
+ return _internal_mutable_mtexturecoords();
+}
+inline void TexturePacket::set_allocated_mtexturecoords(::mozilla::layers::layerscope::TexturePacket_Rect* mtexturecoords) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete mtexturecoords_;
+ }
+ if (mtexturecoords) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ mtexturecoords = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, mtexturecoords, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000002u;
+ } else {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ mtexturecoords_ = mtexturecoords;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mTextureCoords)
+}
+
+// optional bool mPremultiplied = 11;
+inline bool TexturePacket::_internal_has_mpremultiplied() const {
+ bool value = (_has_bits_[0] & 0x00001000u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_mpremultiplied() const {
+ return _internal_has_mpremultiplied();
+}
+inline void TexturePacket::clear_mpremultiplied() {
+ mpremultiplied_ = false;
+ _has_bits_[0] &= ~0x00001000u;
+}
+inline bool TexturePacket::_internal_mpremultiplied() const {
+ return mpremultiplied_;
+}
+inline bool TexturePacket::mpremultiplied() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mPremultiplied)
+ return _internal_mpremultiplied();
+}
+inline void TexturePacket::_internal_set_mpremultiplied(bool value) {
+ _has_bits_[0] |= 0x00001000u;
+ mpremultiplied_ = value;
+}
+inline void TexturePacket::set_mpremultiplied(bool value) {
+ _internal_set_mpremultiplied(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mPremultiplied)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12;
+inline bool TexturePacket::_internal_has_mfilter() const {
+ bool value = (_has_bits_[0] & 0x00000800u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_mfilter() const {
+ return _internal_has_mfilter();
+}
+inline void TexturePacket::clear_mfilter() {
+ mfilter_ = 0;
+ _has_bits_[0] &= ~0x00000800u;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Filter TexturePacket::_internal_mfilter() const {
+ return static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(mfilter_);
+}
+inline ::mozilla::layers::layerscope::TexturePacket_Filter TexturePacket::mfilter() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mFilter)
+ return _internal_mfilter();
+}
+inline void TexturePacket::_internal_set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value) {
+ assert(::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value));
+ _has_bits_[0] |= 0x00000800u;
+ mfilter_ = value;
+}
+inline void TexturePacket::set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value) {
+ _internal_set_mfilter(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mFilter)
+}
+
+// optional bool isMask = 20;
+inline bool TexturePacket::_internal_has_ismask() const {
+ bool value = (_has_bits_[0] & 0x00002000u) != 0;
+ return value;
+}
+inline bool TexturePacket::has_ismask() const {
+ return _internal_has_ismask();
+}
+inline void TexturePacket::clear_ismask() {
+ ismask_ = false;
+ _has_bits_[0] &= ~0x00002000u;
+}
+inline bool TexturePacket::_internal_ismask() const {
+ return ismask_;
+}
+inline bool TexturePacket::ismask() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.isMask)
+ return _internal_ismask();
+}
+inline void TexturePacket::_internal_set_ismask(bool value) {
+ _has_bits_[0] |= 0x00002000u;
+ ismask_ = value;
+}
+inline void TexturePacket::set_ismask(bool value) {
+ _internal_set_ismask(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.isMask)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21;
+inline bool TexturePacket::_internal_has_mask() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ PROTOBUF_ASSUME(!value || mask_ != nullptr);
+ return value;
+}
+inline bool TexturePacket::has_mask() const {
+ return _internal_has_mask();
+}
+inline void TexturePacket::clear_mask() {
+ if (mask_ != nullptr) mask_->Clear();
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_EffectMask& TexturePacket::_internal_mask() const {
+ const ::mozilla::layers::layerscope::TexturePacket_EffectMask* p = mask_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_EffectMask*>(
+ &::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::TexturePacket_EffectMask& TexturePacket::mask() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mask)
+ return _internal_mask();
+}
+inline ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::release_mask() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mask)
+ _has_bits_[0] &= ~0x00000004u;
+ ::mozilla::layers::layerscope::TexturePacket_EffectMask* temp = mask_;
+ mask_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::_internal_mutable_mask() {
+ _has_bits_[0] |= 0x00000004u;
+ if (mask_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket_EffectMask>(GetArenaNoVirtual());
+ mask_ = p;
+ }
+ return mask_;
+}
+inline ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::mutable_mask() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mask)
+ return _internal_mutable_mask();
+}
+inline void TexturePacket::set_allocated_mask(::mozilla::layers::layerscope::TexturePacket_EffectMask* mask) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete mask_;
+ }
+ if (mask) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ mask = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, mask, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000004u;
+ } else {
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ mask_ = mask;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mask)
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer_Size
+
+// optional int32 w = 1;
+inline bool LayersPacket_Layer_Size::_internal_has_w() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Size::has_w() const {
+ return _internal_has_w();
+}
+inline void LayersPacket_Layer_Size::clear_w() {
+ w_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Size::_internal_w() const {
+ return w_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Size::w() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.w)
+ return _internal_w();
+}
+inline void LayersPacket_Layer_Size::_internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000001u;
+ w_ = value;
+}
+inline void LayersPacket_Layer_Size::set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_w(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.w)
+}
+
+// optional int32 h = 2;
+inline bool LayersPacket_Layer_Size::_internal_has_h() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Size::has_h() const {
+ return _internal_has_h();
+}
+inline void LayersPacket_Layer_Size::clear_h() {
+ h_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Size::_internal_h() const {
+ return h_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Size::h() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.h)
+ return _internal_h();
+}
+inline void LayersPacket_Layer_Size::_internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000002u;
+ h_ = value;
+}
+inline void LayersPacket_Layer_Size::set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_h(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.h)
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer_Rect
+
+// optional int32 x = 1;
+inline bool LayersPacket_Layer_Rect::_internal_has_x() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Rect::has_x() const {
+ return _internal_has_x();
+}
+inline void LayersPacket_Layer_Rect::clear_x() {
+ x_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::_internal_x() const {
+ return x_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::x() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x)
+ return _internal_x();
+}
+inline void LayersPacket_Layer_Rect::_internal_set_x(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000001u;
+ x_ = value;
+}
+inline void LayersPacket_Layer_Rect::set_x(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_x(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x)
+}
+
+// optional int32 y = 2;
+inline bool LayersPacket_Layer_Rect::_internal_has_y() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Rect::has_y() const {
+ return _internal_has_y();
+}
+inline void LayersPacket_Layer_Rect::clear_y() {
+ y_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::_internal_y() const {
+ return y_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::y() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y)
+ return _internal_y();
+}
+inline void LayersPacket_Layer_Rect::_internal_set_y(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000002u;
+ y_ = value;
+}
+inline void LayersPacket_Layer_Rect::set_y(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_y(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y)
+}
+
+// optional int32 w = 3;
+inline bool LayersPacket_Layer_Rect::_internal_has_w() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Rect::has_w() const {
+ return _internal_has_w();
+}
+inline void LayersPacket_Layer_Rect::clear_w() {
+ w_ = 0;
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::_internal_w() const {
+ return w_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::w() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w)
+ return _internal_w();
+}
+inline void LayersPacket_Layer_Rect::_internal_set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000004u;
+ w_ = value;
+}
+inline void LayersPacket_Layer_Rect::set_w(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_w(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w)
+}
+
+// optional int32 h = 4;
+inline bool LayersPacket_Layer_Rect::_internal_has_h() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Rect::has_h() const {
+ return _internal_has_h();
+}
+inline void LayersPacket_Layer_Rect::clear_h() {
+ h_ = 0;
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::_internal_h() const {
+ return h_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::int32 LayersPacket_Layer_Rect::h() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h)
+ return _internal_h();
+}
+inline void LayersPacket_Layer_Rect::_internal_set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _has_bits_[0] |= 0x00000008u;
+ h_ = value;
+}
+inline void LayersPacket_Layer_Rect::set_h(::PROTOBUF_NAMESPACE_ID::int32 value) {
+ _internal_set_h(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h)
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer_Region
+
+// repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1;
+inline int LayersPacket_Layer_Region::_internal_r_size() const {
+ return r_.size();
+}
+inline int LayersPacket_Layer_Region::r_size() const {
+ return _internal_r_size();
+}
+inline void LayersPacket_Layer_Region::clear_r() {
+ r_.Clear();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::mutable_r(int index) {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
+ return r_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >*
+LayersPacket_Layer_Region::mutable_r() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
+ return &r_;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Region::_internal_r(int index) const {
+ return r_.Get(index);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Region::r(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
+ return _internal_r(index);
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::_internal_add_r() {
+ return r_.Add();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::add_r() {
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
+ return _internal_add_r();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >&
+LayersPacket_Layer_Region::r() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r)
+ return r_;
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer_Matrix
+
+// optional bool is2D = 1;
+inline bool LayersPacket_Layer_Matrix::_internal_has_is2d() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Matrix::has_is2d() const {
+ return _internal_has_is2d();
+}
+inline void LayersPacket_Layer_Matrix::clear_is2d() {
+ is2d_ = false;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline bool LayersPacket_Layer_Matrix::_internal_is2d() const {
+ return is2d_;
+}
+inline bool LayersPacket_Layer_Matrix::is2d() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D)
+ return _internal_is2d();
+}
+inline void LayersPacket_Layer_Matrix::_internal_set_is2d(bool value) {
+ _has_bits_[0] |= 0x00000001u;
+ is2d_ = value;
+}
+inline void LayersPacket_Layer_Matrix::set_is2d(bool value) {
+ _internal_set_is2d(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D)
+}
+
+// optional bool isId = 2;
+inline bool LayersPacket_Layer_Matrix::_internal_has_isid() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer_Matrix::has_isid() const {
+ return _internal_has_isid();
+}
+inline void LayersPacket_Layer_Matrix::clear_isid() {
+ isid_ = false;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline bool LayersPacket_Layer_Matrix::_internal_isid() const {
+ return isid_;
+}
+inline bool LayersPacket_Layer_Matrix::isid() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId)
+ return _internal_isid();
+}
+inline void LayersPacket_Layer_Matrix::_internal_set_isid(bool value) {
+ _has_bits_[0] |= 0x00000002u;
+ isid_ = value;
+}
+inline void LayersPacket_Layer_Matrix::set_isid(bool value) {
+ _internal_set_isid(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId)
+}
+
+// repeated float m = 3;
+inline int LayersPacket_Layer_Matrix::_internal_m_size() const {
+ return m_.size();
+}
+inline int LayersPacket_Layer_Matrix::m_size() const {
+ return _internal_m_size();
+}
+inline void LayersPacket_Layer_Matrix::clear_m() {
+ m_.Clear();
+}
+inline float LayersPacket_Layer_Matrix::_internal_m(int index) const {
+ return m_.Get(index);
+}
+inline float LayersPacket_Layer_Matrix::m(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
+ return _internal_m(index);
+}
+inline void LayersPacket_Layer_Matrix::set_m(int index, float value) {
+ m_.Set(index, value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
+}
+inline void LayersPacket_Layer_Matrix::_internal_add_m(float value) {
+ m_.Add(value);
+}
+inline void LayersPacket_Layer_Matrix::add_m(float value) {
+ _internal_add_m(value);
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+LayersPacket_Layer_Matrix::_internal_m() const {
+ return m_;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+LayersPacket_Layer_Matrix::m() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
+ return _internal_m();
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+LayersPacket_Layer_Matrix::_internal_mutable_m() {
+ return &m_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+LayersPacket_Layer_Matrix::mutable_m() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m)
+ return _internal_mutable_m();
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer_Shadow
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1;
+inline bool LayersPacket_Layer_Shadow::_internal_has_clip() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ PROTOBUF_ASSUME(!value || clip_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer_Shadow::has_clip() const {
+ return _internal_has_clip();
+}
+inline void LayersPacket_Layer_Shadow::clear_clip() {
+ if (clip_ != nullptr) clip_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Shadow::_internal_clip() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Shadow::clip() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
+ return _internal_clip();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::release_clip() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
+ _has_bits_[0] &= ~0x00000001u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_;
+ clip_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::_internal_mutable_clip() {
+ _has_bits_[0] |= 0x00000001u;
+ if (clip_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Rect>(GetArenaNoVirtual());
+ clip_ = p;
+ }
+ return clip_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::mutable_clip() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
+ return _internal_mutable_clip();
+}
+inline void LayersPacket_Layer_Shadow::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete clip_;
+ }
+ if (clip) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ clip = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, clip, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000001u;
+ } else {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ clip_ = clip;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2;
+inline bool LayersPacket_Layer_Shadow::_internal_has_transform() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || transform_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer_Shadow::has_transform() const {
+ return _internal_has_transform();
+}
+inline void LayersPacket_Layer_Shadow::clear_transform() {
+ if (transform_ != nullptr) transform_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer_Shadow::_internal_transform() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer_Shadow::transform() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
+ return _internal_transform();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::release_transform() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
+ _has_bits_[0] &= ~0x00000002u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_;
+ transform_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::_internal_mutable_transform() {
+ _has_bits_[0] |= 0x00000002u;
+ if (transform_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Matrix>(GetArenaNoVirtual());
+ transform_ = p;
+ }
+ return transform_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::mutable_transform() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
+ return _internal_mutable_transform();
+}
+inline void LayersPacket_Layer_Shadow::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete transform_;
+ }
+ if (transform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ transform = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, transform, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000002u;
+ } else {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ transform_ = transform;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3;
+inline bool LayersPacket_Layer_Shadow::_internal_has_vregion() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ PROTOBUF_ASSUME(!value || vregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer_Shadow::has_vregion() const {
+ return _internal_has_vregion();
+}
+inline void LayersPacket_Layer_Shadow::clear_vregion() {
+ if (vregion_ != nullptr) vregion_->Clear();
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer_Shadow::_internal_vregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer_Shadow::vregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
+ return _internal_vregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::release_vregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
+ _has_bits_[0] &= ~0x00000004u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_;
+ vregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::_internal_mutable_vregion() {
+ _has_bits_[0] |= 0x00000004u;
+ if (vregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ vregion_ = p;
+ }
+ return vregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::mutable_vregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
+ return _internal_mutable_vregion();
+}
+inline void LayersPacket_Layer_Shadow::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete vregion_;
+ }
+ if (vregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ vregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, vregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000004u;
+ } else {
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ vregion_ = vregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion)
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket_Layer
+
+// required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1;
+inline bool LayersPacket_Layer::_internal_has_type() const {
+ bool value = (_has_bits_[0] & 0x00004000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_type() const {
+ return _internal_has_type();
+}
+inline void LayersPacket_Layer::clear_type() {
+ type_ = 0;
+ _has_bits_[0] &= ~0x00004000u;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType LayersPacket_Layer::_internal_type() const {
+ return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(type_);
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType LayersPacket_Layer::type() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.type)
+ return _internal_type();
+}
+inline void LayersPacket_Layer::_internal_set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value) {
+ assert(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value));
+ _has_bits_[0] |= 0x00004000u;
+ type_ = value;
+}
+inline void LayersPacket_Layer::set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value) {
+ _internal_set_type(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.type)
+}
+
+// required uint64 ptr = 2;
+inline bool LayersPacket_Layer::_internal_has_ptr() const {
+ bool value = (_has_bits_[0] & 0x00001000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_ptr() const {
+ return _internal_has_ptr();
+}
+inline void LayersPacket_Layer::clear_ptr() {
+ ptr_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00001000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::_internal_ptr() const {
+ return ptr_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::ptr() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.ptr)
+ return _internal_ptr();
+}
+inline void LayersPacket_Layer::_internal_set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00001000u;
+ ptr_ = value;
+}
+inline void LayersPacket_Layer::set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_ptr(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.ptr)
+}
+
+// required uint64 parentPtr = 3;
+inline bool LayersPacket_Layer::_internal_has_parentptr() const {
+ bool value = (_has_bits_[0] & 0x00002000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_parentptr() const {
+ return _internal_has_parentptr();
+}
+inline void LayersPacket_Layer::clear_parentptr() {
+ parentptr_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00002000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::_internal_parentptr() const {
+ return parentptr_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::parentptr() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr)
+ return _internal_parentptr();
+}
+inline void LayersPacket_Layer::_internal_set_parentptr(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00002000u;
+ parentptr_ = value;
+}
+inline void LayersPacket_Layer::set_parentptr(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_parentptr(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10;
+inline bool LayersPacket_Layer::_internal_has_clip() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || clip_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_clip() const {
+ return _internal_has_clip();
+}
+inline void LayersPacket_Layer::clear_clip() {
+ if (clip_ != nullptr) clip_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer::_internal_clip() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer::clip() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.clip)
+ return _internal_clip();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::release_clip() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.clip)
+ _has_bits_[0] &= ~0x00000002u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_;
+ clip_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::_internal_mutable_clip() {
+ _has_bits_[0] |= 0x00000002u;
+ if (clip_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Rect>(GetArenaNoVirtual());
+ clip_ = p;
+ }
+ return clip_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::mutable_clip() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.clip)
+ return _internal_mutable_clip();
+}
+inline void LayersPacket_Layer::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete clip_;
+ }
+ if (clip) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ clip = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, clip, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000002u;
+ } else {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ clip_ = clip;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.clip)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11;
+inline bool LayersPacket_Layer::_internal_has_transform() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ PROTOBUF_ASSUME(!value || transform_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_transform() const {
+ return _internal_has_transform();
+}
+inline void LayersPacket_Layer::clear_transform() {
+ if (transform_ != nullptr) transform_->Clear();
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer::_internal_transform() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer::transform() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.transform)
+ return _internal_transform();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::release_transform() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.transform)
+ _has_bits_[0] &= ~0x00000004u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_;
+ transform_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::_internal_mutable_transform() {
+ _has_bits_[0] |= 0x00000004u;
+ if (transform_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Matrix>(GetArenaNoVirtual());
+ transform_ = p;
+ }
+ return transform_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::mutable_transform() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.transform)
+ return _internal_mutable_transform();
+}
+inline void LayersPacket_Layer::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete transform_;
+ }
+ if (transform) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ transform = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, transform, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000004u;
+ } else {
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ transform_ = transform;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.transform)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12;
+inline bool LayersPacket_Layer::_internal_has_vregion() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ PROTOBUF_ASSUME(!value || vregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_vregion() const {
+ return _internal_has_vregion();
+}
+inline void LayersPacket_Layer::clear_vregion() {
+ if (vregion_ != nullptr) vregion_->Clear();
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_vregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
+ return _internal_vregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
+ _has_bits_[0] &= ~0x00000008u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_;
+ vregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_vregion() {
+ _has_bits_[0] |= 0x00000008u;
+ if (vregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ vregion_ = p;
+ }
+ return vregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
+ return _internal_mutable_vregion();
+}
+inline void LayersPacket_Layer::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete vregion_;
+ }
+ if (vregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ vregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, vregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000008u;
+ } else {
+ _has_bits_[0] &= ~0x00000008u;
+ }
+ vregion_ = vregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13;
+inline bool LayersPacket_Layer::_internal_has_shadow() const {
+ bool value = (_has_bits_[0] & 0x00000010u) != 0;
+ PROTOBUF_ASSUME(!value || shadow_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_shadow() const {
+ return _internal_has_shadow();
+}
+inline void LayersPacket_Layer::clear_shadow() {
+ if (shadow_ != nullptr) shadow_->Clear();
+ _has_bits_[0] &= ~0x00000010u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& LayersPacket_Layer::_internal_shadow() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* p = shadow_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& LayersPacket_Layer::shadow() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
+ return _internal_shadow();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::release_shadow() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
+ _has_bits_[0] &= ~0x00000010u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* temp = shadow_;
+ shadow_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::_internal_mutable_shadow() {
+ _has_bits_[0] |= 0x00000010u;
+ if (shadow_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Shadow>(GetArenaNoVirtual());
+ shadow_ = p;
+ }
+ return shadow_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::mutable_shadow() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
+ return _internal_mutable_shadow();
+}
+inline void LayersPacket_Layer::set_allocated_shadow(::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* shadow) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete shadow_;
+ }
+ if (shadow) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ shadow = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, shadow, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000010u;
+ } else {
+ _has_bits_[0] &= ~0x00000010u;
+ }
+ shadow_ = shadow;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.shadow)
+}
+
+// optional float opacity = 14;
+inline bool LayersPacket_Layer::_internal_has_opacity() const {
+ bool value = (_has_bits_[0] & 0x00008000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_opacity() const {
+ return _internal_has_opacity();
+}
+inline void LayersPacket_Layer::clear_opacity() {
+ opacity_ = 0;
+ _has_bits_[0] &= ~0x00008000u;
+}
+inline float LayersPacket_Layer::_internal_opacity() const {
+ return opacity_;
+}
+inline float LayersPacket_Layer::opacity() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.opacity)
+ return _internal_opacity();
+}
+inline void LayersPacket_Layer::_internal_set_opacity(float value) {
+ _has_bits_[0] |= 0x00008000u;
+ opacity_ = value;
+}
+inline void LayersPacket_Layer::set_opacity(float value) {
+ _internal_set_opacity(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.opacity)
+}
+
+// optional bool cOpaque = 15;
+inline bool LayersPacket_Layer::_internal_has_copaque() const {
+ bool value = (_has_bits_[0] & 0x00040000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_copaque() const {
+ return _internal_has_copaque();
+}
+inline void LayersPacket_Layer::clear_copaque() {
+ copaque_ = false;
+ _has_bits_[0] &= ~0x00040000u;
+}
+inline bool LayersPacket_Layer::_internal_copaque() const {
+ return copaque_;
+}
+inline bool LayersPacket_Layer::copaque() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque)
+ return _internal_copaque();
+}
+inline void LayersPacket_Layer::_internal_set_copaque(bool value) {
+ _has_bits_[0] |= 0x00040000u;
+ copaque_ = value;
+}
+inline void LayersPacket_Layer::set_copaque(bool value) {
+ _internal_set_copaque(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque)
+}
+
+// optional bool cAlpha = 16;
+inline bool LayersPacket_Layer::_internal_has_calpha() const {
+ bool value = (_has_bits_[0] & 0x00080000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_calpha() const {
+ return _internal_has_calpha();
+}
+inline void LayersPacket_Layer::clear_calpha() {
+ calpha_ = false;
+ _has_bits_[0] &= ~0x00080000u;
+}
+inline bool LayersPacket_Layer::_internal_calpha() const {
+ return calpha_;
+}
+inline bool LayersPacket_Layer::calpha() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha)
+ return _internal_calpha();
+}
+inline void LayersPacket_Layer::_internal_set_calpha(bool value) {
+ _has_bits_[0] |= 0x00080000u;
+ calpha_ = value;
+}
+inline void LayersPacket_Layer::set_calpha(bool value) {
+ _internal_set_calpha(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17;
+inline bool LayersPacket_Layer::_internal_has_direct() const {
+ bool value = (_has_bits_[0] & 0x01000000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_direct() const {
+ return _internal_has_direct();
+}
+inline void LayersPacket_Layer::clear_direct() {
+ direct_ = 1;
+ _has_bits_[0] &= ~0x01000000u;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::_internal_direct() const {
+ return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(direct_);
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::direct() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.direct)
+ return _internal_direct();
+}
+inline void LayersPacket_Layer::_internal_set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value) {
+ assert(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value));
+ _has_bits_[0] |= 0x01000000u;
+ direct_ = value;
+}
+inline void LayersPacket_Layer::set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value) {
+ _internal_set_direct(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.direct)
+}
+
+// optional uint64 barID = 18;
+inline bool LayersPacket_Layer::_internal_has_barid() const {
+ bool value = (_has_bits_[0] & 0x00010000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_barid() const {
+ return _internal_has_barid();
+}
+inline void LayersPacket_Layer::clear_barid() {
+ barid_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00010000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::_internal_barid() const {
+ return barid_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::barid() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.barID)
+ return _internal_barid();
+}
+inline void LayersPacket_Layer::_internal_set_barid(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00010000u;
+ barid_ = value;
+}
+inline void LayersPacket_Layer::set_barid(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_barid(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.barID)
+}
+
+// optional uint64 mask = 19;
+inline bool LayersPacket_Layer::_internal_has_mask() const {
+ bool value = (_has_bits_[0] & 0x00020000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_mask() const {
+ return _internal_has_mask();
+}
+inline void LayersPacket_Layer::clear_mask() {
+ mask_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00020000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::_internal_mask() const {
+ return mask_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::mask() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.mask)
+ return _internal_mask();
+}
+inline void LayersPacket_Layer::_internal_set_mask(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00020000u;
+ mask_ = value;
+}
+inline void LayersPacket_Layer::set_mask(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_mask(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.mask)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20;
+inline bool LayersPacket_Layer::_internal_has_hitregion() const {
+ bool value = (_has_bits_[0] & 0x00000020u) != 0;
+ PROTOBUF_ASSUME(!value || hitregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_hitregion() const {
+ return _internal_has_hitregion();
+}
+inline void LayersPacket_Layer::clear_hitregion() {
+ if (hitregion_ != nullptr) hitregion_->Clear();
+ _has_bits_[0] &= ~0x00000020u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_hitregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hitregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hitregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
+ return _internal_hitregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hitregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
+ _has_bits_[0] &= ~0x00000020u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hitregion_;
+ hitregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_hitregion() {
+ _has_bits_[0] |= 0x00000020u;
+ if (hitregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ hitregion_ = p;
+ }
+ return hitregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hitregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
+ return _internal_mutable_hitregion();
+}
+inline void LayersPacket_Layer::set_allocated_hitregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hitregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete hitregion_;
+ }
+ if (hitregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ hitregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, hitregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000020u;
+ } else {
+ _has_bits_[0] &= ~0x00000020u;
+ }
+ hitregion_ = hitregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21;
+inline bool LayersPacket_Layer::_internal_has_dispatchregion() const {
+ bool value = (_has_bits_[0] & 0x00000040u) != 0;
+ PROTOBUF_ASSUME(!value || dispatchregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_dispatchregion() const {
+ return _internal_has_dispatchregion();
+}
+inline void LayersPacket_Layer::clear_dispatchregion() {
+ if (dispatchregion_ != nullptr) dispatchregion_->Clear();
+ _has_bits_[0] &= ~0x00000040u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_dispatchregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = dispatchregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::dispatchregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
+ return _internal_dispatchregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_dispatchregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
+ _has_bits_[0] &= ~0x00000040u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = dispatchregion_;
+ dispatchregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_dispatchregion() {
+ _has_bits_[0] |= 0x00000040u;
+ if (dispatchregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ dispatchregion_ = p;
+ }
+ return dispatchregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_dispatchregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
+ return _internal_mutable_dispatchregion();
+}
+inline void LayersPacket_Layer::set_allocated_dispatchregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* dispatchregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete dispatchregion_;
+ }
+ if (dispatchregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ dispatchregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, dispatchregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000040u;
+ } else {
+ _has_bits_[0] &= ~0x00000040u;
+ }
+ dispatchregion_ = dispatchregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22;
+inline bool LayersPacket_Layer::_internal_has_noactionregion() const {
+ bool value = (_has_bits_[0] & 0x00000080u) != 0;
+ PROTOBUF_ASSUME(!value || noactionregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_noactionregion() const {
+ return _internal_has_noactionregion();
+}
+inline void LayersPacket_Layer::clear_noactionregion() {
+ if (noactionregion_ != nullptr) noactionregion_->Clear();
+ _has_bits_[0] &= ~0x00000080u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_noactionregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = noactionregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::noactionregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
+ return _internal_noactionregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_noactionregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
+ _has_bits_[0] &= ~0x00000080u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = noactionregion_;
+ noactionregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_noactionregion() {
+ _has_bits_[0] |= 0x00000080u;
+ if (noactionregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ noactionregion_ = p;
+ }
+ return noactionregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_noactionregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
+ return _internal_mutable_noactionregion();
+}
+inline void LayersPacket_Layer::set_allocated_noactionregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* noactionregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete noactionregion_;
+ }
+ if (noactionregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ noactionregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, noactionregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000080u;
+ } else {
+ _has_bits_[0] &= ~0x00000080u;
+ }
+ noactionregion_ = noactionregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23;
+inline bool LayersPacket_Layer::_internal_has_hpanregion() const {
+ bool value = (_has_bits_[0] & 0x00000100u) != 0;
+ PROTOBUF_ASSUME(!value || hpanregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_hpanregion() const {
+ return _internal_has_hpanregion();
+}
+inline void LayersPacket_Layer::clear_hpanregion() {
+ if (hpanregion_ != nullptr) hpanregion_->Clear();
+ _has_bits_[0] &= ~0x00000100u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_hpanregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hpanregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hpanregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
+ return _internal_hpanregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hpanregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
+ _has_bits_[0] &= ~0x00000100u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hpanregion_;
+ hpanregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_hpanregion() {
+ _has_bits_[0] |= 0x00000100u;
+ if (hpanregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ hpanregion_ = p;
+ }
+ return hpanregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hpanregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
+ return _internal_mutable_hpanregion();
+}
+inline void LayersPacket_Layer::set_allocated_hpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hpanregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete hpanregion_;
+ }
+ if (hpanregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ hpanregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, hpanregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000100u;
+ } else {
+ _has_bits_[0] &= ~0x00000100u;
+ }
+ hpanregion_ = hpanregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24;
+inline bool LayersPacket_Layer::_internal_has_vpanregion() const {
+ bool value = (_has_bits_[0] & 0x00000200u) != 0;
+ PROTOBUF_ASSUME(!value || vpanregion_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_vpanregion() const {
+ return _internal_has_vpanregion();
+}
+inline void LayersPacket_Layer::clear_vpanregion() {
+ if (vpanregion_ != nullptr) vpanregion_->Clear();
+ _has_bits_[0] &= ~0x00000200u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_vpanregion() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vpanregion_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vpanregion() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
+ return _internal_vpanregion();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vpanregion() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
+ _has_bits_[0] &= ~0x00000200u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vpanregion_;
+ vpanregion_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_vpanregion() {
+ _has_bits_[0] |= 0x00000200u;
+ if (vpanregion_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ vpanregion_ = p;
+ }
+ return vpanregion_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vpanregion() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
+ return _internal_mutable_vpanregion();
+}
+inline void LayersPacket_Layer::set_allocated_vpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vpanregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete vpanregion_;
+ }
+ if (vpanregion) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ vpanregion = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, vpanregion, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000200u;
+ } else {
+ _has_bits_[0] &= ~0x00000200u;
+ }
+ vpanregion_ = vpanregion;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100;
+inline bool LayersPacket_Layer::_internal_has_valid() const {
+ bool value = (_has_bits_[0] & 0x00000400u) != 0;
+ PROTOBUF_ASSUME(!value || valid_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_valid() const {
+ return _internal_has_valid();
+}
+inline void LayersPacket_Layer::clear_valid() {
+ if (valid_ != nullptr) valid_->Clear();
+ _has_bits_[0] &= ~0x00000400u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::_internal_valid() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = valid_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::valid() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.valid)
+ return _internal_valid();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_valid() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.valid)
+ _has_bits_[0] &= ~0x00000400u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = valid_;
+ valid_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::_internal_mutable_valid() {
+ _has_bits_[0] |= 0x00000400u;
+ if (valid_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Region>(GetArenaNoVirtual());
+ valid_ = p;
+ }
+ return valid_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_valid() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.valid)
+ return _internal_mutable_valid();
+}
+inline void LayersPacket_Layer::set_allocated_valid(::mozilla::layers::layerscope::LayersPacket_Layer_Region* valid) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete valid_;
+ }
+ if (valid) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ valid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, valid, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000400u;
+ } else {
+ _has_bits_[0] &= ~0x00000400u;
+ }
+ valid_ = valid;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.valid)
+}
+
+// optional uint32 color = 101;
+inline bool LayersPacket_Layer::_internal_has_color() const {
+ bool value = (_has_bits_[0] & 0x00100000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_color() const {
+ return _internal_has_color();
+}
+inline void LayersPacket_Layer::clear_color() {
+ color_ = 0u;
+ _has_bits_[0] &= ~0x00100000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 LayersPacket_Layer::_internal_color() const {
+ return color_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 LayersPacket_Layer::color() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.color)
+ return _internal_color();
+}
+inline void LayersPacket_Layer::_internal_set_color(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00100000u;
+ color_ = value;
+}
+inline void LayersPacket_Layer::set_color(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_color(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.color)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102;
+inline bool LayersPacket_Layer::_internal_has_filter() const {
+ bool value = (_has_bits_[0] & 0x00400000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_filter() const {
+ return _internal_has_filter();
+}
+inline void LayersPacket_Layer::clear_filter() {
+ filter_ = 0;
+ _has_bits_[0] &= ~0x00400000u;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Filter LayersPacket_Layer::_internal_filter() const {
+ return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(filter_);
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Filter LayersPacket_Layer::filter() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.filter)
+ return _internal_filter();
+}
+inline void LayersPacket_Layer::_internal_set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value) {
+ assert(::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value));
+ _has_bits_[0] |= 0x00400000u;
+ filter_ = value;
+}
+inline void LayersPacket_Layer::set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value) {
+ _internal_set_filter(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.filter)
+}
+
+// optional uint64 refID = 103;
+inline bool LayersPacket_Layer::_internal_has_refid() const {
+ bool value = (_has_bits_[0] & 0x00200000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_refid() const {
+ return _internal_has_refid();
+}
+inline void LayersPacket_Layer::clear_refid() {
+ refid_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00200000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::_internal_refid() const {
+ return refid_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 LayersPacket_Layer::refid() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.refID)
+ return _internal_refid();
+}
+inline void LayersPacket_Layer::_internal_set_refid(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00200000u;
+ refid_ = value;
+}
+inline void LayersPacket_Layer::set_refid(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_refid(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.refID)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104;
+inline bool LayersPacket_Layer::_internal_has_size() const {
+ bool value = (_has_bits_[0] & 0x00000800u) != 0;
+ PROTOBUF_ASSUME(!value || size_ != nullptr);
+ return value;
+}
+inline bool LayersPacket_Layer::has_size() const {
+ return _internal_has_size();
+}
+inline void LayersPacket_Layer::clear_size() {
+ if (size_ != nullptr) size_->Clear();
+ _has_bits_[0] &= ~0x00000800u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& LayersPacket_Layer::_internal_size() const {
+ const ::mozilla::layers::layerscope::LayersPacket_Layer_Size* p = size_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>(
+ &::mozilla::layers::layerscope::_LayersPacket_Layer_Size_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& LayersPacket_Layer::size() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.size)
+ return _internal_size();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::release_size() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.size)
+ _has_bits_[0] &= ~0x00000800u;
+ ::mozilla::layers::layerscope::LayersPacket_Layer_Size* temp = size_;
+ size_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::_internal_mutable_size() {
+ _has_bits_[0] |= 0x00000800u;
+ if (size_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket_Layer_Size>(GetArenaNoVirtual());
+ size_ = p;
+ }
+ return size_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::mutable_size() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.size)
+ return _internal_mutable_size();
+}
+inline void LayersPacket_Layer::set_allocated_size(::mozilla::layers::layerscope::LayersPacket_Layer_Size* size) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete size_;
+ }
+ if (size) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ size = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, size, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000800u;
+ } else {
+ _has_bits_[0] &= ~0x00000800u;
+ }
+ size_ = size;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.size)
+}
+
+// optional uint32 displayListLogLength = 105;
+inline bool LayersPacket_Layer::_internal_has_displaylistloglength() const {
+ bool value = (_has_bits_[0] & 0x00800000u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_displaylistloglength() const {
+ return _internal_has_displaylistloglength();
+}
+inline void LayersPacket_Layer::clear_displaylistloglength() {
+ displaylistloglength_ = 0u;
+ _has_bits_[0] &= ~0x00800000u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 LayersPacket_Layer::_internal_displaylistloglength() const {
+ return displaylistloglength_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 LayersPacket_Layer::displaylistloglength() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength)
+ return _internal_displaylistloglength();
+}
+inline void LayersPacket_Layer::_internal_set_displaylistloglength(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00800000u;
+ displaylistloglength_ = value;
+}
+inline void LayersPacket_Layer::set_displaylistloglength(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_displaylistloglength(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength)
+}
+
+// optional bytes displayListLog = 106;
+inline bool LayersPacket_Layer::_internal_has_displaylistlog() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool LayersPacket_Layer::has_displaylistlog() const {
+ return _internal_has_displaylistlog();
+}
+inline void LayersPacket_Layer::clear_displaylistlog() {
+ displaylistlog_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline const std::string& LayersPacket_Layer::displaylistlog() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+ return _internal_displaylistlog();
+}
+inline void LayersPacket_Layer::set_displaylistlog(const std::string& value) {
+ _internal_set_displaylistlog(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+}
+inline std::string* LayersPacket_Layer::mutable_displaylistlog() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+ return _internal_mutable_displaylistlog();
+}
+inline const std::string& LayersPacket_Layer::_internal_displaylistlog() const {
+ return displaylistlog_.GetNoArena();
+}
+inline void LayersPacket_Layer::_internal_set_displaylistlog(const std::string& value) {
+ _has_bits_[0] |= 0x00000001u;
+ displaylistlog_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
+}
+inline void LayersPacket_Layer::set_displaylistlog(std::string&& value) {
+ _has_bits_[0] |= 0x00000001u;
+ displaylistlog_.SetNoArena(
+ &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
+ // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+}
+inline void LayersPacket_Layer::set_displaylistlog(const char* value) {
+ GOOGLE_DCHECK(value != nullptr);
+ _has_bits_[0] |= 0x00000001u;
+ displaylistlog_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
+ // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+}
+inline void LayersPacket_Layer::set_displaylistlog(const void* value, size_t size) {
+ _has_bits_[0] |= 0x00000001u;
+ displaylistlog_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(reinterpret_cast<const char*>(value), size));
+ // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+}
+inline std::string* LayersPacket_Layer::_internal_mutable_displaylistlog() {
+ _has_bits_[0] |= 0x00000001u;
+ return displaylistlog_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+inline std::string* LayersPacket_Layer::release_displaylistlog() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+ if (!_internal_has_displaylistlog()) {
+ return nullptr;
+ }
+ _has_bits_[0] &= ~0x00000001u;
+ return displaylistlog_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
+}
+inline void LayersPacket_Layer::set_allocated_displaylistlog(std::string* displaylistlog) {
+ if (displaylistlog != nullptr) {
+ _has_bits_[0] |= 0x00000001u;
+ } else {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ displaylistlog_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaylistlog);
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog)
+}
+
+// -------------------------------------------------------------------
+
+// LayersPacket
+
+// repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1;
+inline int LayersPacket::_internal_layer_size() const {
+ return layer_.size();
+}
+inline int LayersPacket::layer_size() const {
+ return _internal_layer_size();
+}
+inline void LayersPacket::clear_layer() {
+ layer_.Clear();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::mutable_layer(int index) {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.layer)
+ return layer_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >*
+LayersPacket::mutable_layer() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.layer)
+ return &layer_;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer& LayersPacket::_internal_layer(int index) const {
+ return layer_.Get(index);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket_Layer& LayersPacket::layer(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.layer)
+ return _internal_layer(index);
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::_internal_add_layer() {
+ return layer_.Add();
+}
+inline ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::add_layer() {
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.layer)
+ return _internal_add_layer();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >&
+LayersPacket::layer() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.layer)
+ return layer_;
+}
+
+// -------------------------------------------------------------------
+
+// MetaPacket
+
+// optional bool composedByHwc = 1;
+inline bool MetaPacket::_internal_has_composedbyhwc() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool MetaPacket::has_composedbyhwc() const {
+ return _internal_has_composedbyhwc();
+}
+inline void MetaPacket::clear_composedbyhwc() {
+ composedbyhwc_ = false;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline bool MetaPacket::_internal_composedbyhwc() const {
+ return composedbyhwc_;
+}
+inline bool MetaPacket::composedbyhwc() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.MetaPacket.composedByHwc)
+ return _internal_composedbyhwc();
+}
+inline void MetaPacket::_internal_set_composedbyhwc(bool value) {
+ _has_bits_[0] |= 0x00000001u;
+ composedbyhwc_ = value;
+}
+inline void MetaPacket::set_composedbyhwc(bool value) {
+ _internal_set_composedbyhwc(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.MetaPacket.composedByHwc)
+}
+
+// -------------------------------------------------------------------
+
+// DrawPacket_Rect
+
+// required float x = 1;
+inline bool DrawPacket_Rect::_internal_has_x() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool DrawPacket_Rect::has_x() const {
+ return _internal_has_x();
+}
+inline void DrawPacket_Rect::clear_x() {
+ x_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline float DrawPacket_Rect::_internal_x() const {
+ return x_;
+}
+inline float DrawPacket_Rect::x() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.x)
+ return _internal_x();
+}
+inline void DrawPacket_Rect::_internal_set_x(float value) {
+ _has_bits_[0] |= 0x00000001u;
+ x_ = value;
+}
+inline void DrawPacket_Rect::set_x(float value) {
+ _internal_set_x(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.x)
+}
+
+// required float y = 2;
+inline bool DrawPacket_Rect::_internal_has_y() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool DrawPacket_Rect::has_y() const {
+ return _internal_has_y();
+}
+inline void DrawPacket_Rect::clear_y() {
+ y_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline float DrawPacket_Rect::_internal_y() const {
+ return y_;
+}
+inline float DrawPacket_Rect::y() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.y)
+ return _internal_y();
+}
+inline void DrawPacket_Rect::_internal_set_y(float value) {
+ _has_bits_[0] |= 0x00000002u;
+ y_ = value;
+}
+inline void DrawPacket_Rect::set_y(float value) {
+ _internal_set_y(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.y)
+}
+
+// required float w = 3;
+inline bool DrawPacket_Rect::_internal_has_w() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool DrawPacket_Rect::has_w() const {
+ return _internal_has_w();
+}
+inline void DrawPacket_Rect::clear_w() {
+ w_ = 0;
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline float DrawPacket_Rect::_internal_w() const {
+ return w_;
+}
+inline float DrawPacket_Rect::w() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.w)
+ return _internal_w();
+}
+inline void DrawPacket_Rect::_internal_set_w(float value) {
+ _has_bits_[0] |= 0x00000004u;
+ w_ = value;
+}
+inline void DrawPacket_Rect::set_w(float value) {
+ _internal_set_w(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.w)
+}
+
+// required float h = 4;
+inline bool DrawPacket_Rect::_internal_has_h() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool DrawPacket_Rect::has_h() const {
+ return _internal_has_h();
+}
+inline void DrawPacket_Rect::clear_h() {
+ h_ = 0;
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline float DrawPacket_Rect::_internal_h() const {
+ return h_;
+}
+inline float DrawPacket_Rect::h() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.h)
+ return _internal_h();
+}
+inline void DrawPacket_Rect::_internal_set_h(float value) {
+ _has_bits_[0] |= 0x00000008u;
+ h_ = value;
+}
+inline void DrawPacket_Rect::set_h(float value) {
+ _internal_set_h(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.h)
+}
+
+// -------------------------------------------------------------------
+
+// DrawPacket
+
+// required float offsetX = 1;
+inline bool DrawPacket::_internal_has_offsetx() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool DrawPacket::has_offsetx() const {
+ return _internal_has_offsetx();
+}
+inline void DrawPacket::clear_offsetx() {
+ offsetx_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline float DrawPacket::_internal_offsetx() const {
+ return offsetx_;
+}
+inline float DrawPacket::offsetx() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetX)
+ return _internal_offsetx();
+}
+inline void DrawPacket::_internal_set_offsetx(float value) {
+ _has_bits_[0] |= 0x00000001u;
+ offsetx_ = value;
+}
+inline void DrawPacket::set_offsetx(float value) {
+ _internal_set_offsetx(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetX)
+}
+
+// required float offsetY = 2;
+inline bool DrawPacket::_internal_has_offsety() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool DrawPacket::has_offsety() const {
+ return _internal_has_offsety();
+}
+inline void DrawPacket::clear_offsety() {
+ offsety_ = 0;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline float DrawPacket::_internal_offsety() const {
+ return offsety_;
+}
+inline float DrawPacket::offsety() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetY)
+ return _internal_offsety();
+}
+inline void DrawPacket::_internal_set_offsety(float value) {
+ _has_bits_[0] |= 0x00000002u;
+ offsety_ = value;
+}
+inline void DrawPacket::set_offsety(float value) {
+ _internal_set_offsety(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetY)
+}
+
+// repeated float mvMatrix = 3;
+inline int DrawPacket::_internal_mvmatrix_size() const {
+ return mvmatrix_.size();
+}
+inline int DrawPacket::mvmatrix_size() const {
+ return _internal_mvmatrix_size();
+}
+inline void DrawPacket::clear_mvmatrix() {
+ mvmatrix_.Clear();
+}
+inline float DrawPacket::_internal_mvmatrix(int index) const {
+ return mvmatrix_.Get(index);
+}
+inline float DrawPacket::mvmatrix(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.mvMatrix)
+ return _internal_mvmatrix(index);
+}
+inline void DrawPacket::set_mvmatrix(int index, float value) {
+ mvmatrix_.Set(index, value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.mvMatrix)
+}
+inline void DrawPacket::_internal_add_mvmatrix(float value) {
+ mvmatrix_.Add(value);
+}
+inline void DrawPacket::add_mvmatrix(float value) {
+ _internal_add_mvmatrix(value);
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.mvMatrix)
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+DrawPacket::_internal_mvmatrix() const {
+ return mvmatrix_;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >&
+DrawPacket::mvmatrix() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.mvMatrix)
+ return _internal_mvmatrix();
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+DrawPacket::_internal_mutable_mvmatrix() {
+ return &mvmatrix_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >*
+DrawPacket::mutable_mvmatrix() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.mvMatrix)
+ return _internal_mutable_mvmatrix();
+}
+
+// required uint32 totalRects = 4;
+inline bool DrawPacket::_internal_has_totalrects() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ return value;
+}
+inline bool DrawPacket::has_totalrects() const {
+ return _internal_has_totalrects();
+}
+inline void DrawPacket::clear_totalrects() {
+ totalrects_ = 0u;
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 DrawPacket::_internal_totalrects() const {
+ return totalrects_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 DrawPacket::totalrects() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.totalRects)
+ return _internal_totalrects();
+}
+inline void DrawPacket::_internal_set_totalrects(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _has_bits_[0] |= 0x00000008u;
+ totalrects_ = value;
+}
+inline void DrawPacket::set_totalrects(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_set_totalrects(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.totalRects)
+}
+
+// repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5;
+inline int DrawPacket::_internal_layerrect_size() const {
+ return layerrect_.size();
+}
+inline int DrawPacket::layerrect_size() const {
+ return _internal_layerrect_size();
+}
+inline void DrawPacket::clear_layerrect() {
+ layerrect_.Clear();
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_layerrect(int index) {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.layerRect)
+ return layerrect_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
+DrawPacket::mutable_layerrect() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.layerRect)
+ return &layerrect_;
+}
+inline const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::_internal_layerrect(int index) const {
+ return layerrect_.Get(index);
+}
+inline const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::layerrect(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerRect)
+ return _internal_layerrect(index);
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::_internal_add_layerrect() {
+ return layerrect_.Add();
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_layerrect() {
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.layerRect)
+ return _internal_add_layerrect();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
+DrawPacket::layerrect() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.layerRect)
+ return layerrect_;
+}
+
+// required uint64 layerref = 6;
+inline bool DrawPacket::_internal_has_layerref() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ return value;
+}
+inline bool DrawPacket::has_layerref() const {
+ return _internal_has_layerref();
+}
+inline void DrawPacket::clear_layerref() {
+ layerref_ = PROTOBUF_ULONGLONG(0);
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 DrawPacket::_internal_layerref() const {
+ return layerref_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint64 DrawPacket::layerref() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerref)
+ return _internal_layerref();
+}
+inline void DrawPacket::_internal_set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _has_bits_[0] |= 0x00000004u;
+ layerref_ = value;
+}
+inline void DrawPacket::set_layerref(::PROTOBUF_NAMESPACE_ID::uint64 value) {
+ _internal_set_layerref(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.layerref)
+}
+
+// repeated uint32 texIDs = 7;
+inline int DrawPacket::_internal_texids_size() const {
+ return texids_.size();
+}
+inline int DrawPacket::texids_size() const {
+ return _internal_texids_size();
+}
+inline void DrawPacket::clear_texids() {
+ texids_.Clear();
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 DrawPacket::_internal_texids(int index) const {
+ return texids_.Get(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::uint32 DrawPacket::texids(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.texIDs)
+ return _internal_texids(index);
+}
+inline void DrawPacket::set_texids(int index, ::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ texids_.Set(index, value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.texIDs)
+}
+inline void DrawPacket::_internal_add_texids(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ texids_.Add(value);
+}
+inline void DrawPacket::add_texids(::PROTOBUF_NAMESPACE_ID::uint32 value) {
+ _internal_add_texids(value);
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.texIDs)
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
+DrawPacket::_internal_texids() const {
+ return texids_;
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >&
+DrawPacket::texids() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.texIDs)
+ return _internal_texids();
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
+DrawPacket::_internal_mutable_texids() {
+ return &texids_;
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint32 >*
+DrawPacket::mutable_texids() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.texIDs)
+ return _internal_mutable_texids();
+}
+
+// repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8;
+inline int DrawPacket::_internal_texturerect_size() const {
+ return texturerect_.size();
+}
+inline int DrawPacket::texturerect_size() const {
+ return _internal_texturerect_size();
+}
+inline void DrawPacket::clear_texturerect() {
+ texturerect_.Clear();
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_texturerect(int index) {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.textureRect)
+ return texturerect_.Mutable(index);
+}
+inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >*
+DrawPacket::mutable_texturerect() {
+ // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.textureRect)
+ return &texturerect_;
+}
+inline const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::_internal_texturerect(int index) const {
+ return texturerect_.Get(index);
+}
+inline const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::texturerect(int index) const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.textureRect)
+ return _internal_texturerect(index);
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::_internal_add_texturerect() {
+ return texturerect_.Add();
+}
+inline ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_texturerect() {
+ // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.textureRect)
+ return _internal_add_texturerect();
+}
+inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >&
+DrawPacket::texturerect() const {
+ // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.textureRect)
+ return texturerect_;
+}
+
+// -------------------------------------------------------------------
+
+// Packet
+
+// required .mozilla.layers.layerscope.Packet.DataType type = 1;
+inline bool Packet::_internal_has_type() const {
+ bool value = (_has_bits_[0] & 0x00000040u) != 0;
+ return value;
+}
+inline bool Packet::has_type() const {
+ return _internal_has_type();
+}
+inline void Packet::clear_type() {
+ type_ = 1;
+ _has_bits_[0] &= ~0x00000040u;
+}
+inline ::mozilla::layers::layerscope::Packet_DataType Packet::_internal_type() const {
+ return static_cast< ::mozilla::layers::layerscope::Packet_DataType >(type_);
+}
+inline ::mozilla::layers::layerscope::Packet_DataType Packet::type() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.type)
+ return _internal_type();
+}
+inline void Packet::_internal_set_type(::mozilla::layers::layerscope::Packet_DataType value) {
+ assert(::mozilla::layers::layerscope::Packet_DataType_IsValid(value));
+ _has_bits_[0] |= 0x00000040u;
+ type_ = value;
+}
+inline void Packet::set_type(::mozilla::layers::layerscope::Packet_DataType value) {
+ _internal_set_type(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.Packet.type)
+}
+
+// optional .mozilla.layers.layerscope.FramePacket frame = 2;
+inline bool Packet::_internal_has_frame() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ PROTOBUF_ASSUME(!value || frame_ != nullptr);
+ return value;
+}
+inline bool Packet::has_frame() const {
+ return _internal_has_frame();
+}
+inline void Packet::clear_frame() {
+ if (frame_ != nullptr) frame_->Clear();
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline const ::mozilla::layers::layerscope::FramePacket& Packet::_internal_frame() const {
+ const ::mozilla::layers::layerscope::FramePacket* p = frame_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::FramePacket*>(
+ &::mozilla::layers::layerscope::_FramePacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::FramePacket& Packet::frame() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.frame)
+ return _internal_frame();
+}
+inline ::mozilla::layers::layerscope::FramePacket* Packet::release_frame() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.frame)
+ _has_bits_[0] &= ~0x00000001u;
+ ::mozilla::layers::layerscope::FramePacket* temp = frame_;
+ frame_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::FramePacket* Packet::_internal_mutable_frame() {
+ _has_bits_[0] |= 0x00000001u;
+ if (frame_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::FramePacket>(GetArenaNoVirtual());
+ frame_ = p;
+ }
+ return frame_;
+}
+inline ::mozilla::layers::layerscope::FramePacket* Packet::mutable_frame() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.frame)
+ return _internal_mutable_frame();
+}
+inline void Packet::set_allocated_frame(::mozilla::layers::layerscope::FramePacket* frame) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete frame_;
+ }
+ if (frame) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, frame, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000001u;
+ } else {
+ _has_bits_[0] &= ~0x00000001u;
+ }
+ frame_ = frame;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.frame)
+}
+
+// optional .mozilla.layers.layerscope.ColorPacket color = 3;
+inline bool Packet::_internal_has_color() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ PROTOBUF_ASSUME(!value || color_ != nullptr);
+ return value;
+}
+inline bool Packet::has_color() const {
+ return _internal_has_color();
+}
+inline void Packet::clear_color() {
+ if (color_ != nullptr) color_->Clear();
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline const ::mozilla::layers::layerscope::ColorPacket& Packet::_internal_color() const {
+ const ::mozilla::layers::layerscope::ColorPacket* p = color_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::ColorPacket*>(
+ &::mozilla::layers::layerscope::_ColorPacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::ColorPacket& Packet::color() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.color)
+ return _internal_color();
+}
+inline ::mozilla::layers::layerscope::ColorPacket* Packet::release_color() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.color)
+ _has_bits_[0] &= ~0x00000002u;
+ ::mozilla::layers::layerscope::ColorPacket* temp = color_;
+ color_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::ColorPacket* Packet::_internal_mutable_color() {
+ _has_bits_[0] |= 0x00000002u;
+ if (color_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::ColorPacket>(GetArenaNoVirtual());
+ color_ = p;
+ }
+ return color_;
+}
+inline ::mozilla::layers::layerscope::ColorPacket* Packet::mutable_color() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.color)
+ return _internal_mutable_color();
+}
+inline void Packet::set_allocated_color(::mozilla::layers::layerscope::ColorPacket* color) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete color_;
+ }
+ if (color) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ color = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, color, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000002u;
+ } else {
+ _has_bits_[0] &= ~0x00000002u;
+ }
+ color_ = color;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.color)
+}
+
+// optional .mozilla.layers.layerscope.TexturePacket texture = 4;
+inline bool Packet::_internal_has_texture() const {
+ bool value = (_has_bits_[0] & 0x00000004u) != 0;
+ PROTOBUF_ASSUME(!value || texture_ != nullptr);
+ return value;
+}
+inline bool Packet::has_texture() const {
+ return _internal_has_texture();
+}
+inline void Packet::clear_texture() {
+ if (texture_ != nullptr) texture_->Clear();
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline const ::mozilla::layers::layerscope::TexturePacket& Packet::_internal_texture() const {
+ const ::mozilla::layers::layerscope::TexturePacket* p = texture_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket*>(
+ &::mozilla::layers::layerscope::_TexturePacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::TexturePacket& Packet::texture() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.texture)
+ return _internal_texture();
+}
+inline ::mozilla::layers::layerscope::TexturePacket* Packet::release_texture() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.texture)
+ _has_bits_[0] &= ~0x00000004u;
+ ::mozilla::layers::layerscope::TexturePacket* temp = texture_;
+ texture_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::TexturePacket* Packet::_internal_mutable_texture() {
+ _has_bits_[0] |= 0x00000004u;
+ if (texture_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::TexturePacket>(GetArenaNoVirtual());
+ texture_ = p;
+ }
+ return texture_;
+}
+inline ::mozilla::layers::layerscope::TexturePacket* Packet::mutable_texture() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.texture)
+ return _internal_mutable_texture();
+}
+inline void Packet::set_allocated_texture(::mozilla::layers::layerscope::TexturePacket* texture) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete texture_;
+ }
+ if (texture) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ texture = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, texture, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000004u;
+ } else {
+ _has_bits_[0] &= ~0x00000004u;
+ }
+ texture_ = texture;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.texture)
+}
+
+// optional .mozilla.layers.layerscope.LayersPacket layers = 5;
+inline bool Packet::_internal_has_layers() const {
+ bool value = (_has_bits_[0] & 0x00000008u) != 0;
+ PROTOBUF_ASSUME(!value || layers_ != nullptr);
+ return value;
+}
+inline bool Packet::has_layers() const {
+ return _internal_has_layers();
+}
+inline void Packet::clear_layers() {
+ if (layers_ != nullptr) layers_->Clear();
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline const ::mozilla::layers::layerscope::LayersPacket& Packet::_internal_layers() const {
+ const ::mozilla::layers::layerscope::LayersPacket* p = layers_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket*>(
+ &::mozilla::layers::layerscope::_LayersPacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::LayersPacket& Packet::layers() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.layers)
+ return _internal_layers();
+}
+inline ::mozilla::layers::layerscope::LayersPacket* Packet::release_layers() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.layers)
+ _has_bits_[0] &= ~0x00000008u;
+ ::mozilla::layers::layerscope::LayersPacket* temp = layers_;
+ layers_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::LayersPacket* Packet::_internal_mutable_layers() {
+ _has_bits_[0] |= 0x00000008u;
+ if (layers_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::LayersPacket>(GetArenaNoVirtual());
+ layers_ = p;
+ }
+ return layers_;
+}
+inline ::mozilla::layers::layerscope::LayersPacket* Packet::mutable_layers() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.layers)
+ return _internal_mutable_layers();
+}
+inline void Packet::set_allocated_layers(::mozilla::layers::layerscope::LayersPacket* layers) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete layers_;
+ }
+ if (layers) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ layers = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, layers, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000008u;
+ } else {
+ _has_bits_[0] &= ~0x00000008u;
+ }
+ layers_ = layers;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.layers)
+}
+
+// optional .mozilla.layers.layerscope.MetaPacket meta = 6;
+inline bool Packet::_internal_has_meta() const {
+ bool value = (_has_bits_[0] & 0x00000010u) != 0;
+ PROTOBUF_ASSUME(!value || meta_ != nullptr);
+ return value;
+}
+inline bool Packet::has_meta() const {
+ return _internal_has_meta();
+}
+inline void Packet::clear_meta() {
+ if (meta_ != nullptr) meta_->Clear();
+ _has_bits_[0] &= ~0x00000010u;
+}
+inline const ::mozilla::layers::layerscope::MetaPacket& Packet::_internal_meta() const {
+ const ::mozilla::layers::layerscope::MetaPacket* p = meta_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::MetaPacket*>(
+ &::mozilla::layers::layerscope::_MetaPacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::MetaPacket& Packet::meta() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.meta)
+ return _internal_meta();
+}
+inline ::mozilla::layers::layerscope::MetaPacket* Packet::release_meta() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.meta)
+ _has_bits_[0] &= ~0x00000010u;
+ ::mozilla::layers::layerscope::MetaPacket* temp = meta_;
+ meta_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::MetaPacket* Packet::_internal_mutable_meta() {
+ _has_bits_[0] |= 0x00000010u;
+ if (meta_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::MetaPacket>(GetArenaNoVirtual());
+ meta_ = p;
+ }
+ return meta_;
+}
+inline ::mozilla::layers::layerscope::MetaPacket* Packet::mutable_meta() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.meta)
+ return _internal_mutable_meta();
+}
+inline void Packet::set_allocated_meta(::mozilla::layers::layerscope::MetaPacket* meta) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete meta_;
+ }
+ if (meta) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, meta, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000010u;
+ } else {
+ _has_bits_[0] &= ~0x00000010u;
+ }
+ meta_ = meta;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.meta)
+}
+
+// optional .mozilla.layers.layerscope.DrawPacket draw = 7;
+inline bool Packet::_internal_has_draw() const {
+ bool value = (_has_bits_[0] & 0x00000020u) != 0;
+ PROTOBUF_ASSUME(!value || draw_ != nullptr);
+ return value;
+}
+inline bool Packet::has_draw() const {
+ return _internal_has_draw();
+}
+inline void Packet::clear_draw() {
+ if (draw_ != nullptr) draw_->Clear();
+ _has_bits_[0] &= ~0x00000020u;
+}
+inline const ::mozilla::layers::layerscope::DrawPacket& Packet::_internal_draw() const {
+ const ::mozilla::layers::layerscope::DrawPacket* p = draw_;
+ return p != nullptr ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::DrawPacket*>(
+ &::mozilla::layers::layerscope::_DrawPacket_default_instance_);
+}
+inline const ::mozilla::layers::layerscope::DrawPacket& Packet::draw() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.draw)
+ return _internal_draw();
+}
+inline ::mozilla::layers::layerscope::DrawPacket* Packet::release_draw() {
+ // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.draw)
+ _has_bits_[0] &= ~0x00000020u;
+ ::mozilla::layers::layerscope::DrawPacket* temp = draw_;
+ draw_ = nullptr;
+ return temp;
+}
+inline ::mozilla::layers::layerscope::DrawPacket* Packet::_internal_mutable_draw() {
+ _has_bits_[0] |= 0x00000020u;
+ if (draw_ == nullptr) {
+ auto* p = CreateMaybeMessage<::mozilla::layers::layerscope::DrawPacket>(GetArenaNoVirtual());
+ draw_ = p;
+ }
+ return draw_;
+}
+inline ::mozilla::layers::layerscope::DrawPacket* Packet::mutable_draw() {
+ // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.draw)
+ return _internal_mutable_draw();
+}
+inline void Packet::set_allocated_draw(::mozilla::layers::layerscope::DrawPacket* draw) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
+ if (message_arena == nullptr) {
+ delete draw_;
+ }
+ if (draw) {
+ ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
+ if (message_arena != submessage_arena) {
+ draw = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+ message_arena, draw, submessage_arena);
+ }
+ _has_bits_[0] |= 0x00000020u;
+ } else {
+ _has_bits_[0] &= ~0x00000020u;
+ }
+ draw_ = draw;
+ // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.draw)
+}
+
+// -------------------------------------------------------------------
+
+// CommandPacket
+
+// required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1;
+inline bool CommandPacket::_internal_has_type() const {
+ bool value = (_has_bits_[0] & 0x00000001u) != 0;
+ return value;
+}
+inline bool CommandPacket::has_type() const {
+ return _internal_has_type();
+}
+inline void CommandPacket::clear_type() {
+ type_ = 0;
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline ::mozilla::layers::layerscope::CommandPacket_CmdType CommandPacket::_internal_type() const {
+ return static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(type_);
+}
+inline ::mozilla::layers::layerscope::CommandPacket_CmdType CommandPacket::type() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.type)
+ return _internal_type();
+}
+inline void CommandPacket::_internal_set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value) {
+ assert(::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value));
+ _has_bits_[0] |= 0x00000001u;
+ type_ = value;
+}
+inline void CommandPacket::set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value) {
+ _internal_set_type(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.type)
+}
+
+// optional bool value = 2;
+inline bool CommandPacket::_internal_has_value() const {
+ bool value = (_has_bits_[0] & 0x00000002u) != 0;
+ return value;
+}
+inline bool CommandPacket::has_value() const {
+ return _internal_has_value();
+}
+inline void CommandPacket::clear_value() {
+ value_ = false;
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline bool CommandPacket::_internal_value() const {
+ return value_;
+}
+inline bool CommandPacket::value() const {
+ // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.value)
+ return _internal_value();
+}
+inline void CommandPacket::_internal_set_value(bool value) {
+ _has_bits_[0] |= 0x00000002u;
+ value_ = value;
+}
+inline void CommandPacket::set_value(bool value) {
+ _internal_set_value(value);
+ // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.value)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace layerscope
+} // namespace layers
+} // namespace mozilla
+
+PROTOBUF_NAMESPACE_OPEN
+
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::TexturePacket_Filter> : ::std::true_type {};
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType> : ::std::true_type {};
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect> : ::std::true_type {};
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter> : ::std::true_type {};
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::Packet_DataType> : ::std::true_type {};
+template <> struct is_proto_enum< ::mozilla::layers::layerscope::CommandPacket_CmdType> : ::std::true_type {};
+
+PROTOBUF_NAMESPACE_CLOSE
+
+// @@protoc_insertion_point(global_scope)
+
+#include <google/protobuf/port_undef.inc>
+#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_LayerScopePacket_2eproto
diff --git a/gfx/layers/protobuf/LayerScopePacket.proto b/gfx/layers/protobuf/LayerScopePacket.proto
new file mode 100644
index 0000000000..a871aa8594
--- /dev/null
+++ b/gfx/layers/protobuf/LayerScopePacket.proto
@@ -0,0 +1,221 @@
+/* vim:set ts=2 sw=2 sts=2 et: */
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package mozilla.layers.layerscope;
+
+// ===============================
+// Server to Client messages
+// ===============================
+message FramePacket {
+ optional uint64 value = 1;
+ optional float scale = 2;
+}
+
+message ColorPacket {
+ required uint64 layerref = 1;
+ optional uint32 width = 2;
+ optional uint32 height = 3;
+ optional uint32 color = 4;
+}
+
+message TexturePacket {
+ enum Filter {
+ GOOD = 0;
+ LINEAR = 1;
+ POINT = 2;
+ }
+ message Rect {
+ optional float x = 1;
+ optional float y = 2;
+ optional float w = 3;
+ optional float h = 4;
+ }
+ message Size {
+ optional int32 w = 1;
+ optional int32 h = 2;
+ }
+ message Matrix {
+ optional bool is2D = 1;
+ optional bool isId = 2;
+ repeated float m = 3;
+ }
+ message EffectMask {
+ optional bool mIs3D = 1;
+ optional Size mSize = 2;
+ optional Matrix mMaskTransform = 3;
+ }
+
+ // Basic info
+ required uint64 layerref = 1;
+ optional uint32 width = 2;
+ optional uint32 height = 3;
+ optional uint32 stride = 4;
+ optional uint32 name = 5;
+ optional uint32 target = 6;
+ optional uint32 dataformat = 7;
+ optional uint64 glcontext = 8;
+ optional bytes data = 9;
+
+ // TextureEffect attributes
+ optional Rect mTextureCoords = 10;
+ optional bool mPremultiplied = 11;
+ optional Filter mFilter = 12;
+
+ // Mask attributes
+ optional bool isMask = 20;
+ optional EffectMask mask = 21;
+}
+
+message LayersPacket {
+ message Layer {
+ enum LayerType {
+ UnknownLayer = 0;
+ LayerManager = 1;
+ ContainerLayer = 2;
+ PaintedLayer = 3;
+ CanvasLayer = 4;
+ ImageLayer = 5;
+ ColorLayer = 6;
+ RefLayer = 8;
+ ReadbackLayer = 9;
+ DisplayItemLayer = 10;
+ }
+ enum ScrollingDirect {
+ VERTICAL = 1;
+ HORIZONTAL = 2;
+ }
+ enum Filter {
+ FILTER_FAST = 0; // deprecated
+ FILTER_GOOD = 1;
+ FILTER_BEST = 2; // deprecated
+ FILTER_NEAREST = 3; //deprecated
+ FILTER_BILINEAR = 4; //deprecated
+ FILTER_GAUSSIAN = 5; //deprecated
+ FILTER_SENTINEL = 6; //deprecated
+ FILTER_LINEAR = 7;
+ FILTER_POINT = 8;
+ }
+ message Size {
+ optional int32 w = 1;
+ optional int32 h = 2;
+ }
+ message Rect {
+ optional int32 x = 1;
+ optional int32 y = 2;
+ optional int32 w = 3;
+ optional int32 h = 4;
+ }
+ message Region {
+ repeated Rect r = 1;
+ }
+ message Matrix {
+ optional bool is2D = 1;
+ optional bool isId = 2;
+ repeated float m = 3;
+ }
+ message Shadow {
+ optional Rect clip = 1;
+ optional Matrix transform = 2;
+ optional Region vRegion = 3;
+ }
+
+ // Basic info
+ // Note: Parent's pointer is used to recontruct the layer tree
+ required LayerType type = 1;
+ required uint64 ptr = 2;
+ required uint64 parentPtr = 3;
+
+ // Common info (10 to 99)
+ optional Rect clip = 10;
+ optional Matrix transform = 11;
+ optional Region vRegion = 12; // visible region
+ optional Shadow shadow = 13; // shadow info
+ optional float opacity = 14;
+ optional bool cOpaque = 15; // content opaque
+ optional bool cAlpha = 16; // component alpha
+ optional ScrollingDirect direct = 17;
+ optional uint64 barID = 18;
+ optional uint64 mask = 19; // mask layer
+ optional Region hitRegion = 20;
+ optional Region dispatchRegion = 21;
+ optional Region noActionRegion = 22;
+ optional Region hPanRegion = 23;
+ optional Region vPanRegion = 24;
+
+ // Specific info (100 to max)
+ // Painted Layer
+ optional Region valid = 100;
+ // Color Layer
+ optional uint32 color = 101;
+ // Canvas & Image Layer
+ optional Filter filter = 102;
+ // Ref Layer
+ optional uint64 refID = 103;
+ // Readback Layer
+ optional Size size = 104;
+ optional uint32 displayListLogLength = 105;
+ optional bytes displayListLog = 106;
+ }
+ repeated Layer layer = 1;
+}
+
+message MetaPacket {
+ optional bool composedByHwc = 1;
+}
+
+message DrawPacket {
+ message Rect {
+ required float x = 1;
+ required float y = 2;
+ required float w = 3;
+ required float h = 4;
+ }
+
+ required float offsetX = 1;
+ required float offsetY = 2;
+ repeated float mvMatrix = 3;
+ required uint32 totalRects = 4;
+ repeated Rect layerRect = 5;
+ required uint64 layerref = 6;
+ repeated uint32 texIDs = 7;
+ repeated Rect textureRect = 8;
+}
+
+// We only need to use this Packet.
+// Other packet definitions are just type defines
+message Packet {
+ enum DataType {
+ FRAMESTART = 1;
+ FRAMEEND = 2;
+ COLOR = 3;
+ TEXTURE = 4;
+ LAYERS = 5;
+ META = 6;
+ DRAW = 7;
+ }
+ required DataType type = 1;
+
+ optional FramePacket frame = 2;
+ optional ColorPacket color = 3;
+ optional TexturePacket texture = 4;
+ optional LayersPacket layers = 5;
+ optional MetaPacket meta = 6;
+ optional DrawPacket draw = 7;
+}
+
+
+// ===============================
+// Client to Server messages
+// ===============================
+message CommandPacket {
+ enum CmdType {
+ NO_OP = 0;
+ LAYERS_TREE = 1;
+ LAYERS_BUFFER = 2;
+ }
+ required CmdType type = 1;
+ optional bool value = 2;
+}