/src/mozilla-central/gfx/layers/protobuf/LayerScopePacket.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: LayerScopePacket.proto |
3 | | |
4 | | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
5 | | #include "LayerScopePacket.pb.h" |
6 | | |
7 | | #include <algorithm> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | #include <google/protobuf/stubs/port.h> |
11 | | #include <google/protobuf/stubs/once.h> |
12 | | #include <google/protobuf/io/coded_stream.h> |
13 | | #include <google/protobuf/wire_format_lite_inl.h> |
14 | | #include <google/protobuf/io/zero_copy_stream_impl_lite.h> |
15 | | // @@protoc_insertion_point(includes) |
16 | | |
17 | | namespace mozilla { |
18 | | namespace layers { |
19 | | namespace layerscope { |
20 | | class FramePacketDefaultTypeInternal { |
21 | | public: |
22 | | ::google::protobuf::internal::ExplicitlyConstructed<FramePacket> |
23 | | _instance; |
24 | | } _FramePacket_default_instance_; |
25 | | class ColorPacketDefaultTypeInternal { |
26 | | public: |
27 | | ::google::protobuf::internal::ExplicitlyConstructed<ColorPacket> |
28 | | _instance; |
29 | | } _ColorPacket_default_instance_; |
30 | | class TexturePacket_RectDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Rect> |
33 | | _instance; |
34 | | } _TexturePacket_Rect_default_instance_; |
35 | | class TexturePacket_SizeDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Size> |
38 | | _instance; |
39 | | } _TexturePacket_Size_default_instance_; |
40 | | class TexturePacket_MatrixDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_Matrix> |
43 | | _instance; |
44 | | } _TexturePacket_Matrix_default_instance_; |
45 | | class TexturePacket_EffectMaskDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket_EffectMask> |
48 | | _instance; |
49 | | } _TexturePacket_EffectMask_default_instance_; |
50 | | class TexturePacketDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<TexturePacket> |
53 | | _instance; |
54 | | } _TexturePacket_default_instance_; |
55 | | class LayersPacket_Layer_SizeDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Size> |
58 | | _instance; |
59 | | } _LayersPacket_Layer_Size_default_instance_; |
60 | | class LayersPacket_Layer_RectDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Rect> |
63 | | _instance; |
64 | | } _LayersPacket_Layer_Rect_default_instance_; |
65 | | class LayersPacket_Layer_RegionDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Region> |
68 | | _instance; |
69 | | } _LayersPacket_Layer_Region_default_instance_; |
70 | | class LayersPacket_Layer_MatrixDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Matrix> |
73 | | _instance; |
74 | | } _LayersPacket_Layer_Matrix_default_instance_; |
75 | | class LayersPacket_Layer_ShadowDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer_Shadow> |
78 | | _instance; |
79 | | } _LayersPacket_Layer_Shadow_default_instance_; |
80 | | class LayersPacket_LayerDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket_Layer> |
83 | | _instance; |
84 | | } _LayersPacket_Layer_default_instance_; |
85 | | class LayersPacketDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<LayersPacket> |
88 | | _instance; |
89 | | } _LayersPacket_default_instance_; |
90 | | class MetaPacketDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<MetaPacket> |
93 | | _instance; |
94 | | } _MetaPacket_default_instance_; |
95 | | class DrawPacket_RectDefaultTypeInternal { |
96 | | public: |
97 | | ::google::protobuf::internal::ExplicitlyConstructed<DrawPacket_Rect> |
98 | | _instance; |
99 | | } _DrawPacket_Rect_default_instance_; |
100 | | class DrawPacketDefaultTypeInternal { |
101 | | public: |
102 | | ::google::protobuf::internal::ExplicitlyConstructed<DrawPacket> |
103 | | _instance; |
104 | | } _DrawPacket_default_instance_; |
105 | | class PacketDefaultTypeInternal { |
106 | | public: |
107 | | ::google::protobuf::internal::ExplicitlyConstructed<Packet> |
108 | | _instance; |
109 | | } _Packet_default_instance_; |
110 | | class CommandPacketDefaultTypeInternal { |
111 | | public: |
112 | | ::google::protobuf::internal::ExplicitlyConstructed<CommandPacket> |
113 | | _instance; |
114 | | } _CommandPacket_default_instance_; |
115 | | |
116 | | namespace protobuf_LayerScopePacket_2eproto { |
117 | | |
118 | | PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField |
119 | | const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
120 | | {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, |
121 | | }; |
122 | | |
123 | | PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField |
124 | | const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
125 | | ::google::protobuf::internal::AuxillaryParseTableField(), |
126 | | }; |
127 | | PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const |
128 | | TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
129 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
130 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
131 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
132 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
133 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
134 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
135 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
136 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
137 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
138 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
139 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
140 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
141 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
142 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
143 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
144 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
145 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
146 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
147 | | { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, |
148 | | }; |
149 | | |
150 | 0 | void TableStruct::InitDefaultsImpl() { |
151 | 0 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
152 | 0 |
|
153 | 0 | ::google::protobuf::internal::InitProtobufDefaults(); |
154 | 0 | _FramePacket_default_instance_._instance.DefaultConstruct(); |
155 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
156 | 0 | &_FramePacket_default_instance_);_ColorPacket_default_instance_._instance.DefaultConstruct(); |
157 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
158 | 0 | &_ColorPacket_default_instance_);_TexturePacket_Rect_default_instance_._instance.DefaultConstruct(); |
159 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
160 | 0 | &_TexturePacket_Rect_default_instance_);_TexturePacket_Size_default_instance_._instance.DefaultConstruct(); |
161 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
162 | 0 | &_TexturePacket_Size_default_instance_);_TexturePacket_Matrix_default_instance_._instance.DefaultConstruct(); |
163 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
164 | 0 | &_TexturePacket_Matrix_default_instance_);_TexturePacket_EffectMask_default_instance_._instance.DefaultConstruct(); |
165 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
166 | 0 | &_TexturePacket_EffectMask_default_instance_);_TexturePacket_default_instance_._instance.DefaultConstruct(); |
167 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
168 | 0 | &_TexturePacket_default_instance_);_LayersPacket_Layer_Size_default_instance_._instance.DefaultConstruct(); |
169 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
170 | 0 | &_LayersPacket_Layer_Size_default_instance_);_LayersPacket_Layer_Rect_default_instance_._instance.DefaultConstruct(); |
171 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
172 | 0 | &_LayersPacket_Layer_Rect_default_instance_);_LayersPacket_Layer_Region_default_instance_._instance.DefaultConstruct(); |
173 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
174 | 0 | &_LayersPacket_Layer_Region_default_instance_);_LayersPacket_Layer_Matrix_default_instance_._instance.DefaultConstruct(); |
175 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
176 | 0 | &_LayersPacket_Layer_Matrix_default_instance_);_LayersPacket_Layer_Shadow_default_instance_._instance.DefaultConstruct(); |
177 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
178 | 0 | &_LayersPacket_Layer_Shadow_default_instance_);_LayersPacket_Layer_default_instance_._instance.DefaultConstruct(); |
179 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
180 | 0 | &_LayersPacket_Layer_default_instance_);_LayersPacket_default_instance_._instance.DefaultConstruct(); |
181 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
182 | 0 | &_LayersPacket_default_instance_);_MetaPacket_default_instance_._instance.DefaultConstruct(); |
183 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
184 | 0 | &_MetaPacket_default_instance_);_DrawPacket_Rect_default_instance_._instance.DefaultConstruct(); |
185 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
186 | 0 | &_DrawPacket_Rect_default_instance_);_DrawPacket_default_instance_._instance.DefaultConstruct(); |
187 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
188 | 0 | &_DrawPacket_default_instance_);_Packet_default_instance_._instance.DefaultConstruct(); |
189 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
190 | 0 | &_Packet_default_instance_);_CommandPacket_default_instance_._instance.DefaultConstruct(); |
191 | 0 | ::google::protobuf::internal::OnShutdownDestroyMessage( |
192 | 0 | &_CommandPacket_default_instance_);_TexturePacket_EffectMask_default_instance_._instance.get_mutable()->msize_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Size*>( |
193 | 0 | ::mozilla::layers::layerscope::TexturePacket_Size::internal_default_instance()); |
194 | 0 | _TexturePacket_EffectMask_default_instance_._instance.get_mutable()->mmasktransform_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Matrix*>( |
195 | 0 | ::mozilla::layers::layerscope::TexturePacket_Matrix::internal_default_instance()); |
196 | 0 | _TexturePacket_default_instance_._instance.get_mutable()->mtexturecoords_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_Rect*>( |
197 | 0 | ::mozilla::layers::layerscope::TexturePacket_Rect::internal_default_instance()); |
198 | 0 | _TexturePacket_default_instance_._instance.get_mutable()->mask_ = const_cast< ::mozilla::layers::layerscope::TexturePacket_EffectMask*>( |
199 | 0 | ::mozilla::layers::layerscope::TexturePacket_EffectMask::internal_default_instance()); |
200 | 0 | _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>( |
201 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance()); |
202 | 0 | _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>( |
203 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance()); |
204 | 0 | _LayersPacket_Layer_Shadow_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
205 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
206 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->clip_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>( |
207 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect::internal_default_instance()); |
208 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->transform_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>( |
209 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::internal_default_instance()); |
210 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->vregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
211 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
212 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->shadow_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>( |
213 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::internal_default_instance()); |
214 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->hitregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
215 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
216 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->dispatchregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
217 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
218 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->noactionregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
219 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
220 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->hpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
221 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
222 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->vpanregion_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
223 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
224 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->valid_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
225 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Region::internal_default_instance()); |
226 | 0 | _LayersPacket_Layer_default_instance_._instance.get_mutable()->size_ = const_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>( |
227 | 0 | ::mozilla::layers::layerscope::LayersPacket_Layer_Size::internal_default_instance()); |
228 | 0 | _Packet_default_instance_._instance.get_mutable()->frame_ = const_cast< ::mozilla::layers::layerscope::FramePacket*>( |
229 | 0 | ::mozilla::layers::layerscope::FramePacket::internal_default_instance()); |
230 | 0 | _Packet_default_instance_._instance.get_mutable()->color_ = const_cast< ::mozilla::layers::layerscope::ColorPacket*>( |
231 | 0 | ::mozilla::layers::layerscope::ColorPacket::internal_default_instance()); |
232 | 0 | _Packet_default_instance_._instance.get_mutable()->texture_ = const_cast< ::mozilla::layers::layerscope::TexturePacket*>( |
233 | 0 | ::mozilla::layers::layerscope::TexturePacket::internal_default_instance()); |
234 | 0 | _Packet_default_instance_._instance.get_mutable()->layers_ = const_cast< ::mozilla::layers::layerscope::LayersPacket*>( |
235 | 0 | ::mozilla::layers::layerscope::LayersPacket::internal_default_instance()); |
236 | 0 | _Packet_default_instance_._instance.get_mutable()->meta_ = const_cast< ::mozilla::layers::layerscope::MetaPacket*>( |
237 | 0 | ::mozilla::layers::layerscope::MetaPacket::internal_default_instance()); |
238 | 0 | _Packet_default_instance_._instance.get_mutable()->draw_ = const_cast< ::mozilla::layers::layerscope::DrawPacket*>( |
239 | 0 | ::mozilla::layers::layerscope::DrawPacket::internal_default_instance()); |
240 | 0 | } |
241 | | |
242 | 0 | void InitDefaults() { |
243 | 0 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
244 | 0 | ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); |
245 | 0 | } |
246 | | namespace { |
247 | 0 | void AddDescriptorsImpl() { |
248 | 0 | InitDefaults(); |
249 | 0 | } |
250 | | } // anonymous namespace |
251 | | |
252 | 0 | void AddDescriptors() { |
253 | 0 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
254 | 0 | ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); |
255 | 0 | } |
256 | | |
257 | | } // namespace protobuf_LayerScopePacket_2eproto |
258 | | |
259 | | bool TexturePacket_Filter_IsValid(int value) { |
260 | | switch (value) { |
261 | | case 0: |
262 | | case 1: |
263 | | case 2: |
264 | | return true; |
265 | | default: |
266 | | return false; |
267 | | } |
268 | | } |
269 | | |
270 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
271 | | const TexturePacket_Filter TexturePacket::GOOD; |
272 | | const TexturePacket_Filter TexturePacket::LINEAR; |
273 | | const TexturePacket_Filter TexturePacket::POINT; |
274 | | const TexturePacket_Filter TexturePacket::Filter_MIN; |
275 | | const TexturePacket_Filter TexturePacket::Filter_MAX; |
276 | | const int TexturePacket::Filter_ARRAYSIZE; |
277 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
278 | | bool LayersPacket_Layer_LayerType_IsValid(int value) { |
279 | | switch (value) { |
280 | | case 0: |
281 | | case 1: |
282 | | case 2: |
283 | | case 3: |
284 | | case 4: |
285 | | case 5: |
286 | | case 6: |
287 | | case 7: |
288 | | case 8: |
289 | | case 9: |
290 | | case 10: |
291 | | return true; |
292 | | default: |
293 | | return false; |
294 | | } |
295 | | } |
296 | | |
297 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
298 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::UnknownLayer; |
299 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerManager; |
300 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::ContainerLayer; |
301 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::PaintedLayer; |
302 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::CanvasLayer; |
303 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::ImageLayer; |
304 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::ColorLayer; |
305 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::RefLayer; |
306 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::ReadbackLayer; |
307 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::DisplayItemLayer; |
308 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MIN; |
309 | | const LayersPacket_Layer_LayerType LayersPacket_Layer::LayerType_MAX; |
310 | | const int LayersPacket_Layer::LayerType_ARRAYSIZE; |
311 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
312 | | bool LayersPacket_Layer_ScrollingDirect_IsValid(int value) { |
313 | | switch (value) { |
314 | | case 1: |
315 | | case 2: |
316 | | return true; |
317 | | default: |
318 | | return false; |
319 | | } |
320 | | } |
321 | | |
322 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
323 | | const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::VERTICAL; |
324 | | const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::HORIZONTAL; |
325 | | const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MIN; |
326 | | const LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::ScrollingDirect_MAX; |
327 | | const int LayersPacket_Layer::ScrollingDirect_ARRAYSIZE; |
328 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
329 | | bool LayersPacket_Layer_Filter_IsValid(int value) { |
330 | | switch (value) { |
331 | | case 0: |
332 | | case 1: |
333 | | case 2: |
334 | | case 3: |
335 | | case 4: |
336 | | case 5: |
337 | | case 6: |
338 | | case 7: |
339 | | case 8: |
340 | | return true; |
341 | | default: |
342 | | return false; |
343 | | } |
344 | | } |
345 | | |
346 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
347 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_FAST; |
348 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GOOD; |
349 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BEST; |
350 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_NEAREST; |
351 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_BILINEAR; |
352 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_GAUSSIAN; |
353 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_SENTINEL; |
354 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_LINEAR; |
355 | | const LayersPacket_Layer_Filter LayersPacket_Layer::FILTER_POINT; |
356 | | const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MIN; |
357 | | const LayersPacket_Layer_Filter LayersPacket_Layer::Filter_MAX; |
358 | | const int LayersPacket_Layer::Filter_ARRAYSIZE; |
359 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
360 | | bool Packet_DataType_IsValid(int value) { |
361 | | switch (value) { |
362 | | case 1: |
363 | | case 2: |
364 | | case 3: |
365 | | case 4: |
366 | | case 5: |
367 | | case 6: |
368 | | case 7: |
369 | | return true; |
370 | | default: |
371 | | return false; |
372 | | } |
373 | | } |
374 | | |
375 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
376 | | const Packet_DataType Packet::FRAMESTART; |
377 | | const Packet_DataType Packet::FRAMEEND; |
378 | | const Packet_DataType Packet::COLOR; |
379 | | const Packet_DataType Packet::TEXTURE; |
380 | | const Packet_DataType Packet::LAYERS; |
381 | | const Packet_DataType Packet::META; |
382 | | const Packet_DataType Packet::DRAW; |
383 | | const Packet_DataType Packet::DataType_MIN; |
384 | | const Packet_DataType Packet::DataType_MAX; |
385 | | const int Packet::DataType_ARRAYSIZE; |
386 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
387 | | bool CommandPacket_CmdType_IsValid(int value) { |
388 | | switch (value) { |
389 | | case 0: |
390 | | case 1: |
391 | | case 2: |
392 | | return true; |
393 | | default: |
394 | | return false; |
395 | | } |
396 | | } |
397 | | |
398 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
399 | | const CommandPacket_CmdType CommandPacket::NO_OP; |
400 | | const CommandPacket_CmdType CommandPacket::LAYERS_TREE; |
401 | | const CommandPacket_CmdType CommandPacket::LAYERS_BUFFER; |
402 | | const CommandPacket_CmdType CommandPacket::CmdType_MIN; |
403 | | const CommandPacket_CmdType CommandPacket::CmdType_MAX; |
404 | | const int CommandPacket::CmdType_ARRAYSIZE; |
405 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
406 | | |
407 | | // =================================================================== |
408 | | |
409 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
410 | | const int FramePacket::kValueFieldNumber; |
411 | | const int FramePacket::kScaleFieldNumber; |
412 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
413 | | |
414 | | FramePacket::FramePacket() |
415 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
416 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
417 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
418 | 0 | } |
419 | 0 | SharedCtor(); |
420 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.FramePacket) |
421 | 0 | } |
422 | | FramePacket::FramePacket(const FramePacket& from) |
423 | | : ::google::protobuf::MessageLite(), |
424 | | _internal_metadata_(NULL), |
425 | | _has_bits_(from._has_bits_), |
426 | 0 | _cached_size_(0) { |
427 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
428 | 0 | ::memcpy(&value_, &from.value_, |
429 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&scale_) - |
430 | 0 | reinterpret_cast<char*>(&value_)) + sizeof(scale_)); |
431 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.FramePacket) |
432 | 0 | } |
433 | | |
434 | 0 | void FramePacket::SharedCtor() { |
435 | 0 | _cached_size_ = 0; |
436 | 0 | ::memset(&value_, 0, static_cast<size_t>( |
437 | 0 | reinterpret_cast<char*>(&scale_) - |
438 | 0 | reinterpret_cast<char*>(&value_)) + sizeof(scale_)); |
439 | 0 | } |
440 | | |
441 | 0 | FramePacket::~FramePacket() { |
442 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.FramePacket) |
443 | 0 | SharedDtor(); |
444 | 0 | } |
445 | | |
446 | 0 | void FramePacket::SharedDtor() { |
447 | 0 | } |
448 | | |
449 | 0 | void FramePacket::SetCachedSize(int size) const { |
450 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
451 | 0 | _cached_size_ = size; |
452 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
453 | 0 | } |
454 | 0 | const FramePacket& FramePacket::default_instance() { |
455 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
456 | 0 | return *internal_default_instance(); |
457 | 0 | } |
458 | | |
459 | 0 | FramePacket* FramePacket::New(::google::protobuf::Arena* arena) const { |
460 | 0 | FramePacket* n = new FramePacket; |
461 | 0 | if (arena != NULL) { |
462 | 0 | arena->Own(n); |
463 | 0 | } |
464 | 0 | return n; |
465 | 0 | } |
466 | | |
467 | 0 | void FramePacket::Clear() { |
468 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.FramePacket) |
469 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
470 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
471 | 0 | (void) cached_has_bits; |
472 | 0 |
|
473 | 0 | cached_has_bits = _has_bits_[0]; |
474 | 0 | if (cached_has_bits & 3u) { |
475 | 0 | ::memset(&value_, 0, static_cast<size_t>( |
476 | 0 | reinterpret_cast<char*>(&scale_) - |
477 | 0 | reinterpret_cast<char*>(&value_)) + sizeof(scale_)); |
478 | 0 | } |
479 | 0 | _has_bits_.Clear(); |
480 | 0 | _internal_metadata_.Clear(); |
481 | 0 | } |
482 | | |
483 | | bool FramePacket::MergePartialFromCodedStream( |
484 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
485 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
486 | 0 | ::google::protobuf::uint32 tag; |
487 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
488 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
489 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
490 | 0 | mutable_unknown_fields)); |
491 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
492 | 0 | &unknown_fields_string, false); |
493 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.FramePacket) |
494 | 0 | for (;;) { |
495 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
496 | 0 | tag = p.first; |
497 | 0 | if (!p.second) goto handle_unusual; |
498 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
499 | 0 | // optional uint64 value = 1; |
500 | 0 | case 1: { |
501 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
502 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
503 | 0 | set_has_value(); |
504 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
505 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
506 | 0 | input, &value_))); |
507 | 0 | } else { |
508 | 0 | goto handle_unusual; |
509 | 0 | } |
510 | 0 | break; |
511 | 0 | } |
512 | 0 |
|
513 | 0 | // optional float scale = 2; |
514 | 0 | case 2: { |
515 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
516 | 0 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
517 | 0 | set_has_scale(); |
518 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
519 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
520 | 0 | input, &scale_))); |
521 | 0 | } else { |
522 | 0 | goto handle_unusual; |
523 | 0 | } |
524 | 0 | break; |
525 | 0 | } |
526 | 0 | |
527 | 0 | default: { |
528 | 0 | handle_unusual: |
529 | 0 | if (tag == 0) { |
530 | 0 | goto success; |
531 | 0 | } |
532 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
533 | 0 | input, tag, &unknown_fields_stream)); |
534 | 0 | break; |
535 | 0 | } |
536 | 0 | } |
537 | 0 | } |
538 | 0 | success: |
539 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.FramePacket) |
540 | 0 | return true; |
541 | 0 | failure: |
542 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.FramePacket) |
543 | 0 | return false; |
544 | 0 | #undef DO_ |
545 | 0 | } |
546 | | |
547 | | void FramePacket::SerializeWithCachedSizes( |
548 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
549 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.FramePacket) |
550 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
551 | 0 | (void) cached_has_bits; |
552 | 0 |
|
553 | 0 | cached_has_bits = _has_bits_[0]; |
554 | 0 | // optional uint64 value = 1; |
555 | 0 | if (cached_has_bits & 0x00000001u) { |
556 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(), output); |
557 | 0 | } |
558 | 0 |
|
559 | 0 | // optional float scale = 2; |
560 | 0 | if (cached_has_bits & 0x00000002u) { |
561 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->scale(), output); |
562 | 0 | } |
563 | 0 |
|
564 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
565 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
566 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.FramePacket) |
567 | 0 | } |
568 | | |
569 | 0 | size_t FramePacket::ByteSizeLong() const { |
570 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.FramePacket) |
571 | 0 | size_t total_size = 0; |
572 | 0 |
|
573 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
574 | 0 |
|
575 | 0 | if (_has_bits_[0 / 32] & 3u) { |
576 | 0 | // optional uint64 value = 1; |
577 | 0 | if (has_value()) { |
578 | 0 | total_size += 1 + |
579 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
580 | 0 | this->value()); |
581 | 0 | } |
582 | 0 |
|
583 | 0 | // optional float scale = 2; |
584 | 0 | if (has_scale()) { |
585 | 0 | total_size += 1 + 4; |
586 | 0 | } |
587 | 0 |
|
588 | 0 | } |
589 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
590 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
591 | 0 | _cached_size_ = cached_size; |
592 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
593 | 0 | return total_size; |
594 | 0 | } |
595 | | |
596 | | void FramePacket::CheckTypeAndMergeFrom( |
597 | 0 | const ::google::protobuf::MessageLite& from) { |
598 | 0 | MergeFrom(*::google::protobuf::down_cast<const FramePacket*>(&from)); |
599 | 0 | } |
600 | | |
601 | 0 | void FramePacket::MergeFrom(const FramePacket& from) { |
602 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.FramePacket) |
603 | 0 | GOOGLE_DCHECK_NE(&from, this); |
604 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
605 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
606 | 0 | (void) cached_has_bits; |
607 | 0 |
|
608 | 0 | cached_has_bits = from._has_bits_[0]; |
609 | 0 | if (cached_has_bits & 3u) { |
610 | 0 | if (cached_has_bits & 0x00000001u) { |
611 | 0 | value_ = from.value_; |
612 | 0 | } |
613 | 0 | if (cached_has_bits & 0x00000002u) { |
614 | 0 | scale_ = from.scale_; |
615 | 0 | } |
616 | 0 | _has_bits_[0] |= cached_has_bits; |
617 | 0 | } |
618 | 0 | } |
619 | | |
620 | 0 | void FramePacket::CopyFrom(const FramePacket& from) { |
621 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.FramePacket) |
622 | 0 | if (&from == this) return; |
623 | 0 | Clear(); |
624 | 0 | MergeFrom(from); |
625 | 0 | } |
626 | | |
627 | 0 | bool FramePacket::IsInitialized() const { |
628 | 0 | return true; |
629 | 0 | } |
630 | | |
631 | 0 | void FramePacket::Swap(FramePacket* other) { |
632 | 0 | if (other == this) return; |
633 | 0 | InternalSwap(other); |
634 | 0 | } |
635 | 0 | void FramePacket::InternalSwap(FramePacket* other) { |
636 | 0 | using std::swap; |
637 | 0 | swap(value_, other->value_); |
638 | 0 | swap(scale_, other->scale_); |
639 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
640 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
641 | 0 | swap(_cached_size_, other->_cached_size_); |
642 | 0 | } |
643 | | |
644 | 0 | ::std::string FramePacket::GetTypeName() const { |
645 | 0 | return "mozilla.layers.layerscope.FramePacket"; |
646 | 0 | } |
647 | | |
648 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
649 | | // FramePacket |
650 | | |
651 | | // optional uint64 value = 1; |
652 | | bool FramePacket::has_value() const { |
653 | | return (_has_bits_[0] & 0x00000001u) != 0; |
654 | | } |
655 | | void FramePacket::set_has_value() { |
656 | | _has_bits_[0] |= 0x00000001u; |
657 | | } |
658 | | void FramePacket::clear_has_value() { |
659 | | _has_bits_[0] &= ~0x00000001u; |
660 | | } |
661 | | void FramePacket::clear_value() { |
662 | | value_ = GOOGLE_ULONGLONG(0); |
663 | | clear_has_value(); |
664 | | } |
665 | | ::google::protobuf::uint64 FramePacket::value() const { |
666 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.value) |
667 | | return value_; |
668 | | } |
669 | | void FramePacket::set_value(::google::protobuf::uint64 value) { |
670 | | set_has_value(); |
671 | | value_ = value; |
672 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.value) |
673 | | } |
674 | | |
675 | | // optional float scale = 2; |
676 | | bool FramePacket::has_scale() const { |
677 | | return (_has_bits_[0] & 0x00000002u) != 0; |
678 | | } |
679 | | void FramePacket::set_has_scale() { |
680 | | _has_bits_[0] |= 0x00000002u; |
681 | | } |
682 | | void FramePacket::clear_has_scale() { |
683 | | _has_bits_[0] &= ~0x00000002u; |
684 | | } |
685 | | void FramePacket::clear_scale() { |
686 | | scale_ = 0; |
687 | | clear_has_scale(); |
688 | | } |
689 | | float FramePacket::scale() const { |
690 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.FramePacket.scale) |
691 | | return scale_; |
692 | | } |
693 | | void FramePacket::set_scale(float value) { |
694 | | set_has_scale(); |
695 | | scale_ = value; |
696 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.FramePacket.scale) |
697 | | } |
698 | | |
699 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
700 | | |
701 | | // =================================================================== |
702 | | |
703 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
704 | | const int ColorPacket::kLayerrefFieldNumber; |
705 | | const int ColorPacket::kWidthFieldNumber; |
706 | | const int ColorPacket::kHeightFieldNumber; |
707 | | const int ColorPacket::kColorFieldNumber; |
708 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
709 | | |
710 | | ColorPacket::ColorPacket() |
711 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
712 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
713 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
714 | 0 | } |
715 | 0 | SharedCtor(); |
716 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.ColorPacket) |
717 | 0 | } |
718 | | ColorPacket::ColorPacket(const ColorPacket& from) |
719 | | : ::google::protobuf::MessageLite(), |
720 | | _internal_metadata_(NULL), |
721 | | _has_bits_(from._has_bits_), |
722 | 0 | _cached_size_(0) { |
723 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
724 | 0 | ::memcpy(&layerref_, &from.layerref_, |
725 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&color_) - |
726 | 0 | reinterpret_cast<char*>(&layerref_)) + sizeof(color_)); |
727 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.ColorPacket) |
728 | 0 | } |
729 | | |
730 | 0 | void ColorPacket::SharedCtor() { |
731 | 0 | _cached_size_ = 0; |
732 | 0 | ::memset(&layerref_, 0, static_cast<size_t>( |
733 | 0 | reinterpret_cast<char*>(&color_) - |
734 | 0 | reinterpret_cast<char*>(&layerref_)) + sizeof(color_)); |
735 | 0 | } |
736 | | |
737 | 0 | ColorPacket::~ColorPacket() { |
738 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.ColorPacket) |
739 | 0 | SharedDtor(); |
740 | 0 | } |
741 | | |
742 | 0 | void ColorPacket::SharedDtor() { |
743 | 0 | } |
744 | | |
745 | 0 | void ColorPacket::SetCachedSize(int size) const { |
746 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
747 | 0 | _cached_size_ = size; |
748 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
749 | 0 | } |
750 | 0 | const ColorPacket& ColorPacket::default_instance() { |
751 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
752 | 0 | return *internal_default_instance(); |
753 | 0 | } |
754 | | |
755 | 0 | ColorPacket* ColorPacket::New(::google::protobuf::Arena* arena) const { |
756 | 0 | ColorPacket* n = new ColorPacket; |
757 | 0 | if (arena != NULL) { |
758 | 0 | arena->Own(n); |
759 | 0 | } |
760 | 0 | return n; |
761 | 0 | } |
762 | | |
763 | 0 | void ColorPacket::Clear() { |
764 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.ColorPacket) |
765 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
766 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
767 | 0 | (void) cached_has_bits; |
768 | 0 |
|
769 | 0 | cached_has_bits = _has_bits_[0]; |
770 | 0 | if (cached_has_bits & 15u) { |
771 | 0 | ::memset(&layerref_, 0, static_cast<size_t>( |
772 | 0 | reinterpret_cast<char*>(&color_) - |
773 | 0 | reinterpret_cast<char*>(&layerref_)) + sizeof(color_)); |
774 | 0 | } |
775 | 0 | _has_bits_.Clear(); |
776 | 0 | _internal_metadata_.Clear(); |
777 | 0 | } |
778 | | |
779 | | bool ColorPacket::MergePartialFromCodedStream( |
780 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
781 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
782 | 0 | ::google::protobuf::uint32 tag; |
783 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
784 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
785 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
786 | 0 | mutable_unknown_fields)); |
787 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
788 | 0 | &unknown_fields_string, false); |
789 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.ColorPacket) |
790 | 0 | for (;;) { |
791 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
792 | 0 | tag = p.first; |
793 | 0 | if (!p.second) goto handle_unusual; |
794 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
795 | 0 | // required uint64 layerref = 1; |
796 | 0 | case 1: { |
797 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
798 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
799 | 0 | set_has_layerref(); |
800 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
801 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
802 | 0 | input, &layerref_))); |
803 | 0 | } else { |
804 | 0 | goto handle_unusual; |
805 | 0 | } |
806 | 0 | break; |
807 | 0 | } |
808 | 0 |
|
809 | 0 | // optional uint32 width = 2; |
810 | 0 | case 2: { |
811 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
812 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
813 | 0 | set_has_width(); |
814 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
815 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
816 | 0 | input, &width_))); |
817 | 0 | } else { |
818 | 0 | goto handle_unusual; |
819 | 0 | } |
820 | 0 | break; |
821 | 0 | } |
822 | 0 |
|
823 | 0 | // optional uint32 height = 3; |
824 | 0 | case 3: { |
825 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
826 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
827 | 0 | set_has_height(); |
828 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
829 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
830 | 0 | input, &height_))); |
831 | 0 | } else { |
832 | 0 | goto handle_unusual; |
833 | 0 | } |
834 | 0 | break; |
835 | 0 | } |
836 | 0 |
|
837 | 0 | // optional uint32 color = 4; |
838 | 0 | case 4: { |
839 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
840 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
841 | 0 | set_has_color(); |
842 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
843 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
844 | 0 | input, &color_))); |
845 | 0 | } else { |
846 | 0 | goto handle_unusual; |
847 | 0 | } |
848 | 0 | break; |
849 | 0 | } |
850 | 0 | |
851 | 0 | default: { |
852 | 0 | handle_unusual: |
853 | 0 | if (tag == 0) { |
854 | 0 | goto success; |
855 | 0 | } |
856 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
857 | 0 | input, tag, &unknown_fields_stream)); |
858 | 0 | break; |
859 | 0 | } |
860 | 0 | } |
861 | 0 | } |
862 | 0 | success: |
863 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.ColorPacket) |
864 | 0 | return true; |
865 | 0 | failure: |
866 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.ColorPacket) |
867 | 0 | return false; |
868 | 0 | #undef DO_ |
869 | 0 | } |
870 | | |
871 | | void ColorPacket::SerializeWithCachedSizes( |
872 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
873 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.ColorPacket) |
874 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
875 | 0 | (void) cached_has_bits; |
876 | 0 |
|
877 | 0 | cached_has_bits = _has_bits_[0]; |
878 | 0 | // required uint64 layerref = 1; |
879 | 0 | if (cached_has_bits & 0x00000001u) { |
880 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output); |
881 | 0 | } |
882 | 0 |
|
883 | 0 | // optional uint32 width = 2; |
884 | 0 | if (cached_has_bits & 0x00000002u) { |
885 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output); |
886 | 0 | } |
887 | 0 |
|
888 | 0 | // optional uint32 height = 3; |
889 | 0 | if (cached_has_bits & 0x00000004u) { |
890 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); |
891 | 0 | } |
892 | 0 |
|
893 | 0 | // optional uint32 color = 4; |
894 | 0 | if (cached_has_bits & 0x00000008u) { |
895 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->color(), output); |
896 | 0 | } |
897 | 0 |
|
898 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
899 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
900 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.ColorPacket) |
901 | 0 | } |
902 | | |
903 | 0 | size_t ColorPacket::ByteSizeLong() const { |
904 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.ColorPacket) |
905 | 0 | size_t total_size = 0; |
906 | 0 |
|
907 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
908 | 0 |
|
909 | 0 | // required uint64 layerref = 1; |
910 | 0 | if (has_layerref()) { |
911 | 0 | total_size += 1 + |
912 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
913 | 0 | this->layerref()); |
914 | 0 | } |
915 | 0 | if (_has_bits_[0 / 32] & 14u) { |
916 | 0 | // optional uint32 width = 2; |
917 | 0 | if (has_width()) { |
918 | 0 | total_size += 1 + |
919 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
920 | 0 | this->width()); |
921 | 0 | } |
922 | 0 |
|
923 | 0 | // optional uint32 height = 3; |
924 | 0 | if (has_height()) { |
925 | 0 | total_size += 1 + |
926 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
927 | 0 | this->height()); |
928 | 0 | } |
929 | 0 |
|
930 | 0 | // optional uint32 color = 4; |
931 | 0 | if (has_color()) { |
932 | 0 | total_size += 1 + |
933 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
934 | 0 | this->color()); |
935 | 0 | } |
936 | 0 |
|
937 | 0 | } |
938 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
939 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
940 | 0 | _cached_size_ = cached_size; |
941 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
942 | 0 | return total_size; |
943 | 0 | } |
944 | | |
945 | | void ColorPacket::CheckTypeAndMergeFrom( |
946 | 0 | const ::google::protobuf::MessageLite& from) { |
947 | 0 | MergeFrom(*::google::protobuf::down_cast<const ColorPacket*>(&from)); |
948 | 0 | } |
949 | | |
950 | 0 | void ColorPacket::MergeFrom(const ColorPacket& from) { |
951 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.ColorPacket) |
952 | 0 | GOOGLE_DCHECK_NE(&from, this); |
953 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
954 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
955 | 0 | (void) cached_has_bits; |
956 | 0 |
|
957 | 0 | cached_has_bits = from._has_bits_[0]; |
958 | 0 | if (cached_has_bits & 15u) { |
959 | 0 | if (cached_has_bits & 0x00000001u) { |
960 | 0 | layerref_ = from.layerref_; |
961 | 0 | } |
962 | 0 | if (cached_has_bits & 0x00000002u) { |
963 | 0 | width_ = from.width_; |
964 | 0 | } |
965 | 0 | if (cached_has_bits & 0x00000004u) { |
966 | 0 | height_ = from.height_; |
967 | 0 | } |
968 | 0 | if (cached_has_bits & 0x00000008u) { |
969 | 0 | color_ = from.color_; |
970 | 0 | } |
971 | 0 | _has_bits_[0] |= cached_has_bits; |
972 | 0 | } |
973 | 0 | } |
974 | | |
975 | 0 | void ColorPacket::CopyFrom(const ColorPacket& from) { |
976 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.ColorPacket) |
977 | 0 | if (&from == this) return; |
978 | 0 | Clear(); |
979 | 0 | MergeFrom(from); |
980 | 0 | } |
981 | | |
982 | 0 | bool ColorPacket::IsInitialized() const { |
983 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
984 | 0 | return true; |
985 | 0 | } |
986 | | |
987 | 0 | void ColorPacket::Swap(ColorPacket* other) { |
988 | 0 | if (other == this) return; |
989 | 0 | InternalSwap(other); |
990 | 0 | } |
991 | 0 | void ColorPacket::InternalSwap(ColorPacket* other) { |
992 | 0 | using std::swap; |
993 | 0 | swap(layerref_, other->layerref_); |
994 | 0 | swap(width_, other->width_); |
995 | 0 | swap(height_, other->height_); |
996 | 0 | swap(color_, other->color_); |
997 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
998 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
999 | 0 | swap(_cached_size_, other->_cached_size_); |
1000 | 0 | } |
1001 | | |
1002 | 0 | ::std::string ColorPacket::GetTypeName() const { |
1003 | 0 | return "mozilla.layers.layerscope.ColorPacket"; |
1004 | 0 | } |
1005 | | |
1006 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
1007 | | // ColorPacket |
1008 | | |
1009 | | // required uint64 layerref = 1; |
1010 | | bool ColorPacket::has_layerref() const { |
1011 | | return (_has_bits_[0] & 0x00000001u) != 0; |
1012 | | } |
1013 | | void ColorPacket::set_has_layerref() { |
1014 | | _has_bits_[0] |= 0x00000001u; |
1015 | | } |
1016 | | void ColorPacket::clear_has_layerref() { |
1017 | | _has_bits_[0] &= ~0x00000001u; |
1018 | | } |
1019 | | void ColorPacket::clear_layerref() { |
1020 | | layerref_ = GOOGLE_ULONGLONG(0); |
1021 | | clear_has_layerref(); |
1022 | | } |
1023 | | ::google::protobuf::uint64 ColorPacket::layerref() const { |
1024 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.layerref) |
1025 | | return layerref_; |
1026 | | } |
1027 | | void ColorPacket::set_layerref(::google::protobuf::uint64 value) { |
1028 | | set_has_layerref(); |
1029 | | layerref_ = value; |
1030 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.layerref) |
1031 | | } |
1032 | | |
1033 | | // optional uint32 width = 2; |
1034 | | bool ColorPacket::has_width() const { |
1035 | | return (_has_bits_[0] & 0x00000002u) != 0; |
1036 | | } |
1037 | | void ColorPacket::set_has_width() { |
1038 | | _has_bits_[0] |= 0x00000002u; |
1039 | | } |
1040 | | void ColorPacket::clear_has_width() { |
1041 | | _has_bits_[0] &= ~0x00000002u; |
1042 | | } |
1043 | | void ColorPacket::clear_width() { |
1044 | | width_ = 0u; |
1045 | | clear_has_width(); |
1046 | | } |
1047 | | ::google::protobuf::uint32 ColorPacket::width() const { |
1048 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.width) |
1049 | | return width_; |
1050 | | } |
1051 | | void ColorPacket::set_width(::google::protobuf::uint32 value) { |
1052 | | set_has_width(); |
1053 | | width_ = value; |
1054 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.width) |
1055 | | } |
1056 | | |
1057 | | // optional uint32 height = 3; |
1058 | | bool ColorPacket::has_height() const { |
1059 | | return (_has_bits_[0] & 0x00000004u) != 0; |
1060 | | } |
1061 | | void ColorPacket::set_has_height() { |
1062 | | _has_bits_[0] |= 0x00000004u; |
1063 | | } |
1064 | | void ColorPacket::clear_has_height() { |
1065 | | _has_bits_[0] &= ~0x00000004u; |
1066 | | } |
1067 | | void ColorPacket::clear_height() { |
1068 | | height_ = 0u; |
1069 | | clear_has_height(); |
1070 | | } |
1071 | | ::google::protobuf::uint32 ColorPacket::height() const { |
1072 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.height) |
1073 | | return height_; |
1074 | | } |
1075 | | void ColorPacket::set_height(::google::protobuf::uint32 value) { |
1076 | | set_has_height(); |
1077 | | height_ = value; |
1078 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.height) |
1079 | | } |
1080 | | |
1081 | | // optional uint32 color = 4; |
1082 | | bool ColorPacket::has_color() const { |
1083 | | return (_has_bits_[0] & 0x00000008u) != 0; |
1084 | | } |
1085 | | void ColorPacket::set_has_color() { |
1086 | | _has_bits_[0] |= 0x00000008u; |
1087 | | } |
1088 | | void ColorPacket::clear_has_color() { |
1089 | | _has_bits_[0] &= ~0x00000008u; |
1090 | | } |
1091 | | void ColorPacket::clear_color() { |
1092 | | color_ = 0u; |
1093 | | clear_has_color(); |
1094 | | } |
1095 | | ::google::protobuf::uint32 ColorPacket::color() const { |
1096 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.ColorPacket.color) |
1097 | | return color_; |
1098 | | } |
1099 | | void ColorPacket::set_color(::google::protobuf::uint32 value) { |
1100 | | set_has_color(); |
1101 | | color_ = value; |
1102 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.ColorPacket.color) |
1103 | | } |
1104 | | |
1105 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
1106 | | |
1107 | | // =================================================================== |
1108 | | |
1109 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1110 | | const int TexturePacket_Rect::kXFieldNumber; |
1111 | | const int TexturePacket_Rect::kYFieldNumber; |
1112 | | const int TexturePacket_Rect::kWFieldNumber; |
1113 | | const int TexturePacket_Rect::kHFieldNumber; |
1114 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1115 | | |
1116 | | TexturePacket_Rect::TexturePacket_Rect() |
1117 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
1118 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1119 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1120 | 0 | } |
1121 | 0 | SharedCtor(); |
1122 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Rect) |
1123 | 0 | } |
1124 | | TexturePacket_Rect::TexturePacket_Rect(const TexturePacket_Rect& from) |
1125 | | : ::google::protobuf::MessageLite(), |
1126 | | _internal_metadata_(NULL), |
1127 | | _has_bits_(from._has_bits_), |
1128 | 0 | _cached_size_(0) { |
1129 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1130 | 0 | ::memcpy(&x_, &from.x_, |
1131 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&h_) - |
1132 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
1133 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Rect) |
1134 | 0 | } |
1135 | | |
1136 | 0 | void TexturePacket_Rect::SharedCtor() { |
1137 | 0 | _cached_size_ = 0; |
1138 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
1139 | 0 | reinterpret_cast<char*>(&h_) - |
1140 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
1141 | 0 | } |
1142 | | |
1143 | 0 | TexturePacket_Rect::~TexturePacket_Rect() { |
1144 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Rect) |
1145 | 0 | SharedDtor(); |
1146 | 0 | } |
1147 | | |
1148 | 0 | void TexturePacket_Rect::SharedDtor() { |
1149 | 0 | } |
1150 | | |
1151 | 0 | void TexturePacket_Rect::SetCachedSize(int size) const { |
1152 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1153 | 0 | _cached_size_ = size; |
1154 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1155 | 0 | } |
1156 | 0 | const TexturePacket_Rect& TexturePacket_Rect::default_instance() { |
1157 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1158 | 0 | return *internal_default_instance(); |
1159 | 0 | } |
1160 | | |
1161 | 0 | TexturePacket_Rect* TexturePacket_Rect::New(::google::protobuf::Arena* arena) const { |
1162 | 0 | TexturePacket_Rect* n = new TexturePacket_Rect; |
1163 | 0 | if (arena != NULL) { |
1164 | 0 | arena->Own(n); |
1165 | 0 | } |
1166 | 0 | return n; |
1167 | 0 | } |
1168 | | |
1169 | 0 | void TexturePacket_Rect::Clear() { |
1170 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1171 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1172 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
1173 | 0 | (void) cached_has_bits; |
1174 | 0 |
|
1175 | 0 | cached_has_bits = _has_bits_[0]; |
1176 | 0 | if (cached_has_bits & 15u) { |
1177 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
1178 | 0 | reinterpret_cast<char*>(&h_) - |
1179 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
1180 | 0 | } |
1181 | 0 | _has_bits_.Clear(); |
1182 | 0 | _internal_metadata_.Clear(); |
1183 | 0 | } |
1184 | | |
1185 | | bool TexturePacket_Rect::MergePartialFromCodedStream( |
1186 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1187 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1188 | 0 | ::google::protobuf::uint32 tag; |
1189 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
1190 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
1191 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
1192 | 0 | mutable_unknown_fields)); |
1193 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
1194 | 0 | &unknown_fields_string, false); |
1195 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1196 | 0 | for (;;) { |
1197 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1198 | 0 | tag = p.first; |
1199 | 0 | if (!p.second) goto handle_unusual; |
1200 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1201 | 0 | // optional float x = 1; |
1202 | 0 | case 1: { |
1203 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1204 | 0 | static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { |
1205 | 0 | set_has_x(); |
1206 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1207 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1208 | 0 | input, &x_))); |
1209 | 0 | } else { |
1210 | 0 | goto handle_unusual; |
1211 | 0 | } |
1212 | 0 | break; |
1213 | 0 | } |
1214 | 0 |
|
1215 | 0 | // optional float y = 2; |
1216 | 0 | case 2: { |
1217 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1218 | 0 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
1219 | 0 | set_has_y(); |
1220 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1221 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1222 | 0 | input, &y_))); |
1223 | 0 | } else { |
1224 | 0 | goto handle_unusual; |
1225 | 0 | } |
1226 | 0 | break; |
1227 | 0 | } |
1228 | 0 |
|
1229 | 0 | // optional float w = 3; |
1230 | 0 | case 3: { |
1231 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1232 | 0 | static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { |
1233 | 0 | set_has_w(); |
1234 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1235 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1236 | 0 | input, &w_))); |
1237 | 0 | } else { |
1238 | 0 | goto handle_unusual; |
1239 | 0 | } |
1240 | 0 | break; |
1241 | 0 | } |
1242 | 0 |
|
1243 | 0 | // optional float h = 4; |
1244 | 0 | case 4: { |
1245 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1246 | 0 | static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { |
1247 | 0 | set_has_h(); |
1248 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1249 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1250 | 0 | input, &h_))); |
1251 | 0 | } else { |
1252 | 0 | goto handle_unusual; |
1253 | 0 | } |
1254 | 0 | break; |
1255 | 0 | } |
1256 | 0 | |
1257 | 0 | default: { |
1258 | 0 | handle_unusual: |
1259 | 0 | if (tag == 0) { |
1260 | 0 | goto success; |
1261 | 0 | } |
1262 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
1263 | 0 | input, tag, &unknown_fields_stream)); |
1264 | 0 | break; |
1265 | 0 | } |
1266 | 0 | } |
1267 | 0 | } |
1268 | 0 | success: |
1269 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Rect) |
1270 | 0 | return true; |
1271 | 0 | failure: |
1272 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Rect) |
1273 | 0 | return false; |
1274 | 0 | #undef DO_ |
1275 | 0 | } |
1276 | | |
1277 | | void TexturePacket_Rect::SerializeWithCachedSizes( |
1278 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1279 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1280 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1281 | 0 | (void) cached_has_bits; |
1282 | 0 |
|
1283 | 0 | cached_has_bits = _has_bits_[0]; |
1284 | 0 | // optional float x = 1; |
1285 | 0 | if (cached_has_bits & 0x00000001u) { |
1286 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output); |
1287 | 0 | } |
1288 | 0 |
|
1289 | 0 | // optional float y = 2; |
1290 | 0 | if (cached_has_bits & 0x00000002u) { |
1291 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output); |
1292 | 0 | } |
1293 | 0 |
|
1294 | 0 | // optional float w = 3; |
1295 | 0 | if (cached_has_bits & 0x00000004u) { |
1296 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output); |
1297 | 0 | } |
1298 | 0 |
|
1299 | 0 | // optional float h = 4; |
1300 | 0 | if (cached_has_bits & 0x00000008u) { |
1301 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output); |
1302 | 0 | } |
1303 | 0 |
|
1304 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
1305 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
1306 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Rect) |
1307 | 0 | } |
1308 | | |
1309 | 0 | size_t TexturePacket_Rect::ByteSizeLong() const { |
1310 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1311 | 0 | size_t total_size = 0; |
1312 | 0 |
|
1313 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
1314 | 0 |
|
1315 | 0 | if (_has_bits_[0 / 32] & 15u) { |
1316 | 0 | // optional float x = 1; |
1317 | 0 | if (has_x()) { |
1318 | 0 | total_size += 1 + 4; |
1319 | 0 | } |
1320 | 0 |
|
1321 | 0 | // optional float y = 2; |
1322 | 0 | if (has_y()) { |
1323 | 0 | total_size += 1 + 4; |
1324 | 0 | } |
1325 | 0 |
|
1326 | 0 | // optional float w = 3; |
1327 | 0 | if (has_w()) { |
1328 | 0 | total_size += 1 + 4; |
1329 | 0 | } |
1330 | 0 |
|
1331 | 0 | // optional float h = 4; |
1332 | 0 | if (has_h()) { |
1333 | 0 | total_size += 1 + 4; |
1334 | 0 | } |
1335 | 0 |
|
1336 | 0 | } |
1337 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1338 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1339 | 0 | _cached_size_ = cached_size; |
1340 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1341 | 0 | return total_size; |
1342 | 0 | } |
1343 | | |
1344 | | void TexturePacket_Rect::CheckTypeAndMergeFrom( |
1345 | 0 | const ::google::protobuf::MessageLite& from) { |
1346 | 0 | MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Rect*>(&from)); |
1347 | 0 | } |
1348 | | |
1349 | 0 | void TexturePacket_Rect::MergeFrom(const TexturePacket_Rect& from) { |
1350 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1351 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1352 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1353 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1354 | 0 | (void) cached_has_bits; |
1355 | 0 |
|
1356 | 0 | cached_has_bits = from._has_bits_[0]; |
1357 | 0 | if (cached_has_bits & 15u) { |
1358 | 0 | if (cached_has_bits & 0x00000001u) { |
1359 | 0 | x_ = from.x_; |
1360 | 0 | } |
1361 | 0 | if (cached_has_bits & 0x00000002u) { |
1362 | 0 | y_ = from.y_; |
1363 | 0 | } |
1364 | 0 | if (cached_has_bits & 0x00000004u) { |
1365 | 0 | w_ = from.w_; |
1366 | 0 | } |
1367 | 0 | if (cached_has_bits & 0x00000008u) { |
1368 | 0 | h_ = from.h_; |
1369 | 0 | } |
1370 | 0 | _has_bits_[0] |= cached_has_bits; |
1371 | 0 | } |
1372 | 0 | } |
1373 | | |
1374 | 0 | void TexturePacket_Rect::CopyFrom(const TexturePacket_Rect& from) { |
1375 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Rect) |
1376 | 0 | if (&from == this) return; |
1377 | 0 | Clear(); |
1378 | 0 | MergeFrom(from); |
1379 | 0 | } |
1380 | | |
1381 | 0 | bool TexturePacket_Rect::IsInitialized() const { |
1382 | 0 | return true; |
1383 | 0 | } |
1384 | | |
1385 | 0 | void TexturePacket_Rect::Swap(TexturePacket_Rect* other) { |
1386 | 0 | if (other == this) return; |
1387 | 0 | InternalSwap(other); |
1388 | 0 | } |
1389 | 0 | void TexturePacket_Rect::InternalSwap(TexturePacket_Rect* other) { |
1390 | 0 | using std::swap; |
1391 | 0 | swap(x_, other->x_); |
1392 | 0 | swap(y_, other->y_); |
1393 | 0 | swap(w_, other->w_); |
1394 | 0 | swap(h_, other->h_); |
1395 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1396 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1397 | 0 | swap(_cached_size_, other->_cached_size_); |
1398 | 0 | } |
1399 | | |
1400 | 0 | ::std::string TexturePacket_Rect::GetTypeName() const { |
1401 | 0 | return "mozilla.layers.layerscope.TexturePacket.Rect"; |
1402 | 0 | } |
1403 | | |
1404 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
1405 | | // TexturePacket_Rect |
1406 | | |
1407 | | // optional float x = 1; |
1408 | | bool TexturePacket_Rect::has_x() const { |
1409 | | return (_has_bits_[0] & 0x00000001u) != 0; |
1410 | | } |
1411 | | void TexturePacket_Rect::set_has_x() { |
1412 | | _has_bits_[0] |= 0x00000001u; |
1413 | | } |
1414 | | void TexturePacket_Rect::clear_has_x() { |
1415 | | _has_bits_[0] &= ~0x00000001u; |
1416 | | } |
1417 | | void TexturePacket_Rect::clear_x() { |
1418 | | x_ = 0; |
1419 | | clear_has_x(); |
1420 | | } |
1421 | | float TexturePacket_Rect::x() const { |
1422 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.x) |
1423 | | return x_; |
1424 | | } |
1425 | | void TexturePacket_Rect::set_x(float value) { |
1426 | | set_has_x(); |
1427 | | x_ = value; |
1428 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.x) |
1429 | | } |
1430 | | |
1431 | | // optional float y = 2; |
1432 | | bool TexturePacket_Rect::has_y() const { |
1433 | | return (_has_bits_[0] & 0x00000002u) != 0; |
1434 | | } |
1435 | | void TexturePacket_Rect::set_has_y() { |
1436 | | _has_bits_[0] |= 0x00000002u; |
1437 | | } |
1438 | | void TexturePacket_Rect::clear_has_y() { |
1439 | | _has_bits_[0] &= ~0x00000002u; |
1440 | | } |
1441 | | void TexturePacket_Rect::clear_y() { |
1442 | | y_ = 0; |
1443 | | clear_has_y(); |
1444 | | } |
1445 | | float TexturePacket_Rect::y() const { |
1446 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.y) |
1447 | | return y_; |
1448 | | } |
1449 | | void TexturePacket_Rect::set_y(float value) { |
1450 | | set_has_y(); |
1451 | | y_ = value; |
1452 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.y) |
1453 | | } |
1454 | | |
1455 | | // optional float w = 3; |
1456 | | bool TexturePacket_Rect::has_w() const { |
1457 | | return (_has_bits_[0] & 0x00000004u) != 0; |
1458 | | } |
1459 | | void TexturePacket_Rect::set_has_w() { |
1460 | | _has_bits_[0] |= 0x00000004u; |
1461 | | } |
1462 | | void TexturePacket_Rect::clear_has_w() { |
1463 | | _has_bits_[0] &= ~0x00000004u; |
1464 | | } |
1465 | | void TexturePacket_Rect::clear_w() { |
1466 | | w_ = 0; |
1467 | | clear_has_w(); |
1468 | | } |
1469 | | float TexturePacket_Rect::w() const { |
1470 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.w) |
1471 | | return w_; |
1472 | | } |
1473 | | void TexturePacket_Rect::set_w(float value) { |
1474 | | set_has_w(); |
1475 | | w_ = value; |
1476 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.w) |
1477 | | } |
1478 | | |
1479 | | // optional float h = 4; |
1480 | | bool TexturePacket_Rect::has_h() const { |
1481 | | return (_has_bits_[0] & 0x00000008u) != 0; |
1482 | | } |
1483 | | void TexturePacket_Rect::set_has_h() { |
1484 | | _has_bits_[0] |= 0x00000008u; |
1485 | | } |
1486 | | void TexturePacket_Rect::clear_has_h() { |
1487 | | _has_bits_[0] &= ~0x00000008u; |
1488 | | } |
1489 | | void TexturePacket_Rect::clear_h() { |
1490 | | h_ = 0; |
1491 | | clear_has_h(); |
1492 | | } |
1493 | | float TexturePacket_Rect::h() const { |
1494 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Rect.h) |
1495 | | return h_; |
1496 | | } |
1497 | | void TexturePacket_Rect::set_h(float value) { |
1498 | | set_has_h(); |
1499 | | h_ = value; |
1500 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Rect.h) |
1501 | | } |
1502 | | |
1503 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
1504 | | |
1505 | | // =================================================================== |
1506 | | |
1507 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1508 | | const int TexturePacket_Size::kWFieldNumber; |
1509 | | const int TexturePacket_Size::kHFieldNumber; |
1510 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1511 | | |
1512 | | TexturePacket_Size::TexturePacket_Size() |
1513 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
1514 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1515 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1516 | 0 | } |
1517 | 0 | SharedCtor(); |
1518 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Size) |
1519 | 0 | } |
1520 | | TexturePacket_Size::TexturePacket_Size(const TexturePacket_Size& from) |
1521 | | : ::google::protobuf::MessageLite(), |
1522 | | _internal_metadata_(NULL), |
1523 | | _has_bits_(from._has_bits_), |
1524 | 0 | _cached_size_(0) { |
1525 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1526 | 0 | ::memcpy(&w_, &from.w_, |
1527 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&h_) - |
1528 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
1529 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Size) |
1530 | 0 | } |
1531 | | |
1532 | 0 | void TexturePacket_Size::SharedCtor() { |
1533 | 0 | _cached_size_ = 0; |
1534 | 0 | ::memset(&w_, 0, static_cast<size_t>( |
1535 | 0 | reinterpret_cast<char*>(&h_) - |
1536 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
1537 | 0 | } |
1538 | | |
1539 | 0 | TexturePacket_Size::~TexturePacket_Size() { |
1540 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Size) |
1541 | 0 | SharedDtor(); |
1542 | 0 | } |
1543 | | |
1544 | 0 | void TexturePacket_Size::SharedDtor() { |
1545 | 0 | } |
1546 | | |
1547 | 0 | void TexturePacket_Size::SetCachedSize(int size) const { |
1548 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1549 | 0 | _cached_size_ = size; |
1550 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1551 | 0 | } |
1552 | 0 | const TexturePacket_Size& TexturePacket_Size::default_instance() { |
1553 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1554 | 0 | return *internal_default_instance(); |
1555 | 0 | } |
1556 | | |
1557 | 0 | TexturePacket_Size* TexturePacket_Size::New(::google::protobuf::Arena* arena) const { |
1558 | 0 | TexturePacket_Size* n = new TexturePacket_Size; |
1559 | 0 | if (arena != NULL) { |
1560 | 0 | arena->Own(n); |
1561 | 0 | } |
1562 | 0 | return n; |
1563 | 0 | } |
1564 | | |
1565 | 0 | void TexturePacket_Size::Clear() { |
1566 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Size) |
1567 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1568 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
1569 | 0 | (void) cached_has_bits; |
1570 | 0 |
|
1571 | 0 | cached_has_bits = _has_bits_[0]; |
1572 | 0 | if (cached_has_bits & 3u) { |
1573 | 0 | ::memset(&w_, 0, static_cast<size_t>( |
1574 | 0 | reinterpret_cast<char*>(&h_) - |
1575 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
1576 | 0 | } |
1577 | 0 | _has_bits_.Clear(); |
1578 | 0 | _internal_metadata_.Clear(); |
1579 | 0 | } |
1580 | | |
1581 | | bool TexturePacket_Size::MergePartialFromCodedStream( |
1582 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1583 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1584 | 0 | ::google::protobuf::uint32 tag; |
1585 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
1586 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
1587 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
1588 | 0 | mutable_unknown_fields)); |
1589 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
1590 | 0 | &unknown_fields_string, false); |
1591 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Size) |
1592 | 0 | for (;;) { |
1593 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1594 | 0 | tag = p.first; |
1595 | 0 | if (!p.second) goto handle_unusual; |
1596 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1597 | 0 | // optional int32 w = 1; |
1598 | 0 | case 1: { |
1599 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1600 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1601 | 0 | set_has_w(); |
1602 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1603 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
1604 | 0 | input, &w_))); |
1605 | 0 | } else { |
1606 | 0 | goto handle_unusual; |
1607 | 0 | } |
1608 | 0 | break; |
1609 | 0 | } |
1610 | 0 |
|
1611 | 0 | // optional int32 h = 2; |
1612 | 0 | case 2: { |
1613 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1614 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1615 | 0 | set_has_h(); |
1616 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1617 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
1618 | 0 | input, &h_))); |
1619 | 0 | } else { |
1620 | 0 | goto handle_unusual; |
1621 | 0 | } |
1622 | 0 | break; |
1623 | 0 | } |
1624 | 0 | |
1625 | 0 | default: { |
1626 | 0 | handle_unusual: |
1627 | 0 | if (tag == 0) { |
1628 | 0 | goto success; |
1629 | 0 | } |
1630 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
1631 | 0 | input, tag, &unknown_fields_stream)); |
1632 | 0 | break; |
1633 | 0 | } |
1634 | 0 | } |
1635 | 0 | } |
1636 | 0 | success: |
1637 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Size) |
1638 | 0 | return true; |
1639 | 0 | failure: |
1640 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Size) |
1641 | 0 | return false; |
1642 | 0 | #undef DO_ |
1643 | 0 | } |
1644 | | |
1645 | | void TexturePacket_Size::SerializeWithCachedSizes( |
1646 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1647 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Size) |
1648 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1649 | 0 | (void) cached_has_bits; |
1650 | 0 |
|
1651 | 0 | cached_has_bits = _has_bits_[0]; |
1652 | 0 | // optional int32 w = 1; |
1653 | 0 | if (cached_has_bits & 0x00000001u) { |
1654 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output); |
1655 | 0 | } |
1656 | 0 |
|
1657 | 0 | // optional int32 h = 2; |
1658 | 0 | if (cached_has_bits & 0x00000002u) { |
1659 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output); |
1660 | 0 | } |
1661 | 0 |
|
1662 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
1663 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
1664 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Size) |
1665 | 0 | } |
1666 | | |
1667 | 0 | size_t TexturePacket_Size::ByteSizeLong() const { |
1668 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Size) |
1669 | 0 | size_t total_size = 0; |
1670 | 0 |
|
1671 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
1672 | 0 |
|
1673 | 0 | if (_has_bits_[0 / 32] & 3u) { |
1674 | 0 | // optional int32 w = 1; |
1675 | 0 | if (has_w()) { |
1676 | 0 | total_size += 1 + |
1677 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1678 | 0 | this->w()); |
1679 | 0 | } |
1680 | 0 |
|
1681 | 0 | // optional int32 h = 2; |
1682 | 0 | if (has_h()) { |
1683 | 0 | total_size += 1 + |
1684 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
1685 | 0 | this->h()); |
1686 | 0 | } |
1687 | 0 |
|
1688 | 0 | } |
1689 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1690 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1691 | 0 | _cached_size_ = cached_size; |
1692 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1693 | 0 | return total_size; |
1694 | 0 | } |
1695 | | |
1696 | | void TexturePacket_Size::CheckTypeAndMergeFrom( |
1697 | 0 | const ::google::protobuf::MessageLite& from) { |
1698 | 0 | MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Size*>(&from)); |
1699 | 0 | } |
1700 | | |
1701 | 0 | void TexturePacket_Size::MergeFrom(const TexturePacket_Size& from) { |
1702 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Size) |
1703 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1704 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1705 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1706 | 0 | (void) cached_has_bits; |
1707 | 0 |
|
1708 | 0 | cached_has_bits = from._has_bits_[0]; |
1709 | 0 | if (cached_has_bits & 3u) { |
1710 | 0 | if (cached_has_bits & 0x00000001u) { |
1711 | 0 | w_ = from.w_; |
1712 | 0 | } |
1713 | 0 | if (cached_has_bits & 0x00000002u) { |
1714 | 0 | h_ = from.h_; |
1715 | 0 | } |
1716 | 0 | _has_bits_[0] |= cached_has_bits; |
1717 | 0 | } |
1718 | 0 | } |
1719 | | |
1720 | 0 | void TexturePacket_Size::CopyFrom(const TexturePacket_Size& from) { |
1721 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Size) |
1722 | 0 | if (&from == this) return; |
1723 | 0 | Clear(); |
1724 | 0 | MergeFrom(from); |
1725 | 0 | } |
1726 | | |
1727 | 0 | bool TexturePacket_Size::IsInitialized() const { |
1728 | 0 | return true; |
1729 | 0 | } |
1730 | | |
1731 | 0 | void TexturePacket_Size::Swap(TexturePacket_Size* other) { |
1732 | 0 | if (other == this) return; |
1733 | 0 | InternalSwap(other); |
1734 | 0 | } |
1735 | 0 | void TexturePacket_Size::InternalSwap(TexturePacket_Size* other) { |
1736 | 0 | using std::swap; |
1737 | 0 | swap(w_, other->w_); |
1738 | 0 | swap(h_, other->h_); |
1739 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1740 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1741 | 0 | swap(_cached_size_, other->_cached_size_); |
1742 | 0 | } |
1743 | | |
1744 | 0 | ::std::string TexturePacket_Size::GetTypeName() const { |
1745 | 0 | return "mozilla.layers.layerscope.TexturePacket.Size"; |
1746 | 0 | } |
1747 | | |
1748 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
1749 | | // TexturePacket_Size |
1750 | | |
1751 | | // optional int32 w = 1; |
1752 | | bool TexturePacket_Size::has_w() const { |
1753 | | return (_has_bits_[0] & 0x00000001u) != 0; |
1754 | | } |
1755 | | void TexturePacket_Size::set_has_w() { |
1756 | | _has_bits_[0] |= 0x00000001u; |
1757 | | } |
1758 | | void TexturePacket_Size::clear_has_w() { |
1759 | | _has_bits_[0] &= ~0x00000001u; |
1760 | | } |
1761 | | void TexturePacket_Size::clear_w() { |
1762 | | w_ = 0; |
1763 | | clear_has_w(); |
1764 | | } |
1765 | | ::google::protobuf::int32 TexturePacket_Size::w() const { |
1766 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.w) |
1767 | | return w_; |
1768 | | } |
1769 | | void TexturePacket_Size::set_w(::google::protobuf::int32 value) { |
1770 | | set_has_w(); |
1771 | | w_ = value; |
1772 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.w) |
1773 | | } |
1774 | | |
1775 | | // optional int32 h = 2; |
1776 | | bool TexturePacket_Size::has_h() const { |
1777 | | return (_has_bits_[0] & 0x00000002u) != 0; |
1778 | | } |
1779 | | void TexturePacket_Size::set_has_h() { |
1780 | | _has_bits_[0] |= 0x00000002u; |
1781 | | } |
1782 | | void TexturePacket_Size::clear_has_h() { |
1783 | | _has_bits_[0] &= ~0x00000002u; |
1784 | | } |
1785 | | void TexturePacket_Size::clear_h() { |
1786 | | h_ = 0; |
1787 | | clear_has_h(); |
1788 | | } |
1789 | | ::google::protobuf::int32 TexturePacket_Size::h() const { |
1790 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Size.h) |
1791 | | return h_; |
1792 | | } |
1793 | | void TexturePacket_Size::set_h(::google::protobuf::int32 value) { |
1794 | | set_has_h(); |
1795 | | h_ = value; |
1796 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Size.h) |
1797 | | } |
1798 | | |
1799 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
1800 | | |
1801 | | // =================================================================== |
1802 | | |
1803 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1804 | | const int TexturePacket_Matrix::kIs2DFieldNumber; |
1805 | | const int TexturePacket_Matrix::kIsIdFieldNumber; |
1806 | | const int TexturePacket_Matrix::kMFieldNumber; |
1807 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1808 | | |
1809 | | TexturePacket_Matrix::TexturePacket_Matrix() |
1810 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
1811 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
1812 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1813 | 0 | } |
1814 | 0 | SharedCtor(); |
1815 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.Matrix) |
1816 | 0 | } |
1817 | | TexturePacket_Matrix::TexturePacket_Matrix(const TexturePacket_Matrix& from) |
1818 | | : ::google::protobuf::MessageLite(), |
1819 | | _internal_metadata_(NULL), |
1820 | | _has_bits_(from._has_bits_), |
1821 | | _cached_size_(0), |
1822 | 0 | m_(from.m_) { |
1823 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1824 | 0 | ::memcpy(&is2d_, &from.is2d_, |
1825 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&isid_) - |
1826 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
1827 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.Matrix) |
1828 | 0 | } |
1829 | | |
1830 | 0 | void TexturePacket_Matrix::SharedCtor() { |
1831 | 0 | _cached_size_ = 0; |
1832 | 0 | ::memset(&is2d_, 0, static_cast<size_t>( |
1833 | 0 | reinterpret_cast<char*>(&isid_) - |
1834 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
1835 | 0 | } |
1836 | | |
1837 | 0 | TexturePacket_Matrix::~TexturePacket_Matrix() { |
1838 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.Matrix) |
1839 | 0 | SharedDtor(); |
1840 | 0 | } |
1841 | | |
1842 | 0 | void TexturePacket_Matrix::SharedDtor() { |
1843 | 0 | } |
1844 | | |
1845 | 0 | void TexturePacket_Matrix::SetCachedSize(int size) const { |
1846 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
1847 | 0 | _cached_size_ = size; |
1848 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
1849 | 0 | } |
1850 | 0 | const TexturePacket_Matrix& TexturePacket_Matrix::default_instance() { |
1851 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
1852 | 0 | return *internal_default_instance(); |
1853 | 0 | } |
1854 | | |
1855 | 0 | TexturePacket_Matrix* TexturePacket_Matrix::New(::google::protobuf::Arena* arena) const { |
1856 | 0 | TexturePacket_Matrix* n = new TexturePacket_Matrix; |
1857 | 0 | if (arena != NULL) { |
1858 | 0 | arena->Own(n); |
1859 | 0 | } |
1860 | 0 | return n; |
1861 | 0 | } |
1862 | | |
1863 | 0 | void TexturePacket_Matrix::Clear() { |
1864 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
1865 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1866 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
1867 | 0 | (void) cached_has_bits; |
1868 | 0 |
|
1869 | 0 | m_.Clear(); |
1870 | 0 | cached_has_bits = _has_bits_[0]; |
1871 | 0 | if (cached_has_bits & 3u) { |
1872 | 0 | ::memset(&is2d_, 0, static_cast<size_t>( |
1873 | 0 | reinterpret_cast<char*>(&isid_) - |
1874 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
1875 | 0 | } |
1876 | 0 | _has_bits_.Clear(); |
1877 | 0 | _internal_metadata_.Clear(); |
1878 | 0 | } |
1879 | | |
1880 | | bool TexturePacket_Matrix::MergePartialFromCodedStream( |
1881 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1882 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1883 | 0 | ::google::protobuf::uint32 tag; |
1884 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
1885 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
1886 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
1887 | 0 | mutable_unknown_fields)); |
1888 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
1889 | 0 | &unknown_fields_string, false); |
1890 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
1891 | 0 | for (;;) { |
1892 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1893 | 0 | tag = p.first; |
1894 | 0 | if (!p.second) goto handle_unusual; |
1895 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1896 | 0 | // optional bool is2D = 1; |
1897 | 0 | case 1: { |
1898 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1899 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
1900 | 0 | set_has_is2d(); |
1901 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1902 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1903 | 0 | input, &is2d_))); |
1904 | 0 | } else { |
1905 | 0 | goto handle_unusual; |
1906 | 0 | } |
1907 | 0 | break; |
1908 | 0 | } |
1909 | 0 |
|
1910 | 0 | // optional bool isId = 2; |
1911 | 0 | case 2: { |
1912 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1913 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
1914 | 0 | set_has_isid(); |
1915 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1916 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
1917 | 0 | input, &isid_))); |
1918 | 0 | } else { |
1919 | 0 | goto handle_unusual; |
1920 | 0 | } |
1921 | 0 | break; |
1922 | 0 | } |
1923 | 0 |
|
1924 | 0 | // repeated float m = 3; |
1925 | 0 | case 3: { |
1926 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1927 | 0 | static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { |
1928 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
1929 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1930 | 0 | 1, 29u, input, this->mutable_m()))); |
1931 | 0 | } else if ( |
1932 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
1933 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
1934 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
1935 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1936 | 0 | input, this->mutable_m()))); |
1937 | 0 | } else { |
1938 | 0 | goto handle_unusual; |
1939 | 0 | } |
1940 | 0 | break; |
1941 | 0 | } |
1942 | 0 | |
1943 | 0 | default: { |
1944 | 0 | handle_unusual: |
1945 | 0 | if (tag == 0) { |
1946 | 0 | goto success; |
1947 | 0 | } |
1948 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
1949 | 0 | input, tag, &unknown_fields_stream)); |
1950 | 0 | break; |
1951 | 0 | } |
1952 | 0 | } |
1953 | 0 | } |
1954 | 0 | success: |
1955 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.Matrix) |
1956 | 0 | return true; |
1957 | 0 | failure: |
1958 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.Matrix) |
1959 | 0 | return false; |
1960 | 0 | #undef DO_ |
1961 | 0 | } |
1962 | | |
1963 | | void TexturePacket_Matrix::SerializeWithCachedSizes( |
1964 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1965 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
1966 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1967 | 0 | (void) cached_has_bits; |
1968 | 0 |
|
1969 | 0 | cached_has_bits = _has_bits_[0]; |
1970 | 0 | // optional bool is2D = 1; |
1971 | 0 | if (cached_has_bits & 0x00000001u) { |
1972 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output); |
1973 | 0 | } |
1974 | 0 |
|
1975 | 0 | // optional bool isId = 2; |
1976 | 0 | if (cached_has_bits & 0x00000002u) { |
1977 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output); |
1978 | 0 | } |
1979 | 0 |
|
1980 | 0 | // repeated float m = 3; |
1981 | 0 | for (int i = 0, n = this->m_size(); i < n; i++) { |
1982 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat( |
1983 | 0 | 3, this->m(i), output); |
1984 | 0 | } |
1985 | 0 |
|
1986 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
1987 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
1988 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.Matrix) |
1989 | 0 | } |
1990 | | |
1991 | 0 | size_t TexturePacket_Matrix::ByteSizeLong() const { |
1992 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
1993 | 0 | size_t total_size = 0; |
1994 | 0 |
|
1995 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
1996 | 0 |
|
1997 | 0 | // repeated float m = 3; |
1998 | 0 | { |
1999 | 0 | unsigned int count = static_cast<unsigned int>(this->m_size()); |
2000 | 0 | size_t data_size = 4UL * count; |
2001 | 0 | total_size += 1 * |
2002 | 0 | ::google::protobuf::internal::FromIntSize(this->m_size()); |
2003 | 0 | total_size += data_size; |
2004 | 0 | } |
2005 | 0 |
|
2006 | 0 | if (_has_bits_[0 / 32] & 3u) { |
2007 | 0 | // optional bool is2D = 1; |
2008 | 0 | if (has_is2d()) { |
2009 | 0 | total_size += 1 + 1; |
2010 | 0 | } |
2011 | 0 |
|
2012 | 0 | // optional bool isId = 2; |
2013 | 0 | if (has_isid()) { |
2014 | 0 | total_size += 1 + 1; |
2015 | 0 | } |
2016 | 0 |
|
2017 | 0 | } |
2018 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2019 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2020 | 0 | _cached_size_ = cached_size; |
2021 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2022 | 0 | return total_size; |
2023 | 0 | } |
2024 | | |
2025 | | void TexturePacket_Matrix::CheckTypeAndMergeFrom( |
2026 | 0 | const ::google::protobuf::MessageLite& from) { |
2027 | 0 | MergeFrom(*::google::protobuf::down_cast<const TexturePacket_Matrix*>(&from)); |
2028 | 0 | } |
2029 | | |
2030 | 0 | void TexturePacket_Matrix::MergeFrom(const TexturePacket_Matrix& from) { |
2031 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
2032 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2033 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2034 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2035 | 0 | (void) cached_has_bits; |
2036 | 0 |
|
2037 | 0 | m_.MergeFrom(from.m_); |
2038 | 0 | cached_has_bits = from._has_bits_[0]; |
2039 | 0 | if (cached_has_bits & 3u) { |
2040 | 0 | if (cached_has_bits & 0x00000001u) { |
2041 | 0 | is2d_ = from.is2d_; |
2042 | 0 | } |
2043 | 0 | if (cached_has_bits & 0x00000002u) { |
2044 | 0 | isid_ = from.isid_; |
2045 | 0 | } |
2046 | 0 | _has_bits_[0] |= cached_has_bits; |
2047 | 0 | } |
2048 | 0 | } |
2049 | | |
2050 | 0 | void TexturePacket_Matrix::CopyFrom(const TexturePacket_Matrix& from) { |
2051 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.Matrix) |
2052 | 0 | if (&from == this) return; |
2053 | 0 | Clear(); |
2054 | 0 | MergeFrom(from); |
2055 | 0 | } |
2056 | | |
2057 | 0 | bool TexturePacket_Matrix::IsInitialized() const { |
2058 | 0 | return true; |
2059 | 0 | } |
2060 | | |
2061 | 0 | void TexturePacket_Matrix::Swap(TexturePacket_Matrix* other) { |
2062 | 0 | if (other == this) return; |
2063 | 0 | InternalSwap(other); |
2064 | 0 | } |
2065 | 0 | void TexturePacket_Matrix::InternalSwap(TexturePacket_Matrix* other) { |
2066 | 0 | using std::swap; |
2067 | 0 | m_.InternalSwap(&other->m_); |
2068 | 0 | swap(is2d_, other->is2d_); |
2069 | 0 | swap(isid_, other->isid_); |
2070 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2071 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2072 | 0 | swap(_cached_size_, other->_cached_size_); |
2073 | 0 | } |
2074 | | |
2075 | 0 | ::std::string TexturePacket_Matrix::GetTypeName() const { |
2076 | 0 | return "mozilla.layers.layerscope.TexturePacket.Matrix"; |
2077 | 0 | } |
2078 | | |
2079 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
2080 | | // TexturePacket_Matrix |
2081 | | |
2082 | | // optional bool is2D = 1; |
2083 | | bool TexturePacket_Matrix::has_is2d() const { |
2084 | | return (_has_bits_[0] & 0x00000001u) != 0; |
2085 | | } |
2086 | | void TexturePacket_Matrix::set_has_is2d() { |
2087 | | _has_bits_[0] |= 0x00000001u; |
2088 | | } |
2089 | | void TexturePacket_Matrix::clear_has_is2d() { |
2090 | | _has_bits_[0] &= ~0x00000001u; |
2091 | | } |
2092 | | void TexturePacket_Matrix::clear_is2d() { |
2093 | | is2d_ = false; |
2094 | | clear_has_is2d(); |
2095 | | } |
2096 | | bool TexturePacket_Matrix::is2d() const { |
2097 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.is2D) |
2098 | | return is2d_; |
2099 | | } |
2100 | | void TexturePacket_Matrix::set_is2d(bool value) { |
2101 | | set_has_is2d(); |
2102 | | is2d_ = value; |
2103 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.is2D) |
2104 | | } |
2105 | | |
2106 | | // optional bool isId = 2; |
2107 | | bool TexturePacket_Matrix::has_isid() const { |
2108 | | return (_has_bits_[0] & 0x00000002u) != 0; |
2109 | | } |
2110 | | void TexturePacket_Matrix::set_has_isid() { |
2111 | | _has_bits_[0] |= 0x00000002u; |
2112 | | } |
2113 | | void TexturePacket_Matrix::clear_has_isid() { |
2114 | | _has_bits_[0] &= ~0x00000002u; |
2115 | | } |
2116 | | void TexturePacket_Matrix::clear_isid() { |
2117 | | isid_ = false; |
2118 | | clear_has_isid(); |
2119 | | } |
2120 | | bool TexturePacket_Matrix::isid() const { |
2121 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.isId) |
2122 | | return isid_; |
2123 | | } |
2124 | | void TexturePacket_Matrix::set_isid(bool value) { |
2125 | | set_has_isid(); |
2126 | | isid_ = value; |
2127 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.isId) |
2128 | | } |
2129 | | |
2130 | | // repeated float m = 3; |
2131 | | int TexturePacket_Matrix::m_size() const { |
2132 | | return m_.size(); |
2133 | | } |
2134 | | void TexturePacket_Matrix::clear_m() { |
2135 | | m_.Clear(); |
2136 | | } |
2137 | | float TexturePacket_Matrix::m(int index) const { |
2138 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.Matrix.m) |
2139 | | return m_.Get(index); |
2140 | | } |
2141 | | void TexturePacket_Matrix::set_m(int index, float value) { |
2142 | | m_.Set(index, value); |
2143 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.Matrix.m) |
2144 | | } |
2145 | | void TexturePacket_Matrix::add_m(float value) { |
2146 | | m_.Add(value); |
2147 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.TexturePacket.Matrix.m) |
2148 | | } |
2149 | | const ::google::protobuf::RepeatedField< float >& |
2150 | | TexturePacket_Matrix::m() const { |
2151 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.TexturePacket.Matrix.m) |
2152 | | return m_; |
2153 | | } |
2154 | | ::google::protobuf::RepeatedField< float >* |
2155 | | TexturePacket_Matrix::mutable_m() { |
2156 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.TexturePacket.Matrix.m) |
2157 | | return &m_; |
2158 | | } |
2159 | | |
2160 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
2161 | | |
2162 | | // =================================================================== |
2163 | | |
2164 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2165 | | const int TexturePacket_EffectMask::kMIs3DFieldNumber; |
2166 | | const int TexturePacket_EffectMask::kMSizeFieldNumber; |
2167 | | const int TexturePacket_EffectMask::kMMaskTransformFieldNumber; |
2168 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2169 | | |
2170 | | TexturePacket_EffectMask::TexturePacket_EffectMask() |
2171 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
2172 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2173 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
2174 | 0 | } |
2175 | 0 | SharedCtor(); |
2176 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2177 | 0 | } |
2178 | | TexturePacket_EffectMask::TexturePacket_EffectMask(const TexturePacket_EffectMask& from) |
2179 | | : ::google::protobuf::MessageLite(), |
2180 | | _internal_metadata_(NULL), |
2181 | | _has_bits_(from._has_bits_), |
2182 | 0 | _cached_size_(0) { |
2183 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2184 | 0 | if (from.has_msize()) { |
2185 | 0 | msize_ = new ::mozilla::layers::layerscope::TexturePacket_Size(*from.msize_); |
2186 | 0 | } else { |
2187 | 0 | msize_ = NULL; |
2188 | 0 | } |
2189 | 0 | if (from.has_mmasktransform()) { |
2190 | 0 | mmasktransform_ = new ::mozilla::layers::layerscope::TexturePacket_Matrix(*from.mmasktransform_); |
2191 | 0 | } else { |
2192 | 0 | mmasktransform_ = NULL; |
2193 | 0 | } |
2194 | 0 | mis3d_ = from.mis3d_; |
2195 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2196 | 0 | } |
2197 | | |
2198 | 0 | void TexturePacket_EffectMask::SharedCtor() { |
2199 | 0 | _cached_size_ = 0; |
2200 | 0 | ::memset(&msize_, 0, static_cast<size_t>( |
2201 | 0 | reinterpret_cast<char*>(&mis3d_) - |
2202 | 0 | reinterpret_cast<char*>(&msize_)) + sizeof(mis3d_)); |
2203 | 0 | } |
2204 | | |
2205 | 0 | TexturePacket_EffectMask::~TexturePacket_EffectMask() { |
2206 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2207 | 0 | SharedDtor(); |
2208 | 0 | } |
2209 | | |
2210 | 0 | void TexturePacket_EffectMask::SharedDtor() { |
2211 | 0 | if (this != internal_default_instance()) delete msize_; |
2212 | 0 | if (this != internal_default_instance()) delete mmasktransform_; |
2213 | 0 | } |
2214 | | |
2215 | 0 | void TexturePacket_EffectMask::SetCachedSize(int size) const { |
2216 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2217 | 0 | _cached_size_ = size; |
2218 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2219 | 0 | } |
2220 | 0 | const TexturePacket_EffectMask& TexturePacket_EffectMask::default_instance() { |
2221 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
2222 | 0 | return *internal_default_instance(); |
2223 | 0 | } |
2224 | | |
2225 | 0 | TexturePacket_EffectMask* TexturePacket_EffectMask::New(::google::protobuf::Arena* arena) const { |
2226 | 0 | TexturePacket_EffectMask* n = new TexturePacket_EffectMask; |
2227 | 0 | if (arena != NULL) { |
2228 | 0 | arena->Own(n); |
2229 | 0 | } |
2230 | 0 | return n; |
2231 | 0 | } |
2232 | | |
2233 | 0 | void TexturePacket_EffectMask::Clear() { |
2234 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2235 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2236 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
2237 | 0 | (void) cached_has_bits; |
2238 | 0 |
|
2239 | 0 | cached_has_bits = _has_bits_[0]; |
2240 | 0 | if (cached_has_bits & 3u) { |
2241 | 0 | if (cached_has_bits & 0x00000001u) { |
2242 | 0 | GOOGLE_DCHECK(msize_ != NULL); |
2243 | 0 | msize_->::mozilla::layers::layerscope::TexturePacket_Size::Clear(); |
2244 | 0 | } |
2245 | 0 | if (cached_has_bits & 0x00000002u) { |
2246 | 0 | GOOGLE_DCHECK(mmasktransform_ != NULL); |
2247 | 0 | mmasktransform_->::mozilla::layers::layerscope::TexturePacket_Matrix::Clear(); |
2248 | 0 | } |
2249 | 0 | } |
2250 | 0 | mis3d_ = false; |
2251 | 0 | _has_bits_.Clear(); |
2252 | 0 | _internal_metadata_.Clear(); |
2253 | 0 | } |
2254 | | |
2255 | | bool TexturePacket_EffectMask::MergePartialFromCodedStream( |
2256 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2257 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2258 | 0 | ::google::protobuf::uint32 tag; |
2259 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
2260 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
2261 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
2262 | 0 | mutable_unknown_fields)); |
2263 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
2264 | 0 | &unknown_fields_string, false); |
2265 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2266 | 0 | for (;;) { |
2267 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2268 | 0 | tag = p.first; |
2269 | 0 | if (!p.second) goto handle_unusual; |
2270 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2271 | 0 | // optional bool mIs3D = 1; |
2272 | 0 | case 1: { |
2273 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2274 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2275 | 0 | set_has_mis3d(); |
2276 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2277 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2278 | 0 | input, &mis3d_))); |
2279 | 0 | } else { |
2280 | 0 | goto handle_unusual; |
2281 | 0 | } |
2282 | 0 | break; |
2283 | 0 | } |
2284 | 0 |
|
2285 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2; |
2286 | 0 | case 2: { |
2287 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2288 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2289 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
2290 | 0 | input, mutable_msize())); |
2291 | 0 | } else { |
2292 | 0 | goto handle_unusual; |
2293 | 0 | } |
2294 | 0 | break; |
2295 | 0 | } |
2296 | 0 |
|
2297 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3; |
2298 | 0 | case 3: { |
2299 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2300 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2301 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
2302 | 0 | input, mutable_mmasktransform())); |
2303 | 0 | } else { |
2304 | 0 | goto handle_unusual; |
2305 | 0 | } |
2306 | 0 | break; |
2307 | 0 | } |
2308 | 0 | |
2309 | 0 | default: { |
2310 | 0 | handle_unusual: |
2311 | 0 | if (tag == 0) { |
2312 | 0 | goto success; |
2313 | 0 | } |
2314 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
2315 | 0 | input, tag, &unknown_fields_stream)); |
2316 | 0 | break; |
2317 | 0 | } |
2318 | 0 | } |
2319 | 0 | } |
2320 | 0 | success: |
2321 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2322 | 0 | return true; |
2323 | 0 | failure: |
2324 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2325 | 0 | return false; |
2326 | 0 | #undef DO_ |
2327 | 0 | } |
2328 | | |
2329 | | void TexturePacket_EffectMask::SerializeWithCachedSizes( |
2330 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2331 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2332 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2333 | 0 | (void) cached_has_bits; |
2334 | 0 |
|
2335 | 0 | cached_has_bits = _has_bits_[0]; |
2336 | 0 | // optional bool mIs3D = 1; |
2337 | 0 | if (cached_has_bits & 0x00000004u) { |
2338 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->mis3d(), output); |
2339 | 0 | } |
2340 | 0 |
|
2341 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2; |
2342 | 0 | if (cached_has_bits & 0x00000001u) { |
2343 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
2344 | 0 | 2, *this->msize_, output); |
2345 | 0 | } |
2346 | 0 |
|
2347 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3; |
2348 | 0 | if (cached_has_bits & 0x00000002u) { |
2349 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
2350 | 0 | 3, *this->mmasktransform_, output); |
2351 | 0 | } |
2352 | 0 |
|
2353 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
2354 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
2355 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2356 | 0 | } |
2357 | | |
2358 | 0 | size_t TexturePacket_EffectMask::ByteSizeLong() const { |
2359 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2360 | 0 | size_t total_size = 0; |
2361 | 0 |
|
2362 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
2363 | 0 |
|
2364 | 0 | if (_has_bits_[0 / 32] & 7u) { |
2365 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2; |
2366 | 0 | if (has_msize()) { |
2367 | 0 | total_size += 1 + |
2368 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2369 | 0 | *this->msize_); |
2370 | 0 | } |
2371 | 0 |
|
2372 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3; |
2373 | 0 | if (has_mmasktransform()) { |
2374 | 0 | total_size += 1 + |
2375 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
2376 | 0 | *this->mmasktransform_); |
2377 | 0 | } |
2378 | 0 |
|
2379 | 0 | // optional bool mIs3D = 1; |
2380 | 0 | if (has_mis3d()) { |
2381 | 0 | total_size += 1 + 1; |
2382 | 0 | } |
2383 | 0 |
|
2384 | 0 | } |
2385 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2386 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2387 | 0 | _cached_size_ = cached_size; |
2388 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2389 | 0 | return total_size; |
2390 | 0 | } |
2391 | | |
2392 | | void TexturePacket_EffectMask::CheckTypeAndMergeFrom( |
2393 | 0 | const ::google::protobuf::MessageLite& from) { |
2394 | 0 | MergeFrom(*::google::protobuf::down_cast<const TexturePacket_EffectMask*>(&from)); |
2395 | 0 | } |
2396 | | |
2397 | 0 | void TexturePacket_EffectMask::MergeFrom(const TexturePacket_EffectMask& from) { |
2398 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2399 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2400 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2401 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2402 | 0 | (void) cached_has_bits; |
2403 | 0 |
|
2404 | 0 | cached_has_bits = from._has_bits_[0]; |
2405 | 0 | if (cached_has_bits & 7u) { |
2406 | 0 | if (cached_has_bits & 0x00000001u) { |
2407 | 0 | mutable_msize()->::mozilla::layers::layerscope::TexturePacket_Size::MergeFrom(from.msize()); |
2408 | 0 | } |
2409 | 0 | if (cached_has_bits & 0x00000002u) { |
2410 | 0 | mutable_mmasktransform()->::mozilla::layers::layerscope::TexturePacket_Matrix::MergeFrom(from.mmasktransform()); |
2411 | 0 | } |
2412 | 0 | if (cached_has_bits & 0x00000004u) { |
2413 | 0 | mis3d_ = from.mis3d_; |
2414 | 0 | } |
2415 | 0 | _has_bits_[0] |= cached_has_bits; |
2416 | 0 | } |
2417 | 0 | } |
2418 | | |
2419 | 0 | void TexturePacket_EffectMask::CopyFrom(const TexturePacket_EffectMask& from) { |
2420 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket.EffectMask) |
2421 | 0 | if (&from == this) return; |
2422 | 0 | Clear(); |
2423 | 0 | MergeFrom(from); |
2424 | 0 | } |
2425 | | |
2426 | 0 | bool TexturePacket_EffectMask::IsInitialized() const { |
2427 | 0 | return true; |
2428 | 0 | } |
2429 | | |
2430 | 0 | void TexturePacket_EffectMask::Swap(TexturePacket_EffectMask* other) { |
2431 | 0 | if (other == this) return; |
2432 | 0 | InternalSwap(other); |
2433 | 0 | } |
2434 | 0 | void TexturePacket_EffectMask::InternalSwap(TexturePacket_EffectMask* other) { |
2435 | 0 | using std::swap; |
2436 | 0 | swap(msize_, other->msize_); |
2437 | 0 | swap(mmasktransform_, other->mmasktransform_); |
2438 | 0 | swap(mis3d_, other->mis3d_); |
2439 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2440 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2441 | 0 | swap(_cached_size_, other->_cached_size_); |
2442 | 0 | } |
2443 | | |
2444 | 0 | ::std::string TexturePacket_EffectMask::GetTypeName() const { |
2445 | 0 | return "mozilla.layers.layerscope.TexturePacket.EffectMask"; |
2446 | 0 | } |
2447 | | |
2448 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
2449 | | // TexturePacket_EffectMask |
2450 | | |
2451 | | // optional bool mIs3D = 1; |
2452 | | bool TexturePacket_EffectMask::has_mis3d() const { |
2453 | | return (_has_bits_[0] & 0x00000004u) != 0; |
2454 | | } |
2455 | | void TexturePacket_EffectMask::set_has_mis3d() { |
2456 | | _has_bits_[0] |= 0x00000004u; |
2457 | | } |
2458 | | void TexturePacket_EffectMask::clear_has_mis3d() { |
2459 | | _has_bits_[0] &= ~0x00000004u; |
2460 | | } |
2461 | | void TexturePacket_EffectMask::clear_mis3d() { |
2462 | | mis3d_ = false; |
2463 | | clear_has_mis3d(); |
2464 | | } |
2465 | | bool TexturePacket_EffectMask::mis3d() const { |
2466 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D) |
2467 | | return mis3d_; |
2468 | | } |
2469 | | void TexturePacket_EffectMask::set_mis3d(bool value) { |
2470 | | set_has_mis3d(); |
2471 | | mis3d_ = value; |
2472 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.EffectMask.mIs3D) |
2473 | | } |
2474 | | |
2475 | | // optional .mozilla.layers.layerscope.TexturePacket.Size mSize = 2; |
2476 | | bool TexturePacket_EffectMask::has_msize() const { |
2477 | | return (_has_bits_[0] & 0x00000001u) != 0; |
2478 | | } |
2479 | | void TexturePacket_EffectMask::set_has_msize() { |
2480 | | _has_bits_[0] |= 0x00000001u; |
2481 | | } |
2482 | | void TexturePacket_EffectMask::clear_has_msize() { |
2483 | | _has_bits_[0] &= ~0x00000001u; |
2484 | | } |
2485 | | void TexturePacket_EffectMask::clear_msize() { |
2486 | | if (msize_ != NULL) msize_->::mozilla::layers::layerscope::TexturePacket_Size::Clear(); |
2487 | | clear_has_msize(); |
2488 | | } |
2489 | | const ::mozilla::layers::layerscope::TexturePacket_Size& TexturePacket_EffectMask::msize() const { |
2490 | | const ::mozilla::layers::layerscope::TexturePacket_Size* p = msize_; |
2491 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize) |
2492 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Size*>( |
2493 | | &::mozilla::layers::layerscope::_TexturePacket_Size_default_instance_); |
2494 | | } |
2495 | | ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::mutable_msize() { |
2496 | | set_has_msize(); |
2497 | | if (msize_ == NULL) { |
2498 | | msize_ = new ::mozilla::layers::layerscope::TexturePacket_Size; |
2499 | | } |
2500 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize) |
2501 | | return msize_; |
2502 | | } |
2503 | | ::mozilla::layers::layerscope::TexturePacket_Size* TexturePacket_EffectMask::release_msize() { |
2504 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize) |
2505 | | clear_has_msize(); |
2506 | | ::mozilla::layers::layerscope::TexturePacket_Size* temp = msize_; |
2507 | | msize_ = NULL; |
2508 | | return temp; |
2509 | | } |
2510 | | void TexturePacket_EffectMask::set_allocated_msize(::mozilla::layers::layerscope::TexturePacket_Size* msize) { |
2511 | | delete msize_; |
2512 | | msize_ = msize; |
2513 | | if (msize) { |
2514 | | set_has_msize(); |
2515 | | } else { |
2516 | | clear_has_msize(); |
2517 | | } |
2518 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mSize) |
2519 | | } |
2520 | | |
2521 | | // optional .mozilla.layers.layerscope.TexturePacket.Matrix mMaskTransform = 3; |
2522 | | bool TexturePacket_EffectMask::has_mmasktransform() const { |
2523 | | return (_has_bits_[0] & 0x00000002u) != 0; |
2524 | | } |
2525 | | void TexturePacket_EffectMask::set_has_mmasktransform() { |
2526 | | _has_bits_[0] |= 0x00000002u; |
2527 | | } |
2528 | | void TexturePacket_EffectMask::clear_has_mmasktransform() { |
2529 | | _has_bits_[0] &= ~0x00000002u; |
2530 | | } |
2531 | | void TexturePacket_EffectMask::clear_mmasktransform() { |
2532 | | if (mmasktransform_ != NULL) mmasktransform_->::mozilla::layers::layerscope::TexturePacket_Matrix::Clear(); |
2533 | | clear_has_mmasktransform(); |
2534 | | } |
2535 | | const ::mozilla::layers::layerscope::TexturePacket_Matrix& TexturePacket_EffectMask::mmasktransform() const { |
2536 | | const ::mozilla::layers::layerscope::TexturePacket_Matrix* p = mmasktransform_; |
2537 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform) |
2538 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Matrix*>( |
2539 | | &::mozilla::layers::layerscope::_TexturePacket_Matrix_default_instance_); |
2540 | | } |
2541 | | ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::mutable_mmasktransform() { |
2542 | | set_has_mmasktransform(); |
2543 | | if (mmasktransform_ == NULL) { |
2544 | | mmasktransform_ = new ::mozilla::layers::layerscope::TexturePacket_Matrix; |
2545 | | } |
2546 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform) |
2547 | | return mmasktransform_; |
2548 | | } |
2549 | | ::mozilla::layers::layerscope::TexturePacket_Matrix* TexturePacket_EffectMask::release_mmasktransform() { |
2550 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform) |
2551 | | clear_has_mmasktransform(); |
2552 | | ::mozilla::layers::layerscope::TexturePacket_Matrix* temp = mmasktransform_; |
2553 | | mmasktransform_ = NULL; |
2554 | | return temp; |
2555 | | } |
2556 | | void TexturePacket_EffectMask::set_allocated_mmasktransform(::mozilla::layers::layerscope::TexturePacket_Matrix* mmasktransform) { |
2557 | | delete mmasktransform_; |
2558 | | mmasktransform_ = mmasktransform; |
2559 | | if (mmasktransform) { |
2560 | | set_has_mmasktransform(); |
2561 | | } else { |
2562 | | clear_has_mmasktransform(); |
2563 | | } |
2564 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.EffectMask.mMaskTransform) |
2565 | | } |
2566 | | |
2567 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
2568 | | |
2569 | | // =================================================================== |
2570 | | |
2571 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2572 | | const int TexturePacket::kLayerrefFieldNumber; |
2573 | | const int TexturePacket::kWidthFieldNumber; |
2574 | | const int TexturePacket::kHeightFieldNumber; |
2575 | | const int TexturePacket::kStrideFieldNumber; |
2576 | | const int TexturePacket::kNameFieldNumber; |
2577 | | const int TexturePacket::kTargetFieldNumber; |
2578 | | const int TexturePacket::kDataformatFieldNumber; |
2579 | | const int TexturePacket::kGlcontextFieldNumber; |
2580 | | const int TexturePacket::kDataFieldNumber; |
2581 | | const int TexturePacket::kMTextureCoordsFieldNumber; |
2582 | | const int TexturePacket::kMPremultipliedFieldNumber; |
2583 | | const int TexturePacket::kMFilterFieldNumber; |
2584 | | const int TexturePacket::kIsMaskFieldNumber; |
2585 | | const int TexturePacket::kMaskFieldNumber; |
2586 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2587 | | |
2588 | | TexturePacket::TexturePacket() |
2589 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
2590 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
2591 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
2592 | 0 | } |
2593 | 0 | SharedCtor(); |
2594 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.TexturePacket) |
2595 | 0 | } |
2596 | | TexturePacket::TexturePacket(const TexturePacket& from) |
2597 | | : ::google::protobuf::MessageLite(), |
2598 | | _internal_metadata_(NULL), |
2599 | | _has_bits_(from._has_bits_), |
2600 | 0 | _cached_size_(0) { |
2601 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2602 | 0 | data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2603 | 0 | if (from.has_data()) { |
2604 | 0 | data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); |
2605 | 0 | } |
2606 | 0 | if (from.has_mtexturecoords()) { |
2607 | 0 | mtexturecoords_ = new ::mozilla::layers::layerscope::TexturePacket_Rect(*from.mtexturecoords_); |
2608 | 0 | } else { |
2609 | 0 | mtexturecoords_ = NULL; |
2610 | 0 | } |
2611 | 0 | if (from.has_mask()) { |
2612 | 0 | mask_ = new ::mozilla::layers::layerscope::TexturePacket_EffectMask(*from.mask_); |
2613 | 0 | } else { |
2614 | 0 | mask_ = NULL; |
2615 | 0 | } |
2616 | 0 | ::memcpy(&layerref_, &from.layerref_, |
2617 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&ismask_) - |
2618 | 0 | reinterpret_cast<char*>(&layerref_)) + sizeof(ismask_)); |
2619 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.TexturePacket) |
2620 | 0 | } |
2621 | | |
2622 | 0 | void TexturePacket::SharedCtor() { |
2623 | 0 | _cached_size_ = 0; |
2624 | 0 | data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2625 | 0 | ::memset(&mtexturecoords_, 0, static_cast<size_t>( |
2626 | 0 | reinterpret_cast<char*>(&ismask_) - |
2627 | 0 | reinterpret_cast<char*>(&mtexturecoords_)) + sizeof(ismask_)); |
2628 | 0 | } |
2629 | | |
2630 | 0 | TexturePacket::~TexturePacket() { |
2631 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.TexturePacket) |
2632 | 0 | SharedDtor(); |
2633 | 0 | } |
2634 | | |
2635 | 0 | void TexturePacket::SharedDtor() { |
2636 | 0 | data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2637 | 0 | if (this != internal_default_instance()) delete mtexturecoords_; |
2638 | 0 | if (this != internal_default_instance()) delete mask_; |
2639 | 0 | } |
2640 | | |
2641 | 0 | void TexturePacket::SetCachedSize(int size) const { |
2642 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2643 | 0 | _cached_size_ = size; |
2644 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2645 | 0 | } |
2646 | 0 | const TexturePacket& TexturePacket::default_instance() { |
2647 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
2648 | 0 | return *internal_default_instance(); |
2649 | 0 | } |
2650 | | |
2651 | 0 | TexturePacket* TexturePacket::New(::google::protobuf::Arena* arena) const { |
2652 | 0 | TexturePacket* n = new TexturePacket; |
2653 | 0 | if (arena != NULL) { |
2654 | 0 | arena->Own(n); |
2655 | 0 | } |
2656 | 0 | return n; |
2657 | 0 | } |
2658 | | |
2659 | 0 | void TexturePacket::Clear() { |
2660 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.TexturePacket) |
2661 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2662 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
2663 | 0 | (void) cached_has_bits; |
2664 | 0 |
|
2665 | 0 | cached_has_bits = _has_bits_[0]; |
2666 | 0 | if (cached_has_bits & 7u) { |
2667 | 0 | if (cached_has_bits & 0x00000001u) { |
2668 | 0 | GOOGLE_DCHECK(!data_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
2669 | 0 | (*data_.UnsafeRawStringPointer())->clear(); |
2670 | 0 | } |
2671 | 0 | if (cached_has_bits & 0x00000002u) { |
2672 | 0 | GOOGLE_DCHECK(mtexturecoords_ != NULL); |
2673 | 0 | mtexturecoords_->::mozilla::layers::layerscope::TexturePacket_Rect::Clear(); |
2674 | 0 | } |
2675 | 0 | if (cached_has_bits & 0x00000004u) { |
2676 | 0 | GOOGLE_DCHECK(mask_ != NULL); |
2677 | 0 | mask_->::mozilla::layers::layerscope::TexturePacket_EffectMask::Clear(); |
2678 | 0 | } |
2679 | 0 | } |
2680 | 0 | if (cached_has_bits & 248u) { |
2681 | 0 | ::memset(&layerref_, 0, static_cast<size_t>( |
2682 | 0 | reinterpret_cast<char*>(&name_) - |
2683 | 0 | reinterpret_cast<char*>(&layerref_)) + sizeof(name_)); |
2684 | 0 | } |
2685 | 0 | if (cached_has_bits & 16128u) { |
2686 | 0 | ::memset(&target_, 0, static_cast<size_t>( |
2687 | 0 | reinterpret_cast<char*>(&ismask_) - |
2688 | 0 | reinterpret_cast<char*>(&target_)) + sizeof(ismask_)); |
2689 | 0 | } |
2690 | 0 | _has_bits_.Clear(); |
2691 | 0 | _internal_metadata_.Clear(); |
2692 | 0 | } |
2693 | | |
2694 | | bool TexturePacket::MergePartialFromCodedStream( |
2695 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2696 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2697 | 0 | ::google::protobuf::uint32 tag; |
2698 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
2699 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
2700 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
2701 | 0 | mutable_unknown_fields)); |
2702 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
2703 | 0 | &unknown_fields_string, false); |
2704 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.TexturePacket) |
2705 | 0 | for (;;) { |
2706 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
2707 | 0 | tag = p.first; |
2708 | 0 | if (!p.second) goto handle_unusual; |
2709 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2710 | 0 | // required uint64 layerref = 1; |
2711 | 0 | case 1: { |
2712 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2713 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
2714 | 0 | set_has_layerref(); |
2715 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2716 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2717 | 0 | input, &layerref_))); |
2718 | 0 | } else { |
2719 | 0 | goto handle_unusual; |
2720 | 0 | } |
2721 | 0 | break; |
2722 | 0 | } |
2723 | 0 |
|
2724 | 0 | // optional uint32 width = 2; |
2725 | 0 | case 2: { |
2726 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2727 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2728 | 0 | set_has_width(); |
2729 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2730 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2731 | 0 | input, &width_))); |
2732 | 0 | } else { |
2733 | 0 | goto handle_unusual; |
2734 | 0 | } |
2735 | 0 | break; |
2736 | 0 | } |
2737 | 0 |
|
2738 | 0 | // optional uint32 height = 3; |
2739 | 0 | case 3: { |
2740 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2741 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
2742 | 0 | set_has_height(); |
2743 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2744 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2745 | 0 | input, &height_))); |
2746 | 0 | } else { |
2747 | 0 | goto handle_unusual; |
2748 | 0 | } |
2749 | 0 | break; |
2750 | 0 | } |
2751 | 0 |
|
2752 | 0 | // optional uint32 stride = 4; |
2753 | 0 | case 4: { |
2754 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2755 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2756 | 0 | set_has_stride(); |
2757 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2758 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2759 | 0 | input, &stride_))); |
2760 | 0 | } else { |
2761 | 0 | goto handle_unusual; |
2762 | 0 | } |
2763 | 0 | break; |
2764 | 0 | } |
2765 | 0 |
|
2766 | 0 | // optional uint32 name = 5; |
2767 | 0 | case 5: { |
2768 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2769 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2770 | 0 | set_has_name(); |
2771 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2772 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2773 | 0 | input, &name_))); |
2774 | 0 | } else { |
2775 | 0 | goto handle_unusual; |
2776 | 0 | } |
2777 | 0 | break; |
2778 | 0 | } |
2779 | 0 |
|
2780 | 0 | // optional uint32 target = 6; |
2781 | 0 | case 6: { |
2782 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2783 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
2784 | 0 | set_has_target(); |
2785 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2786 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2787 | 0 | input, &target_))); |
2788 | 0 | } else { |
2789 | 0 | goto handle_unusual; |
2790 | 0 | } |
2791 | 0 | break; |
2792 | 0 | } |
2793 | 0 |
|
2794 | 0 | // optional uint32 dataformat = 7; |
2795 | 0 | case 7: { |
2796 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2797 | 0 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
2798 | 0 | set_has_dataformat(); |
2799 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2800 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2801 | 0 | input, &dataformat_))); |
2802 | 0 | } else { |
2803 | 0 | goto handle_unusual; |
2804 | 0 | } |
2805 | 0 | break; |
2806 | 0 | } |
2807 | 0 |
|
2808 | 0 | // optional uint64 glcontext = 8; |
2809 | 0 | case 8: { |
2810 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2811 | 0 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
2812 | 0 | set_has_glcontext(); |
2813 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2814 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
2815 | 0 | input, &glcontext_))); |
2816 | 0 | } else { |
2817 | 0 | goto handle_unusual; |
2818 | 0 | } |
2819 | 0 | break; |
2820 | 0 | } |
2821 | 0 |
|
2822 | 0 | // optional bytes data = 9; |
2823 | 0 | case 9: { |
2824 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2825 | 0 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
2826 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2827 | 0 | input, this->mutable_data())); |
2828 | 0 | } else { |
2829 | 0 | goto handle_unusual; |
2830 | 0 | } |
2831 | 0 | break; |
2832 | 0 | } |
2833 | 0 |
|
2834 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10; |
2835 | 0 | case 10: { |
2836 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2837 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
2838 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
2839 | 0 | input, mutable_mtexturecoords())); |
2840 | 0 | } else { |
2841 | 0 | goto handle_unusual; |
2842 | 0 | } |
2843 | 0 | break; |
2844 | 0 | } |
2845 | 0 |
|
2846 | 0 | // optional bool mPremultiplied = 11; |
2847 | 0 | case 11: { |
2848 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2849 | 0 | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
2850 | 0 | set_has_mpremultiplied(); |
2851 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2852 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2853 | 0 | input, &mpremultiplied_))); |
2854 | 0 | } else { |
2855 | 0 | goto handle_unusual; |
2856 | 0 | } |
2857 | 0 | break; |
2858 | 0 | } |
2859 | 0 |
|
2860 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12; |
2861 | 0 | case 12: { |
2862 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2863 | 0 | static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { |
2864 | 0 | int value; |
2865 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2866 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2867 | 0 | input, &value))); |
2868 | 0 | if (::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value)) { |
2869 | 0 | set_mfilter(static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(value)); |
2870 | 0 | } else { |
2871 | 0 | unknown_fields_stream.WriteVarint32(96u); |
2872 | 0 | unknown_fields_stream.WriteVarint32( |
2873 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
2874 | 0 | } |
2875 | 0 | } else { |
2876 | 0 | goto handle_unusual; |
2877 | 0 | } |
2878 | 0 | break; |
2879 | 0 | } |
2880 | 0 |
|
2881 | 0 | // optional bool isMask = 20; |
2882 | 0 | case 20: { |
2883 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2884 | 0 | static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { |
2885 | 0 | set_has_ismask(); |
2886 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2887 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2888 | 0 | input, &ismask_))); |
2889 | 0 | } else { |
2890 | 0 | goto handle_unusual; |
2891 | 0 | } |
2892 | 0 | break; |
2893 | 0 | } |
2894 | 0 |
|
2895 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21; |
2896 | 0 | case 21: { |
2897 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2898 | 0 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
2899 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
2900 | 0 | input, mutable_mask())); |
2901 | 0 | } else { |
2902 | 0 | goto handle_unusual; |
2903 | 0 | } |
2904 | 0 | break; |
2905 | 0 | } |
2906 | 0 | |
2907 | 0 | default: { |
2908 | 0 | handle_unusual: |
2909 | 0 | if (tag == 0) { |
2910 | 0 | goto success; |
2911 | 0 | } |
2912 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
2913 | 0 | input, tag, &unknown_fields_stream)); |
2914 | 0 | break; |
2915 | 0 | } |
2916 | 0 | } |
2917 | 0 | } |
2918 | 0 | success: |
2919 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.TexturePacket) |
2920 | 0 | return true; |
2921 | 0 | failure: |
2922 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.TexturePacket) |
2923 | 0 | return false; |
2924 | 0 | #undef DO_ |
2925 | 0 | } |
2926 | | |
2927 | | void TexturePacket::SerializeWithCachedSizes( |
2928 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2929 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.TexturePacket) |
2930 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2931 | 0 | (void) cached_has_bits; |
2932 | 0 |
|
2933 | 0 | cached_has_bits = _has_bits_[0]; |
2934 | 0 | // required uint64 layerref = 1; |
2935 | 0 | if (cached_has_bits & 0x00000008u) { |
2936 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->layerref(), output); |
2937 | 0 | } |
2938 | 0 |
|
2939 | 0 | // optional uint32 width = 2; |
2940 | 0 | if (cached_has_bits & 0x00000010u) { |
2941 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->width(), output); |
2942 | 0 | } |
2943 | 0 |
|
2944 | 0 | // optional uint32 height = 3; |
2945 | 0 | if (cached_has_bits & 0x00000020u) { |
2946 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->height(), output); |
2947 | 0 | } |
2948 | 0 |
|
2949 | 0 | // optional uint32 stride = 4; |
2950 | 0 | if (cached_has_bits & 0x00000040u) { |
2951 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->stride(), output); |
2952 | 0 | } |
2953 | 0 |
|
2954 | 0 | // optional uint32 name = 5; |
2955 | 0 | if (cached_has_bits & 0x00000080u) { |
2956 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->name(), output); |
2957 | 0 | } |
2958 | 0 |
|
2959 | 0 | // optional uint32 target = 6; |
2960 | 0 | if (cached_has_bits & 0x00000100u) { |
2961 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->target(), output); |
2962 | 0 | } |
2963 | 0 |
|
2964 | 0 | // optional uint32 dataformat = 7; |
2965 | 0 | if (cached_has_bits & 0x00000200u) { |
2966 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->dataformat(), output); |
2967 | 0 | } |
2968 | 0 |
|
2969 | 0 | // optional uint64 glcontext = 8; |
2970 | 0 | if (cached_has_bits & 0x00000400u) { |
2971 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->glcontext(), output); |
2972 | 0 | } |
2973 | 0 |
|
2974 | 0 | // optional bytes data = 9; |
2975 | 0 | if (cached_has_bits & 0x00000001u) { |
2976 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2977 | 0 | 9, this->data(), output); |
2978 | 0 | } |
2979 | 0 |
|
2980 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10; |
2981 | 0 | if (cached_has_bits & 0x00000002u) { |
2982 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
2983 | 0 | 10, *this->mtexturecoords_, output); |
2984 | 0 | } |
2985 | 0 |
|
2986 | 0 | // optional bool mPremultiplied = 11; |
2987 | 0 | if (cached_has_bits & 0x00001000u) { |
2988 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->mpremultiplied(), output); |
2989 | 0 | } |
2990 | 0 |
|
2991 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12; |
2992 | 0 | if (cached_has_bits & 0x00000800u) { |
2993 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2994 | 0 | 12, this->mfilter(), output); |
2995 | 0 | } |
2996 | 0 |
|
2997 | 0 | // optional bool isMask = 20; |
2998 | 0 | if (cached_has_bits & 0x00002000u) { |
2999 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->ismask(), output); |
3000 | 0 | } |
3001 | 0 |
|
3002 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21; |
3003 | 0 | if (cached_has_bits & 0x00000004u) { |
3004 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
3005 | 0 | 21, *this->mask_, output); |
3006 | 0 | } |
3007 | 0 |
|
3008 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
3009 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
3010 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.TexturePacket) |
3011 | 0 | } |
3012 | | |
3013 | 0 | size_t TexturePacket::ByteSizeLong() const { |
3014 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.TexturePacket) |
3015 | 0 | size_t total_size = 0; |
3016 | 0 |
|
3017 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
3018 | 0 |
|
3019 | 0 | // required uint64 layerref = 1; |
3020 | 0 | if (has_layerref()) { |
3021 | 0 | total_size += 1 + |
3022 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3023 | 0 | this->layerref()); |
3024 | 0 | } |
3025 | 0 | if (_has_bits_[0 / 32] & 7u) { |
3026 | 0 | // optional bytes data = 9; |
3027 | 0 | if (has_data()) { |
3028 | 0 | total_size += 1 + |
3029 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
3030 | 0 | this->data()); |
3031 | 0 | } |
3032 | 0 |
|
3033 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10; |
3034 | 0 | if (has_mtexturecoords()) { |
3035 | 0 | total_size += 1 + |
3036 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3037 | 0 | *this->mtexturecoords_); |
3038 | 0 | } |
3039 | 0 |
|
3040 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21; |
3041 | 0 | if (has_mask()) { |
3042 | 0 | total_size += 2 + |
3043 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
3044 | 0 | *this->mask_); |
3045 | 0 | } |
3046 | 0 |
|
3047 | 0 | } |
3048 | 0 | if (_has_bits_[0 / 32] & 240u) { |
3049 | 0 | // optional uint32 width = 2; |
3050 | 0 | if (has_width()) { |
3051 | 0 | total_size += 1 + |
3052 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3053 | 0 | this->width()); |
3054 | 0 | } |
3055 | 0 |
|
3056 | 0 | // optional uint32 height = 3; |
3057 | 0 | if (has_height()) { |
3058 | 0 | total_size += 1 + |
3059 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3060 | 0 | this->height()); |
3061 | 0 | } |
3062 | 0 |
|
3063 | 0 | // optional uint32 stride = 4; |
3064 | 0 | if (has_stride()) { |
3065 | 0 | total_size += 1 + |
3066 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3067 | 0 | this->stride()); |
3068 | 0 | } |
3069 | 0 |
|
3070 | 0 | // optional uint32 name = 5; |
3071 | 0 | if (has_name()) { |
3072 | 0 | total_size += 1 + |
3073 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3074 | 0 | this->name()); |
3075 | 0 | } |
3076 | 0 |
|
3077 | 0 | } |
3078 | 0 | if (_has_bits_[8 / 32] & 16128u) { |
3079 | 0 | // optional uint32 target = 6; |
3080 | 0 | if (has_target()) { |
3081 | 0 | total_size += 1 + |
3082 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3083 | 0 | this->target()); |
3084 | 0 | } |
3085 | 0 |
|
3086 | 0 | // optional uint32 dataformat = 7; |
3087 | 0 | if (has_dataformat()) { |
3088 | 0 | total_size += 1 + |
3089 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
3090 | 0 | this->dataformat()); |
3091 | 0 | } |
3092 | 0 |
|
3093 | 0 | // optional uint64 glcontext = 8; |
3094 | 0 | if (has_glcontext()) { |
3095 | 0 | total_size += 1 + |
3096 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
3097 | 0 | this->glcontext()); |
3098 | 0 | } |
3099 | 0 |
|
3100 | 0 | // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12; |
3101 | 0 | if (has_mfilter()) { |
3102 | 0 | total_size += 1 + |
3103 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->mfilter()); |
3104 | 0 | } |
3105 | 0 |
|
3106 | 0 | // optional bool mPremultiplied = 11; |
3107 | 0 | if (has_mpremultiplied()) { |
3108 | 0 | total_size += 1 + 1; |
3109 | 0 | } |
3110 | 0 |
|
3111 | 0 | // optional bool isMask = 20; |
3112 | 0 | if (has_ismask()) { |
3113 | 0 | total_size += 2 + 1; |
3114 | 0 | } |
3115 | 0 |
|
3116 | 0 | } |
3117 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3118 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3119 | 0 | _cached_size_ = cached_size; |
3120 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3121 | 0 | return total_size; |
3122 | 0 | } |
3123 | | |
3124 | | void TexturePacket::CheckTypeAndMergeFrom( |
3125 | 0 | const ::google::protobuf::MessageLite& from) { |
3126 | 0 | MergeFrom(*::google::protobuf::down_cast<const TexturePacket*>(&from)); |
3127 | 0 | } |
3128 | | |
3129 | 0 | void TexturePacket::MergeFrom(const TexturePacket& from) { |
3130 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.TexturePacket) |
3131 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3132 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3133 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3134 | 0 | (void) cached_has_bits; |
3135 | 0 |
|
3136 | 0 | cached_has_bits = from._has_bits_[0]; |
3137 | 0 | if (cached_has_bits & 255u) { |
3138 | 0 | if (cached_has_bits & 0x00000001u) { |
3139 | 0 | set_has_data(); |
3140 | 0 | data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); |
3141 | 0 | } |
3142 | 0 | if (cached_has_bits & 0x00000002u) { |
3143 | 0 | mutable_mtexturecoords()->::mozilla::layers::layerscope::TexturePacket_Rect::MergeFrom(from.mtexturecoords()); |
3144 | 0 | } |
3145 | 0 | if (cached_has_bits & 0x00000004u) { |
3146 | 0 | mutable_mask()->::mozilla::layers::layerscope::TexturePacket_EffectMask::MergeFrom(from.mask()); |
3147 | 0 | } |
3148 | 0 | if (cached_has_bits & 0x00000008u) { |
3149 | 0 | layerref_ = from.layerref_; |
3150 | 0 | } |
3151 | 0 | if (cached_has_bits & 0x00000010u) { |
3152 | 0 | width_ = from.width_; |
3153 | 0 | } |
3154 | 0 | if (cached_has_bits & 0x00000020u) { |
3155 | 0 | height_ = from.height_; |
3156 | 0 | } |
3157 | 0 | if (cached_has_bits & 0x00000040u) { |
3158 | 0 | stride_ = from.stride_; |
3159 | 0 | } |
3160 | 0 | if (cached_has_bits & 0x00000080u) { |
3161 | 0 | name_ = from.name_; |
3162 | 0 | } |
3163 | 0 | _has_bits_[0] |= cached_has_bits; |
3164 | 0 | } |
3165 | 0 | if (cached_has_bits & 16128u) { |
3166 | 0 | if (cached_has_bits & 0x00000100u) { |
3167 | 0 | target_ = from.target_; |
3168 | 0 | } |
3169 | 0 | if (cached_has_bits & 0x00000200u) { |
3170 | 0 | dataformat_ = from.dataformat_; |
3171 | 0 | } |
3172 | 0 | if (cached_has_bits & 0x00000400u) { |
3173 | 0 | glcontext_ = from.glcontext_; |
3174 | 0 | } |
3175 | 0 | if (cached_has_bits & 0x00000800u) { |
3176 | 0 | mfilter_ = from.mfilter_; |
3177 | 0 | } |
3178 | 0 | if (cached_has_bits & 0x00001000u) { |
3179 | 0 | mpremultiplied_ = from.mpremultiplied_; |
3180 | 0 | } |
3181 | 0 | if (cached_has_bits & 0x00002000u) { |
3182 | 0 | ismask_ = from.ismask_; |
3183 | 0 | } |
3184 | 0 | _has_bits_[0] |= cached_has_bits; |
3185 | 0 | } |
3186 | 0 | } |
3187 | | |
3188 | 0 | void TexturePacket::CopyFrom(const TexturePacket& from) { |
3189 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.TexturePacket) |
3190 | 0 | if (&from == this) return; |
3191 | 0 | Clear(); |
3192 | 0 | MergeFrom(from); |
3193 | 0 | } |
3194 | | |
3195 | 0 | bool TexturePacket::IsInitialized() const { |
3196 | 0 | if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false; |
3197 | 0 | return true; |
3198 | 0 | } |
3199 | | |
3200 | 0 | void TexturePacket::Swap(TexturePacket* other) { |
3201 | 0 | if (other == this) return; |
3202 | 0 | InternalSwap(other); |
3203 | 0 | } |
3204 | 0 | void TexturePacket::InternalSwap(TexturePacket* other) { |
3205 | 0 | using std::swap; |
3206 | 0 | data_.Swap(&other->data_); |
3207 | 0 | swap(mtexturecoords_, other->mtexturecoords_); |
3208 | 0 | swap(mask_, other->mask_); |
3209 | 0 | swap(layerref_, other->layerref_); |
3210 | 0 | swap(width_, other->width_); |
3211 | 0 | swap(height_, other->height_); |
3212 | 0 | swap(stride_, other->stride_); |
3213 | 0 | swap(name_, other->name_); |
3214 | 0 | swap(target_, other->target_); |
3215 | 0 | swap(dataformat_, other->dataformat_); |
3216 | 0 | swap(glcontext_, other->glcontext_); |
3217 | 0 | swap(mfilter_, other->mfilter_); |
3218 | 0 | swap(mpremultiplied_, other->mpremultiplied_); |
3219 | 0 | swap(ismask_, other->ismask_); |
3220 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3221 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3222 | 0 | swap(_cached_size_, other->_cached_size_); |
3223 | 0 | } |
3224 | | |
3225 | 0 | ::std::string TexturePacket::GetTypeName() const { |
3226 | 0 | return "mozilla.layers.layerscope.TexturePacket"; |
3227 | 0 | } |
3228 | | |
3229 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
3230 | | // TexturePacket |
3231 | | |
3232 | | // required uint64 layerref = 1; |
3233 | | bool TexturePacket::has_layerref() const { |
3234 | | return (_has_bits_[0] & 0x00000008u) != 0; |
3235 | | } |
3236 | | void TexturePacket::set_has_layerref() { |
3237 | | _has_bits_[0] |= 0x00000008u; |
3238 | | } |
3239 | | void TexturePacket::clear_has_layerref() { |
3240 | | _has_bits_[0] &= ~0x00000008u; |
3241 | | } |
3242 | | void TexturePacket::clear_layerref() { |
3243 | | layerref_ = GOOGLE_ULONGLONG(0); |
3244 | | clear_has_layerref(); |
3245 | | } |
3246 | | ::google::protobuf::uint64 TexturePacket::layerref() const { |
3247 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.layerref) |
3248 | | return layerref_; |
3249 | | } |
3250 | | void TexturePacket::set_layerref(::google::protobuf::uint64 value) { |
3251 | | set_has_layerref(); |
3252 | | layerref_ = value; |
3253 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.layerref) |
3254 | | } |
3255 | | |
3256 | | // optional uint32 width = 2; |
3257 | | bool TexturePacket::has_width() const { |
3258 | | return (_has_bits_[0] & 0x00000010u) != 0; |
3259 | | } |
3260 | | void TexturePacket::set_has_width() { |
3261 | | _has_bits_[0] |= 0x00000010u; |
3262 | | } |
3263 | | void TexturePacket::clear_has_width() { |
3264 | | _has_bits_[0] &= ~0x00000010u; |
3265 | | } |
3266 | | void TexturePacket::clear_width() { |
3267 | | width_ = 0u; |
3268 | | clear_has_width(); |
3269 | | } |
3270 | | ::google::protobuf::uint32 TexturePacket::width() const { |
3271 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.width) |
3272 | | return width_; |
3273 | | } |
3274 | | void TexturePacket::set_width(::google::protobuf::uint32 value) { |
3275 | | set_has_width(); |
3276 | | width_ = value; |
3277 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.width) |
3278 | | } |
3279 | | |
3280 | | // optional uint32 height = 3; |
3281 | | bool TexturePacket::has_height() const { |
3282 | | return (_has_bits_[0] & 0x00000020u) != 0; |
3283 | | } |
3284 | | void TexturePacket::set_has_height() { |
3285 | | _has_bits_[0] |= 0x00000020u; |
3286 | | } |
3287 | | void TexturePacket::clear_has_height() { |
3288 | | _has_bits_[0] &= ~0x00000020u; |
3289 | | } |
3290 | | void TexturePacket::clear_height() { |
3291 | | height_ = 0u; |
3292 | | clear_has_height(); |
3293 | | } |
3294 | | ::google::protobuf::uint32 TexturePacket::height() const { |
3295 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.height) |
3296 | | return height_; |
3297 | | } |
3298 | | void TexturePacket::set_height(::google::protobuf::uint32 value) { |
3299 | | set_has_height(); |
3300 | | height_ = value; |
3301 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.height) |
3302 | | } |
3303 | | |
3304 | | // optional uint32 stride = 4; |
3305 | | bool TexturePacket::has_stride() const { |
3306 | | return (_has_bits_[0] & 0x00000040u) != 0; |
3307 | | } |
3308 | | void TexturePacket::set_has_stride() { |
3309 | | _has_bits_[0] |= 0x00000040u; |
3310 | | } |
3311 | | void TexturePacket::clear_has_stride() { |
3312 | | _has_bits_[0] &= ~0x00000040u; |
3313 | | } |
3314 | | void TexturePacket::clear_stride() { |
3315 | | stride_ = 0u; |
3316 | | clear_has_stride(); |
3317 | | } |
3318 | | ::google::protobuf::uint32 TexturePacket::stride() const { |
3319 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.stride) |
3320 | | return stride_; |
3321 | | } |
3322 | | void TexturePacket::set_stride(::google::protobuf::uint32 value) { |
3323 | | set_has_stride(); |
3324 | | stride_ = value; |
3325 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.stride) |
3326 | | } |
3327 | | |
3328 | | // optional uint32 name = 5; |
3329 | | bool TexturePacket::has_name() const { |
3330 | | return (_has_bits_[0] & 0x00000080u) != 0; |
3331 | | } |
3332 | | void TexturePacket::set_has_name() { |
3333 | | _has_bits_[0] |= 0x00000080u; |
3334 | | } |
3335 | | void TexturePacket::clear_has_name() { |
3336 | | _has_bits_[0] &= ~0x00000080u; |
3337 | | } |
3338 | | void TexturePacket::clear_name() { |
3339 | | name_ = 0u; |
3340 | | clear_has_name(); |
3341 | | } |
3342 | | ::google::protobuf::uint32 TexturePacket::name() const { |
3343 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.name) |
3344 | | return name_; |
3345 | | } |
3346 | | void TexturePacket::set_name(::google::protobuf::uint32 value) { |
3347 | | set_has_name(); |
3348 | | name_ = value; |
3349 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.name) |
3350 | | } |
3351 | | |
3352 | | // optional uint32 target = 6; |
3353 | | bool TexturePacket::has_target() const { |
3354 | | return (_has_bits_[0] & 0x00000100u) != 0; |
3355 | | } |
3356 | | void TexturePacket::set_has_target() { |
3357 | | _has_bits_[0] |= 0x00000100u; |
3358 | | } |
3359 | | void TexturePacket::clear_has_target() { |
3360 | | _has_bits_[0] &= ~0x00000100u; |
3361 | | } |
3362 | | void TexturePacket::clear_target() { |
3363 | | target_ = 0u; |
3364 | | clear_has_target(); |
3365 | | } |
3366 | | ::google::protobuf::uint32 TexturePacket::target() const { |
3367 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.target) |
3368 | | return target_; |
3369 | | } |
3370 | | void TexturePacket::set_target(::google::protobuf::uint32 value) { |
3371 | | set_has_target(); |
3372 | | target_ = value; |
3373 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.target) |
3374 | | } |
3375 | | |
3376 | | // optional uint32 dataformat = 7; |
3377 | | bool TexturePacket::has_dataformat() const { |
3378 | | return (_has_bits_[0] & 0x00000200u) != 0; |
3379 | | } |
3380 | | void TexturePacket::set_has_dataformat() { |
3381 | | _has_bits_[0] |= 0x00000200u; |
3382 | | } |
3383 | | void TexturePacket::clear_has_dataformat() { |
3384 | | _has_bits_[0] &= ~0x00000200u; |
3385 | | } |
3386 | | void TexturePacket::clear_dataformat() { |
3387 | | dataformat_ = 0u; |
3388 | | clear_has_dataformat(); |
3389 | | } |
3390 | | ::google::protobuf::uint32 TexturePacket::dataformat() const { |
3391 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.dataformat) |
3392 | | return dataformat_; |
3393 | | } |
3394 | | void TexturePacket::set_dataformat(::google::protobuf::uint32 value) { |
3395 | | set_has_dataformat(); |
3396 | | dataformat_ = value; |
3397 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.dataformat) |
3398 | | } |
3399 | | |
3400 | | // optional uint64 glcontext = 8; |
3401 | | bool TexturePacket::has_glcontext() const { |
3402 | | return (_has_bits_[0] & 0x00000400u) != 0; |
3403 | | } |
3404 | | void TexturePacket::set_has_glcontext() { |
3405 | | _has_bits_[0] |= 0x00000400u; |
3406 | | } |
3407 | | void TexturePacket::clear_has_glcontext() { |
3408 | | _has_bits_[0] &= ~0x00000400u; |
3409 | | } |
3410 | | void TexturePacket::clear_glcontext() { |
3411 | | glcontext_ = GOOGLE_ULONGLONG(0); |
3412 | | clear_has_glcontext(); |
3413 | | } |
3414 | | ::google::protobuf::uint64 TexturePacket::glcontext() const { |
3415 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.glcontext) |
3416 | | return glcontext_; |
3417 | | } |
3418 | | void TexturePacket::set_glcontext(::google::protobuf::uint64 value) { |
3419 | | set_has_glcontext(); |
3420 | | glcontext_ = value; |
3421 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.glcontext) |
3422 | | } |
3423 | | |
3424 | | // optional bytes data = 9; |
3425 | | bool TexturePacket::has_data() const { |
3426 | | return (_has_bits_[0] & 0x00000001u) != 0; |
3427 | | } |
3428 | | void TexturePacket::set_has_data() { |
3429 | | _has_bits_[0] |= 0x00000001u; |
3430 | | } |
3431 | | void TexturePacket::clear_has_data() { |
3432 | | _has_bits_[0] &= ~0x00000001u; |
3433 | | } |
3434 | | void TexturePacket::clear_data() { |
3435 | | data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3436 | | clear_has_data(); |
3437 | | } |
3438 | | const ::std::string& TexturePacket::data() const { |
3439 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.data) |
3440 | | return data_.GetNoArena(); |
3441 | | } |
3442 | | void TexturePacket::set_data(const ::std::string& value) { |
3443 | | set_has_data(); |
3444 | | data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3445 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.data) |
3446 | | } |
3447 | | #if LANG_CXX11 |
3448 | | void TexturePacket::set_data(::std::string&& value) { |
3449 | | set_has_data(); |
3450 | | data_.SetNoArena( |
3451 | | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3452 | | // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.TexturePacket.data) |
3453 | | } |
3454 | | #endif |
3455 | | void TexturePacket::set_data(const char* value) { |
3456 | | GOOGLE_DCHECK(value != NULL); |
3457 | | set_has_data(); |
3458 | | data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3459 | | // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.TexturePacket.data) |
3460 | | } |
3461 | | void TexturePacket::set_data(const void* value, size_t size) { |
3462 | | set_has_data(); |
3463 | | data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3464 | | ::std::string(reinterpret_cast<const char*>(value), size)); |
3465 | | // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.TexturePacket.data) |
3466 | | } |
3467 | | ::std::string* TexturePacket::mutable_data() { |
3468 | | set_has_data(); |
3469 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.data) |
3470 | | return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3471 | | } |
3472 | | ::std::string* TexturePacket::release_data() { |
3473 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.data) |
3474 | | clear_has_data(); |
3475 | | return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3476 | | } |
3477 | | void TexturePacket::set_allocated_data(::std::string* data) { |
3478 | | if (data != NULL) { |
3479 | | set_has_data(); |
3480 | | } else { |
3481 | | clear_has_data(); |
3482 | | } |
3483 | | data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); |
3484 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.data) |
3485 | | } |
3486 | | |
3487 | | // optional .mozilla.layers.layerscope.TexturePacket.Rect mTextureCoords = 10; |
3488 | | bool TexturePacket::has_mtexturecoords() const { |
3489 | | return (_has_bits_[0] & 0x00000002u) != 0; |
3490 | | } |
3491 | | void TexturePacket::set_has_mtexturecoords() { |
3492 | | _has_bits_[0] |= 0x00000002u; |
3493 | | } |
3494 | | void TexturePacket::clear_has_mtexturecoords() { |
3495 | | _has_bits_[0] &= ~0x00000002u; |
3496 | | } |
3497 | | void TexturePacket::clear_mtexturecoords() { |
3498 | | if (mtexturecoords_ != NULL) mtexturecoords_->::mozilla::layers::layerscope::TexturePacket_Rect::Clear(); |
3499 | | clear_has_mtexturecoords(); |
3500 | | } |
3501 | | const ::mozilla::layers::layerscope::TexturePacket_Rect& TexturePacket::mtexturecoords() const { |
3502 | | const ::mozilla::layers::layerscope::TexturePacket_Rect* p = mtexturecoords_; |
3503 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mTextureCoords) |
3504 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_Rect*>( |
3505 | | &::mozilla::layers::layerscope::_TexturePacket_Rect_default_instance_); |
3506 | | } |
3507 | | ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::mutable_mtexturecoords() { |
3508 | | set_has_mtexturecoords(); |
3509 | | if (mtexturecoords_ == NULL) { |
3510 | | mtexturecoords_ = new ::mozilla::layers::layerscope::TexturePacket_Rect; |
3511 | | } |
3512 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mTextureCoords) |
3513 | | return mtexturecoords_; |
3514 | | } |
3515 | | ::mozilla::layers::layerscope::TexturePacket_Rect* TexturePacket::release_mtexturecoords() { |
3516 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mTextureCoords) |
3517 | | clear_has_mtexturecoords(); |
3518 | | ::mozilla::layers::layerscope::TexturePacket_Rect* temp = mtexturecoords_; |
3519 | | mtexturecoords_ = NULL; |
3520 | | return temp; |
3521 | | } |
3522 | | void TexturePacket::set_allocated_mtexturecoords(::mozilla::layers::layerscope::TexturePacket_Rect* mtexturecoords) { |
3523 | | delete mtexturecoords_; |
3524 | | mtexturecoords_ = mtexturecoords; |
3525 | | if (mtexturecoords) { |
3526 | | set_has_mtexturecoords(); |
3527 | | } else { |
3528 | | clear_has_mtexturecoords(); |
3529 | | } |
3530 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mTextureCoords) |
3531 | | } |
3532 | | |
3533 | | // optional bool mPremultiplied = 11; |
3534 | | bool TexturePacket::has_mpremultiplied() const { |
3535 | | return (_has_bits_[0] & 0x00001000u) != 0; |
3536 | | } |
3537 | | void TexturePacket::set_has_mpremultiplied() { |
3538 | | _has_bits_[0] |= 0x00001000u; |
3539 | | } |
3540 | | void TexturePacket::clear_has_mpremultiplied() { |
3541 | | _has_bits_[0] &= ~0x00001000u; |
3542 | | } |
3543 | | void TexturePacket::clear_mpremultiplied() { |
3544 | | mpremultiplied_ = false; |
3545 | | clear_has_mpremultiplied(); |
3546 | | } |
3547 | | bool TexturePacket::mpremultiplied() const { |
3548 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mPremultiplied) |
3549 | | return mpremultiplied_; |
3550 | | } |
3551 | | void TexturePacket::set_mpremultiplied(bool value) { |
3552 | | set_has_mpremultiplied(); |
3553 | | mpremultiplied_ = value; |
3554 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mPremultiplied) |
3555 | | } |
3556 | | |
3557 | | // optional .mozilla.layers.layerscope.TexturePacket.Filter mFilter = 12; |
3558 | | bool TexturePacket::has_mfilter() const { |
3559 | | return (_has_bits_[0] & 0x00000800u) != 0; |
3560 | | } |
3561 | | void TexturePacket::set_has_mfilter() { |
3562 | | _has_bits_[0] |= 0x00000800u; |
3563 | | } |
3564 | | void TexturePacket::clear_has_mfilter() { |
3565 | | _has_bits_[0] &= ~0x00000800u; |
3566 | | } |
3567 | | void TexturePacket::clear_mfilter() { |
3568 | | mfilter_ = 0; |
3569 | | clear_has_mfilter(); |
3570 | | } |
3571 | | ::mozilla::layers::layerscope::TexturePacket_Filter TexturePacket::mfilter() const { |
3572 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mFilter) |
3573 | | return static_cast< ::mozilla::layers::layerscope::TexturePacket_Filter >(mfilter_); |
3574 | | } |
3575 | | void TexturePacket::set_mfilter(::mozilla::layers::layerscope::TexturePacket_Filter value) { |
3576 | | assert(::mozilla::layers::layerscope::TexturePacket_Filter_IsValid(value)); |
3577 | | set_has_mfilter(); |
3578 | | mfilter_ = value; |
3579 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.mFilter) |
3580 | | } |
3581 | | |
3582 | | // optional bool isMask = 20; |
3583 | | bool TexturePacket::has_ismask() const { |
3584 | | return (_has_bits_[0] & 0x00002000u) != 0; |
3585 | | } |
3586 | | void TexturePacket::set_has_ismask() { |
3587 | | _has_bits_[0] |= 0x00002000u; |
3588 | | } |
3589 | | void TexturePacket::clear_has_ismask() { |
3590 | | _has_bits_[0] &= ~0x00002000u; |
3591 | | } |
3592 | | void TexturePacket::clear_ismask() { |
3593 | | ismask_ = false; |
3594 | | clear_has_ismask(); |
3595 | | } |
3596 | | bool TexturePacket::ismask() const { |
3597 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.isMask) |
3598 | | return ismask_; |
3599 | | } |
3600 | | void TexturePacket::set_ismask(bool value) { |
3601 | | set_has_ismask(); |
3602 | | ismask_ = value; |
3603 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.TexturePacket.isMask) |
3604 | | } |
3605 | | |
3606 | | // optional .mozilla.layers.layerscope.TexturePacket.EffectMask mask = 21; |
3607 | | bool TexturePacket::has_mask() const { |
3608 | | return (_has_bits_[0] & 0x00000004u) != 0; |
3609 | | } |
3610 | | void TexturePacket::set_has_mask() { |
3611 | | _has_bits_[0] |= 0x00000004u; |
3612 | | } |
3613 | | void TexturePacket::clear_has_mask() { |
3614 | | _has_bits_[0] &= ~0x00000004u; |
3615 | | } |
3616 | | void TexturePacket::clear_mask() { |
3617 | | if (mask_ != NULL) mask_->::mozilla::layers::layerscope::TexturePacket_EffectMask::Clear(); |
3618 | | clear_has_mask(); |
3619 | | } |
3620 | | const ::mozilla::layers::layerscope::TexturePacket_EffectMask& TexturePacket::mask() const { |
3621 | | const ::mozilla::layers::layerscope::TexturePacket_EffectMask* p = mask_; |
3622 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.TexturePacket.mask) |
3623 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket_EffectMask*>( |
3624 | | &::mozilla::layers::layerscope::_TexturePacket_EffectMask_default_instance_); |
3625 | | } |
3626 | | ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::mutable_mask() { |
3627 | | set_has_mask(); |
3628 | | if (mask_ == NULL) { |
3629 | | mask_ = new ::mozilla::layers::layerscope::TexturePacket_EffectMask; |
3630 | | } |
3631 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.TexturePacket.mask) |
3632 | | return mask_; |
3633 | | } |
3634 | | ::mozilla::layers::layerscope::TexturePacket_EffectMask* TexturePacket::release_mask() { |
3635 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.TexturePacket.mask) |
3636 | | clear_has_mask(); |
3637 | | ::mozilla::layers::layerscope::TexturePacket_EffectMask* temp = mask_; |
3638 | | mask_ = NULL; |
3639 | | return temp; |
3640 | | } |
3641 | | void TexturePacket::set_allocated_mask(::mozilla::layers::layerscope::TexturePacket_EffectMask* mask) { |
3642 | | delete mask_; |
3643 | | mask_ = mask; |
3644 | | if (mask) { |
3645 | | set_has_mask(); |
3646 | | } else { |
3647 | | clear_has_mask(); |
3648 | | } |
3649 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.TexturePacket.mask) |
3650 | | } |
3651 | | |
3652 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
3653 | | |
3654 | | // =================================================================== |
3655 | | |
3656 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3657 | | const int LayersPacket_Layer_Size::kWFieldNumber; |
3658 | | const int LayersPacket_Layer_Size::kHFieldNumber; |
3659 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3660 | | |
3661 | | LayersPacket_Layer_Size::LayersPacket_Layer_Size() |
3662 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
3663 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3664 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
3665 | 0 | } |
3666 | 0 | SharedCtor(); |
3667 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3668 | 0 | } |
3669 | | LayersPacket_Layer_Size::LayersPacket_Layer_Size(const LayersPacket_Layer_Size& from) |
3670 | | : ::google::protobuf::MessageLite(), |
3671 | | _internal_metadata_(NULL), |
3672 | | _has_bits_(from._has_bits_), |
3673 | 0 | _cached_size_(0) { |
3674 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3675 | 0 | ::memcpy(&w_, &from.w_, |
3676 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&h_) - |
3677 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
3678 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3679 | 0 | } |
3680 | | |
3681 | 0 | void LayersPacket_Layer_Size::SharedCtor() { |
3682 | 0 | _cached_size_ = 0; |
3683 | 0 | ::memset(&w_, 0, static_cast<size_t>( |
3684 | 0 | reinterpret_cast<char*>(&h_) - |
3685 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
3686 | 0 | } |
3687 | | |
3688 | 0 | LayersPacket_Layer_Size::~LayersPacket_Layer_Size() { |
3689 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3690 | 0 | SharedDtor(); |
3691 | 0 | } |
3692 | | |
3693 | 0 | void LayersPacket_Layer_Size::SharedDtor() { |
3694 | 0 | } |
3695 | | |
3696 | 0 | void LayersPacket_Layer_Size::SetCachedSize(int size) const { |
3697 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3698 | 0 | _cached_size_ = size; |
3699 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3700 | 0 | } |
3701 | 0 | const LayersPacket_Layer_Size& LayersPacket_Layer_Size::default_instance() { |
3702 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
3703 | 0 | return *internal_default_instance(); |
3704 | 0 | } |
3705 | | |
3706 | 0 | LayersPacket_Layer_Size* LayersPacket_Layer_Size::New(::google::protobuf::Arena* arena) const { |
3707 | 0 | LayersPacket_Layer_Size* n = new LayersPacket_Layer_Size; |
3708 | 0 | if (arena != NULL) { |
3709 | 0 | arena->Own(n); |
3710 | 0 | } |
3711 | 0 | return n; |
3712 | 0 | } |
3713 | | |
3714 | 0 | void LayersPacket_Layer_Size::Clear() { |
3715 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3716 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3717 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
3718 | 0 | (void) cached_has_bits; |
3719 | 0 |
|
3720 | 0 | cached_has_bits = _has_bits_[0]; |
3721 | 0 | if (cached_has_bits & 3u) { |
3722 | 0 | ::memset(&w_, 0, static_cast<size_t>( |
3723 | 0 | reinterpret_cast<char*>(&h_) - |
3724 | 0 | reinterpret_cast<char*>(&w_)) + sizeof(h_)); |
3725 | 0 | } |
3726 | 0 | _has_bits_.Clear(); |
3727 | 0 | _internal_metadata_.Clear(); |
3728 | 0 | } |
3729 | | |
3730 | | bool LayersPacket_Layer_Size::MergePartialFromCodedStream( |
3731 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3732 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3733 | 0 | ::google::protobuf::uint32 tag; |
3734 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
3735 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
3736 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
3737 | 0 | mutable_unknown_fields)); |
3738 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
3739 | 0 | &unknown_fields_string, false); |
3740 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3741 | 0 | for (;;) { |
3742 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3743 | 0 | tag = p.first; |
3744 | 0 | if (!p.second) goto handle_unusual; |
3745 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3746 | 0 | // optional int32 w = 1; |
3747 | 0 | case 1: { |
3748 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3749 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
3750 | 0 | set_has_w(); |
3751 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3752 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3753 | 0 | input, &w_))); |
3754 | 0 | } else { |
3755 | 0 | goto handle_unusual; |
3756 | 0 | } |
3757 | 0 | break; |
3758 | 0 | } |
3759 | 0 |
|
3760 | 0 | // optional int32 h = 2; |
3761 | 0 | case 2: { |
3762 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3763 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
3764 | 0 | set_has_h(); |
3765 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3766 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3767 | 0 | input, &h_))); |
3768 | 0 | } else { |
3769 | 0 | goto handle_unusual; |
3770 | 0 | } |
3771 | 0 | break; |
3772 | 0 | } |
3773 | 0 | |
3774 | 0 | default: { |
3775 | 0 | handle_unusual: |
3776 | 0 | if (tag == 0) { |
3777 | 0 | goto success; |
3778 | 0 | } |
3779 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
3780 | 0 | input, tag, &unknown_fields_stream)); |
3781 | 0 | break; |
3782 | 0 | } |
3783 | 0 | } |
3784 | 0 | } |
3785 | 0 | success: |
3786 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3787 | 0 | return true; |
3788 | 0 | failure: |
3789 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3790 | 0 | return false; |
3791 | 0 | #undef DO_ |
3792 | 0 | } |
3793 | | |
3794 | | void LayersPacket_Layer_Size::SerializeWithCachedSizes( |
3795 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3796 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3797 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3798 | 0 | (void) cached_has_bits; |
3799 | 0 |
|
3800 | 0 | cached_has_bits = _has_bits_[0]; |
3801 | 0 | // optional int32 w = 1; |
3802 | 0 | if (cached_has_bits & 0x00000001u) { |
3803 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->w(), output); |
3804 | 0 | } |
3805 | 0 |
|
3806 | 0 | // optional int32 h = 2; |
3807 | 0 | if (cached_has_bits & 0x00000002u) { |
3808 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->h(), output); |
3809 | 0 | } |
3810 | 0 |
|
3811 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
3812 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
3813 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3814 | 0 | } |
3815 | | |
3816 | 0 | size_t LayersPacket_Layer_Size::ByteSizeLong() const { |
3817 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3818 | 0 | size_t total_size = 0; |
3819 | 0 |
|
3820 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
3821 | 0 |
|
3822 | 0 | if (_has_bits_[0 / 32] & 3u) { |
3823 | 0 | // optional int32 w = 1; |
3824 | 0 | if (has_w()) { |
3825 | 0 | total_size += 1 + |
3826 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
3827 | 0 | this->w()); |
3828 | 0 | } |
3829 | 0 |
|
3830 | 0 | // optional int32 h = 2; |
3831 | 0 | if (has_h()) { |
3832 | 0 | total_size += 1 + |
3833 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
3834 | 0 | this->h()); |
3835 | 0 | } |
3836 | 0 |
|
3837 | 0 | } |
3838 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3839 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3840 | 0 | _cached_size_ = cached_size; |
3841 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3842 | 0 | return total_size; |
3843 | 0 | } |
3844 | | |
3845 | | void LayersPacket_Layer_Size::CheckTypeAndMergeFrom( |
3846 | 0 | const ::google::protobuf::MessageLite& from) { |
3847 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Size*>(&from)); |
3848 | 0 | } |
3849 | | |
3850 | 0 | void LayersPacket_Layer_Size::MergeFrom(const LayersPacket_Layer_Size& from) { |
3851 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3852 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3853 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3854 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3855 | 0 | (void) cached_has_bits; |
3856 | 0 |
|
3857 | 0 | cached_has_bits = from._has_bits_[0]; |
3858 | 0 | if (cached_has_bits & 3u) { |
3859 | 0 | if (cached_has_bits & 0x00000001u) { |
3860 | 0 | w_ = from.w_; |
3861 | 0 | } |
3862 | 0 | if (cached_has_bits & 0x00000002u) { |
3863 | 0 | h_ = from.h_; |
3864 | 0 | } |
3865 | 0 | _has_bits_[0] |= cached_has_bits; |
3866 | 0 | } |
3867 | 0 | } |
3868 | | |
3869 | 0 | void LayersPacket_Layer_Size::CopyFrom(const LayersPacket_Layer_Size& from) { |
3870 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Size) |
3871 | 0 | if (&from == this) return; |
3872 | 0 | Clear(); |
3873 | 0 | MergeFrom(from); |
3874 | 0 | } |
3875 | | |
3876 | 0 | bool LayersPacket_Layer_Size::IsInitialized() const { |
3877 | 0 | return true; |
3878 | 0 | } |
3879 | | |
3880 | 0 | void LayersPacket_Layer_Size::Swap(LayersPacket_Layer_Size* other) { |
3881 | 0 | if (other == this) return; |
3882 | 0 | InternalSwap(other); |
3883 | 0 | } |
3884 | 0 | void LayersPacket_Layer_Size::InternalSwap(LayersPacket_Layer_Size* other) { |
3885 | 0 | using std::swap; |
3886 | 0 | swap(w_, other->w_); |
3887 | 0 | swap(h_, other->h_); |
3888 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3889 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3890 | 0 | swap(_cached_size_, other->_cached_size_); |
3891 | 0 | } |
3892 | | |
3893 | 0 | ::std::string LayersPacket_Layer_Size::GetTypeName() const { |
3894 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer.Size"; |
3895 | 0 | } |
3896 | | |
3897 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
3898 | | // LayersPacket_Layer_Size |
3899 | | |
3900 | | // optional int32 w = 1; |
3901 | | bool LayersPacket_Layer_Size::has_w() const { |
3902 | | return (_has_bits_[0] & 0x00000001u) != 0; |
3903 | | } |
3904 | | void LayersPacket_Layer_Size::set_has_w() { |
3905 | | _has_bits_[0] |= 0x00000001u; |
3906 | | } |
3907 | | void LayersPacket_Layer_Size::clear_has_w() { |
3908 | | _has_bits_[0] &= ~0x00000001u; |
3909 | | } |
3910 | | void LayersPacket_Layer_Size::clear_w() { |
3911 | | w_ = 0; |
3912 | | clear_has_w(); |
3913 | | } |
3914 | | ::google::protobuf::int32 LayersPacket_Layer_Size::w() const { |
3915 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.w) |
3916 | | return w_; |
3917 | | } |
3918 | | void LayersPacket_Layer_Size::set_w(::google::protobuf::int32 value) { |
3919 | | set_has_w(); |
3920 | | w_ = value; |
3921 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.w) |
3922 | | } |
3923 | | |
3924 | | // optional int32 h = 2; |
3925 | | bool LayersPacket_Layer_Size::has_h() const { |
3926 | | return (_has_bits_[0] & 0x00000002u) != 0; |
3927 | | } |
3928 | | void LayersPacket_Layer_Size::set_has_h() { |
3929 | | _has_bits_[0] |= 0x00000002u; |
3930 | | } |
3931 | | void LayersPacket_Layer_Size::clear_has_h() { |
3932 | | _has_bits_[0] &= ~0x00000002u; |
3933 | | } |
3934 | | void LayersPacket_Layer_Size::clear_h() { |
3935 | | h_ = 0; |
3936 | | clear_has_h(); |
3937 | | } |
3938 | | ::google::protobuf::int32 LayersPacket_Layer_Size::h() const { |
3939 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Size.h) |
3940 | | return h_; |
3941 | | } |
3942 | | void LayersPacket_Layer_Size::set_h(::google::protobuf::int32 value) { |
3943 | | set_has_h(); |
3944 | | h_ = value; |
3945 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Size.h) |
3946 | | } |
3947 | | |
3948 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
3949 | | |
3950 | | // =================================================================== |
3951 | | |
3952 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3953 | | const int LayersPacket_Layer_Rect::kXFieldNumber; |
3954 | | const int LayersPacket_Layer_Rect::kYFieldNumber; |
3955 | | const int LayersPacket_Layer_Rect::kWFieldNumber; |
3956 | | const int LayersPacket_Layer_Rect::kHFieldNumber; |
3957 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3958 | | |
3959 | | LayersPacket_Layer_Rect::LayersPacket_Layer_Rect() |
3960 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
3961 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
3962 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
3963 | 0 | } |
3964 | 0 | SharedCtor(); |
3965 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
3966 | 0 | } |
3967 | | LayersPacket_Layer_Rect::LayersPacket_Layer_Rect(const LayersPacket_Layer_Rect& from) |
3968 | | : ::google::protobuf::MessageLite(), |
3969 | | _internal_metadata_(NULL), |
3970 | | _has_bits_(from._has_bits_), |
3971 | 0 | _cached_size_(0) { |
3972 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3973 | 0 | ::memcpy(&x_, &from.x_, |
3974 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&h_) - |
3975 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
3976 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
3977 | 0 | } |
3978 | | |
3979 | 0 | void LayersPacket_Layer_Rect::SharedCtor() { |
3980 | 0 | _cached_size_ = 0; |
3981 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
3982 | 0 | reinterpret_cast<char*>(&h_) - |
3983 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
3984 | 0 | } |
3985 | | |
3986 | 0 | LayersPacket_Layer_Rect::~LayersPacket_Layer_Rect() { |
3987 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
3988 | 0 | SharedDtor(); |
3989 | 0 | } |
3990 | | |
3991 | 0 | void LayersPacket_Layer_Rect::SharedDtor() { |
3992 | 0 | } |
3993 | | |
3994 | 0 | void LayersPacket_Layer_Rect::SetCachedSize(int size) const { |
3995 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
3996 | 0 | _cached_size_ = size; |
3997 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
3998 | 0 | } |
3999 | 0 | const LayersPacket_Layer_Rect& LayersPacket_Layer_Rect::default_instance() { |
4000 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4001 | 0 | return *internal_default_instance(); |
4002 | 0 | } |
4003 | | |
4004 | 0 | LayersPacket_Layer_Rect* LayersPacket_Layer_Rect::New(::google::protobuf::Arena* arena) const { |
4005 | 0 | LayersPacket_Layer_Rect* n = new LayersPacket_Layer_Rect; |
4006 | 0 | if (arena != NULL) { |
4007 | 0 | arena->Own(n); |
4008 | 0 | } |
4009 | 0 | return n; |
4010 | 0 | } |
4011 | | |
4012 | 0 | void LayersPacket_Layer_Rect::Clear() { |
4013 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4014 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4015 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
4016 | 0 | (void) cached_has_bits; |
4017 | 0 |
|
4018 | 0 | cached_has_bits = _has_bits_[0]; |
4019 | 0 | if (cached_has_bits & 15u) { |
4020 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
4021 | 0 | reinterpret_cast<char*>(&h_) - |
4022 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
4023 | 0 | } |
4024 | 0 | _has_bits_.Clear(); |
4025 | 0 | _internal_metadata_.Clear(); |
4026 | 0 | } |
4027 | | |
4028 | | bool LayersPacket_Layer_Rect::MergePartialFromCodedStream( |
4029 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4030 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4031 | 0 | ::google::protobuf::uint32 tag; |
4032 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
4033 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
4034 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
4035 | 0 | mutable_unknown_fields)); |
4036 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
4037 | 0 | &unknown_fields_string, false); |
4038 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4039 | 0 | for (;;) { |
4040 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4041 | 0 | tag = p.first; |
4042 | 0 | if (!p.second) goto handle_unusual; |
4043 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4044 | 0 | // optional int32 x = 1; |
4045 | 0 | case 1: { |
4046 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4047 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4048 | 0 | set_has_x(); |
4049 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4050 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4051 | 0 | input, &x_))); |
4052 | 0 | } else { |
4053 | 0 | goto handle_unusual; |
4054 | 0 | } |
4055 | 0 | break; |
4056 | 0 | } |
4057 | 0 |
|
4058 | 0 | // optional int32 y = 2; |
4059 | 0 | case 2: { |
4060 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4061 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4062 | 0 | set_has_y(); |
4063 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4064 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4065 | 0 | input, &y_))); |
4066 | 0 | } else { |
4067 | 0 | goto handle_unusual; |
4068 | 0 | } |
4069 | 0 | break; |
4070 | 0 | } |
4071 | 0 |
|
4072 | 0 | // optional int32 w = 3; |
4073 | 0 | case 3: { |
4074 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4075 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
4076 | 0 | set_has_w(); |
4077 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4078 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4079 | 0 | input, &w_))); |
4080 | 0 | } else { |
4081 | 0 | goto handle_unusual; |
4082 | 0 | } |
4083 | 0 | break; |
4084 | 0 | } |
4085 | 0 |
|
4086 | 0 | // optional int32 h = 4; |
4087 | 0 | case 4: { |
4088 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4089 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
4090 | 0 | set_has_h(); |
4091 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4092 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4093 | 0 | input, &h_))); |
4094 | 0 | } else { |
4095 | 0 | goto handle_unusual; |
4096 | 0 | } |
4097 | 0 | break; |
4098 | 0 | } |
4099 | 0 | |
4100 | 0 | default: { |
4101 | 0 | handle_unusual: |
4102 | 0 | if (tag == 0) { |
4103 | 0 | goto success; |
4104 | 0 | } |
4105 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
4106 | 0 | input, tag, &unknown_fields_stream)); |
4107 | 0 | break; |
4108 | 0 | } |
4109 | 0 | } |
4110 | 0 | } |
4111 | 0 | success: |
4112 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4113 | 0 | return true; |
4114 | 0 | failure: |
4115 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4116 | 0 | return false; |
4117 | 0 | #undef DO_ |
4118 | 0 | } |
4119 | | |
4120 | | void LayersPacket_Layer_Rect::SerializeWithCachedSizes( |
4121 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4122 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4123 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4124 | 0 | (void) cached_has_bits; |
4125 | 0 |
|
4126 | 0 | cached_has_bits = _has_bits_[0]; |
4127 | 0 | // optional int32 x = 1; |
4128 | 0 | if (cached_has_bits & 0x00000001u) { |
4129 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->x(), output); |
4130 | 0 | } |
4131 | 0 |
|
4132 | 0 | // optional int32 y = 2; |
4133 | 0 | if (cached_has_bits & 0x00000002u) { |
4134 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->y(), output); |
4135 | 0 | } |
4136 | 0 |
|
4137 | 0 | // optional int32 w = 3; |
4138 | 0 | if (cached_has_bits & 0x00000004u) { |
4139 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->w(), output); |
4140 | 0 | } |
4141 | 0 |
|
4142 | 0 | // optional int32 h = 4; |
4143 | 0 | if (cached_has_bits & 0x00000008u) { |
4144 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->h(), output); |
4145 | 0 | } |
4146 | 0 |
|
4147 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
4148 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
4149 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4150 | 0 | } |
4151 | | |
4152 | 0 | size_t LayersPacket_Layer_Rect::ByteSizeLong() const { |
4153 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4154 | 0 | size_t total_size = 0; |
4155 | 0 |
|
4156 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
4157 | 0 |
|
4158 | 0 | if (_has_bits_[0 / 32] & 15u) { |
4159 | 0 | // optional int32 x = 1; |
4160 | 0 | if (has_x()) { |
4161 | 0 | total_size += 1 + |
4162 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4163 | 0 | this->x()); |
4164 | 0 | } |
4165 | 0 |
|
4166 | 0 | // optional int32 y = 2; |
4167 | 0 | if (has_y()) { |
4168 | 0 | total_size += 1 + |
4169 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4170 | 0 | this->y()); |
4171 | 0 | } |
4172 | 0 |
|
4173 | 0 | // optional int32 w = 3; |
4174 | 0 | if (has_w()) { |
4175 | 0 | total_size += 1 + |
4176 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4177 | 0 | this->w()); |
4178 | 0 | } |
4179 | 0 |
|
4180 | 0 | // optional int32 h = 4; |
4181 | 0 | if (has_h()) { |
4182 | 0 | total_size += 1 + |
4183 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4184 | 0 | this->h()); |
4185 | 0 | } |
4186 | 0 |
|
4187 | 0 | } |
4188 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4189 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4190 | 0 | _cached_size_ = cached_size; |
4191 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4192 | 0 | return total_size; |
4193 | 0 | } |
4194 | | |
4195 | | void LayersPacket_Layer_Rect::CheckTypeAndMergeFrom( |
4196 | 0 | const ::google::protobuf::MessageLite& from) { |
4197 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Rect*>(&from)); |
4198 | 0 | } |
4199 | | |
4200 | 0 | void LayersPacket_Layer_Rect::MergeFrom(const LayersPacket_Layer_Rect& from) { |
4201 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4202 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4203 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4204 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4205 | 0 | (void) cached_has_bits; |
4206 | 0 |
|
4207 | 0 | cached_has_bits = from._has_bits_[0]; |
4208 | 0 | if (cached_has_bits & 15u) { |
4209 | 0 | if (cached_has_bits & 0x00000001u) { |
4210 | 0 | x_ = from.x_; |
4211 | 0 | } |
4212 | 0 | if (cached_has_bits & 0x00000002u) { |
4213 | 0 | y_ = from.y_; |
4214 | 0 | } |
4215 | 0 | if (cached_has_bits & 0x00000004u) { |
4216 | 0 | w_ = from.w_; |
4217 | 0 | } |
4218 | 0 | if (cached_has_bits & 0x00000008u) { |
4219 | 0 | h_ = from.h_; |
4220 | 0 | } |
4221 | 0 | _has_bits_[0] |= cached_has_bits; |
4222 | 0 | } |
4223 | 0 | } |
4224 | | |
4225 | 0 | void LayersPacket_Layer_Rect::CopyFrom(const LayersPacket_Layer_Rect& from) { |
4226 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Rect) |
4227 | 0 | if (&from == this) return; |
4228 | 0 | Clear(); |
4229 | 0 | MergeFrom(from); |
4230 | 0 | } |
4231 | | |
4232 | 0 | bool LayersPacket_Layer_Rect::IsInitialized() const { |
4233 | 0 | return true; |
4234 | 0 | } |
4235 | | |
4236 | 0 | void LayersPacket_Layer_Rect::Swap(LayersPacket_Layer_Rect* other) { |
4237 | 0 | if (other == this) return; |
4238 | 0 | InternalSwap(other); |
4239 | 0 | } |
4240 | 0 | void LayersPacket_Layer_Rect::InternalSwap(LayersPacket_Layer_Rect* other) { |
4241 | 0 | using std::swap; |
4242 | 0 | swap(x_, other->x_); |
4243 | 0 | swap(y_, other->y_); |
4244 | 0 | swap(w_, other->w_); |
4245 | 0 | swap(h_, other->h_); |
4246 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4247 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4248 | 0 | swap(_cached_size_, other->_cached_size_); |
4249 | 0 | } |
4250 | | |
4251 | 0 | ::std::string LayersPacket_Layer_Rect::GetTypeName() const { |
4252 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer.Rect"; |
4253 | 0 | } |
4254 | | |
4255 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
4256 | | // LayersPacket_Layer_Rect |
4257 | | |
4258 | | // optional int32 x = 1; |
4259 | | bool LayersPacket_Layer_Rect::has_x() const { |
4260 | | return (_has_bits_[0] & 0x00000001u) != 0; |
4261 | | } |
4262 | | void LayersPacket_Layer_Rect::set_has_x() { |
4263 | | _has_bits_[0] |= 0x00000001u; |
4264 | | } |
4265 | | void LayersPacket_Layer_Rect::clear_has_x() { |
4266 | | _has_bits_[0] &= ~0x00000001u; |
4267 | | } |
4268 | | void LayersPacket_Layer_Rect::clear_x() { |
4269 | | x_ = 0; |
4270 | | clear_has_x(); |
4271 | | } |
4272 | | ::google::protobuf::int32 LayersPacket_Layer_Rect::x() const { |
4273 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x) |
4274 | | return x_; |
4275 | | } |
4276 | | void LayersPacket_Layer_Rect::set_x(::google::protobuf::int32 value) { |
4277 | | set_has_x(); |
4278 | | x_ = value; |
4279 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.x) |
4280 | | } |
4281 | | |
4282 | | // optional int32 y = 2; |
4283 | | bool LayersPacket_Layer_Rect::has_y() const { |
4284 | | return (_has_bits_[0] & 0x00000002u) != 0; |
4285 | | } |
4286 | | void LayersPacket_Layer_Rect::set_has_y() { |
4287 | | _has_bits_[0] |= 0x00000002u; |
4288 | | } |
4289 | | void LayersPacket_Layer_Rect::clear_has_y() { |
4290 | | _has_bits_[0] &= ~0x00000002u; |
4291 | | } |
4292 | | void LayersPacket_Layer_Rect::clear_y() { |
4293 | | y_ = 0; |
4294 | | clear_has_y(); |
4295 | | } |
4296 | | ::google::protobuf::int32 LayersPacket_Layer_Rect::y() const { |
4297 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y) |
4298 | | return y_; |
4299 | | } |
4300 | | void LayersPacket_Layer_Rect::set_y(::google::protobuf::int32 value) { |
4301 | | set_has_y(); |
4302 | | y_ = value; |
4303 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.y) |
4304 | | } |
4305 | | |
4306 | | // optional int32 w = 3; |
4307 | | bool LayersPacket_Layer_Rect::has_w() const { |
4308 | | return (_has_bits_[0] & 0x00000004u) != 0; |
4309 | | } |
4310 | | void LayersPacket_Layer_Rect::set_has_w() { |
4311 | | _has_bits_[0] |= 0x00000004u; |
4312 | | } |
4313 | | void LayersPacket_Layer_Rect::clear_has_w() { |
4314 | | _has_bits_[0] &= ~0x00000004u; |
4315 | | } |
4316 | | void LayersPacket_Layer_Rect::clear_w() { |
4317 | | w_ = 0; |
4318 | | clear_has_w(); |
4319 | | } |
4320 | | ::google::protobuf::int32 LayersPacket_Layer_Rect::w() const { |
4321 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w) |
4322 | | return w_; |
4323 | | } |
4324 | | void LayersPacket_Layer_Rect::set_w(::google::protobuf::int32 value) { |
4325 | | set_has_w(); |
4326 | | w_ = value; |
4327 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.w) |
4328 | | } |
4329 | | |
4330 | | // optional int32 h = 4; |
4331 | | bool LayersPacket_Layer_Rect::has_h() const { |
4332 | | return (_has_bits_[0] & 0x00000008u) != 0; |
4333 | | } |
4334 | | void LayersPacket_Layer_Rect::set_has_h() { |
4335 | | _has_bits_[0] |= 0x00000008u; |
4336 | | } |
4337 | | void LayersPacket_Layer_Rect::clear_has_h() { |
4338 | | _has_bits_[0] &= ~0x00000008u; |
4339 | | } |
4340 | | void LayersPacket_Layer_Rect::clear_h() { |
4341 | | h_ = 0; |
4342 | | clear_has_h(); |
4343 | | } |
4344 | | ::google::protobuf::int32 LayersPacket_Layer_Rect::h() const { |
4345 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h) |
4346 | | return h_; |
4347 | | } |
4348 | | void LayersPacket_Layer_Rect::set_h(::google::protobuf::int32 value) { |
4349 | | set_has_h(); |
4350 | | h_ = value; |
4351 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Rect.h) |
4352 | | } |
4353 | | |
4354 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
4355 | | |
4356 | | // =================================================================== |
4357 | | |
4358 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4359 | | const int LayersPacket_Layer_Region::kRFieldNumber; |
4360 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4361 | | |
4362 | | LayersPacket_Layer_Region::LayersPacket_Layer_Region() |
4363 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
4364 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4365 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4366 | 0 | } |
4367 | 0 | SharedCtor(); |
4368 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4369 | 0 | } |
4370 | | LayersPacket_Layer_Region::LayersPacket_Layer_Region(const LayersPacket_Layer_Region& from) |
4371 | | : ::google::protobuf::MessageLite(), |
4372 | | _internal_metadata_(NULL), |
4373 | | _has_bits_(from._has_bits_), |
4374 | | _cached_size_(0), |
4375 | 0 | r_(from.r_) { |
4376 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4377 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4378 | 0 | } |
4379 | | |
4380 | 0 | void LayersPacket_Layer_Region::SharedCtor() { |
4381 | 0 | _cached_size_ = 0; |
4382 | 0 | } |
4383 | | |
4384 | 0 | LayersPacket_Layer_Region::~LayersPacket_Layer_Region() { |
4385 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4386 | 0 | SharedDtor(); |
4387 | 0 | } |
4388 | | |
4389 | 0 | void LayersPacket_Layer_Region::SharedDtor() { |
4390 | 0 | } |
4391 | | |
4392 | 0 | void LayersPacket_Layer_Region::SetCachedSize(int size) const { |
4393 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4394 | 0 | _cached_size_ = size; |
4395 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4396 | 0 | } |
4397 | 0 | const LayersPacket_Layer_Region& LayersPacket_Layer_Region::default_instance() { |
4398 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4399 | 0 | return *internal_default_instance(); |
4400 | 0 | } |
4401 | | |
4402 | 0 | LayersPacket_Layer_Region* LayersPacket_Layer_Region::New(::google::protobuf::Arena* arena) const { |
4403 | 0 | LayersPacket_Layer_Region* n = new LayersPacket_Layer_Region; |
4404 | 0 | if (arena != NULL) { |
4405 | 0 | arena->Own(n); |
4406 | 0 | } |
4407 | 0 | return n; |
4408 | 0 | } |
4409 | | |
4410 | 0 | void LayersPacket_Layer_Region::Clear() { |
4411 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4412 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4413 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
4414 | 0 | (void) cached_has_bits; |
4415 | 0 |
|
4416 | 0 | r_.Clear(); |
4417 | 0 | _has_bits_.Clear(); |
4418 | 0 | _internal_metadata_.Clear(); |
4419 | 0 | } |
4420 | | |
4421 | | bool LayersPacket_Layer_Region::MergePartialFromCodedStream( |
4422 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4423 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4424 | 0 | ::google::protobuf::uint32 tag; |
4425 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
4426 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
4427 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
4428 | 0 | mutable_unknown_fields)); |
4429 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
4430 | 0 | &unknown_fields_string, false); |
4431 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4432 | 0 | for (;;) { |
4433 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4434 | 0 | tag = p.first; |
4435 | 0 | if (!p.second) goto handle_unusual; |
4436 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4437 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1; |
4438 | 0 | case 1: { |
4439 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4440 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4441 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
4442 | 0 | input, add_r())); |
4443 | 0 | } else { |
4444 | 0 | goto handle_unusual; |
4445 | 0 | } |
4446 | 0 | break; |
4447 | 0 | } |
4448 | 0 | |
4449 | 0 | default: { |
4450 | 0 | handle_unusual: |
4451 | 0 | if (tag == 0) { |
4452 | 0 | goto success; |
4453 | 0 | } |
4454 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
4455 | 0 | input, tag, &unknown_fields_stream)); |
4456 | 0 | break; |
4457 | 0 | } |
4458 | 0 | } |
4459 | 0 | } |
4460 | 0 | success: |
4461 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4462 | 0 | return true; |
4463 | 0 | failure: |
4464 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4465 | 0 | return false; |
4466 | 0 | #undef DO_ |
4467 | 0 | } |
4468 | | |
4469 | | void LayersPacket_Layer_Region::SerializeWithCachedSizes( |
4470 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4471 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4472 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4473 | 0 | (void) cached_has_bits; |
4474 | 0 |
|
4475 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1; |
4476 | 0 | for (unsigned int i = 0, |
4477 | 0 | n = static_cast<unsigned int>(this->r_size()); i < n; i++) { |
4478 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
4479 | 0 | 1, this->r(static_cast<int>(i)), output); |
4480 | 0 | } |
4481 | 0 |
|
4482 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
4483 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
4484 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4485 | 0 | } |
4486 | | |
4487 | 0 | size_t LayersPacket_Layer_Region::ByteSizeLong() const { |
4488 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4489 | 0 | size_t total_size = 0; |
4490 | 0 |
|
4491 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
4492 | 0 |
|
4493 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1; |
4494 | 0 | { |
4495 | 0 | unsigned int count = static_cast<unsigned int>(this->r_size()); |
4496 | 0 | total_size += 1UL * count; |
4497 | 0 | for (unsigned int i = 0; i < count; i++) { |
4498 | 0 | total_size += |
4499 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
4500 | 0 | this->r(static_cast<int>(i))); |
4501 | 0 | } |
4502 | 0 | } |
4503 | 0 |
|
4504 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4505 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4506 | 0 | _cached_size_ = cached_size; |
4507 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4508 | 0 | return total_size; |
4509 | 0 | } |
4510 | | |
4511 | | void LayersPacket_Layer_Region::CheckTypeAndMergeFrom( |
4512 | 0 | const ::google::protobuf::MessageLite& from) { |
4513 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Region*>(&from)); |
4514 | 0 | } |
4515 | | |
4516 | 0 | void LayersPacket_Layer_Region::MergeFrom(const LayersPacket_Layer_Region& from) { |
4517 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4518 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4519 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4520 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4521 | 0 | (void) cached_has_bits; |
4522 | 0 |
|
4523 | 0 | r_.MergeFrom(from.r_); |
4524 | 0 | } |
4525 | | |
4526 | 0 | void LayersPacket_Layer_Region::CopyFrom(const LayersPacket_Layer_Region& from) { |
4527 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Region) |
4528 | 0 | if (&from == this) return; |
4529 | 0 | Clear(); |
4530 | 0 | MergeFrom(from); |
4531 | 0 | } |
4532 | | |
4533 | 0 | bool LayersPacket_Layer_Region::IsInitialized() const { |
4534 | 0 | return true; |
4535 | 0 | } |
4536 | | |
4537 | 0 | void LayersPacket_Layer_Region::Swap(LayersPacket_Layer_Region* other) { |
4538 | 0 | if (other == this) return; |
4539 | 0 | InternalSwap(other); |
4540 | 0 | } |
4541 | 0 | void LayersPacket_Layer_Region::InternalSwap(LayersPacket_Layer_Region* other) { |
4542 | 0 | using std::swap; |
4543 | 0 | r_.InternalSwap(&other->r_); |
4544 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4545 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4546 | 0 | swap(_cached_size_, other->_cached_size_); |
4547 | 0 | } |
4548 | | |
4549 | 0 | ::std::string LayersPacket_Layer_Region::GetTypeName() const { |
4550 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer.Region"; |
4551 | 0 | } |
4552 | | |
4553 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
4554 | | // LayersPacket_Layer_Region |
4555 | | |
4556 | | // repeated .mozilla.layers.layerscope.LayersPacket.Layer.Rect r = 1; |
4557 | | int LayersPacket_Layer_Region::r_size() const { |
4558 | | return r_.size(); |
4559 | | } |
4560 | | void LayersPacket_Layer_Region::clear_r() { |
4561 | | r_.Clear(); |
4562 | | } |
4563 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Region::r(int index) const { |
4564 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Region.r) |
4565 | | return r_.Get(index); |
4566 | | } |
4567 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::mutable_r(int index) { |
4568 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Region.r) |
4569 | | return r_.Mutable(index); |
4570 | | } |
4571 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Region::add_r() { |
4572 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Region.r) |
4573 | | return r_.Add(); |
4574 | | } |
4575 | | ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >* |
4576 | | LayersPacket_Layer_Region::mutable_r() { |
4577 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r) |
4578 | | return &r_; |
4579 | | } |
4580 | | const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer_Rect >& |
4581 | | LayersPacket_Layer_Region::r() const { |
4582 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Region.r) |
4583 | | return r_; |
4584 | | } |
4585 | | |
4586 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
4587 | | |
4588 | | // =================================================================== |
4589 | | |
4590 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4591 | | const int LayersPacket_Layer_Matrix::kIs2DFieldNumber; |
4592 | | const int LayersPacket_Layer_Matrix::kIsIdFieldNumber; |
4593 | | const int LayersPacket_Layer_Matrix::kMFieldNumber; |
4594 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4595 | | |
4596 | | LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix() |
4597 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
4598 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4599 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4600 | 0 | } |
4601 | 0 | SharedCtor(); |
4602 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4603 | 0 | } |
4604 | | LayersPacket_Layer_Matrix::LayersPacket_Layer_Matrix(const LayersPacket_Layer_Matrix& from) |
4605 | | : ::google::protobuf::MessageLite(), |
4606 | | _internal_metadata_(NULL), |
4607 | | _has_bits_(from._has_bits_), |
4608 | | _cached_size_(0), |
4609 | 0 | m_(from.m_) { |
4610 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4611 | 0 | ::memcpy(&is2d_, &from.is2d_, |
4612 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&isid_) - |
4613 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
4614 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4615 | 0 | } |
4616 | | |
4617 | 0 | void LayersPacket_Layer_Matrix::SharedCtor() { |
4618 | 0 | _cached_size_ = 0; |
4619 | 0 | ::memset(&is2d_, 0, static_cast<size_t>( |
4620 | 0 | reinterpret_cast<char*>(&isid_) - |
4621 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
4622 | 0 | } |
4623 | | |
4624 | 0 | LayersPacket_Layer_Matrix::~LayersPacket_Layer_Matrix() { |
4625 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4626 | 0 | SharedDtor(); |
4627 | 0 | } |
4628 | | |
4629 | 0 | void LayersPacket_Layer_Matrix::SharedDtor() { |
4630 | 0 | } |
4631 | | |
4632 | 0 | void LayersPacket_Layer_Matrix::SetCachedSize(int size) const { |
4633 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4634 | 0 | _cached_size_ = size; |
4635 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4636 | 0 | } |
4637 | 0 | const LayersPacket_Layer_Matrix& LayersPacket_Layer_Matrix::default_instance() { |
4638 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4639 | 0 | return *internal_default_instance(); |
4640 | 0 | } |
4641 | | |
4642 | 0 | LayersPacket_Layer_Matrix* LayersPacket_Layer_Matrix::New(::google::protobuf::Arena* arena) const { |
4643 | 0 | LayersPacket_Layer_Matrix* n = new LayersPacket_Layer_Matrix; |
4644 | 0 | if (arena != NULL) { |
4645 | 0 | arena->Own(n); |
4646 | 0 | } |
4647 | 0 | return n; |
4648 | 0 | } |
4649 | | |
4650 | 0 | void LayersPacket_Layer_Matrix::Clear() { |
4651 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4652 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4653 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
4654 | 0 | (void) cached_has_bits; |
4655 | 0 |
|
4656 | 0 | m_.Clear(); |
4657 | 0 | cached_has_bits = _has_bits_[0]; |
4658 | 0 | if (cached_has_bits & 3u) { |
4659 | 0 | ::memset(&is2d_, 0, static_cast<size_t>( |
4660 | 0 | reinterpret_cast<char*>(&isid_) - |
4661 | 0 | reinterpret_cast<char*>(&is2d_)) + sizeof(isid_)); |
4662 | 0 | } |
4663 | 0 | _has_bits_.Clear(); |
4664 | 0 | _internal_metadata_.Clear(); |
4665 | 0 | } |
4666 | | |
4667 | | bool LayersPacket_Layer_Matrix::MergePartialFromCodedStream( |
4668 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
4669 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4670 | 0 | ::google::protobuf::uint32 tag; |
4671 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
4672 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
4673 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
4674 | 0 | mutable_unknown_fields)); |
4675 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
4676 | 0 | &unknown_fields_string, false); |
4677 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4678 | 0 | for (;;) { |
4679 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4680 | 0 | tag = p.first; |
4681 | 0 | if (!p.second) goto handle_unusual; |
4682 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4683 | 0 | // optional bool is2D = 1; |
4684 | 0 | case 1: { |
4685 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4686 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
4687 | 0 | set_has_is2d(); |
4688 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4689 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4690 | 0 | input, &is2d_))); |
4691 | 0 | } else { |
4692 | 0 | goto handle_unusual; |
4693 | 0 | } |
4694 | 0 | break; |
4695 | 0 | } |
4696 | 0 |
|
4697 | 0 | // optional bool isId = 2; |
4698 | 0 | case 2: { |
4699 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4700 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
4701 | 0 | set_has_isid(); |
4702 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4703 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4704 | 0 | input, &isid_))); |
4705 | 0 | } else { |
4706 | 0 | goto handle_unusual; |
4707 | 0 | } |
4708 | 0 | break; |
4709 | 0 | } |
4710 | 0 |
|
4711 | 0 | // repeated float m = 3; |
4712 | 0 | case 3: { |
4713 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4714 | 0 | static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { |
4715 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
4716 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
4717 | 0 | 1, 29u, input, this->mutable_m()))); |
4718 | 0 | } else if ( |
4719 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
4720 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
4721 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
4722 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
4723 | 0 | input, this->mutable_m()))); |
4724 | 0 | } else { |
4725 | 0 | goto handle_unusual; |
4726 | 0 | } |
4727 | 0 | break; |
4728 | 0 | } |
4729 | 0 | |
4730 | 0 | default: { |
4731 | 0 | handle_unusual: |
4732 | 0 | if (tag == 0) { |
4733 | 0 | goto success; |
4734 | 0 | } |
4735 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
4736 | 0 | input, tag, &unknown_fields_stream)); |
4737 | 0 | break; |
4738 | 0 | } |
4739 | 0 | } |
4740 | 0 | } |
4741 | 0 | success: |
4742 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4743 | 0 | return true; |
4744 | 0 | failure: |
4745 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4746 | 0 | return false; |
4747 | 0 | #undef DO_ |
4748 | 0 | } |
4749 | | |
4750 | | void LayersPacket_Layer_Matrix::SerializeWithCachedSizes( |
4751 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
4752 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4753 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4754 | 0 | (void) cached_has_bits; |
4755 | 0 |
|
4756 | 0 | cached_has_bits = _has_bits_[0]; |
4757 | 0 | // optional bool is2D = 1; |
4758 | 0 | if (cached_has_bits & 0x00000001u) { |
4759 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is2d(), output); |
4760 | 0 | } |
4761 | 0 |
|
4762 | 0 | // optional bool isId = 2; |
4763 | 0 | if (cached_has_bits & 0x00000002u) { |
4764 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isid(), output); |
4765 | 0 | } |
4766 | 0 |
|
4767 | 0 | // repeated float m = 3; |
4768 | 0 | for (int i = 0, n = this->m_size(); i < n; i++) { |
4769 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat( |
4770 | 0 | 3, this->m(i), output); |
4771 | 0 | } |
4772 | 0 |
|
4773 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
4774 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
4775 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4776 | 0 | } |
4777 | | |
4778 | 0 | size_t LayersPacket_Layer_Matrix::ByteSizeLong() const { |
4779 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4780 | 0 | size_t total_size = 0; |
4781 | 0 |
|
4782 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
4783 | 0 |
|
4784 | 0 | // repeated float m = 3; |
4785 | 0 | { |
4786 | 0 | unsigned int count = static_cast<unsigned int>(this->m_size()); |
4787 | 0 | size_t data_size = 4UL * count; |
4788 | 0 | total_size += 1 * |
4789 | 0 | ::google::protobuf::internal::FromIntSize(this->m_size()); |
4790 | 0 | total_size += data_size; |
4791 | 0 | } |
4792 | 0 |
|
4793 | 0 | if (_has_bits_[0 / 32] & 3u) { |
4794 | 0 | // optional bool is2D = 1; |
4795 | 0 | if (has_is2d()) { |
4796 | 0 | total_size += 1 + 1; |
4797 | 0 | } |
4798 | 0 |
|
4799 | 0 | // optional bool isId = 2; |
4800 | 0 | if (has_isid()) { |
4801 | 0 | total_size += 1 + 1; |
4802 | 0 | } |
4803 | 0 |
|
4804 | 0 | } |
4805 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4806 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4807 | 0 | _cached_size_ = cached_size; |
4808 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4809 | 0 | return total_size; |
4810 | 0 | } |
4811 | | |
4812 | | void LayersPacket_Layer_Matrix::CheckTypeAndMergeFrom( |
4813 | 0 | const ::google::protobuf::MessageLite& from) { |
4814 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Matrix*>(&from)); |
4815 | 0 | } |
4816 | | |
4817 | 0 | void LayersPacket_Layer_Matrix::MergeFrom(const LayersPacket_Layer_Matrix& from) { |
4818 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4819 | 0 | GOOGLE_DCHECK_NE(&from, this); |
4820 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4821 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
4822 | 0 | (void) cached_has_bits; |
4823 | 0 |
|
4824 | 0 | m_.MergeFrom(from.m_); |
4825 | 0 | cached_has_bits = from._has_bits_[0]; |
4826 | 0 | if (cached_has_bits & 3u) { |
4827 | 0 | if (cached_has_bits & 0x00000001u) { |
4828 | 0 | is2d_ = from.is2d_; |
4829 | 0 | } |
4830 | 0 | if (cached_has_bits & 0x00000002u) { |
4831 | 0 | isid_ = from.isid_; |
4832 | 0 | } |
4833 | 0 | _has_bits_[0] |= cached_has_bits; |
4834 | 0 | } |
4835 | 0 | } |
4836 | | |
4837 | 0 | void LayersPacket_Layer_Matrix::CopyFrom(const LayersPacket_Layer_Matrix& from) { |
4838 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Matrix) |
4839 | 0 | if (&from == this) return; |
4840 | 0 | Clear(); |
4841 | 0 | MergeFrom(from); |
4842 | 0 | } |
4843 | | |
4844 | 0 | bool LayersPacket_Layer_Matrix::IsInitialized() const { |
4845 | 0 | return true; |
4846 | 0 | } |
4847 | | |
4848 | 0 | void LayersPacket_Layer_Matrix::Swap(LayersPacket_Layer_Matrix* other) { |
4849 | 0 | if (other == this) return; |
4850 | 0 | InternalSwap(other); |
4851 | 0 | } |
4852 | 0 | void LayersPacket_Layer_Matrix::InternalSwap(LayersPacket_Layer_Matrix* other) { |
4853 | 0 | using std::swap; |
4854 | 0 | m_.InternalSwap(&other->m_); |
4855 | 0 | swap(is2d_, other->is2d_); |
4856 | 0 | swap(isid_, other->isid_); |
4857 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
4858 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4859 | 0 | swap(_cached_size_, other->_cached_size_); |
4860 | 0 | } |
4861 | | |
4862 | 0 | ::std::string LayersPacket_Layer_Matrix::GetTypeName() const { |
4863 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer.Matrix"; |
4864 | 0 | } |
4865 | | |
4866 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
4867 | | // LayersPacket_Layer_Matrix |
4868 | | |
4869 | | // optional bool is2D = 1; |
4870 | | bool LayersPacket_Layer_Matrix::has_is2d() const { |
4871 | | return (_has_bits_[0] & 0x00000001u) != 0; |
4872 | | } |
4873 | | void LayersPacket_Layer_Matrix::set_has_is2d() { |
4874 | | _has_bits_[0] |= 0x00000001u; |
4875 | | } |
4876 | | void LayersPacket_Layer_Matrix::clear_has_is2d() { |
4877 | | _has_bits_[0] &= ~0x00000001u; |
4878 | | } |
4879 | | void LayersPacket_Layer_Matrix::clear_is2d() { |
4880 | | is2d_ = false; |
4881 | | clear_has_is2d(); |
4882 | | } |
4883 | | bool LayersPacket_Layer_Matrix::is2d() const { |
4884 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D) |
4885 | | return is2d_; |
4886 | | } |
4887 | | void LayersPacket_Layer_Matrix::set_is2d(bool value) { |
4888 | | set_has_is2d(); |
4889 | | is2d_ = value; |
4890 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.is2D) |
4891 | | } |
4892 | | |
4893 | | // optional bool isId = 2; |
4894 | | bool LayersPacket_Layer_Matrix::has_isid() const { |
4895 | | return (_has_bits_[0] & 0x00000002u) != 0; |
4896 | | } |
4897 | | void LayersPacket_Layer_Matrix::set_has_isid() { |
4898 | | _has_bits_[0] |= 0x00000002u; |
4899 | | } |
4900 | | void LayersPacket_Layer_Matrix::clear_has_isid() { |
4901 | | _has_bits_[0] &= ~0x00000002u; |
4902 | | } |
4903 | | void LayersPacket_Layer_Matrix::clear_isid() { |
4904 | | isid_ = false; |
4905 | | clear_has_isid(); |
4906 | | } |
4907 | | bool LayersPacket_Layer_Matrix::isid() const { |
4908 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId) |
4909 | | return isid_; |
4910 | | } |
4911 | | void LayersPacket_Layer_Matrix::set_isid(bool value) { |
4912 | | set_has_isid(); |
4913 | | isid_ = value; |
4914 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.isId) |
4915 | | } |
4916 | | |
4917 | | // repeated float m = 3; |
4918 | | int LayersPacket_Layer_Matrix::m_size() const { |
4919 | | return m_.size(); |
4920 | | } |
4921 | | void LayersPacket_Layer_Matrix::clear_m() { |
4922 | | m_.Clear(); |
4923 | | } |
4924 | | float LayersPacket_Layer_Matrix::m(int index) const { |
4925 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m) |
4926 | | return m_.Get(index); |
4927 | | } |
4928 | | void LayersPacket_Layer_Matrix::set_m(int index, float value) { |
4929 | | m_.Set(index, value); |
4930 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m) |
4931 | | } |
4932 | | void LayersPacket_Layer_Matrix::add_m(float value) { |
4933 | | m_.Add(value); |
4934 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m) |
4935 | | } |
4936 | | const ::google::protobuf::RepeatedField< float >& |
4937 | | LayersPacket_Layer_Matrix::m() const { |
4938 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m) |
4939 | | return m_; |
4940 | | } |
4941 | | ::google::protobuf::RepeatedField< float >* |
4942 | | LayersPacket_Layer_Matrix::mutable_m() { |
4943 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.Layer.Matrix.m) |
4944 | | return &m_; |
4945 | | } |
4946 | | |
4947 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
4948 | | |
4949 | | // =================================================================== |
4950 | | |
4951 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4952 | | const int LayersPacket_Layer_Shadow::kClipFieldNumber; |
4953 | | const int LayersPacket_Layer_Shadow::kTransformFieldNumber; |
4954 | | const int LayersPacket_Layer_Shadow::kVRegionFieldNumber; |
4955 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4956 | | |
4957 | | LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow() |
4958 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
4959 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
4960 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
4961 | 0 | } |
4962 | 0 | SharedCtor(); |
4963 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
4964 | 0 | } |
4965 | | LayersPacket_Layer_Shadow::LayersPacket_Layer_Shadow(const LayersPacket_Layer_Shadow& from) |
4966 | | : ::google::protobuf::MessageLite(), |
4967 | | _internal_metadata_(NULL), |
4968 | | _has_bits_(from._has_bits_), |
4969 | 0 | _cached_size_(0) { |
4970 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4971 | 0 | if (from.has_clip()) { |
4972 | 0 | clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_); |
4973 | 0 | } else { |
4974 | 0 | clip_ = NULL; |
4975 | 0 | } |
4976 | 0 | if (from.has_transform()) { |
4977 | 0 | transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_); |
4978 | 0 | } else { |
4979 | 0 | transform_ = NULL; |
4980 | 0 | } |
4981 | 0 | if (from.has_vregion()) { |
4982 | 0 | vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_); |
4983 | 0 | } else { |
4984 | 0 | vregion_ = NULL; |
4985 | 0 | } |
4986 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
4987 | 0 | } |
4988 | | |
4989 | 0 | void LayersPacket_Layer_Shadow::SharedCtor() { |
4990 | 0 | _cached_size_ = 0; |
4991 | 0 | ::memset(&clip_, 0, static_cast<size_t>( |
4992 | 0 | reinterpret_cast<char*>(&vregion_) - |
4993 | 0 | reinterpret_cast<char*>(&clip_)) + sizeof(vregion_)); |
4994 | 0 | } |
4995 | | |
4996 | 0 | LayersPacket_Layer_Shadow::~LayersPacket_Layer_Shadow() { |
4997 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
4998 | 0 | SharedDtor(); |
4999 | 0 | } |
5000 | | |
5001 | 0 | void LayersPacket_Layer_Shadow::SharedDtor() { |
5002 | 0 | if (this != internal_default_instance()) delete clip_; |
5003 | 0 | if (this != internal_default_instance()) delete transform_; |
5004 | 0 | if (this != internal_default_instance()) delete vregion_; |
5005 | 0 | } |
5006 | | |
5007 | 0 | void LayersPacket_Layer_Shadow::SetCachedSize(int size) const { |
5008 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5009 | 0 | _cached_size_ = size; |
5010 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5011 | 0 | } |
5012 | 0 | const LayersPacket_Layer_Shadow& LayersPacket_Layer_Shadow::default_instance() { |
5013 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
5014 | 0 | return *internal_default_instance(); |
5015 | 0 | } |
5016 | | |
5017 | 0 | LayersPacket_Layer_Shadow* LayersPacket_Layer_Shadow::New(::google::protobuf::Arena* arena) const { |
5018 | 0 | LayersPacket_Layer_Shadow* n = new LayersPacket_Layer_Shadow; |
5019 | 0 | if (arena != NULL) { |
5020 | 0 | arena->Own(n); |
5021 | 0 | } |
5022 | 0 | return n; |
5023 | 0 | } |
5024 | | |
5025 | 0 | void LayersPacket_Layer_Shadow::Clear() { |
5026 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5027 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5028 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
5029 | 0 | (void) cached_has_bits; |
5030 | 0 |
|
5031 | 0 | cached_has_bits = _has_bits_[0]; |
5032 | 0 | if (cached_has_bits & 7u) { |
5033 | 0 | if (cached_has_bits & 0x00000001u) { |
5034 | 0 | GOOGLE_DCHECK(clip_ != NULL); |
5035 | 0 | clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear(); |
5036 | 0 | } |
5037 | 0 | if (cached_has_bits & 0x00000002u) { |
5038 | 0 | GOOGLE_DCHECK(transform_ != NULL); |
5039 | 0 | transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear(); |
5040 | 0 | } |
5041 | 0 | if (cached_has_bits & 0x00000004u) { |
5042 | 0 | GOOGLE_DCHECK(vregion_ != NULL); |
5043 | 0 | vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5044 | 0 | } |
5045 | 0 | } |
5046 | 0 | _has_bits_.Clear(); |
5047 | 0 | _internal_metadata_.Clear(); |
5048 | 0 | } |
5049 | | |
5050 | | bool LayersPacket_Layer_Shadow::MergePartialFromCodedStream( |
5051 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5052 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5053 | 0 | ::google::protobuf::uint32 tag; |
5054 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
5055 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
5056 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
5057 | 0 | mutable_unknown_fields)); |
5058 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
5059 | 0 | &unknown_fields_string, false); |
5060 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5061 | 0 | for (;;) { |
5062 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5063 | 0 | tag = p.first; |
5064 | 0 | if (!p.second) goto handle_unusual; |
5065 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5066 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1; |
5067 | 0 | case 1: { |
5068 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5069 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5070 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5071 | 0 | input, mutable_clip())); |
5072 | 0 | } else { |
5073 | 0 | goto handle_unusual; |
5074 | 0 | } |
5075 | 0 | break; |
5076 | 0 | } |
5077 | 0 |
|
5078 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2; |
5079 | 0 | case 2: { |
5080 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5081 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5082 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5083 | 0 | input, mutable_transform())); |
5084 | 0 | } else { |
5085 | 0 | goto handle_unusual; |
5086 | 0 | } |
5087 | 0 | break; |
5088 | 0 | } |
5089 | 0 |
|
5090 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3; |
5091 | 0 | case 3: { |
5092 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5093 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5094 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5095 | 0 | input, mutable_vregion())); |
5096 | 0 | } else { |
5097 | 0 | goto handle_unusual; |
5098 | 0 | } |
5099 | 0 | break; |
5100 | 0 | } |
5101 | 0 | |
5102 | 0 | default: { |
5103 | 0 | handle_unusual: |
5104 | 0 | if (tag == 0) { |
5105 | 0 | goto success; |
5106 | 0 | } |
5107 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
5108 | 0 | input, tag, &unknown_fields_stream)); |
5109 | 0 | break; |
5110 | 0 | } |
5111 | 0 | } |
5112 | 0 | } |
5113 | 0 | success: |
5114 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5115 | 0 | return true; |
5116 | 0 | failure: |
5117 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5118 | 0 | return false; |
5119 | 0 | #undef DO_ |
5120 | 0 | } |
5121 | | |
5122 | | void LayersPacket_Layer_Shadow::SerializeWithCachedSizes( |
5123 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
5124 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5125 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5126 | 0 | (void) cached_has_bits; |
5127 | 0 |
|
5128 | 0 | cached_has_bits = _has_bits_[0]; |
5129 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1; |
5130 | 0 | if (cached_has_bits & 0x00000001u) { |
5131 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
5132 | 0 | 1, *this->clip_, output); |
5133 | 0 | } |
5134 | 0 |
|
5135 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2; |
5136 | 0 | if (cached_has_bits & 0x00000002u) { |
5137 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
5138 | 0 | 2, *this->transform_, output); |
5139 | 0 | } |
5140 | 0 |
|
5141 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3; |
5142 | 0 | if (cached_has_bits & 0x00000004u) { |
5143 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
5144 | 0 | 3, *this->vregion_, output); |
5145 | 0 | } |
5146 | 0 |
|
5147 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
5148 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
5149 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5150 | 0 | } |
5151 | | |
5152 | 0 | size_t LayersPacket_Layer_Shadow::ByteSizeLong() const { |
5153 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5154 | 0 | size_t total_size = 0; |
5155 | 0 |
|
5156 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
5157 | 0 |
|
5158 | 0 | if (_has_bits_[0 / 32] & 7u) { |
5159 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1; |
5160 | 0 | if (has_clip()) { |
5161 | 0 | total_size += 1 + |
5162 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5163 | 0 | *this->clip_); |
5164 | 0 | } |
5165 | 0 |
|
5166 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2; |
5167 | 0 | if (has_transform()) { |
5168 | 0 | total_size += 1 + |
5169 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5170 | 0 | *this->transform_); |
5171 | 0 | } |
5172 | 0 |
|
5173 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3; |
5174 | 0 | if (has_vregion()) { |
5175 | 0 | total_size += 1 + |
5176 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
5177 | 0 | *this->vregion_); |
5178 | 0 | } |
5179 | 0 |
|
5180 | 0 | } |
5181 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5182 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5183 | 0 | _cached_size_ = cached_size; |
5184 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5185 | 0 | return total_size; |
5186 | 0 | } |
5187 | | |
5188 | | void LayersPacket_Layer_Shadow::CheckTypeAndMergeFrom( |
5189 | 0 | const ::google::protobuf::MessageLite& from) { |
5190 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer_Shadow*>(&from)); |
5191 | 0 | } |
5192 | | |
5193 | 0 | void LayersPacket_Layer_Shadow::MergeFrom(const LayersPacket_Layer_Shadow& from) { |
5194 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5195 | 0 | GOOGLE_DCHECK_NE(&from, this); |
5196 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5197 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5198 | 0 | (void) cached_has_bits; |
5199 | 0 |
|
5200 | 0 | cached_has_bits = from._has_bits_[0]; |
5201 | 0 | if (cached_has_bits & 7u) { |
5202 | 0 | if (cached_has_bits & 0x00000001u) { |
5203 | 0 | mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip()); |
5204 | 0 | } |
5205 | 0 | if (cached_has_bits & 0x00000002u) { |
5206 | 0 | mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform()); |
5207 | 0 | } |
5208 | 0 | if (cached_has_bits & 0x00000004u) { |
5209 | 0 | mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion()); |
5210 | 0 | } |
5211 | 0 | } |
5212 | 0 | } |
5213 | | |
5214 | 0 | void LayersPacket_Layer_Shadow::CopyFrom(const LayersPacket_Layer_Shadow& from) { |
5215 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer.Shadow) |
5216 | 0 | if (&from == this) return; |
5217 | 0 | Clear(); |
5218 | 0 | MergeFrom(from); |
5219 | 0 | } |
5220 | | |
5221 | 0 | bool LayersPacket_Layer_Shadow::IsInitialized() const { |
5222 | 0 | return true; |
5223 | 0 | } |
5224 | | |
5225 | 0 | void LayersPacket_Layer_Shadow::Swap(LayersPacket_Layer_Shadow* other) { |
5226 | 0 | if (other == this) return; |
5227 | 0 | InternalSwap(other); |
5228 | 0 | } |
5229 | 0 | void LayersPacket_Layer_Shadow::InternalSwap(LayersPacket_Layer_Shadow* other) { |
5230 | 0 | using std::swap; |
5231 | 0 | swap(clip_, other->clip_); |
5232 | 0 | swap(transform_, other->transform_); |
5233 | 0 | swap(vregion_, other->vregion_); |
5234 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
5235 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5236 | 0 | swap(_cached_size_, other->_cached_size_); |
5237 | 0 | } |
5238 | | |
5239 | 0 | ::std::string LayersPacket_Layer_Shadow::GetTypeName() const { |
5240 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer.Shadow"; |
5241 | 0 | } |
5242 | | |
5243 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
5244 | | // LayersPacket_Layer_Shadow |
5245 | | |
5246 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 1; |
5247 | | bool LayersPacket_Layer_Shadow::has_clip() const { |
5248 | | return (_has_bits_[0] & 0x00000001u) != 0; |
5249 | | } |
5250 | | void LayersPacket_Layer_Shadow::set_has_clip() { |
5251 | | _has_bits_[0] |= 0x00000001u; |
5252 | | } |
5253 | | void LayersPacket_Layer_Shadow::clear_has_clip() { |
5254 | | _has_bits_[0] &= ~0x00000001u; |
5255 | | } |
5256 | | void LayersPacket_Layer_Shadow::clear_clip() { |
5257 | | if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear(); |
5258 | | clear_has_clip(); |
5259 | | } |
5260 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer_Shadow::clip() const { |
5261 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_; |
5262 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip) |
5263 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>( |
5264 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_); |
5265 | | } |
5266 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::mutable_clip() { |
5267 | | set_has_clip(); |
5268 | | if (clip_ == NULL) { |
5269 | | clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect; |
5270 | | } |
5271 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip) |
5272 | | return clip_; |
5273 | | } |
5274 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer_Shadow::release_clip() { |
5275 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip) |
5276 | | clear_has_clip(); |
5277 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_; |
5278 | | clip_ = NULL; |
5279 | | return temp; |
5280 | | } |
5281 | | void LayersPacket_Layer_Shadow::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) { |
5282 | | delete clip_; |
5283 | | clip_ = clip; |
5284 | | if (clip) { |
5285 | | set_has_clip(); |
5286 | | } else { |
5287 | | clear_has_clip(); |
5288 | | } |
5289 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.clip) |
5290 | | } |
5291 | | |
5292 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 2; |
5293 | | bool LayersPacket_Layer_Shadow::has_transform() const { |
5294 | | return (_has_bits_[0] & 0x00000002u) != 0; |
5295 | | } |
5296 | | void LayersPacket_Layer_Shadow::set_has_transform() { |
5297 | | _has_bits_[0] |= 0x00000002u; |
5298 | | } |
5299 | | void LayersPacket_Layer_Shadow::clear_has_transform() { |
5300 | | _has_bits_[0] &= ~0x00000002u; |
5301 | | } |
5302 | | void LayersPacket_Layer_Shadow::clear_transform() { |
5303 | | if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear(); |
5304 | | clear_has_transform(); |
5305 | | } |
5306 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer_Shadow::transform() const { |
5307 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_; |
5308 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform) |
5309 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>( |
5310 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_); |
5311 | | } |
5312 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::mutable_transform() { |
5313 | | set_has_transform(); |
5314 | | if (transform_ == NULL) { |
5315 | | transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix; |
5316 | | } |
5317 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform) |
5318 | | return transform_; |
5319 | | } |
5320 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer_Shadow::release_transform() { |
5321 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform) |
5322 | | clear_has_transform(); |
5323 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_; |
5324 | | transform_ = NULL; |
5325 | | return temp; |
5326 | | } |
5327 | | void LayersPacket_Layer_Shadow::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) { |
5328 | | delete transform_; |
5329 | | transform_ = transform; |
5330 | | if (transform) { |
5331 | | set_has_transform(); |
5332 | | } else { |
5333 | | clear_has_transform(); |
5334 | | } |
5335 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.transform) |
5336 | | } |
5337 | | |
5338 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 3; |
5339 | | bool LayersPacket_Layer_Shadow::has_vregion() const { |
5340 | | return (_has_bits_[0] & 0x00000004u) != 0; |
5341 | | } |
5342 | | void LayersPacket_Layer_Shadow::set_has_vregion() { |
5343 | | _has_bits_[0] |= 0x00000004u; |
5344 | | } |
5345 | | void LayersPacket_Layer_Shadow::clear_has_vregion() { |
5346 | | _has_bits_[0] &= ~0x00000004u; |
5347 | | } |
5348 | | void LayersPacket_Layer_Shadow::clear_vregion() { |
5349 | | if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5350 | | clear_has_vregion(); |
5351 | | } |
5352 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer_Shadow::vregion() const { |
5353 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_; |
5354 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion) |
5355 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
5356 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
5357 | | } |
5358 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::mutable_vregion() { |
5359 | | set_has_vregion(); |
5360 | | if (vregion_ == NULL) { |
5361 | | vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
5362 | | } |
5363 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion) |
5364 | | return vregion_; |
5365 | | } |
5366 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer_Shadow::release_vregion() { |
5367 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion) |
5368 | | clear_has_vregion(); |
5369 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_; |
5370 | | vregion_ = NULL; |
5371 | | return temp; |
5372 | | } |
5373 | | void LayersPacket_Layer_Shadow::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) { |
5374 | | delete vregion_; |
5375 | | vregion_ = vregion; |
5376 | | if (vregion) { |
5377 | | set_has_vregion(); |
5378 | | } else { |
5379 | | clear_has_vregion(); |
5380 | | } |
5381 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.Shadow.vRegion) |
5382 | | } |
5383 | | |
5384 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
5385 | | |
5386 | | // =================================================================== |
5387 | | |
5388 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5389 | | const int LayersPacket_Layer::kTypeFieldNumber; |
5390 | | const int LayersPacket_Layer::kPtrFieldNumber; |
5391 | | const int LayersPacket_Layer::kParentPtrFieldNumber; |
5392 | | const int LayersPacket_Layer::kClipFieldNumber; |
5393 | | const int LayersPacket_Layer::kTransformFieldNumber; |
5394 | | const int LayersPacket_Layer::kVRegionFieldNumber; |
5395 | | const int LayersPacket_Layer::kShadowFieldNumber; |
5396 | | const int LayersPacket_Layer::kOpacityFieldNumber; |
5397 | | const int LayersPacket_Layer::kCOpaqueFieldNumber; |
5398 | | const int LayersPacket_Layer::kCAlphaFieldNumber; |
5399 | | const int LayersPacket_Layer::kDirectFieldNumber; |
5400 | | const int LayersPacket_Layer::kBarIDFieldNumber; |
5401 | | const int LayersPacket_Layer::kMaskFieldNumber; |
5402 | | const int LayersPacket_Layer::kHitRegionFieldNumber; |
5403 | | const int LayersPacket_Layer::kDispatchRegionFieldNumber; |
5404 | | const int LayersPacket_Layer::kNoActionRegionFieldNumber; |
5405 | | const int LayersPacket_Layer::kHPanRegionFieldNumber; |
5406 | | const int LayersPacket_Layer::kVPanRegionFieldNumber; |
5407 | | const int LayersPacket_Layer::kValidFieldNumber; |
5408 | | const int LayersPacket_Layer::kColorFieldNumber; |
5409 | | const int LayersPacket_Layer::kFilterFieldNumber; |
5410 | | const int LayersPacket_Layer::kRefIDFieldNumber; |
5411 | | const int LayersPacket_Layer::kSizeFieldNumber; |
5412 | | const int LayersPacket_Layer::kDisplayListLogLengthFieldNumber; |
5413 | | const int LayersPacket_Layer::kDisplayListLogFieldNumber; |
5414 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5415 | | |
5416 | | LayersPacket_Layer::LayersPacket_Layer() |
5417 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
5418 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
5419 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
5420 | 0 | } |
5421 | 0 | SharedCtor(); |
5422 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket.Layer) |
5423 | 0 | } |
5424 | | LayersPacket_Layer::LayersPacket_Layer(const LayersPacket_Layer& from) |
5425 | | : ::google::protobuf::MessageLite(), |
5426 | | _internal_metadata_(NULL), |
5427 | | _has_bits_(from._has_bits_), |
5428 | 0 | _cached_size_(0) { |
5429 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5430 | 0 | displaylistlog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5431 | 0 | if (from.has_displaylistlog()) { |
5432 | 0 | displaylistlog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_); |
5433 | 0 | } |
5434 | 0 | if (from.has_clip()) { |
5435 | 0 | clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect(*from.clip_); |
5436 | 0 | } else { |
5437 | 0 | clip_ = NULL; |
5438 | 0 | } |
5439 | 0 | if (from.has_transform()) { |
5440 | 0 | transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix(*from.transform_); |
5441 | 0 | } else { |
5442 | 0 | transform_ = NULL; |
5443 | 0 | } |
5444 | 0 | if (from.has_vregion()) { |
5445 | 0 | vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vregion_); |
5446 | 0 | } else { |
5447 | 0 | vregion_ = NULL; |
5448 | 0 | } |
5449 | 0 | if (from.has_shadow()) { |
5450 | 0 | shadow_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow(*from.shadow_); |
5451 | 0 | } else { |
5452 | 0 | shadow_ = NULL; |
5453 | 0 | } |
5454 | 0 | if (from.has_hitregion()) { |
5455 | 0 | hitregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hitregion_); |
5456 | 0 | } else { |
5457 | 0 | hitregion_ = NULL; |
5458 | 0 | } |
5459 | 0 | if (from.has_dispatchregion()) { |
5460 | 0 | dispatchregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.dispatchregion_); |
5461 | 0 | } else { |
5462 | 0 | dispatchregion_ = NULL; |
5463 | 0 | } |
5464 | 0 | if (from.has_noactionregion()) { |
5465 | 0 | noactionregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.noactionregion_); |
5466 | 0 | } else { |
5467 | 0 | noactionregion_ = NULL; |
5468 | 0 | } |
5469 | 0 | if (from.has_hpanregion()) { |
5470 | 0 | hpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.hpanregion_); |
5471 | 0 | } else { |
5472 | 0 | hpanregion_ = NULL; |
5473 | 0 | } |
5474 | 0 | if (from.has_vpanregion()) { |
5475 | 0 | vpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.vpanregion_); |
5476 | 0 | } else { |
5477 | 0 | vpanregion_ = NULL; |
5478 | 0 | } |
5479 | 0 | if (from.has_valid()) { |
5480 | 0 | valid_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region(*from.valid_); |
5481 | 0 | } else { |
5482 | 0 | valid_ = NULL; |
5483 | 0 | } |
5484 | 0 | if (from.has_size()) { |
5485 | 0 | size_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Size(*from.size_); |
5486 | 0 | } else { |
5487 | 0 | size_ = NULL; |
5488 | 0 | } |
5489 | 0 | ::memcpy(&ptr_, &from.ptr_, |
5490 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&direct_) - |
5491 | 0 | reinterpret_cast<char*>(&ptr_)) + sizeof(direct_)); |
5492 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket.Layer) |
5493 | 0 | } |
5494 | | |
5495 | 0 | void LayersPacket_Layer::SharedCtor() { |
5496 | 0 | _cached_size_ = 0; |
5497 | 0 | displaylistlog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5498 | 0 | ::memset(&clip_, 0, static_cast<size_t>( |
5499 | 0 | reinterpret_cast<char*>(&displaylistloglength_) - |
5500 | 0 | reinterpret_cast<char*>(&clip_)) + sizeof(displaylistloglength_)); |
5501 | 0 | direct_ = 1; |
5502 | 0 | } |
5503 | | |
5504 | 0 | LayersPacket_Layer::~LayersPacket_Layer() { |
5505 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket.Layer) |
5506 | 0 | SharedDtor(); |
5507 | 0 | } |
5508 | | |
5509 | 0 | void LayersPacket_Layer::SharedDtor() { |
5510 | 0 | displaylistlog_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5511 | 0 | if (this != internal_default_instance()) delete clip_; |
5512 | 0 | if (this != internal_default_instance()) delete transform_; |
5513 | 0 | if (this != internal_default_instance()) delete vregion_; |
5514 | 0 | if (this != internal_default_instance()) delete shadow_; |
5515 | 0 | if (this != internal_default_instance()) delete hitregion_; |
5516 | 0 | if (this != internal_default_instance()) delete dispatchregion_; |
5517 | 0 | if (this != internal_default_instance()) delete noactionregion_; |
5518 | 0 | if (this != internal_default_instance()) delete hpanregion_; |
5519 | 0 | if (this != internal_default_instance()) delete vpanregion_; |
5520 | 0 | if (this != internal_default_instance()) delete valid_; |
5521 | 0 | if (this != internal_default_instance()) delete size_; |
5522 | 0 | } |
5523 | | |
5524 | 0 | void LayersPacket_Layer::SetCachedSize(int size) const { |
5525 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
5526 | 0 | _cached_size_ = size; |
5527 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
5528 | 0 | } |
5529 | 0 | const LayersPacket_Layer& LayersPacket_Layer::default_instance() { |
5530 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
5531 | 0 | return *internal_default_instance(); |
5532 | 0 | } |
5533 | | |
5534 | 0 | LayersPacket_Layer* LayersPacket_Layer::New(::google::protobuf::Arena* arena) const { |
5535 | 0 | LayersPacket_Layer* n = new LayersPacket_Layer; |
5536 | 0 | if (arena != NULL) { |
5537 | 0 | arena->Own(n); |
5538 | 0 | } |
5539 | 0 | return n; |
5540 | 0 | } |
5541 | | |
5542 | 0 | void LayersPacket_Layer::Clear() { |
5543 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket.Layer) |
5544 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
5545 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
5546 | 0 | (void) cached_has_bits; |
5547 | 0 |
|
5548 | 0 | cached_has_bits = _has_bits_[0]; |
5549 | 0 | if (cached_has_bits & 255u) { |
5550 | 0 | if (cached_has_bits & 0x00000001u) { |
5551 | 0 | GOOGLE_DCHECK(!displaylistlog_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
5552 | 0 | (*displaylistlog_.UnsafeRawStringPointer())->clear(); |
5553 | 0 | } |
5554 | 0 | if (cached_has_bits & 0x00000002u) { |
5555 | 0 | GOOGLE_DCHECK(clip_ != NULL); |
5556 | 0 | clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear(); |
5557 | 0 | } |
5558 | 0 | if (cached_has_bits & 0x00000004u) { |
5559 | 0 | GOOGLE_DCHECK(transform_ != NULL); |
5560 | 0 | transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear(); |
5561 | 0 | } |
5562 | 0 | if (cached_has_bits & 0x00000008u) { |
5563 | 0 | GOOGLE_DCHECK(vregion_ != NULL); |
5564 | 0 | vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5565 | 0 | } |
5566 | 0 | if (cached_has_bits & 0x00000010u) { |
5567 | 0 | GOOGLE_DCHECK(shadow_ != NULL); |
5568 | 0 | shadow_->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::Clear(); |
5569 | 0 | } |
5570 | 0 | if (cached_has_bits & 0x00000020u) { |
5571 | 0 | GOOGLE_DCHECK(hitregion_ != NULL); |
5572 | 0 | hitregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5573 | 0 | } |
5574 | 0 | if (cached_has_bits & 0x00000040u) { |
5575 | 0 | GOOGLE_DCHECK(dispatchregion_ != NULL); |
5576 | 0 | dispatchregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5577 | 0 | } |
5578 | 0 | if (cached_has_bits & 0x00000080u) { |
5579 | 0 | GOOGLE_DCHECK(noactionregion_ != NULL); |
5580 | 0 | noactionregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5581 | 0 | } |
5582 | 0 | } |
5583 | 0 | if (cached_has_bits & 3840u) { |
5584 | 0 | if (cached_has_bits & 0x00000100u) { |
5585 | 0 | GOOGLE_DCHECK(hpanregion_ != NULL); |
5586 | 0 | hpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5587 | 0 | } |
5588 | 0 | if (cached_has_bits & 0x00000200u) { |
5589 | 0 | GOOGLE_DCHECK(vpanregion_ != NULL); |
5590 | 0 | vpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5591 | 0 | } |
5592 | 0 | if (cached_has_bits & 0x00000400u) { |
5593 | 0 | GOOGLE_DCHECK(valid_ != NULL); |
5594 | 0 | valid_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
5595 | 0 | } |
5596 | 0 | if (cached_has_bits & 0x00000800u) { |
5597 | 0 | GOOGLE_DCHECK(size_ != NULL); |
5598 | 0 | size_->::mozilla::layers::layerscope::LayersPacket_Layer_Size::Clear(); |
5599 | 0 | } |
5600 | 0 | } |
5601 | 0 | if (cached_has_bits & 61440u) { |
5602 | 0 | ::memset(&ptr_, 0, static_cast<size_t>( |
5603 | 0 | reinterpret_cast<char*>(&opacity_) - |
5604 | 0 | reinterpret_cast<char*>(&ptr_)) + sizeof(opacity_)); |
5605 | 0 | } |
5606 | 0 | if (cached_has_bits & 16711680u) { |
5607 | 0 | ::memset(&barid_, 0, static_cast<size_t>( |
5608 | 0 | reinterpret_cast<char*>(&displaylistloglength_) - |
5609 | 0 | reinterpret_cast<char*>(&barid_)) + sizeof(displaylistloglength_)); |
5610 | 0 | } |
5611 | 0 | direct_ = 1; |
5612 | 0 | _has_bits_.Clear(); |
5613 | 0 | _internal_metadata_.Clear(); |
5614 | 0 | } |
5615 | | |
5616 | | bool LayersPacket_Layer::MergePartialFromCodedStream( |
5617 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
5618 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5619 | 0 | ::google::protobuf::uint32 tag; |
5620 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
5621 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
5622 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
5623 | 0 | mutable_unknown_fields)); |
5624 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
5625 | 0 | &unknown_fields_string, false); |
5626 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket.Layer) |
5627 | 0 | for (;;) { |
5628 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
5629 | 0 | tag = p.first; |
5630 | 0 | if (!p.second) goto handle_unusual; |
5631 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5632 | 0 | // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1; |
5633 | 0 | case 1: { |
5634 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5635 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
5636 | 0 | int value; |
5637 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5638 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5639 | 0 | input, &value))); |
5640 | 0 | if (::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value)) { |
5641 | 0 | set_type(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(value)); |
5642 | 0 | } else { |
5643 | 0 | unknown_fields_stream.WriteVarint32(8u); |
5644 | 0 | unknown_fields_stream.WriteVarint32( |
5645 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
5646 | 0 | } |
5647 | 0 | } else { |
5648 | 0 | goto handle_unusual; |
5649 | 0 | } |
5650 | 0 | break; |
5651 | 0 | } |
5652 | 0 |
|
5653 | 0 | // required uint64 ptr = 2; |
5654 | 0 | case 2: { |
5655 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5656 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
5657 | 0 | set_has_ptr(); |
5658 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5659 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5660 | 0 | input, &ptr_))); |
5661 | 0 | } else { |
5662 | 0 | goto handle_unusual; |
5663 | 0 | } |
5664 | 0 | break; |
5665 | 0 | } |
5666 | 0 |
|
5667 | 0 | // required uint64 parentPtr = 3; |
5668 | 0 | case 3: { |
5669 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5670 | 0 | static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { |
5671 | 0 | set_has_parentptr(); |
5672 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5673 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5674 | 0 | input, &parentptr_))); |
5675 | 0 | } else { |
5676 | 0 | goto handle_unusual; |
5677 | 0 | } |
5678 | 0 | break; |
5679 | 0 | } |
5680 | 0 |
|
5681 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10; |
5682 | 0 | case 10: { |
5683 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5684 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
5685 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5686 | 0 | input, mutable_clip())); |
5687 | 0 | } else { |
5688 | 0 | goto handle_unusual; |
5689 | 0 | } |
5690 | 0 | break; |
5691 | 0 | } |
5692 | 0 |
|
5693 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11; |
5694 | 0 | case 11: { |
5695 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5696 | 0 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
5697 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5698 | 0 | input, mutable_transform())); |
5699 | 0 | } else { |
5700 | 0 | goto handle_unusual; |
5701 | 0 | } |
5702 | 0 | break; |
5703 | 0 | } |
5704 | 0 |
|
5705 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12; |
5706 | 0 | case 12: { |
5707 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5708 | 0 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
5709 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5710 | 0 | input, mutable_vregion())); |
5711 | 0 | } else { |
5712 | 0 | goto handle_unusual; |
5713 | 0 | } |
5714 | 0 | break; |
5715 | 0 | } |
5716 | 0 |
|
5717 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13; |
5718 | 0 | case 13: { |
5719 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5720 | 0 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
5721 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5722 | 0 | input, mutable_shadow())); |
5723 | 0 | } else { |
5724 | 0 | goto handle_unusual; |
5725 | 0 | } |
5726 | 0 | break; |
5727 | 0 | } |
5728 | 0 |
|
5729 | 0 | // optional float opacity = 14; |
5730 | 0 | case 14: { |
5731 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5732 | 0 | static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) { |
5733 | 0 | set_has_opacity(); |
5734 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5735 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
5736 | 0 | input, &opacity_))); |
5737 | 0 | } else { |
5738 | 0 | goto handle_unusual; |
5739 | 0 | } |
5740 | 0 | break; |
5741 | 0 | } |
5742 | 0 |
|
5743 | 0 | // optional bool cOpaque = 15; |
5744 | 0 | case 15: { |
5745 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5746 | 0 | static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) { |
5747 | 0 | set_has_copaque(); |
5748 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5749 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5750 | 0 | input, &copaque_))); |
5751 | 0 | } else { |
5752 | 0 | goto handle_unusual; |
5753 | 0 | } |
5754 | 0 | break; |
5755 | 0 | } |
5756 | 0 |
|
5757 | 0 | // optional bool cAlpha = 16; |
5758 | 0 | case 16: { |
5759 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5760 | 0 | static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) { |
5761 | 0 | set_has_calpha(); |
5762 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5763 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
5764 | 0 | input, &calpha_))); |
5765 | 0 | } else { |
5766 | 0 | goto handle_unusual; |
5767 | 0 | } |
5768 | 0 | break; |
5769 | 0 | } |
5770 | 0 |
|
5771 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17; |
5772 | 0 | case 17: { |
5773 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5774 | 0 | static_cast< ::google::protobuf::uint8>(136u /* 136 & 0xFF */)) { |
5775 | 0 | int value; |
5776 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5777 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5778 | 0 | input, &value))); |
5779 | 0 | if (::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value)) { |
5780 | 0 | set_direct(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(value)); |
5781 | 0 | } else { |
5782 | 0 | unknown_fields_stream.WriteVarint32(136u); |
5783 | 0 | unknown_fields_stream.WriteVarint32( |
5784 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
5785 | 0 | } |
5786 | 0 | } else { |
5787 | 0 | goto handle_unusual; |
5788 | 0 | } |
5789 | 0 | break; |
5790 | 0 | } |
5791 | 0 |
|
5792 | 0 | // optional uint64 barID = 18; |
5793 | 0 | case 18: { |
5794 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5795 | 0 | static_cast< ::google::protobuf::uint8>(144u /* 144 & 0xFF */)) { |
5796 | 0 | set_has_barid(); |
5797 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5798 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5799 | 0 | input, &barid_))); |
5800 | 0 | } else { |
5801 | 0 | goto handle_unusual; |
5802 | 0 | } |
5803 | 0 | break; |
5804 | 0 | } |
5805 | 0 |
|
5806 | 0 | // optional uint64 mask = 19; |
5807 | 0 | case 19: { |
5808 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5809 | 0 | static_cast< ::google::protobuf::uint8>(152u /* 152 & 0xFF */)) { |
5810 | 0 | set_has_mask(); |
5811 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5812 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5813 | 0 | input, &mask_))); |
5814 | 0 | } else { |
5815 | 0 | goto handle_unusual; |
5816 | 0 | } |
5817 | 0 | break; |
5818 | 0 | } |
5819 | 0 |
|
5820 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20; |
5821 | 0 | case 20: { |
5822 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5823 | 0 | static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { |
5824 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5825 | 0 | input, mutable_hitregion())); |
5826 | 0 | } else { |
5827 | 0 | goto handle_unusual; |
5828 | 0 | } |
5829 | 0 | break; |
5830 | 0 | } |
5831 | 0 |
|
5832 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21; |
5833 | 0 | case 21: { |
5834 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5835 | 0 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
5836 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5837 | 0 | input, mutable_dispatchregion())); |
5838 | 0 | } else { |
5839 | 0 | goto handle_unusual; |
5840 | 0 | } |
5841 | 0 | break; |
5842 | 0 | } |
5843 | 0 |
|
5844 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22; |
5845 | 0 | case 22: { |
5846 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5847 | 0 | static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { |
5848 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5849 | 0 | input, mutable_noactionregion())); |
5850 | 0 | } else { |
5851 | 0 | goto handle_unusual; |
5852 | 0 | } |
5853 | 0 | break; |
5854 | 0 | } |
5855 | 0 |
|
5856 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23; |
5857 | 0 | case 23: { |
5858 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5859 | 0 | static_cast< ::google::protobuf::uint8>(186u /* 186 & 0xFF */)) { |
5860 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5861 | 0 | input, mutable_hpanregion())); |
5862 | 0 | } else { |
5863 | 0 | goto handle_unusual; |
5864 | 0 | } |
5865 | 0 | break; |
5866 | 0 | } |
5867 | 0 |
|
5868 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24; |
5869 | 0 | case 24: { |
5870 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5871 | 0 | static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) { |
5872 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5873 | 0 | input, mutable_vpanregion())); |
5874 | 0 | } else { |
5875 | 0 | goto handle_unusual; |
5876 | 0 | } |
5877 | 0 | break; |
5878 | 0 | } |
5879 | 0 |
|
5880 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100; |
5881 | 0 | case 100: { |
5882 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5883 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) { |
5884 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5885 | 0 | input, mutable_valid())); |
5886 | 0 | } else { |
5887 | 0 | goto handle_unusual; |
5888 | 0 | } |
5889 | 0 | break; |
5890 | 0 | } |
5891 | 0 |
|
5892 | 0 | // optional uint32 color = 101; |
5893 | 0 | case 101: { |
5894 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5895 | 0 | static_cast< ::google::protobuf::uint8>(40u /* 808 & 0xFF */)) { |
5896 | 0 | set_has_color(); |
5897 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5898 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
5899 | 0 | input, &color_))); |
5900 | 0 | } else { |
5901 | 0 | goto handle_unusual; |
5902 | 0 | } |
5903 | 0 | break; |
5904 | 0 | } |
5905 | 0 |
|
5906 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102; |
5907 | 0 | case 102: { |
5908 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5909 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 816 & 0xFF */)) { |
5910 | 0 | int value; |
5911 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5912 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
5913 | 0 | input, &value))); |
5914 | 0 | if (::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value)) { |
5915 | 0 | set_filter(static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(value)); |
5916 | 0 | } else { |
5917 | 0 | unknown_fields_stream.WriteVarint32(816u); |
5918 | 0 | unknown_fields_stream.WriteVarint32( |
5919 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
5920 | 0 | } |
5921 | 0 | } else { |
5922 | 0 | goto handle_unusual; |
5923 | 0 | } |
5924 | 0 | break; |
5925 | 0 | } |
5926 | 0 |
|
5927 | 0 | // optional uint64 refID = 103; |
5928 | 0 | case 103: { |
5929 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5930 | 0 | static_cast< ::google::protobuf::uint8>(56u /* 824 & 0xFF */)) { |
5931 | 0 | set_has_refid(); |
5932 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5933 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
5934 | 0 | input, &refid_))); |
5935 | 0 | } else { |
5936 | 0 | goto handle_unusual; |
5937 | 0 | } |
5938 | 0 | break; |
5939 | 0 | } |
5940 | 0 |
|
5941 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104; |
5942 | 0 | case 104: { |
5943 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5944 | 0 | static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) { |
5945 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
5946 | 0 | input, mutable_size())); |
5947 | 0 | } else { |
5948 | 0 | goto handle_unusual; |
5949 | 0 | } |
5950 | 0 | break; |
5951 | 0 | } |
5952 | 0 |
|
5953 | 0 | // optional uint32 displayListLogLength = 105; |
5954 | 0 | case 105: { |
5955 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5956 | 0 | static_cast< ::google::protobuf::uint8>(72u /* 840 & 0xFF */)) { |
5957 | 0 | set_has_displaylistloglength(); |
5958 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
5959 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
5960 | 0 | input, &displaylistloglength_))); |
5961 | 0 | } else { |
5962 | 0 | goto handle_unusual; |
5963 | 0 | } |
5964 | 0 | break; |
5965 | 0 | } |
5966 | 0 |
|
5967 | 0 | // optional bytes displayListLog = 106; |
5968 | 0 | case 106: { |
5969 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5970 | 0 | static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) { |
5971 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
5972 | 0 | input, this->mutable_displaylistlog())); |
5973 | 0 | } else { |
5974 | 0 | goto handle_unusual; |
5975 | 0 | } |
5976 | 0 | break; |
5977 | 0 | } |
5978 | 0 | |
5979 | 0 | default: { |
5980 | 0 | handle_unusual: |
5981 | 0 | if (tag == 0) { |
5982 | 0 | goto success; |
5983 | 0 | } |
5984 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
5985 | 0 | input, tag, &unknown_fields_stream)); |
5986 | 0 | break; |
5987 | 0 | } |
5988 | 0 | } |
5989 | 0 | } |
5990 | 0 | success: |
5991 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket.Layer) |
5992 | 0 | return true; |
5993 | 0 | failure: |
5994 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket.Layer) |
5995 | 0 | return false; |
5996 | 0 | #undef DO_ |
5997 | 0 | } |
5998 | | |
5999 | | void LayersPacket_Layer::SerializeWithCachedSizes( |
6000 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
6001 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket.Layer) |
6002 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6003 | 0 | (void) cached_has_bits; |
6004 | 0 |
|
6005 | 0 | cached_has_bits = _has_bits_[0]; |
6006 | 0 | // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1; |
6007 | 0 | if (cached_has_bits & 0x00004000u) { |
6008 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6009 | 0 | 1, this->type(), output); |
6010 | 0 | } |
6011 | 0 |
|
6012 | 0 | // required uint64 ptr = 2; |
6013 | 0 | if (cached_has_bits & 0x00001000u) { |
6014 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ptr(), output); |
6015 | 0 | } |
6016 | 0 |
|
6017 | 0 | // required uint64 parentPtr = 3; |
6018 | 0 | if (cached_has_bits & 0x00002000u) { |
6019 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->parentptr(), output); |
6020 | 0 | } |
6021 | 0 |
|
6022 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10; |
6023 | 0 | if (cached_has_bits & 0x00000002u) { |
6024 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6025 | 0 | 10, *this->clip_, output); |
6026 | 0 | } |
6027 | 0 |
|
6028 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11; |
6029 | 0 | if (cached_has_bits & 0x00000004u) { |
6030 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6031 | 0 | 11, *this->transform_, output); |
6032 | 0 | } |
6033 | 0 |
|
6034 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12; |
6035 | 0 | if (cached_has_bits & 0x00000008u) { |
6036 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6037 | 0 | 12, *this->vregion_, output); |
6038 | 0 | } |
6039 | 0 |
|
6040 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13; |
6041 | 0 | if (cached_has_bits & 0x00000010u) { |
6042 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6043 | 0 | 13, *this->shadow_, output); |
6044 | 0 | } |
6045 | 0 |
|
6046 | 0 | // optional float opacity = 14; |
6047 | 0 | if (cached_has_bits & 0x00008000u) { |
6048 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->opacity(), output); |
6049 | 0 | } |
6050 | 0 |
|
6051 | 0 | // optional bool cOpaque = 15; |
6052 | 0 | if (cached_has_bits & 0x00040000u) { |
6053 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->copaque(), output); |
6054 | 0 | } |
6055 | 0 |
|
6056 | 0 | // optional bool cAlpha = 16; |
6057 | 0 | if (cached_has_bits & 0x00080000u) { |
6058 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->calpha(), output); |
6059 | 0 | } |
6060 | 0 |
|
6061 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17; |
6062 | 0 | if (cached_has_bits & 0x01000000u) { |
6063 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6064 | 0 | 17, this->direct(), output); |
6065 | 0 | } |
6066 | 0 |
|
6067 | 0 | // optional uint64 barID = 18; |
6068 | 0 | if (cached_has_bits & 0x00010000u) { |
6069 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(18, this->barid(), output); |
6070 | 0 | } |
6071 | 0 |
|
6072 | 0 | // optional uint64 mask = 19; |
6073 | 0 | if (cached_has_bits & 0x00020000u) { |
6074 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(19, this->mask(), output); |
6075 | 0 | } |
6076 | 0 |
|
6077 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20; |
6078 | 0 | if (cached_has_bits & 0x00000020u) { |
6079 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6080 | 0 | 20, *this->hitregion_, output); |
6081 | 0 | } |
6082 | 0 |
|
6083 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21; |
6084 | 0 | if (cached_has_bits & 0x00000040u) { |
6085 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6086 | 0 | 21, *this->dispatchregion_, output); |
6087 | 0 | } |
6088 | 0 |
|
6089 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22; |
6090 | 0 | if (cached_has_bits & 0x00000080u) { |
6091 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6092 | 0 | 22, *this->noactionregion_, output); |
6093 | 0 | } |
6094 | 0 |
|
6095 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23; |
6096 | 0 | if (cached_has_bits & 0x00000100u) { |
6097 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6098 | 0 | 23, *this->hpanregion_, output); |
6099 | 0 | } |
6100 | 0 |
|
6101 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24; |
6102 | 0 | if (cached_has_bits & 0x00000200u) { |
6103 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6104 | 0 | 24, *this->vpanregion_, output); |
6105 | 0 | } |
6106 | 0 |
|
6107 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100; |
6108 | 0 | if (cached_has_bits & 0x00000400u) { |
6109 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6110 | 0 | 100, *this->valid_, output); |
6111 | 0 | } |
6112 | 0 |
|
6113 | 0 | // optional uint32 color = 101; |
6114 | 0 | if (cached_has_bits & 0x00100000u) { |
6115 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(101, this->color(), output); |
6116 | 0 | } |
6117 | 0 |
|
6118 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102; |
6119 | 0 | if (cached_has_bits & 0x00400000u) { |
6120 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
6121 | 0 | 102, this->filter(), output); |
6122 | 0 | } |
6123 | 0 |
|
6124 | 0 | // optional uint64 refID = 103; |
6125 | 0 | if (cached_has_bits & 0x00200000u) { |
6126 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(103, this->refid(), output); |
6127 | 0 | } |
6128 | 0 |
|
6129 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104; |
6130 | 0 | if (cached_has_bits & 0x00000800u) { |
6131 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
6132 | 0 | 104, *this->size_, output); |
6133 | 0 | } |
6134 | 0 |
|
6135 | 0 | // optional uint32 displayListLogLength = 105; |
6136 | 0 | if (cached_has_bits & 0x00800000u) { |
6137 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(105, this->displaylistloglength(), output); |
6138 | 0 | } |
6139 | 0 |
|
6140 | 0 | // optional bytes displayListLog = 106; |
6141 | 0 | if (cached_has_bits & 0x00000001u) { |
6142 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
6143 | 0 | 106, this->displaylistlog(), output); |
6144 | 0 | } |
6145 | 0 |
|
6146 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
6147 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
6148 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket.Layer) |
6149 | 0 | } |
6150 | | |
6151 | 0 | size_t LayersPacket_Layer::RequiredFieldsByteSizeFallback() const { |
6152 | 0 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.LayersPacket.Layer) |
6153 | 0 | size_t total_size = 0; |
6154 | 0 |
|
6155 | 0 | if (has_ptr()) { |
6156 | 0 | // required uint64 ptr = 2; |
6157 | 0 | total_size += 1 + |
6158 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6159 | 0 | this->ptr()); |
6160 | 0 | } |
6161 | 0 |
|
6162 | 0 | if (has_parentptr()) { |
6163 | 0 | // required uint64 parentPtr = 3; |
6164 | 0 | total_size += 1 + |
6165 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6166 | 0 | this->parentptr()); |
6167 | 0 | } |
6168 | 0 |
|
6169 | 0 | if (has_type()) { |
6170 | 0 | // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1; |
6171 | 0 | total_size += 1 + |
6172 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
6173 | 0 | } |
6174 | 0 |
|
6175 | 0 | return total_size; |
6176 | 0 | } |
6177 | 0 | size_t LayersPacket_Layer::ByteSizeLong() const { |
6178 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket.Layer) |
6179 | 0 | size_t total_size = 0; |
6180 | 0 |
|
6181 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
6182 | 0 |
|
6183 | 0 | if (((_has_bits_[0] & 0x00007000) ^ 0x00007000) == 0) { // All required fields are present. |
6184 | 0 | // required uint64 ptr = 2; |
6185 | 0 | total_size += 1 + |
6186 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6187 | 0 | this->ptr()); |
6188 | 0 |
|
6189 | 0 | // required uint64 parentPtr = 3; |
6190 | 0 | total_size += 1 + |
6191 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6192 | 0 | this->parentptr()); |
6193 | 0 |
|
6194 | 0 | // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1; |
6195 | 0 | total_size += 1 + |
6196 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
6197 | 0 |
|
6198 | 0 | } else { |
6199 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
6200 | 0 | } |
6201 | 0 | if (_has_bits_[0 / 32] & 255u) { |
6202 | 0 | // optional bytes displayListLog = 106; |
6203 | 0 | if (has_displaylistlog()) { |
6204 | 0 | total_size += 2 + |
6205 | 0 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
6206 | 0 | this->displaylistlog()); |
6207 | 0 | } |
6208 | 0 |
|
6209 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10; |
6210 | 0 | if (has_clip()) { |
6211 | 0 | total_size += 1 + |
6212 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6213 | 0 | *this->clip_); |
6214 | 0 | } |
6215 | 0 |
|
6216 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11; |
6217 | 0 | if (has_transform()) { |
6218 | 0 | total_size += 1 + |
6219 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6220 | 0 | *this->transform_); |
6221 | 0 | } |
6222 | 0 |
|
6223 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12; |
6224 | 0 | if (has_vregion()) { |
6225 | 0 | total_size += 1 + |
6226 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6227 | 0 | *this->vregion_); |
6228 | 0 | } |
6229 | 0 |
|
6230 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13; |
6231 | 0 | if (has_shadow()) { |
6232 | 0 | total_size += 1 + |
6233 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6234 | 0 | *this->shadow_); |
6235 | 0 | } |
6236 | 0 |
|
6237 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20; |
6238 | 0 | if (has_hitregion()) { |
6239 | 0 | total_size += 2 + |
6240 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6241 | 0 | *this->hitregion_); |
6242 | 0 | } |
6243 | 0 |
|
6244 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21; |
6245 | 0 | if (has_dispatchregion()) { |
6246 | 0 | total_size += 2 + |
6247 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6248 | 0 | *this->dispatchregion_); |
6249 | 0 | } |
6250 | 0 |
|
6251 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22; |
6252 | 0 | if (has_noactionregion()) { |
6253 | 0 | total_size += 2 + |
6254 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6255 | 0 | *this->noactionregion_); |
6256 | 0 | } |
6257 | 0 |
|
6258 | 0 | } |
6259 | 0 | if (_has_bits_[8 / 32] & 3840u) { |
6260 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23; |
6261 | 0 | if (has_hpanregion()) { |
6262 | 0 | total_size += 2 + |
6263 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6264 | 0 | *this->hpanregion_); |
6265 | 0 | } |
6266 | 0 |
|
6267 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24; |
6268 | 0 | if (has_vpanregion()) { |
6269 | 0 | total_size += 2 + |
6270 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6271 | 0 | *this->vpanregion_); |
6272 | 0 | } |
6273 | 0 |
|
6274 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100; |
6275 | 0 | if (has_valid()) { |
6276 | 0 | total_size += 2 + |
6277 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6278 | 0 | *this->valid_); |
6279 | 0 | } |
6280 | 0 |
|
6281 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104; |
6282 | 0 | if (has_size()) { |
6283 | 0 | total_size += 2 + |
6284 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
6285 | 0 | *this->size_); |
6286 | 0 | } |
6287 | 0 |
|
6288 | 0 | } |
6289 | 0 | // optional float opacity = 14; |
6290 | 0 | if (has_opacity()) { |
6291 | 0 | total_size += 1 + 4; |
6292 | 0 | } |
6293 | 0 |
|
6294 | 0 | if (_has_bits_[16 / 32] & 16711680u) { |
6295 | 0 | // optional uint64 barID = 18; |
6296 | 0 | if (has_barid()) { |
6297 | 0 | total_size += 2 + |
6298 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6299 | 0 | this->barid()); |
6300 | 0 | } |
6301 | 0 |
|
6302 | 0 | // optional uint64 mask = 19; |
6303 | 0 | if (has_mask()) { |
6304 | 0 | total_size += 2 + |
6305 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6306 | 0 | this->mask()); |
6307 | 0 | } |
6308 | 0 |
|
6309 | 0 | // optional bool cOpaque = 15; |
6310 | 0 | if (has_copaque()) { |
6311 | 0 | total_size += 1 + 1; |
6312 | 0 | } |
6313 | 0 |
|
6314 | 0 | // optional bool cAlpha = 16; |
6315 | 0 | if (has_calpha()) { |
6316 | 0 | total_size += 2 + 1; |
6317 | 0 | } |
6318 | 0 |
|
6319 | 0 | // optional uint32 color = 101; |
6320 | 0 | if (has_color()) { |
6321 | 0 | total_size += 2 + |
6322 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
6323 | 0 | this->color()); |
6324 | 0 | } |
6325 | 0 |
|
6326 | 0 | // optional uint64 refID = 103; |
6327 | 0 | if (has_refid()) { |
6328 | 0 | total_size += 2 + |
6329 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
6330 | 0 | this->refid()); |
6331 | 0 | } |
6332 | 0 |
|
6333 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102; |
6334 | 0 | if (has_filter()) { |
6335 | 0 | total_size += 2 + |
6336 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->filter()); |
6337 | 0 | } |
6338 | 0 |
|
6339 | 0 | // optional uint32 displayListLogLength = 105; |
6340 | 0 | if (has_displaylistloglength()) { |
6341 | 0 | total_size += 2 + |
6342 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
6343 | 0 | this->displaylistloglength()); |
6344 | 0 | } |
6345 | 0 |
|
6346 | 0 | } |
6347 | 0 | // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17; |
6348 | 0 | if (has_direct()) { |
6349 | 0 | total_size += 2 + |
6350 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->direct()); |
6351 | 0 | } |
6352 | 0 |
|
6353 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6354 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
6355 | 0 | _cached_size_ = cached_size; |
6356 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
6357 | 0 | return total_size; |
6358 | 0 | } |
6359 | | |
6360 | | void LayersPacket_Layer::CheckTypeAndMergeFrom( |
6361 | 0 | const ::google::protobuf::MessageLite& from) { |
6362 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket_Layer*>(&from)); |
6363 | 0 | } |
6364 | | |
6365 | 0 | void LayersPacket_Layer::MergeFrom(const LayersPacket_Layer& from) { |
6366 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket.Layer) |
6367 | 0 | GOOGLE_DCHECK_NE(&from, this); |
6368 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6369 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
6370 | 0 | (void) cached_has_bits; |
6371 | 0 |
|
6372 | 0 | cached_has_bits = from._has_bits_[0]; |
6373 | 0 | if (cached_has_bits & 255u) { |
6374 | 0 | if (cached_has_bits & 0x00000001u) { |
6375 | 0 | set_has_displaylistlog(); |
6376 | 0 | displaylistlog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.displaylistlog_); |
6377 | 0 | } |
6378 | 0 | if (cached_has_bits & 0x00000002u) { |
6379 | 0 | mutable_clip()->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::MergeFrom(from.clip()); |
6380 | 0 | } |
6381 | 0 | if (cached_has_bits & 0x00000004u) { |
6382 | 0 | mutable_transform()->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::MergeFrom(from.transform()); |
6383 | 0 | } |
6384 | 0 | if (cached_has_bits & 0x00000008u) { |
6385 | 0 | mutable_vregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vregion()); |
6386 | 0 | } |
6387 | 0 | if (cached_has_bits & 0x00000010u) { |
6388 | 0 | mutable_shadow()->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::MergeFrom(from.shadow()); |
6389 | 0 | } |
6390 | 0 | if (cached_has_bits & 0x00000020u) { |
6391 | 0 | mutable_hitregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hitregion()); |
6392 | 0 | } |
6393 | 0 | if (cached_has_bits & 0x00000040u) { |
6394 | 0 | mutable_dispatchregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.dispatchregion()); |
6395 | 0 | } |
6396 | 0 | if (cached_has_bits & 0x00000080u) { |
6397 | 0 | mutable_noactionregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.noactionregion()); |
6398 | 0 | } |
6399 | 0 | } |
6400 | 0 | if (cached_has_bits & 65280u) { |
6401 | 0 | if (cached_has_bits & 0x00000100u) { |
6402 | 0 | mutable_hpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.hpanregion()); |
6403 | 0 | } |
6404 | 0 | if (cached_has_bits & 0x00000200u) { |
6405 | 0 | mutable_vpanregion()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.vpanregion()); |
6406 | 0 | } |
6407 | 0 | if (cached_has_bits & 0x00000400u) { |
6408 | 0 | mutable_valid()->::mozilla::layers::layerscope::LayersPacket_Layer_Region::MergeFrom(from.valid()); |
6409 | 0 | } |
6410 | 0 | if (cached_has_bits & 0x00000800u) { |
6411 | 0 | mutable_size()->::mozilla::layers::layerscope::LayersPacket_Layer_Size::MergeFrom(from.size()); |
6412 | 0 | } |
6413 | 0 | if (cached_has_bits & 0x00001000u) { |
6414 | 0 | ptr_ = from.ptr_; |
6415 | 0 | } |
6416 | 0 | if (cached_has_bits & 0x00002000u) { |
6417 | 0 | parentptr_ = from.parentptr_; |
6418 | 0 | } |
6419 | 0 | if (cached_has_bits & 0x00004000u) { |
6420 | 0 | type_ = from.type_; |
6421 | 0 | } |
6422 | 0 | if (cached_has_bits & 0x00008000u) { |
6423 | 0 | opacity_ = from.opacity_; |
6424 | 0 | } |
6425 | 0 | _has_bits_[0] |= cached_has_bits; |
6426 | 0 | } |
6427 | 0 | if (cached_has_bits & 16711680u) { |
6428 | 0 | if (cached_has_bits & 0x00010000u) { |
6429 | 0 | barid_ = from.barid_; |
6430 | 0 | } |
6431 | 0 | if (cached_has_bits & 0x00020000u) { |
6432 | 0 | mask_ = from.mask_; |
6433 | 0 | } |
6434 | 0 | if (cached_has_bits & 0x00040000u) { |
6435 | 0 | copaque_ = from.copaque_; |
6436 | 0 | } |
6437 | 0 | if (cached_has_bits & 0x00080000u) { |
6438 | 0 | calpha_ = from.calpha_; |
6439 | 0 | } |
6440 | 0 | if (cached_has_bits & 0x00100000u) { |
6441 | 0 | color_ = from.color_; |
6442 | 0 | } |
6443 | 0 | if (cached_has_bits & 0x00200000u) { |
6444 | 0 | refid_ = from.refid_; |
6445 | 0 | } |
6446 | 0 | if (cached_has_bits & 0x00400000u) { |
6447 | 0 | filter_ = from.filter_; |
6448 | 0 | } |
6449 | 0 | if (cached_has_bits & 0x00800000u) { |
6450 | 0 | displaylistloglength_ = from.displaylistloglength_; |
6451 | 0 | } |
6452 | 0 | _has_bits_[0] |= cached_has_bits; |
6453 | 0 | } |
6454 | 0 | if (cached_has_bits & 0x01000000u) { |
6455 | 0 | set_direct(from.direct()); |
6456 | 0 | } |
6457 | 0 | } |
6458 | | |
6459 | 0 | void LayersPacket_Layer::CopyFrom(const LayersPacket_Layer& from) { |
6460 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket.Layer) |
6461 | 0 | if (&from == this) return; |
6462 | 0 | Clear(); |
6463 | 0 | MergeFrom(from); |
6464 | 0 | } |
6465 | | |
6466 | 0 | bool LayersPacket_Layer::IsInitialized() const { |
6467 | 0 | if ((_has_bits_[0] & 0x00007000) != 0x00007000) return false; |
6468 | 0 | return true; |
6469 | 0 | } |
6470 | | |
6471 | 0 | void LayersPacket_Layer::Swap(LayersPacket_Layer* other) { |
6472 | 0 | if (other == this) return; |
6473 | 0 | InternalSwap(other); |
6474 | 0 | } |
6475 | 0 | void LayersPacket_Layer::InternalSwap(LayersPacket_Layer* other) { |
6476 | 0 | using std::swap; |
6477 | 0 | displaylistlog_.Swap(&other->displaylistlog_); |
6478 | 0 | swap(clip_, other->clip_); |
6479 | 0 | swap(transform_, other->transform_); |
6480 | 0 | swap(vregion_, other->vregion_); |
6481 | 0 | swap(shadow_, other->shadow_); |
6482 | 0 | swap(hitregion_, other->hitregion_); |
6483 | 0 | swap(dispatchregion_, other->dispatchregion_); |
6484 | 0 | swap(noactionregion_, other->noactionregion_); |
6485 | 0 | swap(hpanregion_, other->hpanregion_); |
6486 | 0 | swap(vpanregion_, other->vpanregion_); |
6487 | 0 | swap(valid_, other->valid_); |
6488 | 0 | swap(size_, other->size_); |
6489 | 0 | swap(ptr_, other->ptr_); |
6490 | 0 | swap(parentptr_, other->parentptr_); |
6491 | 0 | swap(type_, other->type_); |
6492 | 0 | swap(opacity_, other->opacity_); |
6493 | 0 | swap(barid_, other->barid_); |
6494 | 0 | swap(mask_, other->mask_); |
6495 | 0 | swap(copaque_, other->copaque_); |
6496 | 0 | swap(calpha_, other->calpha_); |
6497 | 0 | swap(color_, other->color_); |
6498 | 0 | swap(refid_, other->refid_); |
6499 | 0 | swap(filter_, other->filter_); |
6500 | 0 | swap(displaylistloglength_, other->displaylistloglength_); |
6501 | 0 | swap(direct_, other->direct_); |
6502 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
6503 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
6504 | 0 | swap(_cached_size_, other->_cached_size_); |
6505 | 0 | } |
6506 | | |
6507 | 0 | ::std::string LayersPacket_Layer::GetTypeName() const { |
6508 | 0 | return "mozilla.layers.layerscope.LayersPacket.Layer"; |
6509 | 0 | } |
6510 | | |
6511 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
6512 | | // LayersPacket_Layer |
6513 | | |
6514 | | // required .mozilla.layers.layerscope.LayersPacket.Layer.LayerType type = 1; |
6515 | | bool LayersPacket_Layer::has_type() const { |
6516 | | return (_has_bits_[0] & 0x00004000u) != 0; |
6517 | | } |
6518 | | void LayersPacket_Layer::set_has_type() { |
6519 | | _has_bits_[0] |= 0x00004000u; |
6520 | | } |
6521 | | void LayersPacket_Layer::clear_has_type() { |
6522 | | _has_bits_[0] &= ~0x00004000u; |
6523 | | } |
6524 | | void LayersPacket_Layer::clear_type() { |
6525 | | type_ = 0; |
6526 | | clear_has_type(); |
6527 | | } |
6528 | | ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType LayersPacket_Layer::type() const { |
6529 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.type) |
6530 | | return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_LayerType >(type_); |
6531 | | } |
6532 | | void LayersPacket_Layer::set_type(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType value) { |
6533 | | assert(::mozilla::layers::layerscope::LayersPacket_Layer_LayerType_IsValid(value)); |
6534 | | set_has_type(); |
6535 | | type_ = value; |
6536 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.type) |
6537 | | } |
6538 | | |
6539 | | // required uint64 ptr = 2; |
6540 | | bool LayersPacket_Layer::has_ptr() const { |
6541 | | return (_has_bits_[0] & 0x00001000u) != 0; |
6542 | | } |
6543 | | void LayersPacket_Layer::set_has_ptr() { |
6544 | | _has_bits_[0] |= 0x00001000u; |
6545 | | } |
6546 | | void LayersPacket_Layer::clear_has_ptr() { |
6547 | | _has_bits_[0] &= ~0x00001000u; |
6548 | | } |
6549 | | void LayersPacket_Layer::clear_ptr() { |
6550 | | ptr_ = GOOGLE_ULONGLONG(0); |
6551 | | clear_has_ptr(); |
6552 | | } |
6553 | | ::google::protobuf::uint64 LayersPacket_Layer::ptr() const { |
6554 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.ptr) |
6555 | | return ptr_; |
6556 | | } |
6557 | | void LayersPacket_Layer::set_ptr(::google::protobuf::uint64 value) { |
6558 | | set_has_ptr(); |
6559 | | ptr_ = value; |
6560 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.ptr) |
6561 | | } |
6562 | | |
6563 | | // required uint64 parentPtr = 3; |
6564 | | bool LayersPacket_Layer::has_parentptr() const { |
6565 | | return (_has_bits_[0] & 0x00002000u) != 0; |
6566 | | } |
6567 | | void LayersPacket_Layer::set_has_parentptr() { |
6568 | | _has_bits_[0] |= 0x00002000u; |
6569 | | } |
6570 | | void LayersPacket_Layer::clear_has_parentptr() { |
6571 | | _has_bits_[0] &= ~0x00002000u; |
6572 | | } |
6573 | | void LayersPacket_Layer::clear_parentptr() { |
6574 | | parentptr_ = GOOGLE_ULONGLONG(0); |
6575 | | clear_has_parentptr(); |
6576 | | } |
6577 | | ::google::protobuf::uint64 LayersPacket_Layer::parentptr() const { |
6578 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr) |
6579 | | return parentptr_; |
6580 | | } |
6581 | | void LayersPacket_Layer::set_parentptr(::google::protobuf::uint64 value) { |
6582 | | set_has_parentptr(); |
6583 | | parentptr_ = value; |
6584 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.parentPtr) |
6585 | | } |
6586 | | |
6587 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Rect clip = 10; |
6588 | | bool LayersPacket_Layer::has_clip() const { |
6589 | | return (_has_bits_[0] & 0x00000002u) != 0; |
6590 | | } |
6591 | | void LayersPacket_Layer::set_has_clip() { |
6592 | | _has_bits_[0] |= 0x00000002u; |
6593 | | } |
6594 | | void LayersPacket_Layer::clear_has_clip() { |
6595 | | _has_bits_[0] &= ~0x00000002u; |
6596 | | } |
6597 | | void LayersPacket_Layer::clear_clip() { |
6598 | | if (clip_ != NULL) clip_->::mozilla::layers::layerscope::LayersPacket_Layer_Rect::Clear(); |
6599 | | clear_has_clip(); |
6600 | | } |
6601 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect& LayersPacket_Layer::clip() const { |
6602 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* p = clip_; |
6603 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.clip) |
6604 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Rect*>( |
6605 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Rect_default_instance_); |
6606 | | } |
6607 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::mutable_clip() { |
6608 | | set_has_clip(); |
6609 | | if (clip_ == NULL) { |
6610 | | clip_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Rect; |
6611 | | } |
6612 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.clip) |
6613 | | return clip_; |
6614 | | } |
6615 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* LayersPacket_Layer::release_clip() { |
6616 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.clip) |
6617 | | clear_has_clip(); |
6618 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Rect* temp = clip_; |
6619 | | clip_ = NULL; |
6620 | | return temp; |
6621 | | } |
6622 | | void LayersPacket_Layer::set_allocated_clip(::mozilla::layers::layerscope::LayersPacket_Layer_Rect* clip) { |
6623 | | delete clip_; |
6624 | | clip_ = clip; |
6625 | | if (clip) { |
6626 | | set_has_clip(); |
6627 | | } else { |
6628 | | clear_has_clip(); |
6629 | | } |
6630 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.clip) |
6631 | | } |
6632 | | |
6633 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Matrix transform = 11; |
6634 | | bool LayersPacket_Layer::has_transform() const { |
6635 | | return (_has_bits_[0] & 0x00000004u) != 0; |
6636 | | } |
6637 | | void LayersPacket_Layer::set_has_transform() { |
6638 | | _has_bits_[0] |= 0x00000004u; |
6639 | | } |
6640 | | void LayersPacket_Layer::clear_has_transform() { |
6641 | | _has_bits_[0] &= ~0x00000004u; |
6642 | | } |
6643 | | void LayersPacket_Layer::clear_transform() { |
6644 | | if (transform_ != NULL) transform_->::mozilla::layers::layerscope::LayersPacket_Layer_Matrix::Clear(); |
6645 | | clear_has_transform(); |
6646 | | } |
6647 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix& LayersPacket_Layer::transform() const { |
6648 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* p = transform_; |
6649 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.transform) |
6650 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix*>( |
6651 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Matrix_default_instance_); |
6652 | | } |
6653 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::mutable_transform() { |
6654 | | set_has_transform(); |
6655 | | if (transform_ == NULL) { |
6656 | | transform_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix; |
6657 | | } |
6658 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.transform) |
6659 | | return transform_; |
6660 | | } |
6661 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* LayersPacket_Layer::release_transform() { |
6662 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.transform) |
6663 | | clear_has_transform(); |
6664 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* temp = transform_; |
6665 | | transform_ = NULL; |
6666 | | return temp; |
6667 | | } |
6668 | | void LayersPacket_Layer::set_allocated_transform(::mozilla::layers::layerscope::LayersPacket_Layer_Matrix* transform) { |
6669 | | delete transform_; |
6670 | | transform_ = transform; |
6671 | | if (transform) { |
6672 | | set_has_transform(); |
6673 | | } else { |
6674 | | clear_has_transform(); |
6675 | | } |
6676 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.transform) |
6677 | | } |
6678 | | |
6679 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vRegion = 12; |
6680 | | bool LayersPacket_Layer::has_vregion() const { |
6681 | | return (_has_bits_[0] & 0x00000008u) != 0; |
6682 | | } |
6683 | | void LayersPacket_Layer::set_has_vregion() { |
6684 | | _has_bits_[0] |= 0x00000008u; |
6685 | | } |
6686 | | void LayersPacket_Layer::clear_has_vregion() { |
6687 | | _has_bits_[0] &= ~0x00000008u; |
6688 | | } |
6689 | | void LayersPacket_Layer::clear_vregion() { |
6690 | | if (vregion_ != NULL) vregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
6691 | | clear_has_vregion(); |
6692 | | } |
6693 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vregion() const { |
6694 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vregion_; |
6695 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vRegion) |
6696 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
6697 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
6698 | | } |
6699 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vregion() { |
6700 | | set_has_vregion(); |
6701 | | if (vregion_ == NULL) { |
6702 | | vregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
6703 | | } |
6704 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vRegion) |
6705 | | return vregion_; |
6706 | | } |
6707 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vregion() { |
6708 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vRegion) |
6709 | | clear_has_vregion(); |
6710 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vregion_; |
6711 | | vregion_ = NULL; |
6712 | | return temp; |
6713 | | } |
6714 | | void LayersPacket_Layer::set_allocated_vregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vregion) { |
6715 | | delete vregion_; |
6716 | | vregion_ = vregion; |
6717 | | if (vregion) { |
6718 | | set_has_vregion(); |
6719 | | } else { |
6720 | | clear_has_vregion(); |
6721 | | } |
6722 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vRegion) |
6723 | | } |
6724 | | |
6725 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Shadow shadow = 13; |
6726 | | bool LayersPacket_Layer::has_shadow() const { |
6727 | | return (_has_bits_[0] & 0x00000010u) != 0; |
6728 | | } |
6729 | | void LayersPacket_Layer::set_has_shadow() { |
6730 | | _has_bits_[0] |= 0x00000010u; |
6731 | | } |
6732 | | void LayersPacket_Layer::clear_has_shadow() { |
6733 | | _has_bits_[0] &= ~0x00000010u; |
6734 | | } |
6735 | | void LayersPacket_Layer::clear_shadow() { |
6736 | | if (shadow_ != NULL) shadow_->::mozilla::layers::layerscope::LayersPacket_Layer_Shadow::Clear(); |
6737 | | clear_has_shadow(); |
6738 | | } |
6739 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow& LayersPacket_Layer::shadow() const { |
6740 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* p = shadow_; |
6741 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.shadow) |
6742 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow*>( |
6743 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Shadow_default_instance_); |
6744 | | } |
6745 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::mutable_shadow() { |
6746 | | set_has_shadow(); |
6747 | | if (shadow_ == NULL) { |
6748 | | shadow_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow; |
6749 | | } |
6750 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.shadow) |
6751 | | return shadow_; |
6752 | | } |
6753 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* LayersPacket_Layer::release_shadow() { |
6754 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.shadow) |
6755 | | clear_has_shadow(); |
6756 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* temp = shadow_; |
6757 | | shadow_ = NULL; |
6758 | | return temp; |
6759 | | } |
6760 | | void LayersPacket_Layer::set_allocated_shadow(::mozilla::layers::layerscope::LayersPacket_Layer_Shadow* shadow) { |
6761 | | delete shadow_; |
6762 | | shadow_ = shadow; |
6763 | | if (shadow) { |
6764 | | set_has_shadow(); |
6765 | | } else { |
6766 | | clear_has_shadow(); |
6767 | | } |
6768 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.shadow) |
6769 | | } |
6770 | | |
6771 | | // optional float opacity = 14; |
6772 | | bool LayersPacket_Layer::has_opacity() const { |
6773 | | return (_has_bits_[0] & 0x00008000u) != 0; |
6774 | | } |
6775 | | void LayersPacket_Layer::set_has_opacity() { |
6776 | | _has_bits_[0] |= 0x00008000u; |
6777 | | } |
6778 | | void LayersPacket_Layer::clear_has_opacity() { |
6779 | | _has_bits_[0] &= ~0x00008000u; |
6780 | | } |
6781 | | void LayersPacket_Layer::clear_opacity() { |
6782 | | opacity_ = 0; |
6783 | | clear_has_opacity(); |
6784 | | } |
6785 | | float LayersPacket_Layer::opacity() const { |
6786 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.opacity) |
6787 | | return opacity_; |
6788 | | } |
6789 | | void LayersPacket_Layer::set_opacity(float value) { |
6790 | | set_has_opacity(); |
6791 | | opacity_ = value; |
6792 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.opacity) |
6793 | | } |
6794 | | |
6795 | | // optional bool cOpaque = 15; |
6796 | | bool LayersPacket_Layer::has_copaque() const { |
6797 | | return (_has_bits_[0] & 0x00040000u) != 0; |
6798 | | } |
6799 | | void LayersPacket_Layer::set_has_copaque() { |
6800 | | _has_bits_[0] |= 0x00040000u; |
6801 | | } |
6802 | | void LayersPacket_Layer::clear_has_copaque() { |
6803 | | _has_bits_[0] &= ~0x00040000u; |
6804 | | } |
6805 | | void LayersPacket_Layer::clear_copaque() { |
6806 | | copaque_ = false; |
6807 | | clear_has_copaque(); |
6808 | | } |
6809 | | bool LayersPacket_Layer::copaque() const { |
6810 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque) |
6811 | | return copaque_; |
6812 | | } |
6813 | | void LayersPacket_Layer::set_copaque(bool value) { |
6814 | | set_has_copaque(); |
6815 | | copaque_ = value; |
6816 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cOpaque) |
6817 | | } |
6818 | | |
6819 | | // optional bool cAlpha = 16; |
6820 | | bool LayersPacket_Layer::has_calpha() const { |
6821 | | return (_has_bits_[0] & 0x00080000u) != 0; |
6822 | | } |
6823 | | void LayersPacket_Layer::set_has_calpha() { |
6824 | | _has_bits_[0] |= 0x00080000u; |
6825 | | } |
6826 | | void LayersPacket_Layer::clear_has_calpha() { |
6827 | | _has_bits_[0] &= ~0x00080000u; |
6828 | | } |
6829 | | void LayersPacket_Layer::clear_calpha() { |
6830 | | calpha_ = false; |
6831 | | clear_has_calpha(); |
6832 | | } |
6833 | | bool LayersPacket_Layer::calpha() const { |
6834 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha) |
6835 | | return calpha_; |
6836 | | } |
6837 | | void LayersPacket_Layer::set_calpha(bool value) { |
6838 | | set_has_calpha(); |
6839 | | calpha_ = value; |
6840 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.cAlpha) |
6841 | | } |
6842 | | |
6843 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.ScrollingDirect direct = 17; |
6844 | | bool LayersPacket_Layer::has_direct() const { |
6845 | | return (_has_bits_[0] & 0x01000000u) != 0; |
6846 | | } |
6847 | | void LayersPacket_Layer::set_has_direct() { |
6848 | | _has_bits_[0] |= 0x01000000u; |
6849 | | } |
6850 | | void LayersPacket_Layer::clear_has_direct() { |
6851 | | _has_bits_[0] &= ~0x01000000u; |
6852 | | } |
6853 | | void LayersPacket_Layer::clear_direct() { |
6854 | | direct_ = 1; |
6855 | | clear_has_direct(); |
6856 | | } |
6857 | | ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect LayersPacket_Layer::direct() const { |
6858 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.direct) |
6859 | | return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect >(direct_); |
6860 | | } |
6861 | | void LayersPacket_Layer::set_direct(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect value) { |
6862 | | assert(::mozilla::layers::layerscope::LayersPacket_Layer_ScrollingDirect_IsValid(value)); |
6863 | | set_has_direct(); |
6864 | | direct_ = value; |
6865 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.direct) |
6866 | | } |
6867 | | |
6868 | | // optional uint64 barID = 18; |
6869 | | bool LayersPacket_Layer::has_barid() const { |
6870 | | return (_has_bits_[0] & 0x00010000u) != 0; |
6871 | | } |
6872 | | void LayersPacket_Layer::set_has_barid() { |
6873 | | _has_bits_[0] |= 0x00010000u; |
6874 | | } |
6875 | | void LayersPacket_Layer::clear_has_barid() { |
6876 | | _has_bits_[0] &= ~0x00010000u; |
6877 | | } |
6878 | | void LayersPacket_Layer::clear_barid() { |
6879 | | barid_ = GOOGLE_ULONGLONG(0); |
6880 | | clear_has_barid(); |
6881 | | } |
6882 | | ::google::protobuf::uint64 LayersPacket_Layer::barid() const { |
6883 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.barID) |
6884 | | return barid_; |
6885 | | } |
6886 | | void LayersPacket_Layer::set_barid(::google::protobuf::uint64 value) { |
6887 | | set_has_barid(); |
6888 | | barid_ = value; |
6889 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.barID) |
6890 | | } |
6891 | | |
6892 | | // optional uint64 mask = 19; |
6893 | | bool LayersPacket_Layer::has_mask() const { |
6894 | | return (_has_bits_[0] & 0x00020000u) != 0; |
6895 | | } |
6896 | | void LayersPacket_Layer::set_has_mask() { |
6897 | | _has_bits_[0] |= 0x00020000u; |
6898 | | } |
6899 | | void LayersPacket_Layer::clear_has_mask() { |
6900 | | _has_bits_[0] &= ~0x00020000u; |
6901 | | } |
6902 | | void LayersPacket_Layer::clear_mask() { |
6903 | | mask_ = GOOGLE_ULONGLONG(0); |
6904 | | clear_has_mask(); |
6905 | | } |
6906 | | ::google::protobuf::uint64 LayersPacket_Layer::mask() const { |
6907 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.mask) |
6908 | | return mask_; |
6909 | | } |
6910 | | void LayersPacket_Layer::set_mask(::google::protobuf::uint64 value) { |
6911 | | set_has_mask(); |
6912 | | mask_ = value; |
6913 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.mask) |
6914 | | } |
6915 | | |
6916 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hitRegion = 20; |
6917 | | bool LayersPacket_Layer::has_hitregion() const { |
6918 | | return (_has_bits_[0] & 0x00000020u) != 0; |
6919 | | } |
6920 | | void LayersPacket_Layer::set_has_hitregion() { |
6921 | | _has_bits_[0] |= 0x00000020u; |
6922 | | } |
6923 | | void LayersPacket_Layer::clear_has_hitregion() { |
6924 | | _has_bits_[0] &= ~0x00000020u; |
6925 | | } |
6926 | | void LayersPacket_Layer::clear_hitregion() { |
6927 | | if (hitregion_ != NULL) hitregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
6928 | | clear_has_hitregion(); |
6929 | | } |
6930 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hitregion() const { |
6931 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hitregion_; |
6932 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion) |
6933 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
6934 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
6935 | | } |
6936 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hitregion() { |
6937 | | set_has_hitregion(); |
6938 | | if (hitregion_ == NULL) { |
6939 | | hitregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
6940 | | } |
6941 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion) |
6942 | | return hitregion_; |
6943 | | } |
6944 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hitregion() { |
6945 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion) |
6946 | | clear_has_hitregion(); |
6947 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hitregion_; |
6948 | | hitregion_ = NULL; |
6949 | | return temp; |
6950 | | } |
6951 | | void LayersPacket_Layer::set_allocated_hitregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hitregion) { |
6952 | | delete hitregion_; |
6953 | | hitregion_ = hitregion; |
6954 | | if (hitregion) { |
6955 | | set_has_hitregion(); |
6956 | | } else { |
6957 | | clear_has_hitregion(); |
6958 | | } |
6959 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hitRegion) |
6960 | | } |
6961 | | |
6962 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region dispatchRegion = 21; |
6963 | | bool LayersPacket_Layer::has_dispatchregion() const { |
6964 | | return (_has_bits_[0] & 0x00000040u) != 0; |
6965 | | } |
6966 | | void LayersPacket_Layer::set_has_dispatchregion() { |
6967 | | _has_bits_[0] |= 0x00000040u; |
6968 | | } |
6969 | | void LayersPacket_Layer::clear_has_dispatchregion() { |
6970 | | _has_bits_[0] &= ~0x00000040u; |
6971 | | } |
6972 | | void LayersPacket_Layer::clear_dispatchregion() { |
6973 | | if (dispatchregion_ != NULL) dispatchregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
6974 | | clear_has_dispatchregion(); |
6975 | | } |
6976 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::dispatchregion() const { |
6977 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = dispatchregion_; |
6978 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion) |
6979 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
6980 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
6981 | | } |
6982 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_dispatchregion() { |
6983 | | set_has_dispatchregion(); |
6984 | | if (dispatchregion_ == NULL) { |
6985 | | dispatchregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
6986 | | } |
6987 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion) |
6988 | | return dispatchregion_; |
6989 | | } |
6990 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_dispatchregion() { |
6991 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion) |
6992 | | clear_has_dispatchregion(); |
6993 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = dispatchregion_; |
6994 | | dispatchregion_ = NULL; |
6995 | | return temp; |
6996 | | } |
6997 | | void LayersPacket_Layer::set_allocated_dispatchregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* dispatchregion) { |
6998 | | delete dispatchregion_; |
6999 | | dispatchregion_ = dispatchregion; |
7000 | | if (dispatchregion) { |
7001 | | set_has_dispatchregion(); |
7002 | | } else { |
7003 | | clear_has_dispatchregion(); |
7004 | | } |
7005 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.dispatchRegion) |
7006 | | } |
7007 | | |
7008 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region noActionRegion = 22; |
7009 | | bool LayersPacket_Layer::has_noactionregion() const { |
7010 | | return (_has_bits_[0] & 0x00000080u) != 0; |
7011 | | } |
7012 | | void LayersPacket_Layer::set_has_noactionregion() { |
7013 | | _has_bits_[0] |= 0x00000080u; |
7014 | | } |
7015 | | void LayersPacket_Layer::clear_has_noactionregion() { |
7016 | | _has_bits_[0] &= ~0x00000080u; |
7017 | | } |
7018 | | void LayersPacket_Layer::clear_noactionregion() { |
7019 | | if (noactionregion_ != NULL) noactionregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
7020 | | clear_has_noactionregion(); |
7021 | | } |
7022 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::noactionregion() const { |
7023 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = noactionregion_; |
7024 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion) |
7025 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
7026 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
7027 | | } |
7028 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_noactionregion() { |
7029 | | set_has_noactionregion(); |
7030 | | if (noactionregion_ == NULL) { |
7031 | | noactionregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
7032 | | } |
7033 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion) |
7034 | | return noactionregion_; |
7035 | | } |
7036 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_noactionregion() { |
7037 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion) |
7038 | | clear_has_noactionregion(); |
7039 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = noactionregion_; |
7040 | | noactionregion_ = NULL; |
7041 | | return temp; |
7042 | | } |
7043 | | void LayersPacket_Layer::set_allocated_noactionregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* noactionregion) { |
7044 | | delete noactionregion_; |
7045 | | noactionregion_ = noactionregion; |
7046 | | if (noactionregion) { |
7047 | | set_has_noactionregion(); |
7048 | | } else { |
7049 | | clear_has_noactionregion(); |
7050 | | } |
7051 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.noActionRegion) |
7052 | | } |
7053 | | |
7054 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region hPanRegion = 23; |
7055 | | bool LayersPacket_Layer::has_hpanregion() const { |
7056 | | return (_has_bits_[0] & 0x00000100u) != 0; |
7057 | | } |
7058 | | void LayersPacket_Layer::set_has_hpanregion() { |
7059 | | _has_bits_[0] |= 0x00000100u; |
7060 | | } |
7061 | | void LayersPacket_Layer::clear_has_hpanregion() { |
7062 | | _has_bits_[0] &= ~0x00000100u; |
7063 | | } |
7064 | | void LayersPacket_Layer::clear_hpanregion() { |
7065 | | if (hpanregion_ != NULL) hpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
7066 | | clear_has_hpanregion(); |
7067 | | } |
7068 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::hpanregion() const { |
7069 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = hpanregion_; |
7070 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion) |
7071 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
7072 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
7073 | | } |
7074 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_hpanregion() { |
7075 | | set_has_hpanregion(); |
7076 | | if (hpanregion_ == NULL) { |
7077 | | hpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
7078 | | } |
7079 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion) |
7080 | | return hpanregion_; |
7081 | | } |
7082 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_hpanregion() { |
7083 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion) |
7084 | | clear_has_hpanregion(); |
7085 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = hpanregion_; |
7086 | | hpanregion_ = NULL; |
7087 | | return temp; |
7088 | | } |
7089 | | void LayersPacket_Layer::set_allocated_hpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* hpanregion) { |
7090 | | delete hpanregion_; |
7091 | | hpanregion_ = hpanregion; |
7092 | | if (hpanregion) { |
7093 | | set_has_hpanregion(); |
7094 | | } else { |
7095 | | clear_has_hpanregion(); |
7096 | | } |
7097 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.hPanRegion) |
7098 | | } |
7099 | | |
7100 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region vPanRegion = 24; |
7101 | | bool LayersPacket_Layer::has_vpanregion() const { |
7102 | | return (_has_bits_[0] & 0x00000200u) != 0; |
7103 | | } |
7104 | | void LayersPacket_Layer::set_has_vpanregion() { |
7105 | | _has_bits_[0] |= 0x00000200u; |
7106 | | } |
7107 | | void LayersPacket_Layer::clear_has_vpanregion() { |
7108 | | _has_bits_[0] &= ~0x00000200u; |
7109 | | } |
7110 | | void LayersPacket_Layer::clear_vpanregion() { |
7111 | | if (vpanregion_ != NULL) vpanregion_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
7112 | | clear_has_vpanregion(); |
7113 | | } |
7114 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::vpanregion() const { |
7115 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = vpanregion_; |
7116 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion) |
7117 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
7118 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
7119 | | } |
7120 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_vpanregion() { |
7121 | | set_has_vpanregion(); |
7122 | | if (vpanregion_ == NULL) { |
7123 | | vpanregion_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
7124 | | } |
7125 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion) |
7126 | | return vpanregion_; |
7127 | | } |
7128 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_vpanregion() { |
7129 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion) |
7130 | | clear_has_vpanregion(); |
7131 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = vpanregion_; |
7132 | | vpanregion_ = NULL; |
7133 | | return temp; |
7134 | | } |
7135 | | void LayersPacket_Layer::set_allocated_vpanregion(::mozilla::layers::layerscope::LayersPacket_Layer_Region* vpanregion) { |
7136 | | delete vpanregion_; |
7137 | | vpanregion_ = vpanregion; |
7138 | | if (vpanregion) { |
7139 | | set_has_vpanregion(); |
7140 | | } else { |
7141 | | clear_has_vpanregion(); |
7142 | | } |
7143 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.vPanRegion) |
7144 | | } |
7145 | | |
7146 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Region valid = 100; |
7147 | | bool LayersPacket_Layer::has_valid() const { |
7148 | | return (_has_bits_[0] & 0x00000400u) != 0; |
7149 | | } |
7150 | | void LayersPacket_Layer::set_has_valid() { |
7151 | | _has_bits_[0] |= 0x00000400u; |
7152 | | } |
7153 | | void LayersPacket_Layer::clear_has_valid() { |
7154 | | _has_bits_[0] &= ~0x00000400u; |
7155 | | } |
7156 | | void LayersPacket_Layer::clear_valid() { |
7157 | | if (valid_ != NULL) valid_->::mozilla::layers::layerscope::LayersPacket_Layer_Region::Clear(); |
7158 | | clear_has_valid(); |
7159 | | } |
7160 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region& LayersPacket_Layer::valid() const { |
7161 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Region* p = valid_; |
7162 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.valid) |
7163 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Region*>( |
7164 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Region_default_instance_); |
7165 | | } |
7166 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::mutable_valid() { |
7167 | | set_has_valid(); |
7168 | | if (valid_ == NULL) { |
7169 | | valid_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Region; |
7170 | | } |
7171 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.valid) |
7172 | | return valid_; |
7173 | | } |
7174 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* LayersPacket_Layer::release_valid() { |
7175 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.valid) |
7176 | | clear_has_valid(); |
7177 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Region* temp = valid_; |
7178 | | valid_ = NULL; |
7179 | | return temp; |
7180 | | } |
7181 | | void LayersPacket_Layer::set_allocated_valid(::mozilla::layers::layerscope::LayersPacket_Layer_Region* valid) { |
7182 | | delete valid_; |
7183 | | valid_ = valid; |
7184 | | if (valid) { |
7185 | | set_has_valid(); |
7186 | | } else { |
7187 | | clear_has_valid(); |
7188 | | } |
7189 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.valid) |
7190 | | } |
7191 | | |
7192 | | // optional uint32 color = 101; |
7193 | | bool LayersPacket_Layer::has_color() const { |
7194 | | return (_has_bits_[0] & 0x00100000u) != 0; |
7195 | | } |
7196 | | void LayersPacket_Layer::set_has_color() { |
7197 | | _has_bits_[0] |= 0x00100000u; |
7198 | | } |
7199 | | void LayersPacket_Layer::clear_has_color() { |
7200 | | _has_bits_[0] &= ~0x00100000u; |
7201 | | } |
7202 | | void LayersPacket_Layer::clear_color() { |
7203 | | color_ = 0u; |
7204 | | clear_has_color(); |
7205 | | } |
7206 | | ::google::protobuf::uint32 LayersPacket_Layer::color() const { |
7207 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.color) |
7208 | | return color_; |
7209 | | } |
7210 | | void LayersPacket_Layer::set_color(::google::protobuf::uint32 value) { |
7211 | | set_has_color(); |
7212 | | color_ = value; |
7213 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.color) |
7214 | | } |
7215 | | |
7216 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Filter filter = 102; |
7217 | | bool LayersPacket_Layer::has_filter() const { |
7218 | | return (_has_bits_[0] & 0x00400000u) != 0; |
7219 | | } |
7220 | | void LayersPacket_Layer::set_has_filter() { |
7221 | | _has_bits_[0] |= 0x00400000u; |
7222 | | } |
7223 | | void LayersPacket_Layer::clear_has_filter() { |
7224 | | _has_bits_[0] &= ~0x00400000u; |
7225 | | } |
7226 | | void LayersPacket_Layer::clear_filter() { |
7227 | | filter_ = 0; |
7228 | | clear_has_filter(); |
7229 | | } |
7230 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Filter LayersPacket_Layer::filter() const { |
7231 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.filter) |
7232 | | return static_cast< ::mozilla::layers::layerscope::LayersPacket_Layer_Filter >(filter_); |
7233 | | } |
7234 | | void LayersPacket_Layer::set_filter(::mozilla::layers::layerscope::LayersPacket_Layer_Filter value) { |
7235 | | assert(::mozilla::layers::layerscope::LayersPacket_Layer_Filter_IsValid(value)); |
7236 | | set_has_filter(); |
7237 | | filter_ = value; |
7238 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.filter) |
7239 | | } |
7240 | | |
7241 | | // optional uint64 refID = 103; |
7242 | | bool LayersPacket_Layer::has_refid() const { |
7243 | | return (_has_bits_[0] & 0x00200000u) != 0; |
7244 | | } |
7245 | | void LayersPacket_Layer::set_has_refid() { |
7246 | | _has_bits_[0] |= 0x00200000u; |
7247 | | } |
7248 | | void LayersPacket_Layer::clear_has_refid() { |
7249 | | _has_bits_[0] &= ~0x00200000u; |
7250 | | } |
7251 | | void LayersPacket_Layer::clear_refid() { |
7252 | | refid_ = GOOGLE_ULONGLONG(0); |
7253 | | clear_has_refid(); |
7254 | | } |
7255 | | ::google::protobuf::uint64 LayersPacket_Layer::refid() const { |
7256 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.refID) |
7257 | | return refid_; |
7258 | | } |
7259 | | void LayersPacket_Layer::set_refid(::google::protobuf::uint64 value) { |
7260 | | set_has_refid(); |
7261 | | refid_ = value; |
7262 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.refID) |
7263 | | } |
7264 | | |
7265 | | // optional .mozilla.layers.layerscope.LayersPacket.Layer.Size size = 104; |
7266 | | bool LayersPacket_Layer::has_size() const { |
7267 | | return (_has_bits_[0] & 0x00000800u) != 0; |
7268 | | } |
7269 | | void LayersPacket_Layer::set_has_size() { |
7270 | | _has_bits_[0] |= 0x00000800u; |
7271 | | } |
7272 | | void LayersPacket_Layer::clear_has_size() { |
7273 | | _has_bits_[0] &= ~0x00000800u; |
7274 | | } |
7275 | | void LayersPacket_Layer::clear_size() { |
7276 | | if (size_ != NULL) size_->::mozilla::layers::layerscope::LayersPacket_Layer_Size::Clear(); |
7277 | | clear_has_size(); |
7278 | | } |
7279 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Size& LayersPacket_Layer::size() const { |
7280 | | const ::mozilla::layers::layerscope::LayersPacket_Layer_Size* p = size_; |
7281 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.size) |
7282 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket_Layer_Size*>( |
7283 | | &::mozilla::layers::layerscope::_LayersPacket_Layer_Size_default_instance_); |
7284 | | } |
7285 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::mutable_size() { |
7286 | | set_has_size(); |
7287 | | if (size_ == NULL) { |
7288 | | size_ = new ::mozilla::layers::layerscope::LayersPacket_Layer_Size; |
7289 | | } |
7290 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.size) |
7291 | | return size_; |
7292 | | } |
7293 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Size* LayersPacket_Layer::release_size() { |
7294 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.size) |
7295 | | clear_has_size(); |
7296 | | ::mozilla::layers::layerscope::LayersPacket_Layer_Size* temp = size_; |
7297 | | size_ = NULL; |
7298 | | return temp; |
7299 | | } |
7300 | | void LayersPacket_Layer::set_allocated_size(::mozilla::layers::layerscope::LayersPacket_Layer_Size* size) { |
7301 | | delete size_; |
7302 | | size_ = size; |
7303 | | if (size) { |
7304 | | set_has_size(); |
7305 | | } else { |
7306 | | clear_has_size(); |
7307 | | } |
7308 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.size) |
7309 | | } |
7310 | | |
7311 | | // optional uint32 displayListLogLength = 105; |
7312 | | bool LayersPacket_Layer::has_displaylistloglength() const { |
7313 | | return (_has_bits_[0] & 0x00800000u) != 0; |
7314 | | } |
7315 | | void LayersPacket_Layer::set_has_displaylistloglength() { |
7316 | | _has_bits_[0] |= 0x00800000u; |
7317 | | } |
7318 | | void LayersPacket_Layer::clear_has_displaylistloglength() { |
7319 | | _has_bits_[0] &= ~0x00800000u; |
7320 | | } |
7321 | | void LayersPacket_Layer::clear_displaylistloglength() { |
7322 | | displaylistloglength_ = 0u; |
7323 | | clear_has_displaylistloglength(); |
7324 | | } |
7325 | | ::google::protobuf::uint32 LayersPacket_Layer::displaylistloglength() const { |
7326 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength) |
7327 | | return displaylistloglength_; |
7328 | | } |
7329 | | void LayersPacket_Layer::set_displaylistloglength(::google::protobuf::uint32 value) { |
7330 | | set_has_displaylistloglength(); |
7331 | | displaylistloglength_ = value; |
7332 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLogLength) |
7333 | | } |
7334 | | |
7335 | | // optional bytes displayListLog = 106; |
7336 | | bool LayersPacket_Layer::has_displaylistlog() const { |
7337 | | return (_has_bits_[0] & 0x00000001u) != 0; |
7338 | | } |
7339 | | void LayersPacket_Layer::set_has_displaylistlog() { |
7340 | | _has_bits_[0] |= 0x00000001u; |
7341 | | } |
7342 | | void LayersPacket_Layer::clear_has_displaylistlog() { |
7343 | | _has_bits_[0] &= ~0x00000001u; |
7344 | | } |
7345 | | void LayersPacket_Layer::clear_displaylistlog() { |
7346 | | displaylistlog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7347 | | clear_has_displaylistlog(); |
7348 | | } |
7349 | | const ::std::string& LayersPacket_Layer::displaylistlog() const { |
7350 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7351 | | return displaylistlog_.GetNoArena(); |
7352 | | } |
7353 | | void LayersPacket_Layer::set_displaylistlog(const ::std::string& value) { |
7354 | | set_has_displaylistlog(); |
7355 | | displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
7356 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7357 | | } |
7358 | | #if LANG_CXX11 |
7359 | | void LayersPacket_Layer::set_displaylistlog(::std::string&& value) { |
7360 | | set_has_displaylistlog(); |
7361 | | displaylistlog_.SetNoArena( |
7362 | | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
7363 | | // @@protoc_insertion_point(field_set_rvalue:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7364 | | } |
7365 | | #endif |
7366 | | void LayersPacket_Layer::set_displaylistlog(const char* value) { |
7367 | | GOOGLE_DCHECK(value != NULL); |
7368 | | set_has_displaylistlog(); |
7369 | | displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
7370 | | // @@protoc_insertion_point(field_set_char:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7371 | | } |
7372 | | void LayersPacket_Layer::set_displaylistlog(const void* value, size_t size) { |
7373 | | set_has_displaylistlog(); |
7374 | | displaylistlog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7375 | | ::std::string(reinterpret_cast<const char*>(value), size)); |
7376 | | // @@protoc_insertion_point(field_set_pointer:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7377 | | } |
7378 | | ::std::string* LayersPacket_Layer::mutable_displaylistlog() { |
7379 | | set_has_displaylistlog(); |
7380 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7381 | | return displaylistlog_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7382 | | } |
7383 | | ::std::string* LayersPacket_Layer::release_displaylistlog() { |
7384 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7385 | | clear_has_displaylistlog(); |
7386 | | return displaylistlog_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
7387 | | } |
7388 | | void LayersPacket_Layer::set_allocated_displaylistlog(::std::string* displaylistlog) { |
7389 | | if (displaylistlog != NULL) { |
7390 | | set_has_displaylistlog(); |
7391 | | } else { |
7392 | | clear_has_displaylistlog(); |
7393 | | } |
7394 | | displaylistlog_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), displaylistlog); |
7395 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.LayersPacket.Layer.displayListLog) |
7396 | | } |
7397 | | |
7398 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
7399 | | |
7400 | | // =================================================================== |
7401 | | |
7402 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7403 | | const int LayersPacket::kLayerFieldNumber; |
7404 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7405 | | |
7406 | | LayersPacket::LayersPacket() |
7407 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
7408 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7409 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7410 | 0 | } |
7411 | 0 | SharedCtor(); |
7412 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.LayersPacket) |
7413 | 0 | } |
7414 | | LayersPacket::LayersPacket(const LayersPacket& from) |
7415 | | : ::google::protobuf::MessageLite(), |
7416 | | _internal_metadata_(NULL), |
7417 | | _has_bits_(from._has_bits_), |
7418 | | _cached_size_(0), |
7419 | 0 | layer_(from.layer_) { |
7420 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7421 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.LayersPacket) |
7422 | 0 | } |
7423 | | |
7424 | 0 | void LayersPacket::SharedCtor() { |
7425 | 0 | _cached_size_ = 0; |
7426 | 0 | } |
7427 | | |
7428 | 0 | LayersPacket::~LayersPacket() { |
7429 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.LayersPacket) |
7430 | 0 | SharedDtor(); |
7431 | 0 | } |
7432 | | |
7433 | 0 | void LayersPacket::SharedDtor() { |
7434 | 0 | } |
7435 | | |
7436 | 0 | void LayersPacket::SetCachedSize(int size) const { |
7437 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7438 | 0 | _cached_size_ = size; |
7439 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7440 | 0 | } |
7441 | 0 | const LayersPacket& LayersPacket::default_instance() { |
7442 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7443 | 0 | return *internal_default_instance(); |
7444 | 0 | } |
7445 | | |
7446 | 0 | LayersPacket* LayersPacket::New(::google::protobuf::Arena* arena) const { |
7447 | 0 | LayersPacket* n = new LayersPacket; |
7448 | 0 | if (arena != NULL) { |
7449 | 0 | arena->Own(n); |
7450 | 0 | } |
7451 | 0 | return n; |
7452 | 0 | } |
7453 | | |
7454 | 0 | void LayersPacket::Clear() { |
7455 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.LayersPacket) |
7456 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7457 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
7458 | 0 | (void) cached_has_bits; |
7459 | 0 |
|
7460 | 0 | layer_.Clear(); |
7461 | 0 | _has_bits_.Clear(); |
7462 | 0 | _internal_metadata_.Clear(); |
7463 | 0 | } |
7464 | | |
7465 | | bool LayersPacket::MergePartialFromCodedStream( |
7466 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7467 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7468 | 0 | ::google::protobuf::uint32 tag; |
7469 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
7470 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
7471 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
7472 | 0 | mutable_unknown_fields)); |
7473 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
7474 | 0 | &unknown_fields_string, false); |
7475 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.LayersPacket) |
7476 | 0 | for (;;) { |
7477 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7478 | 0 | tag = p.first; |
7479 | 0 | if (!p.second) goto handle_unusual; |
7480 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7481 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1; |
7482 | 0 | case 1: { |
7483 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7484 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
7485 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
7486 | 0 | input, add_layer())); |
7487 | 0 | } else { |
7488 | 0 | goto handle_unusual; |
7489 | 0 | } |
7490 | 0 | break; |
7491 | 0 | } |
7492 | 0 | |
7493 | 0 | default: { |
7494 | 0 | handle_unusual: |
7495 | 0 | if (tag == 0) { |
7496 | 0 | goto success; |
7497 | 0 | } |
7498 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
7499 | 0 | input, tag, &unknown_fields_stream)); |
7500 | 0 | break; |
7501 | 0 | } |
7502 | 0 | } |
7503 | 0 | } |
7504 | 0 | success: |
7505 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.LayersPacket) |
7506 | 0 | return true; |
7507 | 0 | failure: |
7508 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.LayersPacket) |
7509 | 0 | return false; |
7510 | 0 | #undef DO_ |
7511 | 0 | } |
7512 | | |
7513 | | void LayersPacket::SerializeWithCachedSizes( |
7514 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7515 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.LayersPacket) |
7516 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7517 | 0 | (void) cached_has_bits; |
7518 | 0 |
|
7519 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1; |
7520 | 0 | for (unsigned int i = 0, |
7521 | 0 | n = static_cast<unsigned int>(this->layer_size()); i < n; i++) { |
7522 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
7523 | 0 | 1, this->layer(static_cast<int>(i)), output); |
7524 | 0 | } |
7525 | 0 |
|
7526 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
7527 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
7528 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.LayersPacket) |
7529 | 0 | } |
7530 | | |
7531 | 0 | size_t LayersPacket::ByteSizeLong() const { |
7532 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.LayersPacket) |
7533 | 0 | size_t total_size = 0; |
7534 | 0 |
|
7535 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
7536 | 0 |
|
7537 | 0 | // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1; |
7538 | 0 | { |
7539 | 0 | unsigned int count = static_cast<unsigned int>(this->layer_size()); |
7540 | 0 | total_size += 1UL * count; |
7541 | 0 | for (unsigned int i = 0; i < count; i++) { |
7542 | 0 | total_size += |
7543 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
7544 | 0 | this->layer(static_cast<int>(i))); |
7545 | 0 | } |
7546 | 0 | } |
7547 | 0 |
|
7548 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7549 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7550 | 0 | _cached_size_ = cached_size; |
7551 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7552 | 0 | return total_size; |
7553 | 0 | } |
7554 | | |
7555 | | void LayersPacket::CheckTypeAndMergeFrom( |
7556 | 0 | const ::google::protobuf::MessageLite& from) { |
7557 | 0 | MergeFrom(*::google::protobuf::down_cast<const LayersPacket*>(&from)); |
7558 | 0 | } |
7559 | | |
7560 | 0 | void LayersPacket::MergeFrom(const LayersPacket& from) { |
7561 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.LayersPacket) |
7562 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7563 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7564 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7565 | 0 | (void) cached_has_bits; |
7566 | 0 |
|
7567 | 0 | layer_.MergeFrom(from.layer_); |
7568 | 0 | } |
7569 | | |
7570 | 0 | void LayersPacket::CopyFrom(const LayersPacket& from) { |
7571 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.LayersPacket) |
7572 | 0 | if (&from == this) return; |
7573 | 0 | Clear(); |
7574 | 0 | MergeFrom(from); |
7575 | 0 | } |
7576 | | |
7577 | 0 | bool LayersPacket::IsInitialized() const { |
7578 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->layer())) return false; |
7579 | 0 | return true; |
7580 | 0 | } |
7581 | | |
7582 | 0 | void LayersPacket::Swap(LayersPacket* other) { |
7583 | 0 | if (other == this) return; |
7584 | 0 | InternalSwap(other); |
7585 | 0 | } |
7586 | 0 | void LayersPacket::InternalSwap(LayersPacket* other) { |
7587 | 0 | using std::swap; |
7588 | 0 | layer_.InternalSwap(&other->layer_); |
7589 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7590 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7591 | 0 | swap(_cached_size_, other->_cached_size_); |
7592 | 0 | } |
7593 | | |
7594 | 0 | ::std::string LayersPacket::GetTypeName() const { |
7595 | 0 | return "mozilla.layers.layerscope.LayersPacket"; |
7596 | 0 | } |
7597 | | |
7598 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
7599 | | // LayersPacket |
7600 | | |
7601 | | // repeated .mozilla.layers.layerscope.LayersPacket.Layer layer = 1; |
7602 | | int LayersPacket::layer_size() const { |
7603 | | return layer_.size(); |
7604 | | } |
7605 | | void LayersPacket::clear_layer() { |
7606 | | layer_.Clear(); |
7607 | | } |
7608 | | const ::mozilla::layers::layerscope::LayersPacket_Layer& LayersPacket::layer(int index) const { |
7609 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.LayersPacket.layer) |
7610 | | return layer_.Get(index); |
7611 | | } |
7612 | | ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::mutable_layer(int index) { |
7613 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.LayersPacket.layer) |
7614 | | return layer_.Mutable(index); |
7615 | | } |
7616 | | ::mozilla::layers::layerscope::LayersPacket_Layer* LayersPacket::add_layer() { |
7617 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.LayersPacket.layer) |
7618 | | return layer_.Add(); |
7619 | | } |
7620 | | ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >* |
7621 | | LayersPacket::mutable_layer() { |
7622 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.LayersPacket.layer) |
7623 | | return &layer_; |
7624 | | } |
7625 | | const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::LayersPacket_Layer >& |
7626 | | LayersPacket::layer() const { |
7627 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.LayersPacket.layer) |
7628 | | return layer_; |
7629 | | } |
7630 | | |
7631 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
7632 | | |
7633 | | // =================================================================== |
7634 | | |
7635 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7636 | | const int MetaPacket::kComposedByHwcFieldNumber; |
7637 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7638 | | |
7639 | | MetaPacket::MetaPacket() |
7640 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
7641 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7642 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7643 | 0 | } |
7644 | 0 | SharedCtor(); |
7645 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.MetaPacket) |
7646 | 0 | } |
7647 | | MetaPacket::MetaPacket(const MetaPacket& from) |
7648 | | : ::google::protobuf::MessageLite(), |
7649 | | _internal_metadata_(NULL), |
7650 | | _has_bits_(from._has_bits_), |
7651 | 0 | _cached_size_(0) { |
7652 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7653 | 0 | composedbyhwc_ = from.composedbyhwc_; |
7654 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.MetaPacket) |
7655 | 0 | } |
7656 | | |
7657 | 0 | void MetaPacket::SharedCtor() { |
7658 | 0 | _cached_size_ = 0; |
7659 | 0 | composedbyhwc_ = false; |
7660 | 0 | } |
7661 | | |
7662 | 0 | MetaPacket::~MetaPacket() { |
7663 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.MetaPacket) |
7664 | 0 | SharedDtor(); |
7665 | 0 | } |
7666 | | |
7667 | 0 | void MetaPacket::SharedDtor() { |
7668 | 0 | } |
7669 | | |
7670 | 0 | void MetaPacket::SetCachedSize(int size) const { |
7671 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7672 | 0 | _cached_size_ = size; |
7673 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7674 | 0 | } |
7675 | 0 | const MetaPacket& MetaPacket::default_instance() { |
7676 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7677 | 0 | return *internal_default_instance(); |
7678 | 0 | } |
7679 | | |
7680 | 0 | MetaPacket* MetaPacket::New(::google::protobuf::Arena* arena) const { |
7681 | 0 | MetaPacket* n = new MetaPacket; |
7682 | 0 | if (arena != NULL) { |
7683 | 0 | arena->Own(n); |
7684 | 0 | } |
7685 | 0 | return n; |
7686 | 0 | } |
7687 | | |
7688 | 0 | void MetaPacket::Clear() { |
7689 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.MetaPacket) |
7690 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7691 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
7692 | 0 | (void) cached_has_bits; |
7693 | 0 |
|
7694 | 0 | composedbyhwc_ = false; |
7695 | 0 | _has_bits_.Clear(); |
7696 | 0 | _internal_metadata_.Clear(); |
7697 | 0 | } |
7698 | | |
7699 | | bool MetaPacket::MergePartialFromCodedStream( |
7700 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7701 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7702 | 0 | ::google::protobuf::uint32 tag; |
7703 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
7704 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
7705 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
7706 | 0 | mutable_unknown_fields)); |
7707 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
7708 | 0 | &unknown_fields_string, false); |
7709 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.MetaPacket) |
7710 | 0 | for (;;) { |
7711 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7712 | 0 | tag = p.first; |
7713 | 0 | if (!p.second) goto handle_unusual; |
7714 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7715 | 0 | // optional bool composedByHwc = 1; |
7716 | 0 | case 1: { |
7717 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7718 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7719 | 0 | set_has_composedbyhwc(); |
7720 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7721 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
7722 | 0 | input, &composedbyhwc_))); |
7723 | 0 | } else { |
7724 | 0 | goto handle_unusual; |
7725 | 0 | } |
7726 | 0 | break; |
7727 | 0 | } |
7728 | 0 | |
7729 | 0 | default: { |
7730 | 0 | handle_unusual: |
7731 | 0 | if (tag == 0) { |
7732 | 0 | goto success; |
7733 | 0 | } |
7734 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
7735 | 0 | input, tag, &unknown_fields_stream)); |
7736 | 0 | break; |
7737 | 0 | } |
7738 | 0 | } |
7739 | 0 | } |
7740 | 0 | success: |
7741 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.MetaPacket) |
7742 | 0 | return true; |
7743 | 0 | failure: |
7744 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.MetaPacket) |
7745 | 0 | return false; |
7746 | 0 | #undef DO_ |
7747 | 0 | } |
7748 | | |
7749 | | void MetaPacket::SerializeWithCachedSizes( |
7750 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
7751 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.MetaPacket) |
7752 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7753 | 0 | (void) cached_has_bits; |
7754 | 0 |
|
7755 | 0 | cached_has_bits = _has_bits_[0]; |
7756 | 0 | // optional bool composedByHwc = 1; |
7757 | 0 | if (cached_has_bits & 0x00000001u) { |
7758 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->composedbyhwc(), output); |
7759 | 0 | } |
7760 | 0 |
|
7761 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
7762 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
7763 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.MetaPacket) |
7764 | 0 | } |
7765 | | |
7766 | 0 | size_t MetaPacket::ByteSizeLong() const { |
7767 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.MetaPacket) |
7768 | 0 | size_t total_size = 0; |
7769 | 0 |
|
7770 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
7771 | 0 |
|
7772 | 0 | // optional bool composedByHwc = 1; |
7773 | 0 | if (has_composedbyhwc()) { |
7774 | 0 | total_size += 1 + 1; |
7775 | 0 | } |
7776 | 0 |
|
7777 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7778 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7779 | 0 | _cached_size_ = cached_size; |
7780 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7781 | 0 | return total_size; |
7782 | 0 | } |
7783 | | |
7784 | | void MetaPacket::CheckTypeAndMergeFrom( |
7785 | 0 | const ::google::protobuf::MessageLite& from) { |
7786 | 0 | MergeFrom(*::google::protobuf::down_cast<const MetaPacket*>(&from)); |
7787 | 0 | } |
7788 | | |
7789 | 0 | void MetaPacket::MergeFrom(const MetaPacket& from) { |
7790 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.MetaPacket) |
7791 | 0 | GOOGLE_DCHECK_NE(&from, this); |
7792 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7793 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7794 | 0 | (void) cached_has_bits; |
7795 | 0 |
|
7796 | 0 | if (from.has_composedbyhwc()) { |
7797 | 0 | set_composedbyhwc(from.composedbyhwc()); |
7798 | 0 | } |
7799 | 0 | } |
7800 | | |
7801 | 0 | void MetaPacket::CopyFrom(const MetaPacket& from) { |
7802 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.MetaPacket) |
7803 | 0 | if (&from == this) return; |
7804 | 0 | Clear(); |
7805 | 0 | MergeFrom(from); |
7806 | 0 | } |
7807 | | |
7808 | 0 | bool MetaPacket::IsInitialized() const { |
7809 | 0 | return true; |
7810 | 0 | } |
7811 | | |
7812 | 0 | void MetaPacket::Swap(MetaPacket* other) { |
7813 | 0 | if (other == this) return; |
7814 | 0 | InternalSwap(other); |
7815 | 0 | } |
7816 | 0 | void MetaPacket::InternalSwap(MetaPacket* other) { |
7817 | 0 | using std::swap; |
7818 | 0 | swap(composedbyhwc_, other->composedbyhwc_); |
7819 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
7820 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7821 | 0 | swap(_cached_size_, other->_cached_size_); |
7822 | 0 | } |
7823 | | |
7824 | 0 | ::std::string MetaPacket::GetTypeName() const { |
7825 | 0 | return "mozilla.layers.layerscope.MetaPacket"; |
7826 | 0 | } |
7827 | | |
7828 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
7829 | | // MetaPacket |
7830 | | |
7831 | | // optional bool composedByHwc = 1; |
7832 | | bool MetaPacket::has_composedbyhwc() const { |
7833 | | return (_has_bits_[0] & 0x00000001u) != 0; |
7834 | | } |
7835 | | void MetaPacket::set_has_composedbyhwc() { |
7836 | | _has_bits_[0] |= 0x00000001u; |
7837 | | } |
7838 | | void MetaPacket::clear_has_composedbyhwc() { |
7839 | | _has_bits_[0] &= ~0x00000001u; |
7840 | | } |
7841 | | void MetaPacket::clear_composedbyhwc() { |
7842 | | composedbyhwc_ = false; |
7843 | | clear_has_composedbyhwc(); |
7844 | | } |
7845 | | bool MetaPacket::composedbyhwc() const { |
7846 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.MetaPacket.composedByHwc) |
7847 | | return composedbyhwc_; |
7848 | | } |
7849 | | void MetaPacket::set_composedbyhwc(bool value) { |
7850 | | set_has_composedbyhwc(); |
7851 | | composedbyhwc_ = value; |
7852 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.MetaPacket.composedByHwc) |
7853 | | } |
7854 | | |
7855 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
7856 | | |
7857 | | // =================================================================== |
7858 | | |
7859 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7860 | | const int DrawPacket_Rect::kXFieldNumber; |
7861 | | const int DrawPacket_Rect::kYFieldNumber; |
7862 | | const int DrawPacket_Rect::kWFieldNumber; |
7863 | | const int DrawPacket_Rect::kHFieldNumber; |
7864 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7865 | | |
7866 | | DrawPacket_Rect::DrawPacket_Rect() |
7867 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
7868 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
7869 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7870 | 0 | } |
7871 | 0 | SharedCtor(); |
7872 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket.Rect) |
7873 | 0 | } |
7874 | | DrawPacket_Rect::DrawPacket_Rect(const DrawPacket_Rect& from) |
7875 | | : ::google::protobuf::MessageLite(), |
7876 | | _internal_metadata_(NULL), |
7877 | | _has_bits_(from._has_bits_), |
7878 | 0 | _cached_size_(0) { |
7879 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7880 | 0 | ::memcpy(&x_, &from.x_, |
7881 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&h_) - |
7882 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
7883 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket.Rect) |
7884 | 0 | } |
7885 | | |
7886 | 0 | void DrawPacket_Rect::SharedCtor() { |
7887 | 0 | _cached_size_ = 0; |
7888 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
7889 | 0 | reinterpret_cast<char*>(&h_) - |
7890 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
7891 | 0 | } |
7892 | | |
7893 | 0 | DrawPacket_Rect::~DrawPacket_Rect() { |
7894 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket.Rect) |
7895 | 0 | SharedDtor(); |
7896 | 0 | } |
7897 | | |
7898 | 0 | void DrawPacket_Rect::SharedDtor() { |
7899 | 0 | } |
7900 | | |
7901 | 0 | void DrawPacket_Rect::SetCachedSize(int size) const { |
7902 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
7903 | 0 | _cached_size_ = size; |
7904 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
7905 | 0 | } |
7906 | 0 | const DrawPacket_Rect& DrawPacket_Rect::default_instance() { |
7907 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
7908 | 0 | return *internal_default_instance(); |
7909 | 0 | } |
7910 | | |
7911 | 0 | DrawPacket_Rect* DrawPacket_Rect::New(::google::protobuf::Arena* arena) const { |
7912 | 0 | DrawPacket_Rect* n = new DrawPacket_Rect; |
7913 | 0 | if (arena != NULL) { |
7914 | 0 | arena->Own(n); |
7915 | 0 | } |
7916 | 0 | return n; |
7917 | 0 | } |
7918 | | |
7919 | 0 | void DrawPacket_Rect::Clear() { |
7920 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket.Rect) |
7921 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
7922 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
7923 | 0 | (void) cached_has_bits; |
7924 | 0 |
|
7925 | 0 | cached_has_bits = _has_bits_[0]; |
7926 | 0 | if (cached_has_bits & 15u) { |
7927 | 0 | ::memset(&x_, 0, static_cast<size_t>( |
7928 | 0 | reinterpret_cast<char*>(&h_) - |
7929 | 0 | reinterpret_cast<char*>(&x_)) + sizeof(h_)); |
7930 | 0 | } |
7931 | 0 | _has_bits_.Clear(); |
7932 | 0 | _internal_metadata_.Clear(); |
7933 | 0 | } |
7934 | | |
7935 | | bool DrawPacket_Rect::MergePartialFromCodedStream( |
7936 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
7937 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7938 | 0 | ::google::protobuf::uint32 tag; |
7939 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
7940 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
7941 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
7942 | 0 | mutable_unknown_fields)); |
7943 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
7944 | 0 | &unknown_fields_string, false); |
7945 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket.Rect) |
7946 | 0 | for (;;) { |
7947 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7948 | 0 | tag = p.first; |
7949 | 0 | if (!p.second) goto handle_unusual; |
7950 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7951 | 0 | // required float x = 1; |
7952 | 0 | case 1: { |
7953 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7954 | 0 | static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { |
7955 | 0 | set_has_x(); |
7956 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7957 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
7958 | 0 | input, &x_))); |
7959 | 0 | } else { |
7960 | 0 | goto handle_unusual; |
7961 | 0 | } |
7962 | 0 | break; |
7963 | 0 | } |
7964 | 0 |
|
7965 | 0 | // required float y = 2; |
7966 | 0 | case 2: { |
7967 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7968 | 0 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
7969 | 0 | set_has_y(); |
7970 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7971 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
7972 | 0 | input, &y_))); |
7973 | 0 | } else { |
7974 | 0 | goto handle_unusual; |
7975 | 0 | } |
7976 | 0 | break; |
7977 | 0 | } |
7978 | 0 |
|
7979 | 0 | // required float w = 3; |
7980 | 0 | case 3: { |
7981 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7982 | 0 | static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { |
7983 | 0 | set_has_w(); |
7984 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7985 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
7986 | 0 | input, &w_))); |
7987 | 0 | } else { |
7988 | 0 | goto handle_unusual; |
7989 | 0 | } |
7990 | 0 | break; |
7991 | 0 | } |
7992 | 0 |
|
7993 | 0 | // required float h = 4; |
7994 | 0 | case 4: { |
7995 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7996 | 0 | static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) { |
7997 | 0 | set_has_h(); |
7998 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7999 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
8000 | 0 | input, &h_))); |
8001 | 0 | } else { |
8002 | 0 | goto handle_unusual; |
8003 | 0 | } |
8004 | 0 | break; |
8005 | 0 | } |
8006 | 0 | |
8007 | 0 | default: { |
8008 | 0 | handle_unusual: |
8009 | 0 | if (tag == 0) { |
8010 | 0 | goto success; |
8011 | 0 | } |
8012 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
8013 | 0 | input, tag, &unknown_fields_stream)); |
8014 | 0 | break; |
8015 | 0 | } |
8016 | 0 | } |
8017 | 0 | } |
8018 | 0 | success: |
8019 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket.Rect) |
8020 | 0 | return true; |
8021 | 0 | failure: |
8022 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket.Rect) |
8023 | 0 | return false; |
8024 | 0 | #undef DO_ |
8025 | 0 | } |
8026 | | |
8027 | | void DrawPacket_Rect::SerializeWithCachedSizes( |
8028 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8029 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket.Rect) |
8030 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8031 | 0 | (void) cached_has_bits; |
8032 | 0 |
|
8033 | 0 | cached_has_bits = _has_bits_[0]; |
8034 | 0 | // required float x = 1; |
8035 | 0 | if (cached_has_bits & 0x00000001u) { |
8036 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output); |
8037 | 0 | } |
8038 | 0 |
|
8039 | 0 | // required float y = 2; |
8040 | 0 | if (cached_has_bits & 0x00000002u) { |
8041 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output); |
8042 | 0 | } |
8043 | 0 |
|
8044 | 0 | // required float w = 3; |
8045 | 0 | if (cached_has_bits & 0x00000004u) { |
8046 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->w(), output); |
8047 | 0 | } |
8048 | 0 |
|
8049 | 0 | // required float h = 4; |
8050 | 0 | if (cached_has_bits & 0x00000008u) { |
8051 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->h(), output); |
8052 | 0 | } |
8053 | 0 |
|
8054 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
8055 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
8056 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket.Rect) |
8057 | 0 | } |
8058 | | |
8059 | 0 | size_t DrawPacket_Rect::RequiredFieldsByteSizeFallback() const { |
8060 | 0 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket.Rect) |
8061 | 0 | size_t total_size = 0; |
8062 | 0 |
|
8063 | 0 | if (has_x()) { |
8064 | 0 | // required float x = 1; |
8065 | 0 | total_size += 1 + 4; |
8066 | 0 | } |
8067 | 0 |
|
8068 | 0 | if (has_y()) { |
8069 | 0 | // required float y = 2; |
8070 | 0 | total_size += 1 + 4; |
8071 | 0 | } |
8072 | 0 |
|
8073 | 0 | if (has_w()) { |
8074 | 0 | // required float w = 3; |
8075 | 0 | total_size += 1 + 4; |
8076 | 0 | } |
8077 | 0 |
|
8078 | 0 | if (has_h()) { |
8079 | 0 | // required float h = 4; |
8080 | 0 | total_size += 1 + 4; |
8081 | 0 | } |
8082 | 0 |
|
8083 | 0 | return total_size; |
8084 | 0 | } |
8085 | 0 | size_t DrawPacket_Rect::ByteSizeLong() const { |
8086 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket.Rect) |
8087 | 0 | size_t total_size = 0; |
8088 | 0 |
|
8089 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
8090 | 0 |
|
8091 | 0 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
8092 | 0 | // required float x = 1; |
8093 | 0 | total_size += 1 + 4; |
8094 | 0 |
|
8095 | 0 | // required float y = 2; |
8096 | 0 | total_size += 1 + 4; |
8097 | 0 |
|
8098 | 0 | // required float w = 3; |
8099 | 0 | total_size += 1 + 4; |
8100 | 0 |
|
8101 | 0 | // required float h = 4; |
8102 | 0 | total_size += 1 + 4; |
8103 | 0 |
|
8104 | 0 | } else { |
8105 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
8106 | 0 | } |
8107 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8108 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8109 | 0 | _cached_size_ = cached_size; |
8110 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8111 | 0 | return total_size; |
8112 | 0 | } |
8113 | | |
8114 | | void DrawPacket_Rect::CheckTypeAndMergeFrom( |
8115 | 0 | const ::google::protobuf::MessageLite& from) { |
8116 | 0 | MergeFrom(*::google::protobuf::down_cast<const DrawPacket_Rect*>(&from)); |
8117 | 0 | } |
8118 | | |
8119 | 0 | void DrawPacket_Rect::MergeFrom(const DrawPacket_Rect& from) { |
8120 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket.Rect) |
8121 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8122 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8123 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8124 | 0 | (void) cached_has_bits; |
8125 | 0 |
|
8126 | 0 | cached_has_bits = from._has_bits_[0]; |
8127 | 0 | if (cached_has_bits & 15u) { |
8128 | 0 | if (cached_has_bits & 0x00000001u) { |
8129 | 0 | x_ = from.x_; |
8130 | 0 | } |
8131 | 0 | if (cached_has_bits & 0x00000002u) { |
8132 | 0 | y_ = from.y_; |
8133 | 0 | } |
8134 | 0 | if (cached_has_bits & 0x00000004u) { |
8135 | 0 | w_ = from.w_; |
8136 | 0 | } |
8137 | 0 | if (cached_has_bits & 0x00000008u) { |
8138 | 0 | h_ = from.h_; |
8139 | 0 | } |
8140 | 0 | _has_bits_[0] |= cached_has_bits; |
8141 | 0 | } |
8142 | 0 | } |
8143 | | |
8144 | 0 | void DrawPacket_Rect::CopyFrom(const DrawPacket_Rect& from) { |
8145 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket.Rect) |
8146 | 0 | if (&from == this) return; |
8147 | 0 | Clear(); |
8148 | 0 | MergeFrom(from); |
8149 | 0 | } |
8150 | | |
8151 | 0 | bool DrawPacket_Rect::IsInitialized() const { |
8152 | 0 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
8153 | 0 | return true; |
8154 | 0 | } |
8155 | | |
8156 | 0 | void DrawPacket_Rect::Swap(DrawPacket_Rect* other) { |
8157 | 0 | if (other == this) return; |
8158 | 0 | InternalSwap(other); |
8159 | 0 | } |
8160 | 0 | void DrawPacket_Rect::InternalSwap(DrawPacket_Rect* other) { |
8161 | 0 | using std::swap; |
8162 | 0 | swap(x_, other->x_); |
8163 | 0 | swap(y_, other->y_); |
8164 | 0 | swap(w_, other->w_); |
8165 | 0 | swap(h_, other->h_); |
8166 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8167 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8168 | 0 | swap(_cached_size_, other->_cached_size_); |
8169 | 0 | } |
8170 | | |
8171 | 0 | ::std::string DrawPacket_Rect::GetTypeName() const { |
8172 | 0 | return "mozilla.layers.layerscope.DrawPacket.Rect"; |
8173 | 0 | } |
8174 | | |
8175 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
8176 | | // DrawPacket_Rect |
8177 | | |
8178 | | // required float x = 1; |
8179 | | bool DrawPacket_Rect::has_x() const { |
8180 | | return (_has_bits_[0] & 0x00000001u) != 0; |
8181 | | } |
8182 | | void DrawPacket_Rect::set_has_x() { |
8183 | | _has_bits_[0] |= 0x00000001u; |
8184 | | } |
8185 | | void DrawPacket_Rect::clear_has_x() { |
8186 | | _has_bits_[0] &= ~0x00000001u; |
8187 | | } |
8188 | | void DrawPacket_Rect::clear_x() { |
8189 | | x_ = 0; |
8190 | | clear_has_x(); |
8191 | | } |
8192 | | float DrawPacket_Rect::x() const { |
8193 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.x) |
8194 | | return x_; |
8195 | | } |
8196 | | void DrawPacket_Rect::set_x(float value) { |
8197 | | set_has_x(); |
8198 | | x_ = value; |
8199 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.x) |
8200 | | } |
8201 | | |
8202 | | // required float y = 2; |
8203 | | bool DrawPacket_Rect::has_y() const { |
8204 | | return (_has_bits_[0] & 0x00000002u) != 0; |
8205 | | } |
8206 | | void DrawPacket_Rect::set_has_y() { |
8207 | | _has_bits_[0] |= 0x00000002u; |
8208 | | } |
8209 | | void DrawPacket_Rect::clear_has_y() { |
8210 | | _has_bits_[0] &= ~0x00000002u; |
8211 | | } |
8212 | | void DrawPacket_Rect::clear_y() { |
8213 | | y_ = 0; |
8214 | | clear_has_y(); |
8215 | | } |
8216 | | float DrawPacket_Rect::y() const { |
8217 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.y) |
8218 | | return y_; |
8219 | | } |
8220 | | void DrawPacket_Rect::set_y(float value) { |
8221 | | set_has_y(); |
8222 | | y_ = value; |
8223 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.y) |
8224 | | } |
8225 | | |
8226 | | // required float w = 3; |
8227 | | bool DrawPacket_Rect::has_w() const { |
8228 | | return (_has_bits_[0] & 0x00000004u) != 0; |
8229 | | } |
8230 | | void DrawPacket_Rect::set_has_w() { |
8231 | | _has_bits_[0] |= 0x00000004u; |
8232 | | } |
8233 | | void DrawPacket_Rect::clear_has_w() { |
8234 | | _has_bits_[0] &= ~0x00000004u; |
8235 | | } |
8236 | | void DrawPacket_Rect::clear_w() { |
8237 | | w_ = 0; |
8238 | | clear_has_w(); |
8239 | | } |
8240 | | float DrawPacket_Rect::w() const { |
8241 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.w) |
8242 | | return w_; |
8243 | | } |
8244 | | void DrawPacket_Rect::set_w(float value) { |
8245 | | set_has_w(); |
8246 | | w_ = value; |
8247 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.w) |
8248 | | } |
8249 | | |
8250 | | // required float h = 4; |
8251 | | bool DrawPacket_Rect::has_h() const { |
8252 | | return (_has_bits_[0] & 0x00000008u) != 0; |
8253 | | } |
8254 | | void DrawPacket_Rect::set_has_h() { |
8255 | | _has_bits_[0] |= 0x00000008u; |
8256 | | } |
8257 | | void DrawPacket_Rect::clear_has_h() { |
8258 | | _has_bits_[0] &= ~0x00000008u; |
8259 | | } |
8260 | | void DrawPacket_Rect::clear_h() { |
8261 | | h_ = 0; |
8262 | | clear_has_h(); |
8263 | | } |
8264 | | float DrawPacket_Rect::h() const { |
8265 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.Rect.h) |
8266 | | return h_; |
8267 | | } |
8268 | | void DrawPacket_Rect::set_h(float value) { |
8269 | | set_has_h(); |
8270 | | h_ = value; |
8271 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.Rect.h) |
8272 | | } |
8273 | | |
8274 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
8275 | | |
8276 | | // =================================================================== |
8277 | | |
8278 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8279 | | const int DrawPacket::kOffsetXFieldNumber; |
8280 | | const int DrawPacket::kOffsetYFieldNumber; |
8281 | | const int DrawPacket::kMvMatrixFieldNumber; |
8282 | | const int DrawPacket::kTotalRectsFieldNumber; |
8283 | | const int DrawPacket::kLayerRectFieldNumber; |
8284 | | const int DrawPacket::kLayerrefFieldNumber; |
8285 | | const int DrawPacket::kTexIDsFieldNumber; |
8286 | | const int DrawPacket::kTextureRectFieldNumber; |
8287 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8288 | | |
8289 | | DrawPacket::DrawPacket() |
8290 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
8291 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8292 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
8293 | 0 | } |
8294 | 0 | SharedCtor(); |
8295 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.DrawPacket) |
8296 | 0 | } |
8297 | | DrawPacket::DrawPacket(const DrawPacket& from) |
8298 | | : ::google::protobuf::MessageLite(), |
8299 | | _internal_metadata_(NULL), |
8300 | | _has_bits_(from._has_bits_), |
8301 | | _cached_size_(0), |
8302 | | mvmatrix_(from.mvmatrix_), |
8303 | | layerrect_(from.layerrect_), |
8304 | | texids_(from.texids_), |
8305 | 0 | texturerect_(from.texturerect_) { |
8306 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8307 | 0 | ::memcpy(&offsetx_, &from.offsetx_, |
8308 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&totalrects_) - |
8309 | 0 | reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_)); |
8310 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.DrawPacket) |
8311 | 0 | } |
8312 | | |
8313 | 0 | void DrawPacket::SharedCtor() { |
8314 | 0 | _cached_size_ = 0; |
8315 | 0 | ::memset(&offsetx_, 0, static_cast<size_t>( |
8316 | 0 | reinterpret_cast<char*>(&totalrects_) - |
8317 | 0 | reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_)); |
8318 | 0 | } |
8319 | | |
8320 | 0 | DrawPacket::~DrawPacket() { |
8321 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.DrawPacket) |
8322 | 0 | SharedDtor(); |
8323 | 0 | } |
8324 | | |
8325 | 0 | void DrawPacket::SharedDtor() { |
8326 | 0 | } |
8327 | | |
8328 | 0 | void DrawPacket::SetCachedSize(int size) const { |
8329 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8330 | 0 | _cached_size_ = size; |
8331 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8332 | 0 | } |
8333 | 0 | const DrawPacket& DrawPacket::default_instance() { |
8334 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
8335 | 0 | return *internal_default_instance(); |
8336 | 0 | } |
8337 | | |
8338 | 0 | DrawPacket* DrawPacket::New(::google::protobuf::Arena* arena) const { |
8339 | 0 | DrawPacket* n = new DrawPacket; |
8340 | 0 | if (arena != NULL) { |
8341 | 0 | arena->Own(n); |
8342 | 0 | } |
8343 | 0 | return n; |
8344 | 0 | } |
8345 | | |
8346 | 0 | void DrawPacket::Clear() { |
8347 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.DrawPacket) |
8348 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8349 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
8350 | 0 | (void) cached_has_bits; |
8351 | 0 |
|
8352 | 0 | mvmatrix_.Clear(); |
8353 | 0 | layerrect_.Clear(); |
8354 | 0 | texids_.Clear(); |
8355 | 0 | texturerect_.Clear(); |
8356 | 0 | cached_has_bits = _has_bits_[0]; |
8357 | 0 | if (cached_has_bits & 15u) { |
8358 | 0 | ::memset(&offsetx_, 0, static_cast<size_t>( |
8359 | 0 | reinterpret_cast<char*>(&totalrects_) - |
8360 | 0 | reinterpret_cast<char*>(&offsetx_)) + sizeof(totalrects_)); |
8361 | 0 | } |
8362 | 0 | _has_bits_.Clear(); |
8363 | 0 | _internal_metadata_.Clear(); |
8364 | 0 | } |
8365 | | |
8366 | | bool DrawPacket::MergePartialFromCodedStream( |
8367 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
8368 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
8369 | 0 | ::google::protobuf::uint32 tag; |
8370 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
8371 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
8372 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
8373 | 0 | mutable_unknown_fields)); |
8374 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
8375 | 0 | &unknown_fields_string, false); |
8376 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.DrawPacket) |
8377 | 0 | for (;;) { |
8378 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
8379 | 0 | tag = p.first; |
8380 | 0 | if (!p.second) goto handle_unusual; |
8381 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
8382 | 0 | // required float offsetX = 1; |
8383 | 0 | case 1: { |
8384 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8385 | 0 | static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { |
8386 | 0 | set_has_offsetx(); |
8387 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8388 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
8389 | 0 | input, &offsetx_))); |
8390 | 0 | } else { |
8391 | 0 | goto handle_unusual; |
8392 | 0 | } |
8393 | 0 | break; |
8394 | 0 | } |
8395 | 0 |
|
8396 | 0 | // required float offsetY = 2; |
8397 | 0 | case 2: { |
8398 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8399 | 0 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
8400 | 0 | set_has_offsety(); |
8401 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8402 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
8403 | 0 | input, &offsety_))); |
8404 | 0 | } else { |
8405 | 0 | goto handle_unusual; |
8406 | 0 | } |
8407 | 0 | break; |
8408 | 0 | } |
8409 | 0 |
|
8410 | 0 | // repeated float mvMatrix = 3; |
8411 | 0 | case 3: { |
8412 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8413 | 0 | static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) { |
8414 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
8415 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
8416 | 0 | 1, 29u, input, this->mutable_mvmatrix()))); |
8417 | 0 | } else if ( |
8418 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
8419 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
8420 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
8421 | 0 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
8422 | 0 | input, this->mutable_mvmatrix()))); |
8423 | 0 | } else { |
8424 | 0 | goto handle_unusual; |
8425 | 0 | } |
8426 | 0 | break; |
8427 | 0 | } |
8428 | 0 |
|
8429 | 0 | // required uint32 totalRects = 4; |
8430 | 0 | case 4: { |
8431 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8432 | 0 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
8433 | 0 | set_has_totalrects(); |
8434 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8435 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8436 | 0 | input, &totalrects_))); |
8437 | 0 | } else { |
8438 | 0 | goto handle_unusual; |
8439 | 0 | } |
8440 | 0 | break; |
8441 | 0 | } |
8442 | 0 |
|
8443 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5; |
8444 | 0 | case 5: { |
8445 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8446 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
8447 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
8448 | 0 | input, add_layerrect())); |
8449 | 0 | } else { |
8450 | 0 | goto handle_unusual; |
8451 | 0 | } |
8452 | 0 | break; |
8453 | 0 | } |
8454 | 0 |
|
8455 | 0 | // required uint64 layerref = 6; |
8456 | 0 | case 6: { |
8457 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8458 | 0 | static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { |
8459 | 0 | set_has_layerref(); |
8460 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
8461 | 0 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
8462 | 0 | input, &layerref_))); |
8463 | 0 | } else { |
8464 | 0 | goto handle_unusual; |
8465 | 0 | } |
8466 | 0 | break; |
8467 | 0 | } |
8468 | 0 |
|
8469 | 0 | // repeated uint32 texIDs = 7; |
8470 | 0 | case 7: { |
8471 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8472 | 0 | static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) { |
8473 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
8474 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8475 | 0 | 1, 56u, input, this->mutable_texids()))); |
8476 | 0 | } else if ( |
8477 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
8478 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
8479 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
8480 | 0 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
8481 | 0 | input, this->mutable_texids()))); |
8482 | 0 | } else { |
8483 | 0 | goto handle_unusual; |
8484 | 0 | } |
8485 | 0 | break; |
8486 | 0 | } |
8487 | 0 |
|
8488 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8; |
8489 | 0 | case 8: { |
8490 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
8491 | 0 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
8492 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
8493 | 0 | input, add_texturerect())); |
8494 | 0 | } else { |
8495 | 0 | goto handle_unusual; |
8496 | 0 | } |
8497 | 0 | break; |
8498 | 0 | } |
8499 | 0 | |
8500 | 0 | default: { |
8501 | 0 | handle_unusual: |
8502 | 0 | if (tag == 0) { |
8503 | 0 | goto success; |
8504 | 0 | } |
8505 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
8506 | 0 | input, tag, &unknown_fields_stream)); |
8507 | 0 | break; |
8508 | 0 | } |
8509 | 0 | } |
8510 | 0 | } |
8511 | 0 | success: |
8512 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.DrawPacket) |
8513 | 0 | return true; |
8514 | 0 | failure: |
8515 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.DrawPacket) |
8516 | 0 | return false; |
8517 | 0 | #undef DO_ |
8518 | 0 | } |
8519 | | |
8520 | | void DrawPacket::SerializeWithCachedSizes( |
8521 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
8522 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.DrawPacket) |
8523 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8524 | 0 | (void) cached_has_bits; |
8525 | 0 |
|
8526 | 0 | cached_has_bits = _has_bits_[0]; |
8527 | 0 | // required float offsetX = 1; |
8528 | 0 | if (cached_has_bits & 0x00000001u) { |
8529 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->offsetx(), output); |
8530 | 0 | } |
8531 | 0 |
|
8532 | 0 | // required float offsetY = 2; |
8533 | 0 | if (cached_has_bits & 0x00000002u) { |
8534 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->offsety(), output); |
8535 | 0 | } |
8536 | 0 |
|
8537 | 0 | // repeated float mvMatrix = 3; |
8538 | 0 | for (int i = 0, n = this->mvmatrix_size(); i < n; i++) { |
8539 | 0 | ::google::protobuf::internal::WireFormatLite::WriteFloat( |
8540 | 0 | 3, this->mvmatrix(i), output); |
8541 | 0 | } |
8542 | 0 |
|
8543 | 0 | // required uint32 totalRects = 4; |
8544 | 0 | if (cached_has_bits & 0x00000008u) { |
8545 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->totalrects(), output); |
8546 | 0 | } |
8547 | 0 |
|
8548 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5; |
8549 | 0 | for (unsigned int i = 0, |
8550 | 0 | n = static_cast<unsigned int>(this->layerrect_size()); i < n; i++) { |
8551 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
8552 | 0 | 5, this->layerrect(static_cast<int>(i)), output); |
8553 | 0 | } |
8554 | 0 |
|
8555 | 0 | // required uint64 layerref = 6; |
8556 | 0 | if (cached_has_bits & 0x00000004u) { |
8557 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->layerref(), output); |
8558 | 0 | } |
8559 | 0 |
|
8560 | 0 | // repeated uint32 texIDs = 7; |
8561 | 0 | for (int i = 0, n = this->texids_size(); i < n; i++) { |
8562 | 0 | ::google::protobuf::internal::WireFormatLite::WriteUInt32( |
8563 | 0 | 7, this->texids(i), output); |
8564 | 0 | } |
8565 | 0 |
|
8566 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8; |
8567 | 0 | for (unsigned int i = 0, |
8568 | 0 | n = static_cast<unsigned int>(this->texturerect_size()); i < n; i++) { |
8569 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
8570 | 0 | 8, this->texturerect(static_cast<int>(i)), output); |
8571 | 0 | } |
8572 | 0 |
|
8573 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
8574 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
8575 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.DrawPacket) |
8576 | 0 | } |
8577 | | |
8578 | 0 | size_t DrawPacket::RequiredFieldsByteSizeFallback() const { |
8579 | 0 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:mozilla.layers.layerscope.DrawPacket) |
8580 | 0 | size_t total_size = 0; |
8581 | 0 |
|
8582 | 0 | if (has_offsetx()) { |
8583 | 0 | // required float offsetX = 1; |
8584 | 0 | total_size += 1 + 4; |
8585 | 0 | } |
8586 | 0 |
|
8587 | 0 | if (has_offsety()) { |
8588 | 0 | // required float offsetY = 2; |
8589 | 0 | total_size += 1 + 4; |
8590 | 0 | } |
8591 | 0 |
|
8592 | 0 | if (has_layerref()) { |
8593 | 0 | // required uint64 layerref = 6; |
8594 | 0 | total_size += 1 + |
8595 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
8596 | 0 | this->layerref()); |
8597 | 0 | } |
8598 | 0 |
|
8599 | 0 | if (has_totalrects()) { |
8600 | 0 | // required uint32 totalRects = 4; |
8601 | 0 | total_size += 1 + |
8602 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8603 | 0 | this->totalrects()); |
8604 | 0 | } |
8605 | 0 |
|
8606 | 0 | return total_size; |
8607 | 0 | } |
8608 | 0 | size_t DrawPacket::ByteSizeLong() const { |
8609 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.DrawPacket) |
8610 | 0 | size_t total_size = 0; |
8611 | 0 |
|
8612 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
8613 | 0 |
|
8614 | 0 | if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. |
8615 | 0 | // required float offsetX = 1; |
8616 | 0 | total_size += 1 + 4; |
8617 | 0 |
|
8618 | 0 | // required float offsetY = 2; |
8619 | 0 | total_size += 1 + 4; |
8620 | 0 |
|
8621 | 0 | // required uint64 layerref = 6; |
8622 | 0 | total_size += 1 + |
8623 | 0 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
8624 | 0 | this->layerref()); |
8625 | 0 |
|
8626 | 0 | // required uint32 totalRects = 4; |
8627 | 0 | total_size += 1 + |
8628 | 0 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
8629 | 0 | this->totalrects()); |
8630 | 0 |
|
8631 | 0 | } else { |
8632 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
8633 | 0 | } |
8634 | 0 | // repeated float mvMatrix = 3; |
8635 | 0 | { |
8636 | 0 | unsigned int count = static_cast<unsigned int>(this->mvmatrix_size()); |
8637 | 0 | size_t data_size = 4UL * count; |
8638 | 0 | total_size += 1 * |
8639 | 0 | ::google::protobuf::internal::FromIntSize(this->mvmatrix_size()); |
8640 | 0 | total_size += data_size; |
8641 | 0 | } |
8642 | 0 |
|
8643 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5; |
8644 | 0 | { |
8645 | 0 | unsigned int count = static_cast<unsigned int>(this->layerrect_size()); |
8646 | 0 | total_size += 1UL * count; |
8647 | 0 | for (unsigned int i = 0; i < count; i++) { |
8648 | 0 | total_size += |
8649 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
8650 | 0 | this->layerrect(static_cast<int>(i))); |
8651 | 0 | } |
8652 | 0 | } |
8653 | 0 |
|
8654 | 0 | // repeated uint32 texIDs = 7; |
8655 | 0 | { |
8656 | 0 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
8657 | 0 | UInt32Size(this->texids_); |
8658 | 0 | total_size += 1 * |
8659 | 0 | ::google::protobuf::internal::FromIntSize(this->texids_size()); |
8660 | 0 | total_size += data_size; |
8661 | 0 | } |
8662 | 0 |
|
8663 | 0 | // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8; |
8664 | 0 | { |
8665 | 0 | unsigned int count = static_cast<unsigned int>(this->texturerect_size()); |
8666 | 0 | total_size += 1UL * count; |
8667 | 0 | for (unsigned int i = 0; i < count; i++) { |
8668 | 0 | total_size += |
8669 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
8670 | 0 | this->texturerect(static_cast<int>(i))); |
8671 | 0 | } |
8672 | 0 | } |
8673 | 0 |
|
8674 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
8675 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
8676 | 0 | _cached_size_ = cached_size; |
8677 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
8678 | 0 | return total_size; |
8679 | 0 | } |
8680 | | |
8681 | | void DrawPacket::CheckTypeAndMergeFrom( |
8682 | 0 | const ::google::protobuf::MessageLite& from) { |
8683 | 0 | MergeFrom(*::google::protobuf::down_cast<const DrawPacket*>(&from)); |
8684 | 0 | } |
8685 | | |
8686 | 0 | void DrawPacket::MergeFrom(const DrawPacket& from) { |
8687 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.DrawPacket) |
8688 | 0 | GOOGLE_DCHECK_NE(&from, this); |
8689 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8690 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
8691 | 0 | (void) cached_has_bits; |
8692 | 0 |
|
8693 | 0 | mvmatrix_.MergeFrom(from.mvmatrix_); |
8694 | 0 | layerrect_.MergeFrom(from.layerrect_); |
8695 | 0 | texids_.MergeFrom(from.texids_); |
8696 | 0 | texturerect_.MergeFrom(from.texturerect_); |
8697 | 0 | cached_has_bits = from._has_bits_[0]; |
8698 | 0 | if (cached_has_bits & 15u) { |
8699 | 0 | if (cached_has_bits & 0x00000001u) { |
8700 | 0 | offsetx_ = from.offsetx_; |
8701 | 0 | } |
8702 | 0 | if (cached_has_bits & 0x00000002u) { |
8703 | 0 | offsety_ = from.offsety_; |
8704 | 0 | } |
8705 | 0 | if (cached_has_bits & 0x00000004u) { |
8706 | 0 | layerref_ = from.layerref_; |
8707 | 0 | } |
8708 | 0 | if (cached_has_bits & 0x00000008u) { |
8709 | 0 | totalrects_ = from.totalrects_; |
8710 | 0 | } |
8711 | 0 | _has_bits_[0] |= cached_has_bits; |
8712 | 0 | } |
8713 | 0 | } |
8714 | | |
8715 | 0 | void DrawPacket::CopyFrom(const DrawPacket& from) { |
8716 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.DrawPacket) |
8717 | 0 | if (&from == this) return; |
8718 | 0 | Clear(); |
8719 | 0 | MergeFrom(from); |
8720 | 0 | } |
8721 | | |
8722 | 0 | bool DrawPacket::IsInitialized() const { |
8723 | 0 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
8724 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->layerrect())) return false; |
8725 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->texturerect())) return false; |
8726 | 0 | return true; |
8727 | 0 | } |
8728 | | |
8729 | 0 | void DrawPacket::Swap(DrawPacket* other) { |
8730 | 0 | if (other == this) return; |
8731 | 0 | InternalSwap(other); |
8732 | 0 | } |
8733 | 0 | void DrawPacket::InternalSwap(DrawPacket* other) { |
8734 | 0 | using std::swap; |
8735 | 0 | mvmatrix_.InternalSwap(&other->mvmatrix_); |
8736 | 0 | layerrect_.InternalSwap(&other->layerrect_); |
8737 | 0 | texids_.InternalSwap(&other->texids_); |
8738 | 0 | texturerect_.InternalSwap(&other->texturerect_); |
8739 | 0 | swap(offsetx_, other->offsetx_); |
8740 | 0 | swap(offsety_, other->offsety_); |
8741 | 0 | swap(layerref_, other->layerref_); |
8742 | 0 | swap(totalrects_, other->totalrects_); |
8743 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
8744 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
8745 | 0 | swap(_cached_size_, other->_cached_size_); |
8746 | 0 | } |
8747 | | |
8748 | 0 | ::std::string DrawPacket::GetTypeName() const { |
8749 | 0 | return "mozilla.layers.layerscope.DrawPacket"; |
8750 | 0 | } |
8751 | | |
8752 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
8753 | | // DrawPacket |
8754 | | |
8755 | | // required float offsetX = 1; |
8756 | | bool DrawPacket::has_offsetx() const { |
8757 | | return (_has_bits_[0] & 0x00000001u) != 0; |
8758 | | } |
8759 | | void DrawPacket::set_has_offsetx() { |
8760 | | _has_bits_[0] |= 0x00000001u; |
8761 | | } |
8762 | | void DrawPacket::clear_has_offsetx() { |
8763 | | _has_bits_[0] &= ~0x00000001u; |
8764 | | } |
8765 | | void DrawPacket::clear_offsetx() { |
8766 | | offsetx_ = 0; |
8767 | | clear_has_offsetx(); |
8768 | | } |
8769 | | float DrawPacket::offsetx() const { |
8770 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetX) |
8771 | | return offsetx_; |
8772 | | } |
8773 | | void DrawPacket::set_offsetx(float value) { |
8774 | | set_has_offsetx(); |
8775 | | offsetx_ = value; |
8776 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetX) |
8777 | | } |
8778 | | |
8779 | | // required float offsetY = 2; |
8780 | | bool DrawPacket::has_offsety() const { |
8781 | | return (_has_bits_[0] & 0x00000002u) != 0; |
8782 | | } |
8783 | | void DrawPacket::set_has_offsety() { |
8784 | | _has_bits_[0] |= 0x00000002u; |
8785 | | } |
8786 | | void DrawPacket::clear_has_offsety() { |
8787 | | _has_bits_[0] &= ~0x00000002u; |
8788 | | } |
8789 | | void DrawPacket::clear_offsety() { |
8790 | | offsety_ = 0; |
8791 | | clear_has_offsety(); |
8792 | | } |
8793 | | float DrawPacket::offsety() const { |
8794 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.offsetY) |
8795 | | return offsety_; |
8796 | | } |
8797 | | void DrawPacket::set_offsety(float value) { |
8798 | | set_has_offsety(); |
8799 | | offsety_ = value; |
8800 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.offsetY) |
8801 | | } |
8802 | | |
8803 | | // repeated float mvMatrix = 3; |
8804 | | int DrawPacket::mvmatrix_size() const { |
8805 | | return mvmatrix_.size(); |
8806 | | } |
8807 | | void DrawPacket::clear_mvmatrix() { |
8808 | | mvmatrix_.Clear(); |
8809 | | } |
8810 | | float DrawPacket::mvmatrix(int index) const { |
8811 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.mvMatrix) |
8812 | | return mvmatrix_.Get(index); |
8813 | | } |
8814 | | void DrawPacket::set_mvmatrix(int index, float value) { |
8815 | | mvmatrix_.Set(index, value); |
8816 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.mvMatrix) |
8817 | | } |
8818 | | void DrawPacket::add_mvmatrix(float value) { |
8819 | | mvmatrix_.Add(value); |
8820 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.mvMatrix) |
8821 | | } |
8822 | | const ::google::protobuf::RepeatedField< float >& |
8823 | | DrawPacket::mvmatrix() const { |
8824 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.mvMatrix) |
8825 | | return mvmatrix_; |
8826 | | } |
8827 | | ::google::protobuf::RepeatedField< float >* |
8828 | | DrawPacket::mutable_mvmatrix() { |
8829 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.mvMatrix) |
8830 | | return &mvmatrix_; |
8831 | | } |
8832 | | |
8833 | | // required uint32 totalRects = 4; |
8834 | | bool DrawPacket::has_totalrects() const { |
8835 | | return (_has_bits_[0] & 0x00000008u) != 0; |
8836 | | } |
8837 | | void DrawPacket::set_has_totalrects() { |
8838 | | _has_bits_[0] |= 0x00000008u; |
8839 | | } |
8840 | | void DrawPacket::clear_has_totalrects() { |
8841 | | _has_bits_[0] &= ~0x00000008u; |
8842 | | } |
8843 | | void DrawPacket::clear_totalrects() { |
8844 | | totalrects_ = 0u; |
8845 | | clear_has_totalrects(); |
8846 | | } |
8847 | | ::google::protobuf::uint32 DrawPacket::totalrects() const { |
8848 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.totalRects) |
8849 | | return totalrects_; |
8850 | | } |
8851 | | void DrawPacket::set_totalrects(::google::protobuf::uint32 value) { |
8852 | | set_has_totalrects(); |
8853 | | totalrects_ = value; |
8854 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.totalRects) |
8855 | | } |
8856 | | |
8857 | | // repeated .mozilla.layers.layerscope.DrawPacket.Rect layerRect = 5; |
8858 | | int DrawPacket::layerrect_size() const { |
8859 | | return layerrect_.size(); |
8860 | | } |
8861 | | void DrawPacket::clear_layerrect() { |
8862 | | layerrect_.Clear(); |
8863 | | } |
8864 | | const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::layerrect(int index) const { |
8865 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerRect) |
8866 | | return layerrect_.Get(index); |
8867 | | } |
8868 | | ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_layerrect(int index) { |
8869 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.layerRect) |
8870 | | return layerrect_.Mutable(index); |
8871 | | } |
8872 | | ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_layerrect() { |
8873 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.layerRect) |
8874 | | return layerrect_.Add(); |
8875 | | } |
8876 | | ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >* |
8877 | | DrawPacket::mutable_layerrect() { |
8878 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.layerRect) |
8879 | | return &layerrect_; |
8880 | | } |
8881 | | const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >& |
8882 | | DrawPacket::layerrect() const { |
8883 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.layerRect) |
8884 | | return layerrect_; |
8885 | | } |
8886 | | |
8887 | | // required uint64 layerref = 6; |
8888 | | bool DrawPacket::has_layerref() const { |
8889 | | return (_has_bits_[0] & 0x00000004u) != 0; |
8890 | | } |
8891 | | void DrawPacket::set_has_layerref() { |
8892 | | _has_bits_[0] |= 0x00000004u; |
8893 | | } |
8894 | | void DrawPacket::clear_has_layerref() { |
8895 | | _has_bits_[0] &= ~0x00000004u; |
8896 | | } |
8897 | | void DrawPacket::clear_layerref() { |
8898 | | layerref_ = GOOGLE_ULONGLONG(0); |
8899 | | clear_has_layerref(); |
8900 | | } |
8901 | | ::google::protobuf::uint64 DrawPacket::layerref() const { |
8902 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.layerref) |
8903 | | return layerref_; |
8904 | | } |
8905 | | void DrawPacket::set_layerref(::google::protobuf::uint64 value) { |
8906 | | set_has_layerref(); |
8907 | | layerref_ = value; |
8908 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.layerref) |
8909 | | } |
8910 | | |
8911 | | // repeated uint32 texIDs = 7; |
8912 | | int DrawPacket::texids_size() const { |
8913 | | return texids_.size(); |
8914 | | } |
8915 | | void DrawPacket::clear_texids() { |
8916 | | texids_.Clear(); |
8917 | | } |
8918 | | ::google::protobuf::uint32 DrawPacket::texids(int index) const { |
8919 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.texIDs) |
8920 | | return texids_.Get(index); |
8921 | | } |
8922 | | void DrawPacket::set_texids(int index, ::google::protobuf::uint32 value) { |
8923 | | texids_.Set(index, value); |
8924 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.DrawPacket.texIDs) |
8925 | | } |
8926 | | void DrawPacket::add_texids(::google::protobuf::uint32 value) { |
8927 | | texids_.Add(value); |
8928 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.texIDs) |
8929 | | } |
8930 | | const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
8931 | | DrawPacket::texids() const { |
8932 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.texIDs) |
8933 | | return texids_; |
8934 | | } |
8935 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
8936 | | DrawPacket::mutable_texids() { |
8937 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.texIDs) |
8938 | | return &texids_; |
8939 | | } |
8940 | | |
8941 | | // repeated .mozilla.layers.layerscope.DrawPacket.Rect textureRect = 8; |
8942 | | int DrawPacket::texturerect_size() const { |
8943 | | return texturerect_.size(); |
8944 | | } |
8945 | | void DrawPacket::clear_texturerect() { |
8946 | | texturerect_.Clear(); |
8947 | | } |
8948 | | const ::mozilla::layers::layerscope::DrawPacket_Rect& DrawPacket::texturerect(int index) const { |
8949 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.DrawPacket.textureRect) |
8950 | | return texturerect_.Get(index); |
8951 | | } |
8952 | | ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::mutable_texturerect(int index) { |
8953 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.DrawPacket.textureRect) |
8954 | | return texturerect_.Mutable(index); |
8955 | | } |
8956 | | ::mozilla::layers::layerscope::DrawPacket_Rect* DrawPacket::add_texturerect() { |
8957 | | // @@protoc_insertion_point(field_add:mozilla.layers.layerscope.DrawPacket.textureRect) |
8958 | | return texturerect_.Add(); |
8959 | | } |
8960 | | ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >* |
8961 | | DrawPacket::mutable_texturerect() { |
8962 | | // @@protoc_insertion_point(field_mutable_list:mozilla.layers.layerscope.DrawPacket.textureRect) |
8963 | | return &texturerect_; |
8964 | | } |
8965 | | const ::google::protobuf::RepeatedPtrField< ::mozilla::layers::layerscope::DrawPacket_Rect >& |
8966 | | DrawPacket::texturerect() const { |
8967 | | // @@protoc_insertion_point(field_list:mozilla.layers.layerscope.DrawPacket.textureRect) |
8968 | | return texturerect_; |
8969 | | } |
8970 | | |
8971 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
8972 | | |
8973 | | // =================================================================== |
8974 | | |
8975 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
8976 | | const int Packet::kTypeFieldNumber; |
8977 | | const int Packet::kFrameFieldNumber; |
8978 | | const int Packet::kColorFieldNumber; |
8979 | | const int Packet::kTextureFieldNumber; |
8980 | | const int Packet::kLayersFieldNumber; |
8981 | | const int Packet::kMetaFieldNumber; |
8982 | | const int Packet::kDrawFieldNumber; |
8983 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
8984 | | |
8985 | | Packet::Packet() |
8986 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
8987 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
8988 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
8989 | 0 | } |
8990 | 0 | SharedCtor(); |
8991 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.Packet) |
8992 | 0 | } |
8993 | | Packet::Packet(const Packet& from) |
8994 | | : ::google::protobuf::MessageLite(), |
8995 | | _internal_metadata_(NULL), |
8996 | | _has_bits_(from._has_bits_), |
8997 | 0 | _cached_size_(0) { |
8998 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
8999 | 0 | if (from.has_frame()) { |
9000 | 0 | frame_ = new ::mozilla::layers::layerscope::FramePacket(*from.frame_); |
9001 | 0 | } else { |
9002 | 0 | frame_ = NULL; |
9003 | 0 | } |
9004 | 0 | if (from.has_color()) { |
9005 | 0 | color_ = new ::mozilla::layers::layerscope::ColorPacket(*from.color_); |
9006 | 0 | } else { |
9007 | 0 | color_ = NULL; |
9008 | 0 | } |
9009 | 0 | if (from.has_texture()) { |
9010 | 0 | texture_ = new ::mozilla::layers::layerscope::TexturePacket(*from.texture_); |
9011 | 0 | } else { |
9012 | 0 | texture_ = NULL; |
9013 | 0 | } |
9014 | 0 | if (from.has_layers()) { |
9015 | 0 | layers_ = new ::mozilla::layers::layerscope::LayersPacket(*from.layers_); |
9016 | 0 | } else { |
9017 | 0 | layers_ = NULL; |
9018 | 0 | } |
9019 | 0 | if (from.has_meta()) { |
9020 | 0 | meta_ = new ::mozilla::layers::layerscope::MetaPacket(*from.meta_); |
9021 | 0 | } else { |
9022 | 0 | meta_ = NULL; |
9023 | 0 | } |
9024 | 0 | if (from.has_draw()) { |
9025 | 0 | draw_ = new ::mozilla::layers::layerscope::DrawPacket(*from.draw_); |
9026 | 0 | } else { |
9027 | 0 | draw_ = NULL; |
9028 | 0 | } |
9029 | 0 | type_ = from.type_; |
9030 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.Packet) |
9031 | 0 | } |
9032 | | |
9033 | 0 | void Packet::SharedCtor() { |
9034 | 0 | _cached_size_ = 0; |
9035 | 0 | ::memset(&frame_, 0, static_cast<size_t>( |
9036 | 0 | reinterpret_cast<char*>(&draw_) - |
9037 | 0 | reinterpret_cast<char*>(&frame_)) + sizeof(draw_)); |
9038 | 0 | type_ = 1; |
9039 | 0 | } |
9040 | | |
9041 | 0 | Packet::~Packet() { |
9042 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.Packet) |
9043 | 0 | SharedDtor(); |
9044 | 0 | } |
9045 | | |
9046 | 0 | void Packet::SharedDtor() { |
9047 | 0 | if (this != internal_default_instance()) delete frame_; |
9048 | 0 | if (this != internal_default_instance()) delete color_; |
9049 | 0 | if (this != internal_default_instance()) delete texture_; |
9050 | 0 | if (this != internal_default_instance()) delete layers_; |
9051 | 0 | if (this != internal_default_instance()) delete meta_; |
9052 | 0 | if (this != internal_default_instance()) delete draw_; |
9053 | 0 | } |
9054 | | |
9055 | 0 | void Packet::SetCachedSize(int size) const { |
9056 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9057 | 0 | _cached_size_ = size; |
9058 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9059 | 0 | } |
9060 | 0 | const Packet& Packet::default_instance() { |
9061 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
9062 | 0 | return *internal_default_instance(); |
9063 | 0 | } |
9064 | | |
9065 | 0 | Packet* Packet::New(::google::protobuf::Arena* arena) const { |
9066 | 0 | Packet* n = new Packet; |
9067 | 0 | if (arena != NULL) { |
9068 | 0 | arena->Own(n); |
9069 | 0 | } |
9070 | 0 | return n; |
9071 | 0 | } |
9072 | | |
9073 | 0 | void Packet::Clear() { |
9074 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.Packet) |
9075 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9076 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
9077 | 0 | (void) cached_has_bits; |
9078 | 0 |
|
9079 | 0 | cached_has_bits = _has_bits_[0]; |
9080 | 0 | if (cached_has_bits & 127u) { |
9081 | 0 | if (cached_has_bits & 0x00000001u) { |
9082 | 0 | GOOGLE_DCHECK(frame_ != NULL); |
9083 | 0 | frame_->::mozilla::layers::layerscope::FramePacket::Clear(); |
9084 | 0 | } |
9085 | 0 | if (cached_has_bits & 0x00000002u) { |
9086 | 0 | GOOGLE_DCHECK(color_ != NULL); |
9087 | 0 | color_->::mozilla::layers::layerscope::ColorPacket::Clear(); |
9088 | 0 | } |
9089 | 0 | if (cached_has_bits & 0x00000004u) { |
9090 | 0 | GOOGLE_DCHECK(texture_ != NULL); |
9091 | 0 | texture_->::mozilla::layers::layerscope::TexturePacket::Clear(); |
9092 | 0 | } |
9093 | 0 | if (cached_has_bits & 0x00000008u) { |
9094 | 0 | GOOGLE_DCHECK(layers_ != NULL); |
9095 | 0 | layers_->::mozilla::layers::layerscope::LayersPacket::Clear(); |
9096 | 0 | } |
9097 | 0 | if (cached_has_bits & 0x00000010u) { |
9098 | 0 | GOOGLE_DCHECK(meta_ != NULL); |
9099 | 0 | meta_->::mozilla::layers::layerscope::MetaPacket::Clear(); |
9100 | 0 | } |
9101 | 0 | if (cached_has_bits & 0x00000020u) { |
9102 | 0 | GOOGLE_DCHECK(draw_ != NULL); |
9103 | 0 | draw_->::mozilla::layers::layerscope::DrawPacket::Clear(); |
9104 | 0 | } |
9105 | 0 | type_ = 1; |
9106 | 0 | } |
9107 | 0 | _has_bits_.Clear(); |
9108 | 0 | _internal_metadata_.Clear(); |
9109 | 0 | } |
9110 | | |
9111 | | bool Packet::MergePartialFromCodedStream( |
9112 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9113 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9114 | 0 | ::google::protobuf::uint32 tag; |
9115 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
9116 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
9117 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
9118 | 0 | mutable_unknown_fields)); |
9119 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
9120 | 0 | &unknown_fields_string, false); |
9121 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.Packet) |
9122 | 0 | for (;;) { |
9123 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9124 | 0 | tag = p.first; |
9125 | 0 | if (!p.second) goto handle_unusual; |
9126 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9127 | 0 | // required .mozilla.layers.layerscope.Packet.DataType type = 1; |
9128 | 0 | case 1: { |
9129 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9130 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
9131 | 0 | int value; |
9132 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9133 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
9134 | 0 | input, &value))); |
9135 | 0 | if (::mozilla::layers::layerscope::Packet_DataType_IsValid(value)) { |
9136 | 0 | set_type(static_cast< ::mozilla::layers::layerscope::Packet_DataType >(value)); |
9137 | 0 | } else { |
9138 | 0 | unknown_fields_stream.WriteVarint32(8u); |
9139 | 0 | unknown_fields_stream.WriteVarint32( |
9140 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
9141 | 0 | } |
9142 | 0 | } else { |
9143 | 0 | goto handle_unusual; |
9144 | 0 | } |
9145 | 0 | break; |
9146 | 0 | } |
9147 | 0 |
|
9148 | 0 | // optional .mozilla.layers.layerscope.FramePacket frame = 2; |
9149 | 0 | case 2: { |
9150 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9151 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
9152 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9153 | 0 | input, mutable_frame())); |
9154 | 0 | } else { |
9155 | 0 | goto handle_unusual; |
9156 | 0 | } |
9157 | 0 | break; |
9158 | 0 | } |
9159 | 0 |
|
9160 | 0 | // optional .mozilla.layers.layerscope.ColorPacket color = 3; |
9161 | 0 | case 3: { |
9162 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9163 | 0 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
9164 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9165 | 0 | input, mutable_color())); |
9166 | 0 | } else { |
9167 | 0 | goto handle_unusual; |
9168 | 0 | } |
9169 | 0 | break; |
9170 | 0 | } |
9171 | 0 |
|
9172 | 0 | // optional .mozilla.layers.layerscope.TexturePacket texture = 4; |
9173 | 0 | case 4: { |
9174 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9175 | 0 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
9176 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9177 | 0 | input, mutable_texture())); |
9178 | 0 | } else { |
9179 | 0 | goto handle_unusual; |
9180 | 0 | } |
9181 | 0 | break; |
9182 | 0 | } |
9183 | 0 |
|
9184 | 0 | // optional .mozilla.layers.layerscope.LayersPacket layers = 5; |
9185 | 0 | case 5: { |
9186 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9187 | 0 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
9188 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9189 | 0 | input, mutable_layers())); |
9190 | 0 | } else { |
9191 | 0 | goto handle_unusual; |
9192 | 0 | } |
9193 | 0 | break; |
9194 | 0 | } |
9195 | 0 |
|
9196 | 0 | // optional .mozilla.layers.layerscope.MetaPacket meta = 6; |
9197 | 0 | case 6: { |
9198 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9199 | 0 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
9200 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9201 | 0 | input, mutable_meta())); |
9202 | 0 | } else { |
9203 | 0 | goto handle_unusual; |
9204 | 0 | } |
9205 | 0 | break; |
9206 | 0 | } |
9207 | 0 |
|
9208 | 0 | // optional .mozilla.layers.layerscope.DrawPacket draw = 7; |
9209 | 0 | case 7: { |
9210 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9211 | 0 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
9212 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
9213 | 0 | input, mutable_draw())); |
9214 | 0 | } else { |
9215 | 0 | goto handle_unusual; |
9216 | 0 | } |
9217 | 0 | break; |
9218 | 0 | } |
9219 | 0 | |
9220 | 0 | default: { |
9221 | 0 | handle_unusual: |
9222 | 0 | if (tag == 0) { |
9223 | 0 | goto success; |
9224 | 0 | } |
9225 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
9226 | 0 | input, tag, &unknown_fields_stream)); |
9227 | 0 | break; |
9228 | 0 | } |
9229 | 0 | } |
9230 | 0 | } |
9231 | 0 | success: |
9232 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.Packet) |
9233 | 0 | return true; |
9234 | 0 | failure: |
9235 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.Packet) |
9236 | 0 | return false; |
9237 | 0 | #undef DO_ |
9238 | 0 | } |
9239 | | |
9240 | | void Packet::SerializeWithCachedSizes( |
9241 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9242 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.Packet) |
9243 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9244 | 0 | (void) cached_has_bits; |
9245 | 0 |
|
9246 | 0 | cached_has_bits = _has_bits_[0]; |
9247 | 0 | // required .mozilla.layers.layerscope.Packet.DataType type = 1; |
9248 | 0 | if (cached_has_bits & 0x00000040u) { |
9249 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
9250 | 0 | 1, this->type(), output); |
9251 | 0 | } |
9252 | 0 |
|
9253 | 0 | // optional .mozilla.layers.layerscope.FramePacket frame = 2; |
9254 | 0 | if (cached_has_bits & 0x00000001u) { |
9255 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9256 | 0 | 2, *this->frame_, output); |
9257 | 0 | } |
9258 | 0 |
|
9259 | 0 | // optional .mozilla.layers.layerscope.ColorPacket color = 3; |
9260 | 0 | if (cached_has_bits & 0x00000002u) { |
9261 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9262 | 0 | 3, *this->color_, output); |
9263 | 0 | } |
9264 | 0 |
|
9265 | 0 | // optional .mozilla.layers.layerscope.TexturePacket texture = 4; |
9266 | 0 | if (cached_has_bits & 0x00000004u) { |
9267 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9268 | 0 | 4, *this->texture_, output); |
9269 | 0 | } |
9270 | 0 |
|
9271 | 0 | // optional .mozilla.layers.layerscope.LayersPacket layers = 5; |
9272 | 0 | if (cached_has_bits & 0x00000008u) { |
9273 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9274 | 0 | 5, *this->layers_, output); |
9275 | 0 | } |
9276 | 0 |
|
9277 | 0 | // optional .mozilla.layers.layerscope.MetaPacket meta = 6; |
9278 | 0 | if (cached_has_bits & 0x00000010u) { |
9279 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9280 | 0 | 6, *this->meta_, output); |
9281 | 0 | } |
9282 | 0 |
|
9283 | 0 | // optional .mozilla.layers.layerscope.DrawPacket draw = 7; |
9284 | 0 | if (cached_has_bits & 0x00000020u) { |
9285 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
9286 | 0 | 7, *this->draw_, output); |
9287 | 0 | } |
9288 | 0 |
|
9289 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
9290 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
9291 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.Packet) |
9292 | 0 | } |
9293 | | |
9294 | 0 | size_t Packet::ByteSizeLong() const { |
9295 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.Packet) |
9296 | 0 | size_t total_size = 0; |
9297 | 0 |
|
9298 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
9299 | 0 |
|
9300 | 0 | // required .mozilla.layers.layerscope.Packet.DataType type = 1; |
9301 | 0 | if (has_type()) { |
9302 | 0 | total_size += 1 + |
9303 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
9304 | 0 | } |
9305 | 0 | if (_has_bits_[0 / 32] & 63u) { |
9306 | 0 | // optional .mozilla.layers.layerscope.FramePacket frame = 2; |
9307 | 0 | if (has_frame()) { |
9308 | 0 | total_size += 1 + |
9309 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9310 | 0 | *this->frame_); |
9311 | 0 | } |
9312 | 0 |
|
9313 | 0 | // optional .mozilla.layers.layerscope.ColorPacket color = 3; |
9314 | 0 | if (has_color()) { |
9315 | 0 | total_size += 1 + |
9316 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9317 | 0 | *this->color_); |
9318 | 0 | } |
9319 | 0 |
|
9320 | 0 | // optional .mozilla.layers.layerscope.TexturePacket texture = 4; |
9321 | 0 | if (has_texture()) { |
9322 | 0 | total_size += 1 + |
9323 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9324 | 0 | *this->texture_); |
9325 | 0 | } |
9326 | 0 |
|
9327 | 0 | // optional .mozilla.layers.layerscope.LayersPacket layers = 5; |
9328 | 0 | if (has_layers()) { |
9329 | 0 | total_size += 1 + |
9330 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9331 | 0 | *this->layers_); |
9332 | 0 | } |
9333 | 0 |
|
9334 | 0 | // optional .mozilla.layers.layerscope.MetaPacket meta = 6; |
9335 | 0 | if (has_meta()) { |
9336 | 0 | total_size += 1 + |
9337 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9338 | 0 | *this->meta_); |
9339 | 0 | } |
9340 | 0 |
|
9341 | 0 | // optional .mozilla.layers.layerscope.DrawPacket draw = 7; |
9342 | 0 | if (has_draw()) { |
9343 | 0 | total_size += 1 + |
9344 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
9345 | 0 | *this->draw_); |
9346 | 0 | } |
9347 | 0 |
|
9348 | 0 | } |
9349 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9350 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9351 | 0 | _cached_size_ = cached_size; |
9352 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9353 | 0 | return total_size; |
9354 | 0 | } |
9355 | | |
9356 | | void Packet::CheckTypeAndMergeFrom( |
9357 | 0 | const ::google::protobuf::MessageLite& from) { |
9358 | 0 | MergeFrom(*::google::protobuf::down_cast<const Packet*>(&from)); |
9359 | 0 | } |
9360 | | |
9361 | 0 | void Packet::MergeFrom(const Packet& from) { |
9362 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.Packet) |
9363 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9364 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9365 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9366 | 0 | (void) cached_has_bits; |
9367 | 0 |
|
9368 | 0 | cached_has_bits = from._has_bits_[0]; |
9369 | 0 | if (cached_has_bits & 127u) { |
9370 | 0 | if (cached_has_bits & 0x00000001u) { |
9371 | 0 | mutable_frame()->::mozilla::layers::layerscope::FramePacket::MergeFrom(from.frame()); |
9372 | 0 | } |
9373 | 0 | if (cached_has_bits & 0x00000002u) { |
9374 | 0 | mutable_color()->::mozilla::layers::layerscope::ColorPacket::MergeFrom(from.color()); |
9375 | 0 | } |
9376 | 0 | if (cached_has_bits & 0x00000004u) { |
9377 | 0 | mutable_texture()->::mozilla::layers::layerscope::TexturePacket::MergeFrom(from.texture()); |
9378 | 0 | } |
9379 | 0 | if (cached_has_bits & 0x00000008u) { |
9380 | 0 | mutable_layers()->::mozilla::layers::layerscope::LayersPacket::MergeFrom(from.layers()); |
9381 | 0 | } |
9382 | 0 | if (cached_has_bits & 0x00000010u) { |
9383 | 0 | mutable_meta()->::mozilla::layers::layerscope::MetaPacket::MergeFrom(from.meta()); |
9384 | 0 | } |
9385 | 0 | if (cached_has_bits & 0x00000020u) { |
9386 | 0 | mutable_draw()->::mozilla::layers::layerscope::DrawPacket::MergeFrom(from.draw()); |
9387 | 0 | } |
9388 | 0 | if (cached_has_bits & 0x00000040u) { |
9389 | 0 | type_ = from.type_; |
9390 | 0 | } |
9391 | 0 | _has_bits_[0] |= cached_has_bits; |
9392 | 0 | } |
9393 | 0 | } |
9394 | | |
9395 | 0 | void Packet::CopyFrom(const Packet& from) { |
9396 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.Packet) |
9397 | 0 | if (&from == this) return; |
9398 | 0 | Clear(); |
9399 | 0 | MergeFrom(from); |
9400 | 0 | } |
9401 | | |
9402 | 0 | bool Packet::IsInitialized() const { |
9403 | 0 | if ((_has_bits_[0] & 0x00000040) != 0x00000040) return false; |
9404 | 0 | if (has_color()) { |
9405 | 0 | if (!this->color_->IsInitialized()) return false; |
9406 | 0 | } |
9407 | 0 | if (has_texture()) { |
9408 | 0 | if (!this->texture_->IsInitialized()) return false; |
9409 | 0 | } |
9410 | 0 | if (has_layers()) { |
9411 | 0 | if (!this->layers_->IsInitialized()) return false; |
9412 | 0 | } |
9413 | 0 | if (has_draw()) { |
9414 | 0 | if (!this->draw_->IsInitialized()) return false; |
9415 | 0 | } |
9416 | 0 | return true; |
9417 | 0 | } |
9418 | | |
9419 | 0 | void Packet::Swap(Packet* other) { |
9420 | 0 | if (other == this) return; |
9421 | 0 | InternalSwap(other); |
9422 | 0 | } |
9423 | 0 | void Packet::InternalSwap(Packet* other) { |
9424 | 0 | using std::swap; |
9425 | 0 | swap(frame_, other->frame_); |
9426 | 0 | swap(color_, other->color_); |
9427 | 0 | swap(texture_, other->texture_); |
9428 | 0 | swap(layers_, other->layers_); |
9429 | 0 | swap(meta_, other->meta_); |
9430 | 0 | swap(draw_, other->draw_); |
9431 | 0 | swap(type_, other->type_); |
9432 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9433 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9434 | 0 | swap(_cached_size_, other->_cached_size_); |
9435 | 0 | } |
9436 | | |
9437 | 0 | ::std::string Packet::GetTypeName() const { |
9438 | 0 | return "mozilla.layers.layerscope.Packet"; |
9439 | 0 | } |
9440 | | |
9441 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
9442 | | // Packet |
9443 | | |
9444 | | // required .mozilla.layers.layerscope.Packet.DataType type = 1; |
9445 | | bool Packet::has_type() const { |
9446 | | return (_has_bits_[0] & 0x00000040u) != 0; |
9447 | | } |
9448 | | void Packet::set_has_type() { |
9449 | | _has_bits_[0] |= 0x00000040u; |
9450 | | } |
9451 | | void Packet::clear_has_type() { |
9452 | | _has_bits_[0] &= ~0x00000040u; |
9453 | | } |
9454 | | void Packet::clear_type() { |
9455 | | type_ = 1; |
9456 | | clear_has_type(); |
9457 | | } |
9458 | | ::mozilla::layers::layerscope::Packet_DataType Packet::type() const { |
9459 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.type) |
9460 | | return static_cast< ::mozilla::layers::layerscope::Packet_DataType >(type_); |
9461 | | } |
9462 | | void Packet::set_type(::mozilla::layers::layerscope::Packet_DataType value) { |
9463 | | assert(::mozilla::layers::layerscope::Packet_DataType_IsValid(value)); |
9464 | | set_has_type(); |
9465 | | type_ = value; |
9466 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.Packet.type) |
9467 | | } |
9468 | | |
9469 | | // optional .mozilla.layers.layerscope.FramePacket frame = 2; |
9470 | | bool Packet::has_frame() const { |
9471 | | return (_has_bits_[0] & 0x00000001u) != 0; |
9472 | | } |
9473 | | void Packet::set_has_frame() { |
9474 | | _has_bits_[0] |= 0x00000001u; |
9475 | | } |
9476 | | void Packet::clear_has_frame() { |
9477 | | _has_bits_[0] &= ~0x00000001u; |
9478 | | } |
9479 | | void Packet::clear_frame() { |
9480 | | if (frame_ != NULL) frame_->::mozilla::layers::layerscope::FramePacket::Clear(); |
9481 | | clear_has_frame(); |
9482 | | } |
9483 | | const ::mozilla::layers::layerscope::FramePacket& Packet::frame() const { |
9484 | | const ::mozilla::layers::layerscope::FramePacket* p = frame_; |
9485 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.frame) |
9486 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::FramePacket*>( |
9487 | | &::mozilla::layers::layerscope::_FramePacket_default_instance_); |
9488 | | } |
9489 | | ::mozilla::layers::layerscope::FramePacket* Packet::mutable_frame() { |
9490 | | set_has_frame(); |
9491 | | if (frame_ == NULL) { |
9492 | | frame_ = new ::mozilla::layers::layerscope::FramePacket; |
9493 | | } |
9494 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.frame) |
9495 | | return frame_; |
9496 | | } |
9497 | | ::mozilla::layers::layerscope::FramePacket* Packet::release_frame() { |
9498 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.frame) |
9499 | | clear_has_frame(); |
9500 | | ::mozilla::layers::layerscope::FramePacket* temp = frame_; |
9501 | | frame_ = NULL; |
9502 | | return temp; |
9503 | | } |
9504 | | void Packet::set_allocated_frame(::mozilla::layers::layerscope::FramePacket* frame) { |
9505 | | delete frame_; |
9506 | | frame_ = frame; |
9507 | | if (frame) { |
9508 | | set_has_frame(); |
9509 | | } else { |
9510 | | clear_has_frame(); |
9511 | | } |
9512 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.frame) |
9513 | | } |
9514 | | |
9515 | | // optional .mozilla.layers.layerscope.ColorPacket color = 3; |
9516 | | bool Packet::has_color() const { |
9517 | | return (_has_bits_[0] & 0x00000002u) != 0; |
9518 | | } |
9519 | | void Packet::set_has_color() { |
9520 | | _has_bits_[0] |= 0x00000002u; |
9521 | | } |
9522 | | void Packet::clear_has_color() { |
9523 | | _has_bits_[0] &= ~0x00000002u; |
9524 | | } |
9525 | | void Packet::clear_color() { |
9526 | | if (color_ != NULL) color_->::mozilla::layers::layerscope::ColorPacket::Clear(); |
9527 | | clear_has_color(); |
9528 | | } |
9529 | | const ::mozilla::layers::layerscope::ColorPacket& Packet::color() const { |
9530 | | const ::mozilla::layers::layerscope::ColorPacket* p = color_; |
9531 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.color) |
9532 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::ColorPacket*>( |
9533 | | &::mozilla::layers::layerscope::_ColorPacket_default_instance_); |
9534 | | } |
9535 | | ::mozilla::layers::layerscope::ColorPacket* Packet::mutable_color() { |
9536 | | set_has_color(); |
9537 | | if (color_ == NULL) { |
9538 | | color_ = new ::mozilla::layers::layerscope::ColorPacket; |
9539 | | } |
9540 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.color) |
9541 | | return color_; |
9542 | | } |
9543 | | ::mozilla::layers::layerscope::ColorPacket* Packet::release_color() { |
9544 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.color) |
9545 | | clear_has_color(); |
9546 | | ::mozilla::layers::layerscope::ColorPacket* temp = color_; |
9547 | | color_ = NULL; |
9548 | | return temp; |
9549 | | } |
9550 | | void Packet::set_allocated_color(::mozilla::layers::layerscope::ColorPacket* color) { |
9551 | | delete color_; |
9552 | | color_ = color; |
9553 | | if (color) { |
9554 | | set_has_color(); |
9555 | | } else { |
9556 | | clear_has_color(); |
9557 | | } |
9558 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.color) |
9559 | | } |
9560 | | |
9561 | | // optional .mozilla.layers.layerscope.TexturePacket texture = 4; |
9562 | | bool Packet::has_texture() const { |
9563 | | return (_has_bits_[0] & 0x00000004u) != 0; |
9564 | | } |
9565 | | void Packet::set_has_texture() { |
9566 | | _has_bits_[0] |= 0x00000004u; |
9567 | | } |
9568 | | void Packet::clear_has_texture() { |
9569 | | _has_bits_[0] &= ~0x00000004u; |
9570 | | } |
9571 | | void Packet::clear_texture() { |
9572 | | if (texture_ != NULL) texture_->::mozilla::layers::layerscope::TexturePacket::Clear(); |
9573 | | clear_has_texture(); |
9574 | | } |
9575 | | const ::mozilla::layers::layerscope::TexturePacket& Packet::texture() const { |
9576 | | const ::mozilla::layers::layerscope::TexturePacket* p = texture_; |
9577 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.texture) |
9578 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::TexturePacket*>( |
9579 | | &::mozilla::layers::layerscope::_TexturePacket_default_instance_); |
9580 | | } |
9581 | | ::mozilla::layers::layerscope::TexturePacket* Packet::mutable_texture() { |
9582 | | set_has_texture(); |
9583 | | if (texture_ == NULL) { |
9584 | | texture_ = new ::mozilla::layers::layerscope::TexturePacket; |
9585 | | } |
9586 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.texture) |
9587 | | return texture_; |
9588 | | } |
9589 | | ::mozilla::layers::layerscope::TexturePacket* Packet::release_texture() { |
9590 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.texture) |
9591 | | clear_has_texture(); |
9592 | | ::mozilla::layers::layerscope::TexturePacket* temp = texture_; |
9593 | | texture_ = NULL; |
9594 | | return temp; |
9595 | | } |
9596 | | void Packet::set_allocated_texture(::mozilla::layers::layerscope::TexturePacket* texture) { |
9597 | | delete texture_; |
9598 | | texture_ = texture; |
9599 | | if (texture) { |
9600 | | set_has_texture(); |
9601 | | } else { |
9602 | | clear_has_texture(); |
9603 | | } |
9604 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.texture) |
9605 | | } |
9606 | | |
9607 | | // optional .mozilla.layers.layerscope.LayersPacket layers = 5; |
9608 | | bool Packet::has_layers() const { |
9609 | | return (_has_bits_[0] & 0x00000008u) != 0; |
9610 | | } |
9611 | | void Packet::set_has_layers() { |
9612 | | _has_bits_[0] |= 0x00000008u; |
9613 | | } |
9614 | | void Packet::clear_has_layers() { |
9615 | | _has_bits_[0] &= ~0x00000008u; |
9616 | | } |
9617 | | void Packet::clear_layers() { |
9618 | | if (layers_ != NULL) layers_->::mozilla::layers::layerscope::LayersPacket::Clear(); |
9619 | | clear_has_layers(); |
9620 | | } |
9621 | | const ::mozilla::layers::layerscope::LayersPacket& Packet::layers() const { |
9622 | | const ::mozilla::layers::layerscope::LayersPacket* p = layers_; |
9623 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.layers) |
9624 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::LayersPacket*>( |
9625 | | &::mozilla::layers::layerscope::_LayersPacket_default_instance_); |
9626 | | } |
9627 | | ::mozilla::layers::layerscope::LayersPacket* Packet::mutable_layers() { |
9628 | | set_has_layers(); |
9629 | | if (layers_ == NULL) { |
9630 | | layers_ = new ::mozilla::layers::layerscope::LayersPacket; |
9631 | | } |
9632 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.layers) |
9633 | | return layers_; |
9634 | | } |
9635 | | ::mozilla::layers::layerscope::LayersPacket* Packet::release_layers() { |
9636 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.layers) |
9637 | | clear_has_layers(); |
9638 | | ::mozilla::layers::layerscope::LayersPacket* temp = layers_; |
9639 | | layers_ = NULL; |
9640 | | return temp; |
9641 | | } |
9642 | | void Packet::set_allocated_layers(::mozilla::layers::layerscope::LayersPacket* layers) { |
9643 | | delete layers_; |
9644 | | layers_ = layers; |
9645 | | if (layers) { |
9646 | | set_has_layers(); |
9647 | | } else { |
9648 | | clear_has_layers(); |
9649 | | } |
9650 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.layers) |
9651 | | } |
9652 | | |
9653 | | // optional .mozilla.layers.layerscope.MetaPacket meta = 6; |
9654 | | bool Packet::has_meta() const { |
9655 | | return (_has_bits_[0] & 0x00000010u) != 0; |
9656 | | } |
9657 | | void Packet::set_has_meta() { |
9658 | | _has_bits_[0] |= 0x00000010u; |
9659 | | } |
9660 | | void Packet::clear_has_meta() { |
9661 | | _has_bits_[0] &= ~0x00000010u; |
9662 | | } |
9663 | | void Packet::clear_meta() { |
9664 | | if (meta_ != NULL) meta_->::mozilla::layers::layerscope::MetaPacket::Clear(); |
9665 | | clear_has_meta(); |
9666 | | } |
9667 | | const ::mozilla::layers::layerscope::MetaPacket& Packet::meta() const { |
9668 | | const ::mozilla::layers::layerscope::MetaPacket* p = meta_; |
9669 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.meta) |
9670 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::MetaPacket*>( |
9671 | | &::mozilla::layers::layerscope::_MetaPacket_default_instance_); |
9672 | | } |
9673 | | ::mozilla::layers::layerscope::MetaPacket* Packet::mutable_meta() { |
9674 | | set_has_meta(); |
9675 | | if (meta_ == NULL) { |
9676 | | meta_ = new ::mozilla::layers::layerscope::MetaPacket; |
9677 | | } |
9678 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.meta) |
9679 | | return meta_; |
9680 | | } |
9681 | | ::mozilla::layers::layerscope::MetaPacket* Packet::release_meta() { |
9682 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.meta) |
9683 | | clear_has_meta(); |
9684 | | ::mozilla::layers::layerscope::MetaPacket* temp = meta_; |
9685 | | meta_ = NULL; |
9686 | | return temp; |
9687 | | } |
9688 | | void Packet::set_allocated_meta(::mozilla::layers::layerscope::MetaPacket* meta) { |
9689 | | delete meta_; |
9690 | | meta_ = meta; |
9691 | | if (meta) { |
9692 | | set_has_meta(); |
9693 | | } else { |
9694 | | clear_has_meta(); |
9695 | | } |
9696 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.meta) |
9697 | | } |
9698 | | |
9699 | | // optional .mozilla.layers.layerscope.DrawPacket draw = 7; |
9700 | | bool Packet::has_draw() const { |
9701 | | return (_has_bits_[0] & 0x00000020u) != 0; |
9702 | | } |
9703 | | void Packet::set_has_draw() { |
9704 | | _has_bits_[0] |= 0x00000020u; |
9705 | | } |
9706 | | void Packet::clear_has_draw() { |
9707 | | _has_bits_[0] &= ~0x00000020u; |
9708 | | } |
9709 | | void Packet::clear_draw() { |
9710 | | if (draw_ != NULL) draw_->::mozilla::layers::layerscope::DrawPacket::Clear(); |
9711 | | clear_has_draw(); |
9712 | | } |
9713 | | const ::mozilla::layers::layerscope::DrawPacket& Packet::draw() const { |
9714 | | const ::mozilla::layers::layerscope::DrawPacket* p = draw_; |
9715 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.Packet.draw) |
9716 | | return p != NULL ? *p : *reinterpret_cast<const ::mozilla::layers::layerscope::DrawPacket*>( |
9717 | | &::mozilla::layers::layerscope::_DrawPacket_default_instance_); |
9718 | | } |
9719 | | ::mozilla::layers::layerscope::DrawPacket* Packet::mutable_draw() { |
9720 | | set_has_draw(); |
9721 | | if (draw_ == NULL) { |
9722 | | draw_ = new ::mozilla::layers::layerscope::DrawPacket; |
9723 | | } |
9724 | | // @@protoc_insertion_point(field_mutable:mozilla.layers.layerscope.Packet.draw) |
9725 | | return draw_; |
9726 | | } |
9727 | | ::mozilla::layers::layerscope::DrawPacket* Packet::release_draw() { |
9728 | | // @@protoc_insertion_point(field_release:mozilla.layers.layerscope.Packet.draw) |
9729 | | clear_has_draw(); |
9730 | | ::mozilla::layers::layerscope::DrawPacket* temp = draw_; |
9731 | | draw_ = NULL; |
9732 | | return temp; |
9733 | | } |
9734 | | void Packet::set_allocated_draw(::mozilla::layers::layerscope::DrawPacket* draw) { |
9735 | | delete draw_; |
9736 | | draw_ = draw; |
9737 | | if (draw) { |
9738 | | set_has_draw(); |
9739 | | } else { |
9740 | | clear_has_draw(); |
9741 | | } |
9742 | | // @@protoc_insertion_point(field_set_allocated:mozilla.layers.layerscope.Packet.draw) |
9743 | | } |
9744 | | |
9745 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
9746 | | |
9747 | | // =================================================================== |
9748 | | |
9749 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
9750 | | const int CommandPacket::kTypeFieldNumber; |
9751 | | const int CommandPacket::kValueFieldNumber; |
9752 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
9753 | | |
9754 | | CommandPacket::CommandPacket() |
9755 | 0 | : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { |
9756 | 0 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
9757 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
9758 | 0 | } |
9759 | 0 | SharedCtor(); |
9760 | 0 | // @@protoc_insertion_point(constructor:mozilla.layers.layerscope.CommandPacket) |
9761 | 0 | } |
9762 | | CommandPacket::CommandPacket(const CommandPacket& from) |
9763 | | : ::google::protobuf::MessageLite(), |
9764 | | _internal_metadata_(NULL), |
9765 | | _has_bits_(from._has_bits_), |
9766 | 0 | _cached_size_(0) { |
9767 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9768 | 0 | ::memcpy(&type_, &from.type_, |
9769 | 0 | static_cast<size_t>(reinterpret_cast<char*>(&value_) - |
9770 | 0 | reinterpret_cast<char*>(&type_)) + sizeof(value_)); |
9771 | 0 | // @@protoc_insertion_point(copy_constructor:mozilla.layers.layerscope.CommandPacket) |
9772 | 0 | } |
9773 | | |
9774 | 0 | void CommandPacket::SharedCtor() { |
9775 | 0 | _cached_size_ = 0; |
9776 | 0 | ::memset(&type_, 0, static_cast<size_t>( |
9777 | 0 | reinterpret_cast<char*>(&value_) - |
9778 | 0 | reinterpret_cast<char*>(&type_)) + sizeof(value_)); |
9779 | 0 | } |
9780 | | |
9781 | 0 | CommandPacket::~CommandPacket() { |
9782 | 0 | // @@protoc_insertion_point(destructor:mozilla.layers.layerscope.CommandPacket) |
9783 | 0 | SharedDtor(); |
9784 | 0 | } |
9785 | | |
9786 | 0 | void CommandPacket::SharedDtor() { |
9787 | 0 | } |
9788 | | |
9789 | 0 | void CommandPacket::SetCachedSize(int size) const { |
9790 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9791 | 0 | _cached_size_ = size; |
9792 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9793 | 0 | } |
9794 | 0 | const CommandPacket& CommandPacket::default_instance() { |
9795 | 0 | protobuf_LayerScopePacket_2eproto::InitDefaults(); |
9796 | 0 | return *internal_default_instance(); |
9797 | 0 | } |
9798 | | |
9799 | 0 | CommandPacket* CommandPacket::New(::google::protobuf::Arena* arena) const { |
9800 | 0 | CommandPacket* n = new CommandPacket; |
9801 | 0 | if (arena != NULL) { |
9802 | 0 | arena->Own(n); |
9803 | 0 | } |
9804 | 0 | return n; |
9805 | 0 | } |
9806 | | |
9807 | 0 | void CommandPacket::Clear() { |
9808 | 0 | // @@protoc_insertion_point(message_clear_start:mozilla.layers.layerscope.CommandPacket) |
9809 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9810 | 0 | // Prevent compiler warnings about cached_has_bits being unused |
9811 | 0 | (void) cached_has_bits; |
9812 | 0 |
|
9813 | 0 | cached_has_bits = _has_bits_[0]; |
9814 | 0 | if (cached_has_bits & 3u) { |
9815 | 0 | ::memset(&type_, 0, static_cast<size_t>( |
9816 | 0 | reinterpret_cast<char*>(&value_) - |
9817 | 0 | reinterpret_cast<char*>(&type_)) + sizeof(value_)); |
9818 | 0 | } |
9819 | 0 | _has_bits_.Clear(); |
9820 | 0 | _internal_metadata_.Clear(); |
9821 | 0 | } |
9822 | | |
9823 | | bool CommandPacket::MergePartialFromCodedStream( |
9824 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
9825 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
9826 | 0 | ::google::protobuf::uint32 tag; |
9827 | 0 | ::google::protobuf::io::LazyStringOutputStream unknown_fields_string( |
9828 | 0 | ::google::protobuf::NewPermanentCallback(&_internal_metadata_, |
9829 | 0 | &::google::protobuf::internal::InternalMetadataWithArenaLite:: |
9830 | 0 | mutable_unknown_fields)); |
9831 | 0 | ::google::protobuf::io::CodedOutputStream unknown_fields_stream( |
9832 | 0 | &unknown_fields_string, false); |
9833 | 0 | // @@protoc_insertion_point(parse_start:mozilla.layers.layerscope.CommandPacket) |
9834 | 0 | for (;;) { |
9835 | 0 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
9836 | 0 | tag = p.first; |
9837 | 0 | if (!p.second) goto handle_unusual; |
9838 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
9839 | 0 | // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1; |
9840 | 0 | case 1: { |
9841 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9842 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
9843 | 0 | int value; |
9844 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9845 | 0 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
9846 | 0 | input, &value))); |
9847 | 0 | if (::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value)) { |
9848 | 0 | set_type(static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(value)); |
9849 | 0 | } else { |
9850 | 0 | unknown_fields_stream.WriteVarint32(8u); |
9851 | 0 | unknown_fields_stream.WriteVarint32( |
9852 | 0 | static_cast< ::google::protobuf::uint32>(value)); |
9853 | 0 | } |
9854 | 0 | } else { |
9855 | 0 | goto handle_unusual; |
9856 | 0 | } |
9857 | 0 | break; |
9858 | 0 | } |
9859 | 0 |
|
9860 | 0 | // optional bool value = 2; |
9861 | 0 | case 2: { |
9862 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
9863 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
9864 | 0 | set_has_value(); |
9865 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
9866 | 0 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
9867 | 0 | input, &value_))); |
9868 | 0 | } else { |
9869 | 0 | goto handle_unusual; |
9870 | 0 | } |
9871 | 0 | break; |
9872 | 0 | } |
9873 | 0 | |
9874 | 0 | default: { |
9875 | 0 | handle_unusual: |
9876 | 0 | if (tag == 0) { |
9877 | 0 | goto success; |
9878 | 0 | } |
9879 | 0 | DO_(::google::protobuf::internal::WireFormatLite::SkipField( |
9880 | 0 | input, tag, &unknown_fields_stream)); |
9881 | 0 | break; |
9882 | 0 | } |
9883 | 0 | } |
9884 | 0 | } |
9885 | 0 | success: |
9886 | 0 | // @@protoc_insertion_point(parse_success:mozilla.layers.layerscope.CommandPacket) |
9887 | 0 | return true; |
9888 | 0 | failure: |
9889 | 0 | // @@protoc_insertion_point(parse_failure:mozilla.layers.layerscope.CommandPacket) |
9890 | 0 | return false; |
9891 | 0 | #undef DO_ |
9892 | 0 | } |
9893 | | |
9894 | | void CommandPacket::SerializeWithCachedSizes( |
9895 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
9896 | 0 | // @@protoc_insertion_point(serialize_start:mozilla.layers.layerscope.CommandPacket) |
9897 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9898 | 0 | (void) cached_has_bits; |
9899 | 0 |
|
9900 | 0 | cached_has_bits = _has_bits_[0]; |
9901 | 0 | // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1; |
9902 | 0 | if (cached_has_bits & 0x00000001u) { |
9903 | 0 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
9904 | 0 | 1, this->type(), output); |
9905 | 0 | } |
9906 | 0 |
|
9907 | 0 | // optional bool value = 2; |
9908 | 0 | if (cached_has_bits & 0x00000002u) { |
9909 | 0 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value(), output); |
9910 | 0 | } |
9911 | 0 |
|
9912 | 0 | output->WriteRaw(_internal_metadata_.unknown_fields().data(), |
9913 | 0 | static_cast<int>(_internal_metadata_.unknown_fields().size())); |
9914 | 0 | // @@protoc_insertion_point(serialize_end:mozilla.layers.layerscope.CommandPacket) |
9915 | 0 | } |
9916 | | |
9917 | 0 | size_t CommandPacket::ByteSizeLong() const { |
9918 | 0 | // @@protoc_insertion_point(message_byte_size_start:mozilla.layers.layerscope.CommandPacket) |
9919 | 0 | size_t total_size = 0; |
9920 | 0 |
|
9921 | 0 | total_size += _internal_metadata_.unknown_fields().size(); |
9922 | 0 |
|
9923 | 0 | // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1; |
9924 | 0 | if (has_type()) { |
9925 | 0 | total_size += 1 + |
9926 | 0 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
9927 | 0 | } |
9928 | 0 | // optional bool value = 2; |
9929 | 0 | if (has_value()) { |
9930 | 0 | total_size += 1 + 1; |
9931 | 0 | } |
9932 | 0 |
|
9933 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
9934 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
9935 | 0 | _cached_size_ = cached_size; |
9936 | 0 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
9937 | 0 | return total_size; |
9938 | 0 | } |
9939 | | |
9940 | | void CommandPacket::CheckTypeAndMergeFrom( |
9941 | 0 | const ::google::protobuf::MessageLite& from) { |
9942 | 0 | MergeFrom(*::google::protobuf::down_cast<const CommandPacket*>(&from)); |
9943 | 0 | } |
9944 | | |
9945 | 0 | void CommandPacket::MergeFrom(const CommandPacket& from) { |
9946 | 0 | // @@protoc_insertion_point(class_specific_merge_from_start:mozilla.layers.layerscope.CommandPacket) |
9947 | 0 | GOOGLE_DCHECK_NE(&from, this); |
9948 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
9949 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
9950 | 0 | (void) cached_has_bits; |
9951 | 0 |
|
9952 | 0 | cached_has_bits = from._has_bits_[0]; |
9953 | 0 | if (cached_has_bits & 3u) { |
9954 | 0 | if (cached_has_bits & 0x00000001u) { |
9955 | 0 | type_ = from.type_; |
9956 | 0 | } |
9957 | 0 | if (cached_has_bits & 0x00000002u) { |
9958 | 0 | value_ = from.value_; |
9959 | 0 | } |
9960 | 0 | _has_bits_[0] |= cached_has_bits; |
9961 | 0 | } |
9962 | 0 | } |
9963 | | |
9964 | 0 | void CommandPacket::CopyFrom(const CommandPacket& from) { |
9965 | 0 | // @@protoc_insertion_point(class_specific_copy_from_start:mozilla.layers.layerscope.CommandPacket) |
9966 | 0 | if (&from == this) return; |
9967 | 0 | Clear(); |
9968 | 0 | MergeFrom(from); |
9969 | 0 | } |
9970 | | |
9971 | 0 | bool CommandPacket::IsInitialized() const { |
9972 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
9973 | 0 | return true; |
9974 | 0 | } |
9975 | | |
9976 | 0 | void CommandPacket::Swap(CommandPacket* other) { |
9977 | 0 | if (other == this) return; |
9978 | 0 | InternalSwap(other); |
9979 | 0 | } |
9980 | 0 | void CommandPacket::InternalSwap(CommandPacket* other) { |
9981 | 0 | using std::swap; |
9982 | 0 | swap(type_, other->type_); |
9983 | 0 | swap(value_, other->value_); |
9984 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
9985 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
9986 | 0 | swap(_cached_size_, other->_cached_size_); |
9987 | 0 | } |
9988 | | |
9989 | 0 | ::std::string CommandPacket::GetTypeName() const { |
9990 | 0 | return "mozilla.layers.layerscope.CommandPacket"; |
9991 | 0 | } |
9992 | | |
9993 | | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
9994 | | // CommandPacket |
9995 | | |
9996 | | // required .mozilla.layers.layerscope.CommandPacket.CmdType type = 1; |
9997 | | bool CommandPacket::has_type() const { |
9998 | | return (_has_bits_[0] & 0x00000001u) != 0; |
9999 | | } |
10000 | | void CommandPacket::set_has_type() { |
10001 | | _has_bits_[0] |= 0x00000001u; |
10002 | | } |
10003 | | void CommandPacket::clear_has_type() { |
10004 | | _has_bits_[0] &= ~0x00000001u; |
10005 | | } |
10006 | | void CommandPacket::clear_type() { |
10007 | | type_ = 0; |
10008 | | clear_has_type(); |
10009 | | } |
10010 | | ::mozilla::layers::layerscope::CommandPacket_CmdType CommandPacket::type() const { |
10011 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.type) |
10012 | | return static_cast< ::mozilla::layers::layerscope::CommandPacket_CmdType >(type_); |
10013 | | } |
10014 | | void CommandPacket::set_type(::mozilla::layers::layerscope::CommandPacket_CmdType value) { |
10015 | | assert(::mozilla::layers::layerscope::CommandPacket_CmdType_IsValid(value)); |
10016 | | set_has_type(); |
10017 | | type_ = value; |
10018 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.type) |
10019 | | } |
10020 | | |
10021 | | // optional bool value = 2; |
10022 | | bool CommandPacket::has_value() const { |
10023 | | return (_has_bits_[0] & 0x00000002u) != 0; |
10024 | | } |
10025 | | void CommandPacket::set_has_value() { |
10026 | | _has_bits_[0] |= 0x00000002u; |
10027 | | } |
10028 | | void CommandPacket::clear_has_value() { |
10029 | | _has_bits_[0] &= ~0x00000002u; |
10030 | | } |
10031 | | void CommandPacket::clear_value() { |
10032 | | value_ = false; |
10033 | | clear_has_value(); |
10034 | | } |
10035 | | bool CommandPacket::value() const { |
10036 | | // @@protoc_insertion_point(field_get:mozilla.layers.layerscope.CommandPacket.value) |
10037 | | return value_; |
10038 | | } |
10039 | | void CommandPacket::set_value(bool value) { |
10040 | | set_has_value(); |
10041 | | value_ = value; |
10042 | | // @@protoc_insertion_point(field_set:mozilla.layers.layerscope.CommandPacket.value) |
10043 | | } |
10044 | | |
10045 | | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
10046 | | |
10047 | | // @@protoc_insertion_point(namespace_scope) |
10048 | | |
10049 | | } // namespace layerscope |
10050 | | } // namespace layers |
10051 | | } // namespace mozilla |
10052 | | |
10053 | | // @@protoc_insertion_point(global_scope) |