Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | |
| 3 | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 4 | #include "gltrace.pb.h" |
| 5 | #include <google/protobuf/stubs/once.h> |
| 6 | #include <google/protobuf/io/coded_stream.h> |
| 7 | #include <google/protobuf/wire_format_lite_inl.h> |
| 8 | // @@protoc_insertion_point(includes) |
| 9 | |
| 10 | namespace android { |
| 11 | namespace gltrace { |
| 12 | |
| 13 | void protobuf_ShutdownFile_gltrace_2eproto() { |
| 14 | delete GLMessage::default_instance_; |
| 15 | delete GLMessage_DataType::default_instance_; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 16 | delete GLMessage_FrameBuffer::default_instance_; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | void protobuf_AddDesc_gltrace_2eproto() { |
| 20 | static bool already_here = false; |
| 21 | if (already_here) return; |
| 22 | already_here = true; |
| 23 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 24 | |
| 25 | GLMessage::default_instance_ = new GLMessage(); |
| 26 | GLMessage_DataType::default_instance_ = new GLMessage_DataType(); |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 27 | GLMessage_FrameBuffer::default_instance_ = new GLMessage_FrameBuffer(); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 28 | GLMessage::default_instance_->InitAsDefaultInstance(); |
| 29 | GLMessage_DataType::default_instance_->InitAsDefaultInstance(); |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 30 | GLMessage_FrameBuffer::default_instance_->InitAsDefaultInstance(); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 31 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_gltrace_2eproto); |
| 32 | } |
| 33 | |
| 34 | // Force AddDescriptors() to be called at static initialization time. |
| 35 | struct StaticDescriptorInitializer_gltrace_2eproto { |
| 36 | StaticDescriptorInitializer_gltrace_2eproto() { |
| 37 | protobuf_AddDesc_gltrace_2eproto(); |
| 38 | } |
| 39 | } static_descriptor_initializer_gltrace_2eproto_; |
| 40 | |
| 41 | |
| 42 | // =================================================================== |
| 43 | |
| 44 | bool GLMessage_Function_IsValid(int value) { |
| 45 | switch(value) { |
| 46 | case 0: |
| 47 | case 1: |
| 48 | case 2: |
| 49 | case 3: |
| 50 | case 4: |
| 51 | case 5: |
| 52 | case 6: |
| 53 | case 7: |
| 54 | case 8: |
| 55 | case 9: |
| 56 | case 10: |
| 57 | case 11: |
| 58 | case 12: |
| 59 | case 13: |
| 60 | case 14: |
| 61 | case 15: |
| 62 | case 16: |
| 63 | case 17: |
| 64 | case 18: |
| 65 | case 19: |
| 66 | case 20: |
| 67 | case 21: |
| 68 | case 22: |
| 69 | case 23: |
| 70 | case 24: |
| 71 | case 25: |
| 72 | case 26: |
| 73 | case 27: |
| 74 | case 28: |
| 75 | case 29: |
| 76 | case 30: |
| 77 | case 31: |
| 78 | case 32: |
| 79 | case 33: |
| 80 | case 34: |
| 81 | case 35: |
| 82 | case 36: |
| 83 | case 37: |
| 84 | case 38: |
| 85 | case 39: |
| 86 | case 40: |
| 87 | case 41: |
| 88 | case 42: |
| 89 | case 43: |
| 90 | case 44: |
| 91 | case 45: |
| 92 | case 46: |
| 93 | case 47: |
| 94 | case 48: |
| 95 | case 49: |
| 96 | case 50: |
| 97 | case 51: |
| 98 | case 52: |
| 99 | case 53: |
| 100 | case 54: |
| 101 | case 55: |
| 102 | case 56: |
| 103 | case 57: |
| 104 | case 58: |
| 105 | case 59: |
| 106 | case 60: |
| 107 | case 61: |
| 108 | case 62: |
| 109 | case 63: |
| 110 | case 64: |
| 111 | case 65: |
| 112 | case 66: |
| 113 | case 67: |
| 114 | case 68: |
| 115 | case 69: |
| 116 | case 70: |
| 117 | case 71: |
| 118 | case 72: |
| 119 | case 73: |
| 120 | case 74: |
| 121 | case 75: |
| 122 | case 76: |
| 123 | case 77: |
| 124 | case 78: |
| 125 | case 79: |
| 126 | case 80: |
| 127 | case 81: |
| 128 | case 82: |
| 129 | case 83: |
| 130 | case 84: |
| 131 | case 85: |
| 132 | case 86: |
| 133 | case 87: |
| 134 | case 88: |
| 135 | case 89: |
| 136 | case 90: |
| 137 | case 91: |
| 138 | case 92: |
| 139 | case 93: |
| 140 | case 94: |
| 141 | case 95: |
| 142 | case 96: |
| 143 | case 97: |
| 144 | case 98: |
| 145 | case 99: |
| 146 | case 100: |
| 147 | case 101: |
| 148 | case 102: |
| 149 | case 103: |
| 150 | case 104: |
| 151 | case 105: |
| 152 | case 106: |
| 153 | case 107: |
| 154 | case 108: |
| 155 | case 109: |
| 156 | case 110: |
| 157 | case 111: |
| 158 | case 112: |
| 159 | case 113: |
| 160 | case 114: |
| 161 | case 115: |
| 162 | case 116: |
| 163 | case 117: |
| 164 | case 118: |
| 165 | case 119: |
| 166 | case 120: |
| 167 | case 121: |
| 168 | case 122: |
| 169 | case 123: |
| 170 | case 124: |
| 171 | case 125: |
| 172 | case 126: |
| 173 | case 127: |
| 174 | case 128: |
| 175 | case 129: |
| 176 | case 130: |
| 177 | case 131: |
| 178 | case 132: |
| 179 | case 133: |
| 180 | case 134: |
| 181 | case 135: |
| 182 | case 136: |
| 183 | case 137: |
| 184 | case 138: |
| 185 | case 139: |
| 186 | case 140: |
| 187 | case 141: |
| 188 | case 142: |
| 189 | case 143: |
| 190 | case 144: |
| 191 | case 145: |
| 192 | case 146: |
| 193 | case 147: |
| 194 | case 148: |
| 195 | case 149: |
| 196 | case 150: |
| 197 | case 151: |
| 198 | case 152: |
| 199 | case 153: |
| 200 | case 154: |
| 201 | case 155: |
| 202 | case 156: |
| 203 | case 157: |
| 204 | case 158: |
| 205 | case 159: |
| 206 | case 160: |
| 207 | case 161: |
| 208 | case 162: |
| 209 | case 163: |
| 210 | case 164: |
| 211 | case 165: |
| 212 | case 166: |
| 213 | case 167: |
| 214 | case 168: |
| 215 | case 169: |
| 216 | case 170: |
| 217 | case 171: |
| 218 | case 172: |
| 219 | case 173: |
| 220 | case 174: |
| 221 | case 175: |
| 222 | case 176: |
| 223 | case 177: |
| 224 | case 178: |
| 225 | case 179: |
| 226 | case 180: |
| 227 | case 181: |
| 228 | case 182: |
| 229 | case 183: |
| 230 | case 184: |
| 231 | case 185: |
| 232 | case 186: |
| 233 | case 187: |
| 234 | case 188: |
| 235 | case 189: |
| 236 | case 190: |
| 237 | case 191: |
| 238 | case 192: |
| 239 | case 193: |
| 240 | case 194: |
| 241 | case 195: |
| 242 | case 196: |
| 243 | case 197: |
| 244 | case 198: |
| 245 | case 199: |
| 246 | case 200: |
| 247 | case 201: |
| 248 | case 202: |
| 249 | case 203: |
| 250 | case 204: |
| 251 | case 205: |
| 252 | case 206: |
| 253 | case 207: |
| 254 | case 208: |
| 255 | case 209: |
| 256 | case 210: |
| 257 | case 211: |
| 258 | case 212: |
| 259 | case 213: |
| 260 | case 214: |
| 261 | case 215: |
| 262 | case 216: |
| 263 | case 217: |
| 264 | case 218: |
| 265 | case 219: |
| 266 | case 220: |
| 267 | case 221: |
| 268 | case 222: |
| 269 | case 223: |
| 270 | case 224: |
| 271 | case 225: |
| 272 | case 226: |
| 273 | case 227: |
| 274 | case 228: |
| 275 | case 229: |
| 276 | case 230: |
| 277 | case 231: |
| 278 | case 232: |
| 279 | case 233: |
| 280 | case 234: |
| 281 | case 235: |
| 282 | case 236: |
| 283 | case 237: |
| 284 | case 238: |
| 285 | case 239: |
| 286 | case 240: |
| 287 | case 241: |
| 288 | case 242: |
| 289 | case 243: |
| 290 | case 244: |
| 291 | case 245: |
| 292 | case 246: |
| 293 | case 247: |
| 294 | case 248: |
| 295 | case 249: |
| 296 | case 250: |
| 297 | case 251: |
| 298 | case 252: |
| 299 | case 253: |
| 300 | case 254: |
| 301 | case 255: |
| 302 | case 256: |
| 303 | case 257: |
| 304 | case 258: |
| 305 | case 259: |
| 306 | case 260: |
| 307 | case 261: |
| 308 | case 262: |
| 309 | case 263: |
| 310 | case 264: |
| 311 | case 265: |
| 312 | case 266: |
| 313 | case 267: |
| 314 | case 268: |
| 315 | case 269: |
| 316 | case 270: |
| 317 | case 271: |
| 318 | case 272: |
| 319 | case 273: |
| 320 | case 274: |
| 321 | case 275: |
| 322 | case 276: |
| 323 | case 277: |
| 324 | case 278: |
| 325 | case 279: |
| 326 | case 280: |
| 327 | case 281: |
| 328 | case 282: |
| 329 | case 283: |
| 330 | case 284: |
| 331 | case 285: |
| 332 | case 286: |
| 333 | case 287: |
| 334 | case 288: |
| 335 | case 289: |
| 336 | case 290: |
| 337 | case 291: |
| 338 | case 292: |
| 339 | case 293: |
| 340 | case 294: |
| 341 | case 295: |
| 342 | case 296: |
| 343 | case 297: |
| 344 | case 298: |
| 345 | case 299: |
| 346 | case 300: |
| 347 | case 301: |
| 348 | case 302: |
| 349 | case 303: |
| 350 | case 304: |
| 351 | case 305: |
| 352 | case 306: |
| 353 | case 307: |
| 354 | case 308: |
| 355 | case 309: |
| 356 | case 310: |
| 357 | case 311: |
| 358 | case 312: |
| 359 | case 313: |
| 360 | case 314: |
| 361 | case 315: |
| 362 | case 316: |
| 363 | case 317: |
| 364 | case 318: |
| 365 | case 319: |
| 366 | case 320: |
| 367 | case 321: |
| 368 | case 322: |
| 369 | case 323: |
| 370 | case 324: |
| 371 | case 325: |
| 372 | case 326: |
| 373 | case 327: |
| 374 | case 328: |
| 375 | case 329: |
| 376 | case 330: |
| 377 | case 331: |
| 378 | case 332: |
| 379 | case 333: |
| 380 | case 334: |
| 381 | case 335: |
| 382 | case 336: |
| 383 | case 337: |
| 384 | case 338: |
| 385 | case 339: |
| 386 | case 340: |
| 387 | case 341: |
| 388 | case 342: |
| 389 | case 343: |
| 390 | case 344: |
| 391 | case 345: |
| 392 | case 346: |
| 393 | case 347: |
| 394 | case 348: |
| 395 | case 349: |
| 396 | case 350: |
| 397 | case 351: |
| 398 | case 352: |
| 399 | case 353: |
| 400 | case 354: |
| 401 | case 355: |
| 402 | case 356: |
| 403 | case 357: |
| 404 | case 358: |
| 405 | case 359: |
| 406 | case 360: |
| 407 | case 361: |
| 408 | case 362: |
| 409 | case 363: |
| 410 | case 364: |
| 411 | case 365: |
| 412 | case 366: |
| 413 | case 367: |
| 414 | case 368: |
| 415 | case 369: |
| 416 | case 370: |
| 417 | case 371: |
| 418 | case 372: |
| 419 | case 373: |
| 420 | case 374: |
| 421 | case 375: |
| 422 | case 2000: |
| 423 | case 2001: |
| 424 | case 2002: |
| 425 | case 2003: |
| 426 | case 2004: |
| 427 | case 2005: |
| 428 | case 2006: |
| 429 | case 2007: |
| 430 | case 2008: |
| 431 | case 2009: |
| 432 | case 2010: |
| 433 | case 2011: |
| 434 | case 2012: |
| 435 | case 2013: |
| 436 | case 2014: |
| 437 | case 2015: |
| 438 | case 2016: |
| 439 | case 2017: |
| 440 | case 2018: |
| 441 | case 2019: |
| 442 | case 2020: |
| 443 | case 2021: |
| 444 | case 2022: |
| 445 | case 2023: |
| 446 | case 2024: |
| 447 | case 2025: |
| 448 | case 2026: |
| 449 | case 2027: |
| 450 | case 2028: |
| 451 | case 2029: |
| 452 | case 2030: |
| 453 | case 2031: |
| 454 | case 2032: |
| 455 | case 2033: |
| 456 | case 2034: |
| 457 | case 2035: |
| 458 | case 2036: |
| 459 | case 2037: |
| 460 | case 2038: |
| 461 | case 2039: |
| 462 | case 2040: |
| 463 | case 2041: |
| 464 | case 2042: |
| 465 | case 2043: |
| 466 | case 2044: |
| 467 | case 2045: |
| 468 | case 3000: |
| 469 | case 3001: |
| 470 | return true; |
| 471 | default: |
| 472 | return false; |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | #ifndef _MSC_VER |
| 477 | const GLMessage_Function GLMessage::glActiveTexture; |
| 478 | const GLMessage_Function GLMessage::glAlphaFunc; |
| 479 | const GLMessage_Function GLMessage::glAlphaFuncx; |
| 480 | const GLMessage_Function GLMessage::glAlphaFuncxOES; |
| 481 | const GLMessage_Function GLMessage::glAttachShader; |
| 482 | const GLMessage_Function GLMessage::glBeginPerfMonitorAMD; |
| 483 | const GLMessage_Function GLMessage::glBindAttribLocation; |
| 484 | const GLMessage_Function GLMessage::glBindBuffer; |
| 485 | const GLMessage_Function GLMessage::glBindFramebuffer; |
| 486 | const GLMessage_Function GLMessage::glBindFramebufferOES; |
| 487 | const GLMessage_Function GLMessage::glBindRenderbuffer; |
| 488 | const GLMessage_Function GLMessage::glBindRenderbufferOES; |
| 489 | const GLMessage_Function GLMessage::glBindTexture; |
| 490 | const GLMessage_Function GLMessage::glBindVertexArrayOES; |
| 491 | const GLMessage_Function GLMessage::glBlendColor; |
| 492 | const GLMessage_Function GLMessage::glBlendEquation; |
| 493 | const GLMessage_Function GLMessage::glBlendEquationOES; |
| 494 | const GLMessage_Function GLMessage::glBlendEquationSeparate; |
| 495 | const GLMessage_Function GLMessage::glBlendEquationSeparateOES; |
| 496 | const GLMessage_Function GLMessage::glBlendFunc; |
| 497 | const GLMessage_Function GLMessage::glBlendFuncSeparate; |
| 498 | const GLMessage_Function GLMessage::glBlendFuncSeparateOES; |
| 499 | const GLMessage_Function GLMessage::glBufferData; |
| 500 | const GLMessage_Function GLMessage::glBufferSubData; |
| 501 | const GLMessage_Function GLMessage::glCheckFramebufferStatus; |
| 502 | const GLMessage_Function GLMessage::glCheckFramebufferStatusOES; |
| 503 | const GLMessage_Function GLMessage::glClearColor; |
| 504 | const GLMessage_Function GLMessage::glClearColorx; |
| 505 | const GLMessage_Function GLMessage::glClearColorxOES; |
| 506 | const GLMessage_Function GLMessage::glClearDepthf; |
| 507 | const GLMessage_Function GLMessage::glClearDepthfOES; |
| 508 | const GLMessage_Function GLMessage::glClearDepthx; |
| 509 | const GLMessage_Function GLMessage::glClearDepthxOES; |
| 510 | const GLMessage_Function GLMessage::glClear; |
| 511 | const GLMessage_Function GLMessage::glClearStencil; |
| 512 | const GLMessage_Function GLMessage::glClientActiveTexture; |
| 513 | const GLMessage_Function GLMessage::glClipPlanef; |
| 514 | const GLMessage_Function GLMessage::glClipPlanefIMG; |
| 515 | const GLMessage_Function GLMessage::glClipPlanefOES; |
| 516 | const GLMessage_Function GLMessage::glClipPlanex; |
| 517 | const GLMessage_Function GLMessage::glClipPlanexIMG; |
| 518 | const GLMessage_Function GLMessage::glClipPlanexOES; |
| 519 | const GLMessage_Function GLMessage::glColor4f; |
| 520 | const GLMessage_Function GLMessage::glColor4ub; |
| 521 | const GLMessage_Function GLMessage::glColor4x; |
| 522 | const GLMessage_Function GLMessage::glColor4xOES; |
| 523 | const GLMessage_Function GLMessage::glColorMask; |
| 524 | const GLMessage_Function GLMessage::glColorPointer; |
| 525 | const GLMessage_Function GLMessage::glCompileShader; |
| 526 | const GLMessage_Function GLMessage::glCompressedTexImage2D; |
| 527 | const GLMessage_Function GLMessage::glCompressedTexImage3DOES; |
| 528 | const GLMessage_Function GLMessage::glCompressedTexSubImage2D; |
| 529 | const GLMessage_Function GLMessage::glCompressedTexSubImage3DOES; |
| 530 | const GLMessage_Function GLMessage::glCopyTexImage2D; |
| 531 | const GLMessage_Function GLMessage::glCopyTexSubImage2D; |
| 532 | const GLMessage_Function GLMessage::glCopyTexSubImage3DOES; |
| 533 | const GLMessage_Function GLMessage::glCoverageMaskNV; |
| 534 | const GLMessage_Function GLMessage::glCoverageOperationNV; |
| 535 | const GLMessage_Function GLMessage::glCreateProgram; |
| 536 | const GLMessage_Function GLMessage::glCreateShader; |
| 537 | const GLMessage_Function GLMessage::glCullFace; |
| 538 | const GLMessage_Function GLMessage::glCurrentPaletteMatrixOES; |
| 539 | const GLMessage_Function GLMessage::glDeleteBuffers; |
| 540 | const GLMessage_Function GLMessage::glDeleteFencesNV; |
| 541 | const GLMessage_Function GLMessage::glDeleteFramebuffers; |
| 542 | const GLMessage_Function GLMessage::glDeleteFramebuffersOES; |
| 543 | const GLMessage_Function GLMessage::glDeletePerfMonitorsAMD; |
| 544 | const GLMessage_Function GLMessage::glDeleteProgram; |
| 545 | const GLMessage_Function GLMessage::glDeleteRenderbuffers; |
| 546 | const GLMessage_Function GLMessage::glDeleteRenderbuffersOES; |
| 547 | const GLMessage_Function GLMessage::glDeleteShader; |
| 548 | const GLMessage_Function GLMessage::glDeleteTextures; |
| 549 | const GLMessage_Function GLMessage::glDeleteVertexArraysOES; |
| 550 | const GLMessage_Function GLMessage::glDepthFunc; |
| 551 | const GLMessage_Function GLMessage::glDepthMask; |
| 552 | const GLMessage_Function GLMessage::glDepthRangef; |
| 553 | const GLMessage_Function GLMessage::glDepthRangefOES; |
| 554 | const GLMessage_Function GLMessage::glDepthRangex; |
| 555 | const GLMessage_Function GLMessage::glDepthRangexOES; |
| 556 | const GLMessage_Function GLMessage::glDetachShader; |
| 557 | const GLMessage_Function GLMessage::glDisableClientState; |
| 558 | const GLMessage_Function GLMessage::glDisableDriverControlQCOM; |
| 559 | const GLMessage_Function GLMessage::glDisable; |
| 560 | const GLMessage_Function GLMessage::glDisableVertexAttribArray; |
| 561 | const GLMessage_Function GLMessage::glDiscardFramebufferEXT; |
| 562 | const GLMessage_Function GLMessage::glDrawArrays; |
| 563 | const GLMessage_Function GLMessage::glDrawElements; |
| 564 | const GLMessage_Function GLMessage::glDrawTexfOES; |
| 565 | const GLMessage_Function GLMessage::glDrawTexfvOES; |
| 566 | const GLMessage_Function GLMessage::glDrawTexiOES; |
| 567 | const GLMessage_Function GLMessage::glDrawTexivOES; |
| 568 | const GLMessage_Function GLMessage::glDrawTexsOES; |
| 569 | const GLMessage_Function GLMessage::glDrawTexsvOES; |
| 570 | const GLMessage_Function GLMessage::glDrawTexxOES; |
| 571 | const GLMessage_Function GLMessage::glDrawTexxvOES; |
| 572 | const GLMessage_Function GLMessage::glEGLImageTargetRenderbufferStorageOES; |
| 573 | const GLMessage_Function GLMessage::glEGLImageTargetTexture2DOES; |
| 574 | const GLMessage_Function GLMessage::glEnableClientState; |
| 575 | const GLMessage_Function GLMessage::glEnableDriverControlQCOM; |
| 576 | const GLMessage_Function GLMessage::glEnable; |
| 577 | const GLMessage_Function GLMessage::glEnableVertexAttribArray; |
| 578 | const GLMessage_Function GLMessage::glEndPerfMonitorAMD; |
| 579 | const GLMessage_Function GLMessage::glEndTilingQCOM; |
| 580 | const GLMessage_Function GLMessage::glExtGetBufferPointervQCOM; |
| 581 | const GLMessage_Function GLMessage::glExtGetBuffersQCOM; |
| 582 | const GLMessage_Function GLMessage::glExtGetFramebuffersQCOM; |
| 583 | const GLMessage_Function GLMessage::glExtGetProgramBinarySourceQCOM; |
| 584 | const GLMessage_Function GLMessage::glExtGetProgramsQCOM; |
| 585 | const GLMessage_Function GLMessage::glExtGetRenderbuffersQCOM; |
| 586 | const GLMessage_Function GLMessage::glExtGetShadersQCOM; |
| 587 | const GLMessage_Function GLMessage::glExtGetTexLevelParameterivQCOM; |
| 588 | const GLMessage_Function GLMessage::glExtGetTexSubImageQCOM; |
| 589 | const GLMessage_Function GLMessage::glExtGetTexturesQCOM; |
| 590 | const GLMessage_Function GLMessage::glExtIsProgramBinaryQCOM; |
| 591 | const GLMessage_Function GLMessage::glExtTexObjectStateOverrideiQCOM; |
| 592 | const GLMessage_Function GLMessage::glFinishFenceNV; |
| 593 | const GLMessage_Function GLMessage::glFinish; |
| 594 | const GLMessage_Function GLMessage::glFlush; |
| 595 | const GLMessage_Function GLMessage::glFogf; |
| 596 | const GLMessage_Function GLMessage::glFogfv; |
| 597 | const GLMessage_Function GLMessage::glFogx; |
| 598 | const GLMessage_Function GLMessage::glFogxOES; |
| 599 | const GLMessage_Function GLMessage::glFogxv; |
| 600 | const GLMessage_Function GLMessage::glFogxvOES; |
| 601 | const GLMessage_Function GLMessage::glFramebufferRenderbuffer; |
| 602 | const GLMessage_Function GLMessage::glFramebufferRenderbufferOES; |
| 603 | const GLMessage_Function GLMessage::glFramebufferTexture2D; |
| 604 | const GLMessage_Function GLMessage::glFramebufferTexture2DMultisampleIMG; |
| 605 | const GLMessage_Function GLMessage::glFramebufferTexture2DOES; |
| 606 | const GLMessage_Function GLMessage::glFramebufferTexture3DOES; |
| 607 | const GLMessage_Function GLMessage::glFrontFace; |
| 608 | const GLMessage_Function GLMessage::glFrustumf; |
| 609 | const GLMessage_Function GLMessage::glFrustumfOES; |
| 610 | const GLMessage_Function GLMessage::glFrustumx; |
| 611 | const GLMessage_Function GLMessage::glFrustumxOES; |
| 612 | const GLMessage_Function GLMessage::glGenBuffers; |
| 613 | const GLMessage_Function GLMessage::glGenerateMipmap; |
| 614 | const GLMessage_Function GLMessage::glGenerateMipmapOES; |
| 615 | const GLMessage_Function GLMessage::glGenFencesNV; |
| 616 | const GLMessage_Function GLMessage::glGenFramebuffers; |
| 617 | const GLMessage_Function GLMessage::glGenFramebuffersOES; |
| 618 | const GLMessage_Function GLMessage::glGenPerfMonitorsAMD; |
| 619 | const GLMessage_Function GLMessage::glGenRenderbuffers; |
| 620 | const GLMessage_Function GLMessage::glGenRenderbuffersOES; |
| 621 | const GLMessage_Function GLMessage::glGenTextures; |
| 622 | const GLMessage_Function GLMessage::glGenVertexArraysOES; |
| 623 | const GLMessage_Function GLMessage::glGetActiveAttrib; |
| 624 | const GLMessage_Function GLMessage::glGetActiveUniform; |
| 625 | const GLMessage_Function GLMessage::glGetAttachedShaders; |
| 626 | const GLMessage_Function GLMessage::glGetAttribLocation; |
| 627 | const GLMessage_Function GLMessage::glGetBooleanv; |
| 628 | const GLMessage_Function GLMessage::glGetBufferParameteriv; |
| 629 | const GLMessage_Function GLMessage::glGetBufferPointervOES; |
| 630 | const GLMessage_Function GLMessage::glGetClipPlanef; |
| 631 | const GLMessage_Function GLMessage::glGetClipPlanefOES; |
| 632 | const GLMessage_Function GLMessage::glGetClipPlanex; |
| 633 | const GLMessage_Function GLMessage::glGetClipPlanexOES; |
| 634 | const GLMessage_Function GLMessage::glGetDriverControlsQCOM; |
| 635 | const GLMessage_Function GLMessage::glGetDriverControlStringQCOM; |
| 636 | const GLMessage_Function GLMessage::glGetError; |
| 637 | const GLMessage_Function GLMessage::glGetFenceivNV; |
| 638 | const GLMessage_Function GLMessage::glGetFixedv; |
| 639 | const GLMessage_Function GLMessage::glGetFixedvOES; |
| 640 | const GLMessage_Function GLMessage::glGetFloatv; |
| 641 | const GLMessage_Function GLMessage::glGetFramebufferAttachmentParameteriv; |
| 642 | const GLMessage_Function GLMessage::glGetFramebufferAttachmentParameterivOES; |
| 643 | const GLMessage_Function GLMessage::glGetIntegerv; |
| 644 | const GLMessage_Function GLMessage::glGetLightfv; |
| 645 | const GLMessage_Function GLMessage::glGetLightxv; |
| 646 | const GLMessage_Function GLMessage::glGetLightxvOES; |
| 647 | const GLMessage_Function GLMessage::glGetMaterialfv; |
| 648 | const GLMessage_Function GLMessage::glGetMaterialxv; |
| 649 | const GLMessage_Function GLMessage::glGetMaterialxvOES; |
| 650 | const GLMessage_Function GLMessage::glGetPerfMonitorCounterDataAMD; |
| 651 | const GLMessage_Function GLMessage::glGetPerfMonitorCounterInfoAMD; |
| 652 | const GLMessage_Function GLMessage::glGetPerfMonitorCountersAMD; |
| 653 | const GLMessage_Function GLMessage::glGetPerfMonitorCounterStringAMD; |
| 654 | const GLMessage_Function GLMessage::glGetPerfMonitorGroupsAMD; |
| 655 | const GLMessage_Function GLMessage::glGetPerfMonitorGroupStringAMD; |
| 656 | const GLMessage_Function GLMessage::glGetPointerv; |
| 657 | const GLMessage_Function GLMessage::glGetProgramBinaryOES; |
| 658 | const GLMessage_Function GLMessage::glGetProgramInfoLog; |
| 659 | const GLMessage_Function GLMessage::glGetProgramiv; |
| 660 | const GLMessage_Function GLMessage::glGetRenderbufferParameteriv; |
| 661 | const GLMessage_Function GLMessage::glGetRenderbufferParameterivOES; |
| 662 | const GLMessage_Function GLMessage::glGetShaderInfoLog; |
| 663 | const GLMessage_Function GLMessage::glGetShaderiv; |
| 664 | const GLMessage_Function GLMessage::glGetShaderPrecisionFormat; |
| 665 | const GLMessage_Function GLMessage::glGetShaderSource; |
| 666 | const GLMessage_Function GLMessage::glGetString; |
| 667 | const GLMessage_Function GLMessage::glGetTexEnvfv; |
| 668 | const GLMessage_Function GLMessage::glGetTexEnviv; |
| 669 | const GLMessage_Function GLMessage::glGetTexEnvxv; |
| 670 | const GLMessage_Function GLMessage::glGetTexEnvxvOES; |
| 671 | const GLMessage_Function GLMessage::glGetTexGenfvOES; |
| 672 | const GLMessage_Function GLMessage::glGetTexGenivOES; |
| 673 | const GLMessage_Function GLMessage::glGetTexGenxvOES; |
| 674 | const GLMessage_Function GLMessage::glGetTexParameterfv; |
| 675 | const GLMessage_Function GLMessage::glGetTexParameteriv; |
| 676 | const GLMessage_Function GLMessage::glGetTexParameterxv; |
| 677 | const GLMessage_Function GLMessage::glGetTexParameterxvOES; |
| 678 | const GLMessage_Function GLMessage::glGetUniformfv; |
| 679 | const GLMessage_Function GLMessage::glGetUniformiv; |
| 680 | const GLMessage_Function GLMessage::glGetUniformLocation; |
| 681 | const GLMessage_Function GLMessage::glGetVertexAttribfv; |
| 682 | const GLMessage_Function GLMessage::glGetVertexAttribiv; |
| 683 | const GLMessage_Function GLMessage::glGetVertexAttribPointerv; |
| 684 | const GLMessage_Function GLMessage::glHint; |
| 685 | const GLMessage_Function GLMessage::glIsBuffer; |
| 686 | const GLMessage_Function GLMessage::glIsEnabled; |
| 687 | const GLMessage_Function GLMessage::glIsFenceNV; |
| 688 | const GLMessage_Function GLMessage::glIsFramebuffer; |
| 689 | const GLMessage_Function GLMessage::glIsFramebufferOES; |
| 690 | const GLMessage_Function GLMessage::glIsProgram; |
| 691 | const GLMessage_Function GLMessage::glIsRenderbuffer; |
| 692 | const GLMessage_Function GLMessage::glIsRenderbufferOES; |
| 693 | const GLMessage_Function GLMessage::glIsShader; |
| 694 | const GLMessage_Function GLMessage::glIsTexture; |
| 695 | const GLMessage_Function GLMessage::glIsVertexArrayOES; |
| 696 | const GLMessage_Function GLMessage::glLightf; |
| 697 | const GLMessage_Function GLMessage::glLightfv; |
| 698 | const GLMessage_Function GLMessage::glLightModelf; |
| 699 | const GLMessage_Function GLMessage::glLightModelfv; |
| 700 | const GLMessage_Function GLMessage::glLightModelx; |
| 701 | const GLMessage_Function GLMessage::glLightModelxOES; |
| 702 | const GLMessage_Function GLMessage::glLightModelxv; |
| 703 | const GLMessage_Function GLMessage::glLightModelxvOES; |
| 704 | const GLMessage_Function GLMessage::glLightx; |
| 705 | const GLMessage_Function GLMessage::glLightxOES; |
| 706 | const GLMessage_Function GLMessage::glLightxv; |
| 707 | const GLMessage_Function GLMessage::glLightxvOES; |
| 708 | const GLMessage_Function GLMessage::glLineWidth; |
| 709 | const GLMessage_Function GLMessage::glLineWidthx; |
| 710 | const GLMessage_Function GLMessage::glLineWidthxOES; |
| 711 | const GLMessage_Function GLMessage::glLinkProgram; |
| 712 | const GLMessage_Function GLMessage::glLoadIdentity; |
| 713 | const GLMessage_Function GLMessage::glLoadMatrixf; |
| 714 | const GLMessage_Function GLMessage::glLoadMatrixx; |
| 715 | const GLMessage_Function GLMessage::glLoadMatrixxOES; |
| 716 | const GLMessage_Function GLMessage::glLoadPaletteFromModelViewMatrixOES; |
| 717 | const GLMessage_Function GLMessage::glLogicOp; |
| 718 | const GLMessage_Function GLMessage::glMapBufferOES; |
| 719 | const GLMessage_Function GLMessage::glMaterialf; |
| 720 | const GLMessage_Function GLMessage::glMaterialfv; |
| 721 | const GLMessage_Function GLMessage::glMaterialx; |
| 722 | const GLMessage_Function GLMessage::glMaterialxOES; |
| 723 | const GLMessage_Function GLMessage::glMaterialxv; |
| 724 | const GLMessage_Function GLMessage::glMaterialxvOES; |
| 725 | const GLMessage_Function GLMessage::glMatrixIndexPointerOES; |
| 726 | const GLMessage_Function GLMessage::glMatrixMode; |
| 727 | const GLMessage_Function GLMessage::glMultiDrawArraysEXT; |
| 728 | const GLMessage_Function GLMessage::glMultiDrawElementsEXT; |
| 729 | const GLMessage_Function GLMessage::glMultiTexCoord4f; |
| 730 | const GLMessage_Function GLMessage::glMultiTexCoord4x; |
| 731 | const GLMessage_Function GLMessage::glMultiTexCoord4xOES; |
| 732 | const GLMessage_Function GLMessage::glMultMatrixf; |
| 733 | const GLMessage_Function GLMessage::glMultMatrixx; |
| 734 | const GLMessage_Function GLMessage::glMultMatrixxOES; |
| 735 | const GLMessage_Function GLMessage::glNormal3f; |
| 736 | const GLMessage_Function GLMessage::glNormal3x; |
| 737 | const GLMessage_Function GLMessage::glNormal3xOES; |
| 738 | const GLMessage_Function GLMessage::glNormalPointer; |
| 739 | const GLMessage_Function GLMessage::glOrthof; |
| 740 | const GLMessage_Function GLMessage::glOrthofOES; |
| 741 | const GLMessage_Function GLMessage::glOrthox; |
| 742 | const GLMessage_Function GLMessage::glOrthoxOES; |
| 743 | const GLMessage_Function GLMessage::glPixelStorei; |
| 744 | const GLMessage_Function GLMessage::glPointParameterf; |
| 745 | const GLMessage_Function GLMessage::glPointParameterfv; |
| 746 | const GLMessage_Function GLMessage::glPointParameterx; |
| 747 | const GLMessage_Function GLMessage::glPointParameterxOES; |
| 748 | const GLMessage_Function GLMessage::glPointParameterxv; |
| 749 | const GLMessage_Function GLMessage::glPointParameterxvOES; |
| 750 | const GLMessage_Function GLMessage::glPointSize; |
| 751 | const GLMessage_Function GLMessage::glPointSizePointerOES; |
| 752 | const GLMessage_Function GLMessage::glPointSizex; |
| 753 | const GLMessage_Function GLMessage::glPointSizexOES; |
| 754 | const GLMessage_Function GLMessage::glPolygonOffset; |
| 755 | const GLMessage_Function GLMessage::glPolygonOffsetx; |
| 756 | const GLMessage_Function GLMessage::glPolygonOffsetxOES; |
| 757 | const GLMessage_Function GLMessage::glPopMatrix; |
| 758 | const GLMessage_Function GLMessage::glProgramBinaryOES; |
| 759 | const GLMessage_Function GLMessage::glPushMatrix; |
| 760 | const GLMessage_Function GLMessage::glQueryMatrixxOES; |
| 761 | const GLMessage_Function GLMessage::glReadPixels; |
| 762 | const GLMessage_Function GLMessage::glReleaseShaderCompiler; |
| 763 | const GLMessage_Function GLMessage::glRenderbufferStorage; |
| 764 | const GLMessage_Function GLMessage::glRenderbufferStorageMultisampleIMG; |
| 765 | const GLMessage_Function GLMessage::glRenderbufferStorageOES; |
| 766 | const GLMessage_Function GLMessage::glRotatef; |
| 767 | const GLMessage_Function GLMessage::glRotatex; |
| 768 | const GLMessage_Function GLMessage::glRotatexOES; |
| 769 | const GLMessage_Function GLMessage::glSampleCoverage; |
| 770 | const GLMessage_Function GLMessage::glSampleCoveragex; |
| 771 | const GLMessage_Function GLMessage::glSampleCoveragexOES; |
| 772 | const GLMessage_Function GLMessage::glScalef; |
| 773 | const GLMessage_Function GLMessage::glScalex; |
| 774 | const GLMessage_Function GLMessage::glScalexOES; |
| 775 | const GLMessage_Function GLMessage::glScissor; |
| 776 | const GLMessage_Function GLMessage::glSelectPerfMonitorCountersAMD; |
| 777 | const GLMessage_Function GLMessage::glSetFenceNV; |
| 778 | const GLMessage_Function GLMessage::glShadeModel; |
| 779 | const GLMessage_Function GLMessage::glShaderBinary; |
| 780 | const GLMessage_Function GLMessage::glShaderSource; |
| 781 | const GLMessage_Function GLMessage::glStartTilingQCOM; |
| 782 | const GLMessage_Function GLMessage::glStencilFunc; |
| 783 | const GLMessage_Function GLMessage::glStencilFuncSeparate; |
| 784 | const GLMessage_Function GLMessage::glStencilMask; |
| 785 | const GLMessage_Function GLMessage::glStencilMaskSeparate; |
| 786 | const GLMessage_Function GLMessage::glStencilOp; |
| 787 | const GLMessage_Function GLMessage::glStencilOpSeparate; |
| 788 | const GLMessage_Function GLMessage::glTestFenceNV; |
| 789 | const GLMessage_Function GLMessage::glTexCoordPointer; |
| 790 | const GLMessage_Function GLMessage::glTexEnvf; |
| 791 | const GLMessage_Function GLMessage::glTexEnvfv; |
| 792 | const GLMessage_Function GLMessage::glTexEnvi; |
| 793 | const GLMessage_Function GLMessage::glTexEnviv; |
| 794 | const GLMessage_Function GLMessage::glTexEnvx; |
| 795 | const GLMessage_Function GLMessage::glTexEnvxOES; |
| 796 | const GLMessage_Function GLMessage::glTexEnvxv; |
| 797 | const GLMessage_Function GLMessage::glTexEnvxvOES; |
| 798 | const GLMessage_Function GLMessage::glTexGenfOES; |
| 799 | const GLMessage_Function GLMessage::glTexGenfvOES; |
| 800 | const GLMessage_Function GLMessage::glTexGeniOES; |
| 801 | const GLMessage_Function GLMessage::glTexGenivOES; |
| 802 | const GLMessage_Function GLMessage::glTexGenxOES; |
| 803 | const GLMessage_Function GLMessage::glTexGenxvOES; |
| 804 | const GLMessage_Function GLMessage::glTexImage2D; |
| 805 | const GLMessage_Function GLMessage::glTexImage3DOES; |
| 806 | const GLMessage_Function GLMessage::glTexParameterf; |
| 807 | const GLMessage_Function GLMessage::glTexParameterfv; |
| 808 | const GLMessage_Function GLMessage::glTexParameteri; |
| 809 | const GLMessage_Function GLMessage::glTexParameteriv; |
| 810 | const GLMessage_Function GLMessage::glTexParameterx; |
| 811 | const GLMessage_Function GLMessage::glTexParameterxOES; |
| 812 | const GLMessage_Function GLMessage::glTexParameterxv; |
| 813 | const GLMessage_Function GLMessage::glTexParameterxvOES; |
| 814 | const GLMessage_Function GLMessage::glTexSubImage2D; |
| 815 | const GLMessage_Function GLMessage::glTexSubImage3DOES; |
| 816 | const GLMessage_Function GLMessage::glTranslatef; |
| 817 | const GLMessage_Function GLMessage::glTranslatex; |
| 818 | const GLMessage_Function GLMessage::glTranslatexOES; |
| 819 | const GLMessage_Function GLMessage::glUniform1f; |
| 820 | const GLMessage_Function GLMessage::glUniform1fv; |
| 821 | const GLMessage_Function GLMessage::glUniform1i; |
| 822 | const GLMessage_Function GLMessage::glUniform1iv; |
| 823 | const GLMessage_Function GLMessage::glUniform2f; |
| 824 | const GLMessage_Function GLMessage::glUniform2fv; |
| 825 | const GLMessage_Function GLMessage::glUniform2i; |
| 826 | const GLMessage_Function GLMessage::glUniform2iv; |
| 827 | const GLMessage_Function GLMessage::glUniform3f; |
| 828 | const GLMessage_Function GLMessage::glUniform3fv; |
| 829 | const GLMessage_Function GLMessage::glUniform3i; |
| 830 | const GLMessage_Function GLMessage::glUniform3iv; |
| 831 | const GLMessage_Function GLMessage::glUniform4f; |
| 832 | const GLMessage_Function GLMessage::glUniform4fv; |
| 833 | const GLMessage_Function GLMessage::glUniform4i; |
| 834 | const GLMessage_Function GLMessage::glUniform4iv; |
| 835 | const GLMessage_Function GLMessage::glUniformMatrix2fv; |
| 836 | const GLMessage_Function GLMessage::glUniformMatrix3fv; |
| 837 | const GLMessage_Function GLMessage::glUniformMatrix4fv; |
| 838 | const GLMessage_Function GLMessage::glUnmapBufferOES; |
| 839 | const GLMessage_Function GLMessage::glUseProgram; |
| 840 | const GLMessage_Function GLMessage::glValidateProgram; |
| 841 | const GLMessage_Function GLMessage::glVertexAttrib1f; |
| 842 | const GLMessage_Function GLMessage::glVertexAttrib1fv; |
| 843 | const GLMessage_Function GLMessage::glVertexAttrib2f; |
| 844 | const GLMessage_Function GLMessage::glVertexAttrib2fv; |
| 845 | const GLMessage_Function GLMessage::glVertexAttrib3f; |
| 846 | const GLMessage_Function GLMessage::glVertexAttrib3fv; |
| 847 | const GLMessage_Function GLMessage::glVertexAttrib4f; |
| 848 | const GLMessage_Function GLMessage::glVertexAttrib4fv; |
| 849 | const GLMessage_Function GLMessage::glVertexAttribPointer; |
| 850 | const GLMessage_Function GLMessage::glVertexPointer; |
| 851 | const GLMessage_Function GLMessage::glViewport; |
| 852 | const GLMessage_Function GLMessage::glWeightPointerOES; |
| 853 | const GLMessage_Function GLMessage::eglGetDisplay; |
| 854 | const GLMessage_Function GLMessage::eglInitialize; |
| 855 | const GLMessage_Function GLMessage::eglTerminate; |
| 856 | const GLMessage_Function GLMessage::eglGetConfigs; |
| 857 | const GLMessage_Function GLMessage::eglChooseConfig; |
| 858 | const GLMessage_Function GLMessage::eglGetConfigAttrib; |
| 859 | const GLMessage_Function GLMessage::eglCreateWindowSurface; |
| 860 | const GLMessage_Function GLMessage::eglCreatePixmapSurface; |
| 861 | const GLMessage_Function GLMessage::eglCreatePbufferSurface; |
| 862 | const GLMessage_Function GLMessage::eglDestroySurface; |
| 863 | const GLMessage_Function GLMessage::eglQuerySurface; |
| 864 | const GLMessage_Function GLMessage::eglCreateContext; |
| 865 | const GLMessage_Function GLMessage::eglDestroyContext; |
| 866 | const GLMessage_Function GLMessage::eglMakeCurrent; |
| 867 | const GLMessage_Function GLMessage::eglGetCurrentContext; |
| 868 | const GLMessage_Function GLMessage::eglGetCurrentSurface; |
| 869 | const GLMessage_Function GLMessage::eglGetCurrentDisplay; |
| 870 | const GLMessage_Function GLMessage::eglQueryContext; |
| 871 | const GLMessage_Function GLMessage::eglWaitGL; |
| 872 | const GLMessage_Function GLMessage::eglWaitNative; |
| 873 | const GLMessage_Function GLMessage::eglSwapBuffers; |
| 874 | const GLMessage_Function GLMessage::eglCopyBuffers; |
| 875 | const GLMessage_Function GLMessage::eglGetError; |
| 876 | const GLMessage_Function GLMessage::eglQueryString; |
| 877 | const GLMessage_Function GLMessage::eglGetProcAddress; |
| 878 | const GLMessage_Function GLMessage::eglSurfaceAttrib; |
| 879 | const GLMessage_Function GLMessage::eglBindTexImage; |
| 880 | const GLMessage_Function GLMessage::eglReleaseTexImage; |
| 881 | const GLMessage_Function GLMessage::eglSwapInterval; |
| 882 | const GLMessage_Function GLMessage::eglBindAPI; |
| 883 | const GLMessage_Function GLMessage::eglQueryAPI; |
| 884 | const GLMessage_Function GLMessage::eglWaitClient; |
| 885 | const GLMessage_Function GLMessage::eglReleaseThread; |
| 886 | const GLMessage_Function GLMessage::eglCreatePbufferFromClientBuffer; |
| 887 | const GLMessage_Function GLMessage::eglLockSurfaceKHR; |
| 888 | const GLMessage_Function GLMessage::eglUnlockSurfaceKHR; |
| 889 | const GLMessage_Function GLMessage::eglCreateImageKHR; |
| 890 | const GLMessage_Function GLMessage::eglDestroyImageKHR; |
| 891 | const GLMessage_Function GLMessage::eglCreateSyncKHR; |
| 892 | const GLMessage_Function GLMessage::eglDestroySyncKHR; |
| 893 | const GLMessage_Function GLMessage::eglClientWaitSyncKHR; |
| 894 | const GLMessage_Function GLMessage::eglGetSyncAttribKHR; |
| 895 | const GLMessage_Function GLMessage::eglSetSwapRectangleANDROID; |
| 896 | const GLMessage_Function GLMessage::eglGetRenderBufferANDROID; |
| 897 | const GLMessage_Function GLMessage::eglGetSystemTimeFrequencyNV; |
| 898 | const GLMessage_Function GLMessage::eglGetSystemTimeNV; |
| 899 | const GLMessage_Function GLMessage::invalid; |
| 900 | const GLMessage_Function GLMessage::frameBufferContents; |
| 901 | const GLMessage_Function GLMessage::Function_MIN; |
| 902 | const GLMessage_Function GLMessage::Function_MAX; |
| 903 | const int GLMessage::Function_ARRAYSIZE; |
| 904 | #endif // _MSC_VER |
| 905 | bool GLMessage_DataType_Type_IsValid(int value) { |
| 906 | switch(value) { |
| 907 | case 1: |
| 908 | case 2: |
| 909 | case 3: |
| 910 | case 4: |
| 911 | case 5: |
| 912 | case 6: |
| 913 | case 7: |
| 914 | return true; |
| 915 | default: |
| 916 | return false; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | #ifndef _MSC_VER |
| 921 | const GLMessage_DataType_Type GLMessage_DataType::VOID; |
| 922 | const GLMessage_DataType_Type GLMessage_DataType::CHAR; |
| 923 | const GLMessage_DataType_Type GLMessage_DataType::BYTE; |
| 924 | const GLMessage_DataType_Type GLMessage_DataType::INT; |
| 925 | const GLMessage_DataType_Type GLMessage_DataType::FLOAT; |
| 926 | const GLMessage_DataType_Type GLMessage_DataType::BOOL; |
| 927 | const GLMessage_DataType_Type GLMessage_DataType::ENUM; |
| 928 | const GLMessage_DataType_Type GLMessage_DataType::Type_MIN; |
| 929 | const GLMessage_DataType_Type GLMessage_DataType::Type_MAX; |
| 930 | const int GLMessage_DataType::Type_ARRAYSIZE; |
| 931 | #endif // _MSC_VER |
| 932 | #ifndef _MSC_VER |
| 933 | const int GLMessage_DataType::kTypeFieldNumber; |
| 934 | const int GLMessage_DataType::kIsArrayFieldNumber; |
| 935 | const int GLMessage_DataType::kIntValueFieldNumber; |
| 936 | const int GLMessage_DataType::kFloatValueFieldNumber; |
| 937 | const int GLMessage_DataType::kCharValueFieldNumber; |
| 938 | const int GLMessage_DataType::kRawBytesFieldNumber; |
| 939 | const int GLMessage_DataType::kBoolValueFieldNumber; |
| 940 | #endif // !_MSC_VER |
| 941 | |
| 942 | GLMessage_DataType::GLMessage_DataType() |
| 943 | : ::google::protobuf::MessageLite() { |
| 944 | SharedCtor(); |
| 945 | } |
| 946 | |
| 947 | void GLMessage_DataType::InitAsDefaultInstance() { |
| 948 | } |
| 949 | |
| 950 | GLMessage_DataType::GLMessage_DataType(const GLMessage_DataType& from) |
| 951 | : ::google::protobuf::MessageLite() { |
| 952 | SharedCtor(); |
| 953 | MergeFrom(from); |
| 954 | } |
| 955 | |
| 956 | void GLMessage_DataType::SharedCtor() { |
| 957 | _cached_size_ = 0; |
| 958 | type_ = 1; |
| 959 | isarray_ = false; |
| 960 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 961 | } |
| 962 | |
| 963 | GLMessage_DataType::~GLMessage_DataType() { |
| 964 | SharedDtor(); |
| 965 | } |
| 966 | |
| 967 | void GLMessage_DataType::SharedDtor() { |
| 968 | if (this != default_instance_) { |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | void GLMessage_DataType::SetCachedSize(int size) const { |
| 973 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 974 | _cached_size_ = size; |
| 975 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 976 | } |
| 977 | const GLMessage_DataType& GLMessage_DataType::default_instance() { |
| 978 | if (default_instance_ == NULL) protobuf_AddDesc_gltrace_2eproto(); return *default_instance_; |
| 979 | } |
| 980 | |
| 981 | GLMessage_DataType* GLMessage_DataType::default_instance_ = NULL; |
| 982 | |
| 983 | GLMessage_DataType* GLMessage_DataType::New() const { |
| 984 | return new GLMessage_DataType; |
| 985 | } |
| 986 | |
| 987 | void GLMessage_DataType::Clear() { |
| 988 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 989 | type_ = 1; |
| 990 | isarray_ = false; |
| 991 | } |
| 992 | intvalue_.Clear(); |
| 993 | floatvalue_.Clear(); |
| 994 | charvalue_.Clear(); |
| 995 | rawbytes_.Clear(); |
| 996 | boolvalue_.Clear(); |
| 997 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 998 | } |
| 999 | |
| 1000 | bool GLMessage_DataType::MergePartialFromCodedStream( |
| 1001 | ::google::protobuf::io::CodedInputStream* input) { |
| 1002 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
| 1003 | ::google::protobuf::uint32 tag; |
| 1004 | while ((tag = input->ReadTag()) != 0) { |
| 1005 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1006 | // required .android.gltrace.GLMessage.DataType.Type type = 1 [default = VOID]; |
| 1007 | case 1: { |
| 1008 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1009 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1010 | int value; |
| 1011 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1012 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1013 | input, &value))); |
| 1014 | if (::android::gltrace::GLMessage_DataType_Type_IsValid(value)) { |
| 1015 | set_type(static_cast< ::android::gltrace::GLMessage_DataType_Type >(value)); |
| 1016 | } |
| 1017 | } else { |
| 1018 | goto handle_uninterpreted; |
| 1019 | } |
| 1020 | if (input->ExpectTag(16)) goto parse_isArray; |
| 1021 | break; |
| 1022 | } |
| 1023 | |
| 1024 | // required bool isArray = 2 [default = false]; |
| 1025 | case 2: { |
| 1026 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1027 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1028 | parse_isArray: |
| 1029 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1030 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 1031 | input, &isarray_))); |
| 1032 | _set_bit(1); |
| 1033 | } else { |
| 1034 | goto handle_uninterpreted; |
| 1035 | } |
| 1036 | if (input->ExpectTag(24)) goto parse_intValue; |
| 1037 | break; |
| 1038 | } |
| 1039 | |
| 1040 | // repeated int32 intValue = 3; |
| 1041 | case 3: { |
| 1042 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1043 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1044 | parse_intValue: |
| 1045 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1046 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1047 | 1, 24, input, this->mutable_intvalue()))); |
| 1048 | } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) |
| 1049 | == ::google::protobuf::internal::WireFormatLite:: |
| 1050 | WIRETYPE_LENGTH_DELIMITED) { |
| 1051 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1052 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1053 | input, this->mutable_intvalue()))); |
| 1054 | } else { |
| 1055 | goto handle_uninterpreted; |
| 1056 | } |
| 1057 | if (input->ExpectTag(24)) goto parse_intValue; |
| 1058 | if (input->ExpectTag(37)) goto parse_floatValue; |
| 1059 | break; |
| 1060 | } |
| 1061 | |
| 1062 | // repeated float floatValue = 4; |
| 1063 | case 4: { |
| 1064 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1065 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) { |
| 1066 | parse_floatValue: |
| 1067 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1068 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
| 1069 | 1, 37, input, this->mutable_floatvalue()))); |
| 1070 | } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) |
| 1071 | == ::google::protobuf::internal::WireFormatLite:: |
| 1072 | WIRETYPE_LENGTH_DELIMITED) { |
| 1073 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1074 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
| 1075 | input, this->mutable_floatvalue()))); |
| 1076 | } else { |
| 1077 | goto handle_uninterpreted; |
| 1078 | } |
| 1079 | if (input->ExpectTag(37)) goto parse_floatValue; |
| 1080 | if (input->ExpectTag(42)) goto parse_charValue; |
| 1081 | break; |
| 1082 | } |
| 1083 | |
| 1084 | // repeated bytes charValue = 5; |
| 1085 | case 5: { |
| 1086 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1087 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1088 | parse_charValue: |
| 1089 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 1090 | input, this->add_charvalue())); |
| 1091 | } else { |
| 1092 | goto handle_uninterpreted; |
| 1093 | } |
| 1094 | if (input->ExpectTag(42)) goto parse_charValue; |
| 1095 | if (input->ExpectTag(50)) goto parse_rawBytes; |
| 1096 | break; |
| 1097 | } |
| 1098 | |
| 1099 | // repeated bytes rawBytes = 6; |
| 1100 | case 6: { |
| 1101 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1102 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1103 | parse_rawBytes: |
| 1104 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 1105 | input, this->add_rawbytes())); |
| 1106 | } else { |
| 1107 | goto handle_uninterpreted; |
| 1108 | } |
| 1109 | if (input->ExpectTag(50)) goto parse_rawBytes; |
| 1110 | if (input->ExpectTag(56)) goto parse_boolValue; |
| 1111 | break; |
| 1112 | } |
| 1113 | |
| 1114 | // repeated bool boolValue = 7; |
| 1115 | case 7: { |
| 1116 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1117 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1118 | parse_boolValue: |
| 1119 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1120 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 1121 | 1, 56, input, this->mutable_boolvalue()))); |
| 1122 | } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) |
| 1123 | == ::google::protobuf::internal::WireFormatLite:: |
| 1124 | WIRETYPE_LENGTH_DELIMITED) { |
| 1125 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1126 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 1127 | input, this->mutable_boolvalue()))); |
| 1128 | } else { |
| 1129 | goto handle_uninterpreted; |
| 1130 | } |
| 1131 | if (input->ExpectTag(56)) goto parse_boolValue; |
| 1132 | if (input->ExpectAtEnd()) return true; |
| 1133 | break; |
| 1134 | } |
| 1135 | |
| 1136 | default: { |
| 1137 | handle_uninterpreted: |
| 1138 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1139 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1140 | return true; |
| 1141 | } |
| 1142 | DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 1143 | break; |
| 1144 | } |
| 1145 | } |
| 1146 | } |
| 1147 | return true; |
| 1148 | #undef DO_ |
| 1149 | } |
| 1150 | |
| 1151 | void GLMessage_DataType::SerializeWithCachedSizes( |
| 1152 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1153 | // required .android.gltrace.GLMessage.DataType.Type type = 1 [default = VOID]; |
| 1154 | if (_has_bit(0)) { |
| 1155 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1156 | 1, this->type(), output); |
| 1157 | } |
| 1158 | |
| 1159 | // required bool isArray = 2 [default = false]; |
| 1160 | if (_has_bit(1)) { |
| 1161 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->isarray(), output); |
| 1162 | } |
| 1163 | |
| 1164 | // repeated int32 intValue = 3; |
| 1165 | for (int i = 0; i < this->intvalue_size(); i++) { |
| 1166 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1167 | 3, this->intvalue(i), output); |
| 1168 | } |
| 1169 | |
| 1170 | // repeated float floatValue = 4; |
| 1171 | for (int i = 0; i < this->floatvalue_size(); i++) { |
| 1172 | ::google::protobuf::internal::WireFormatLite::WriteFloat( |
| 1173 | 4, this->floatvalue(i), output); |
| 1174 | } |
| 1175 | |
| 1176 | // repeated bytes charValue = 5; |
| 1177 | for (int i = 0; i < this->charvalue_size(); i++) { |
| 1178 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
| 1179 | 5, this->charvalue(i), output); |
| 1180 | } |
| 1181 | |
| 1182 | // repeated bytes rawBytes = 6; |
| 1183 | for (int i = 0; i < this->rawbytes_size(); i++) { |
| 1184 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
| 1185 | 6, this->rawbytes(i), output); |
| 1186 | } |
| 1187 | |
| 1188 | // repeated bool boolValue = 7; |
| 1189 | for (int i = 0; i < this->boolvalue_size(); i++) { |
| 1190 | ::google::protobuf::internal::WireFormatLite::WriteBool( |
| 1191 | 7, this->boolvalue(i), output); |
| 1192 | } |
| 1193 | |
| 1194 | } |
| 1195 | |
| 1196 | int GLMessage_DataType::ByteSize() const { |
| 1197 | int total_size = 0; |
| 1198 | |
| 1199 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1200 | // required .android.gltrace.GLMessage.DataType.Type type = 1 [default = VOID]; |
| 1201 | if (has_type()) { |
| 1202 | total_size += 1 + |
| 1203 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 1204 | } |
| 1205 | |
| 1206 | // required bool isArray = 2 [default = false]; |
| 1207 | if (has_isarray()) { |
| 1208 | total_size += 1 + 1; |
| 1209 | } |
| 1210 | |
| 1211 | } |
| 1212 | // repeated int32 intValue = 3; |
| 1213 | { |
| 1214 | int data_size = 0; |
| 1215 | for (int i = 0; i < this->intvalue_size(); i++) { |
| 1216 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1217 | Int32Size(this->intvalue(i)); |
| 1218 | } |
| 1219 | total_size += 1 * this->intvalue_size() + data_size; |
| 1220 | } |
| 1221 | |
| 1222 | // repeated float floatValue = 4; |
| 1223 | { |
| 1224 | int data_size = 0; |
| 1225 | data_size = 4 * this->floatvalue_size(); |
| 1226 | total_size += 1 * this->floatvalue_size() + data_size; |
| 1227 | } |
| 1228 | |
| 1229 | // repeated bytes charValue = 5; |
| 1230 | total_size += 1 * this->charvalue_size(); |
| 1231 | for (int i = 0; i < this->charvalue_size(); i++) { |
| 1232 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 1233 | this->charvalue(i)); |
| 1234 | } |
| 1235 | |
| 1236 | // repeated bytes rawBytes = 6; |
| 1237 | total_size += 1 * this->rawbytes_size(); |
| 1238 | for (int i = 0; i < this->rawbytes_size(); i++) { |
| 1239 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 1240 | this->rawbytes(i)); |
| 1241 | } |
| 1242 | |
| 1243 | // repeated bool boolValue = 7; |
| 1244 | { |
| 1245 | int data_size = 0; |
| 1246 | data_size = 1 * this->boolvalue_size(); |
| 1247 | total_size += 1 * this->boolvalue_size() + data_size; |
| 1248 | } |
| 1249 | |
| 1250 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1251 | _cached_size_ = total_size; |
| 1252 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1253 | return total_size; |
| 1254 | } |
| 1255 | |
| 1256 | void GLMessage_DataType::CheckTypeAndMergeFrom( |
| 1257 | const ::google::protobuf::MessageLite& from) { |
| 1258 | MergeFrom(*::google::protobuf::down_cast<const GLMessage_DataType*>(&from)); |
| 1259 | } |
| 1260 | |
| 1261 | void GLMessage_DataType::MergeFrom(const GLMessage_DataType& from) { |
| 1262 | GOOGLE_CHECK_NE(&from, this); |
| 1263 | intvalue_.MergeFrom(from.intvalue_); |
| 1264 | floatvalue_.MergeFrom(from.floatvalue_); |
| 1265 | charvalue_.MergeFrom(from.charvalue_); |
| 1266 | rawbytes_.MergeFrom(from.rawbytes_); |
| 1267 | boolvalue_.MergeFrom(from.boolvalue_); |
| 1268 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1269 | if (from._has_bit(0)) { |
| 1270 | set_type(from.type()); |
| 1271 | } |
| 1272 | if (from._has_bit(1)) { |
| 1273 | set_isarray(from.isarray()); |
| 1274 | } |
| 1275 | } |
| 1276 | } |
| 1277 | |
| 1278 | void GLMessage_DataType::CopyFrom(const GLMessage_DataType& from) { |
| 1279 | if (&from == this) return; |
| 1280 | Clear(); |
| 1281 | MergeFrom(from); |
| 1282 | } |
| 1283 | |
| 1284 | bool GLMessage_DataType::IsInitialized() const { |
| 1285 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 1286 | |
| 1287 | return true; |
| 1288 | } |
| 1289 | |
| 1290 | void GLMessage_DataType::Swap(GLMessage_DataType* other) { |
| 1291 | if (other != this) { |
| 1292 | std::swap(type_, other->type_); |
| 1293 | std::swap(isarray_, other->isarray_); |
| 1294 | intvalue_.Swap(&other->intvalue_); |
| 1295 | floatvalue_.Swap(&other->floatvalue_); |
| 1296 | charvalue_.Swap(&other->charvalue_); |
| 1297 | rawbytes_.Swap(&other->rawbytes_); |
| 1298 | boolvalue_.Swap(&other->boolvalue_); |
| 1299 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1300 | std::swap(_cached_size_, other->_cached_size_); |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | ::std::string GLMessage_DataType::GetTypeName() const { |
| 1305 | return "android.gltrace.GLMessage.DataType"; |
| 1306 | } |
| 1307 | |
| 1308 | |
| 1309 | // ------------------------------------------------------------------- |
| 1310 | |
| 1311 | #ifndef _MSC_VER |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1312 | const int GLMessage_FrameBuffer::kWidthFieldNumber; |
| 1313 | const int GLMessage_FrameBuffer::kHeightFieldNumber; |
| 1314 | const int GLMessage_FrameBuffer::kContentsFieldNumber; |
| 1315 | #endif // !_MSC_VER |
| 1316 | |
| 1317 | GLMessage_FrameBuffer::GLMessage_FrameBuffer() |
| 1318 | : ::google::protobuf::MessageLite() { |
| 1319 | SharedCtor(); |
| 1320 | } |
| 1321 | |
| 1322 | void GLMessage_FrameBuffer::InitAsDefaultInstance() { |
| 1323 | } |
| 1324 | |
| 1325 | GLMessage_FrameBuffer::GLMessage_FrameBuffer(const GLMessage_FrameBuffer& from) |
| 1326 | : ::google::protobuf::MessageLite() { |
| 1327 | SharedCtor(); |
| 1328 | MergeFrom(from); |
| 1329 | } |
| 1330 | |
| 1331 | void GLMessage_FrameBuffer::SharedCtor() { |
| 1332 | _cached_size_ = 0; |
| 1333 | width_ = 0; |
| 1334 | height_ = 0; |
| 1335 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1336 | } |
| 1337 | |
| 1338 | GLMessage_FrameBuffer::~GLMessage_FrameBuffer() { |
| 1339 | SharedDtor(); |
| 1340 | } |
| 1341 | |
| 1342 | void GLMessage_FrameBuffer::SharedDtor() { |
| 1343 | if (this != default_instance_) { |
| 1344 | } |
| 1345 | } |
| 1346 | |
| 1347 | void GLMessage_FrameBuffer::SetCachedSize(int size) const { |
| 1348 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1349 | _cached_size_ = size; |
| 1350 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1351 | } |
| 1352 | const GLMessage_FrameBuffer& GLMessage_FrameBuffer::default_instance() { |
| 1353 | if (default_instance_ == NULL) protobuf_AddDesc_gltrace_2eproto(); return *default_instance_; |
| 1354 | } |
| 1355 | |
| 1356 | GLMessage_FrameBuffer* GLMessage_FrameBuffer::default_instance_ = NULL; |
| 1357 | |
| 1358 | GLMessage_FrameBuffer* GLMessage_FrameBuffer::New() const { |
| 1359 | return new GLMessage_FrameBuffer; |
| 1360 | } |
| 1361 | |
| 1362 | void GLMessage_FrameBuffer::Clear() { |
| 1363 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1364 | width_ = 0; |
| 1365 | height_ = 0; |
| 1366 | } |
| 1367 | contents_.Clear(); |
| 1368 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1369 | } |
| 1370 | |
| 1371 | bool GLMessage_FrameBuffer::MergePartialFromCodedStream( |
| 1372 | ::google::protobuf::io::CodedInputStream* input) { |
| 1373 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
| 1374 | ::google::protobuf::uint32 tag; |
| 1375 | while ((tag = input->ReadTag()) != 0) { |
| 1376 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1377 | // required int32 width = 1; |
| 1378 | case 1: { |
| 1379 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1380 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1381 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1382 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1383 | input, &width_))); |
| 1384 | _set_bit(0); |
| 1385 | } else { |
| 1386 | goto handle_uninterpreted; |
| 1387 | } |
| 1388 | if (input->ExpectTag(16)) goto parse_height; |
| 1389 | break; |
| 1390 | } |
| 1391 | |
| 1392 | // required int32 height = 2; |
| 1393 | case 2: { |
| 1394 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1395 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1396 | parse_height: |
| 1397 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1398 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1399 | input, &height_))); |
| 1400 | _set_bit(1); |
| 1401 | } else { |
| 1402 | goto handle_uninterpreted; |
| 1403 | } |
| 1404 | if (input->ExpectTag(26)) goto parse_contents; |
| 1405 | break; |
| 1406 | } |
| 1407 | |
| 1408 | // repeated bytes contents = 3; |
| 1409 | case 3: { |
| 1410 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1411 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1412 | parse_contents: |
| 1413 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 1414 | input, this->add_contents())); |
| 1415 | } else { |
| 1416 | goto handle_uninterpreted; |
| 1417 | } |
| 1418 | if (input->ExpectTag(26)) goto parse_contents; |
| 1419 | if (input->ExpectAtEnd()) return true; |
| 1420 | break; |
| 1421 | } |
| 1422 | |
| 1423 | default: { |
| 1424 | handle_uninterpreted: |
| 1425 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1426 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1427 | return true; |
| 1428 | } |
| 1429 | DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 1430 | break; |
| 1431 | } |
| 1432 | } |
| 1433 | } |
| 1434 | return true; |
| 1435 | #undef DO_ |
| 1436 | } |
| 1437 | |
| 1438 | void GLMessage_FrameBuffer::SerializeWithCachedSizes( |
| 1439 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1440 | // required int32 width = 1; |
| 1441 | if (_has_bit(0)) { |
| 1442 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->width(), output); |
| 1443 | } |
| 1444 | |
| 1445 | // required int32 height = 2; |
| 1446 | if (_has_bit(1)) { |
| 1447 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->height(), output); |
| 1448 | } |
| 1449 | |
| 1450 | // repeated bytes contents = 3; |
| 1451 | for (int i = 0; i < this->contents_size(); i++) { |
| 1452 | ::google::protobuf::internal::WireFormatLite::WriteBytes( |
| 1453 | 3, this->contents(i), output); |
| 1454 | } |
| 1455 | |
| 1456 | } |
| 1457 | |
| 1458 | int GLMessage_FrameBuffer::ByteSize() const { |
| 1459 | int total_size = 0; |
| 1460 | |
| 1461 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1462 | // required int32 width = 1; |
| 1463 | if (has_width()) { |
| 1464 | total_size += 1 + |
| 1465 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 1466 | this->width()); |
| 1467 | } |
| 1468 | |
| 1469 | // required int32 height = 2; |
| 1470 | if (has_height()) { |
| 1471 | total_size += 1 + |
| 1472 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 1473 | this->height()); |
| 1474 | } |
| 1475 | |
| 1476 | } |
| 1477 | // repeated bytes contents = 3; |
| 1478 | total_size += 1 * this->contents_size(); |
| 1479 | for (int i = 0; i < this->contents_size(); i++) { |
| 1480 | total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 1481 | this->contents(i)); |
| 1482 | } |
| 1483 | |
| 1484 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1485 | _cached_size_ = total_size; |
| 1486 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1487 | return total_size; |
| 1488 | } |
| 1489 | |
| 1490 | void GLMessage_FrameBuffer::CheckTypeAndMergeFrom( |
| 1491 | const ::google::protobuf::MessageLite& from) { |
| 1492 | MergeFrom(*::google::protobuf::down_cast<const GLMessage_FrameBuffer*>(&from)); |
| 1493 | } |
| 1494 | |
| 1495 | void GLMessage_FrameBuffer::MergeFrom(const GLMessage_FrameBuffer& from) { |
| 1496 | GOOGLE_CHECK_NE(&from, this); |
| 1497 | contents_.MergeFrom(from.contents_); |
| 1498 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1499 | if (from._has_bit(0)) { |
| 1500 | set_width(from.width()); |
| 1501 | } |
| 1502 | if (from._has_bit(1)) { |
| 1503 | set_height(from.height()); |
| 1504 | } |
| 1505 | } |
| 1506 | } |
| 1507 | |
| 1508 | void GLMessage_FrameBuffer::CopyFrom(const GLMessage_FrameBuffer& from) { |
| 1509 | if (&from == this) return; |
| 1510 | Clear(); |
| 1511 | MergeFrom(from); |
| 1512 | } |
| 1513 | |
| 1514 | bool GLMessage_FrameBuffer::IsInitialized() const { |
| 1515 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 1516 | |
| 1517 | return true; |
| 1518 | } |
| 1519 | |
| 1520 | void GLMessage_FrameBuffer::Swap(GLMessage_FrameBuffer* other) { |
| 1521 | if (other != this) { |
| 1522 | std::swap(width_, other->width_); |
| 1523 | std::swap(height_, other->height_); |
| 1524 | contents_.Swap(&other->contents_); |
| 1525 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1526 | std::swap(_cached_size_, other->_cached_size_); |
| 1527 | } |
| 1528 | } |
| 1529 | |
| 1530 | ::std::string GLMessage_FrameBuffer::GetTypeName() const { |
| 1531 | return "android.gltrace.GLMessage.FrameBuffer"; |
| 1532 | } |
| 1533 | |
| 1534 | |
| 1535 | // ------------------------------------------------------------------- |
| 1536 | |
| 1537 | #ifndef _MSC_VER |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1538 | const int GLMessage::kContextIdFieldNumber; |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1539 | const int GLMessage::kStartTimeFieldNumber; |
| 1540 | const int GLMessage::kDurationFieldNumber; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1541 | const int GLMessage::kFunctionFieldNumber; |
| 1542 | const int GLMessage::kArgsFieldNumber; |
| 1543 | const int GLMessage::kReturnValueFieldNumber; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1544 | const int GLMessage::kFbFieldNumber; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1545 | #endif // !_MSC_VER |
| 1546 | |
| 1547 | GLMessage::GLMessage() |
| 1548 | : ::google::protobuf::MessageLite() { |
| 1549 | SharedCtor(); |
| 1550 | } |
| 1551 | |
| 1552 | void GLMessage::InitAsDefaultInstance() { |
| 1553 | returnvalue_ = const_cast< ::android::gltrace::GLMessage_DataType*>(&::android::gltrace::GLMessage_DataType::default_instance()); |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1554 | fb_ = const_cast< ::android::gltrace::GLMessage_FrameBuffer*>(&::android::gltrace::GLMessage_FrameBuffer::default_instance()); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1555 | } |
| 1556 | |
| 1557 | GLMessage::GLMessage(const GLMessage& from) |
| 1558 | : ::google::protobuf::MessageLite() { |
| 1559 | SharedCtor(); |
| 1560 | MergeFrom(from); |
| 1561 | } |
| 1562 | |
| 1563 | void GLMessage::SharedCtor() { |
| 1564 | _cached_size_ = 0; |
| 1565 | context_id_ = 0; |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1566 | start_time_ = GOOGLE_LONGLONG(0); |
| 1567 | duration_ = 0; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1568 | function_ = 3000; |
| 1569 | returnvalue_ = NULL; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1570 | fb_ = NULL; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1571 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1572 | } |
| 1573 | |
| 1574 | GLMessage::~GLMessage() { |
| 1575 | SharedDtor(); |
| 1576 | } |
| 1577 | |
| 1578 | void GLMessage::SharedDtor() { |
| 1579 | if (this != default_instance_) { |
| 1580 | delete returnvalue_; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1581 | delete fb_; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1582 | } |
| 1583 | } |
| 1584 | |
| 1585 | void GLMessage::SetCachedSize(int size) const { |
| 1586 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1587 | _cached_size_ = size; |
| 1588 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1589 | } |
| 1590 | const GLMessage& GLMessage::default_instance() { |
| 1591 | if (default_instance_ == NULL) protobuf_AddDesc_gltrace_2eproto(); return *default_instance_; |
| 1592 | } |
| 1593 | |
| 1594 | GLMessage* GLMessage::default_instance_ = NULL; |
| 1595 | |
| 1596 | GLMessage* GLMessage::New() const { |
| 1597 | return new GLMessage; |
| 1598 | } |
| 1599 | |
| 1600 | void GLMessage::Clear() { |
| 1601 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1602 | context_id_ = 0; |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1603 | start_time_ = GOOGLE_LONGLONG(0); |
| 1604 | duration_ = 0; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1605 | function_ = 3000; |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1606 | if (_has_bit(5)) { |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1607 | if (returnvalue_ != NULL) returnvalue_->::android::gltrace::GLMessage_DataType::Clear(); |
| 1608 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1609 | if (_has_bit(6)) { |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1610 | if (fb_ != NULL) fb_->::android::gltrace::GLMessage_FrameBuffer::Clear(); |
| 1611 | } |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1612 | } |
| 1613 | args_.Clear(); |
| 1614 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1615 | } |
| 1616 | |
| 1617 | bool GLMessage::MergePartialFromCodedStream( |
| 1618 | ::google::protobuf::io::CodedInputStream* input) { |
| 1619 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false |
| 1620 | ::google::protobuf::uint32 tag; |
| 1621 | while ((tag = input->ReadTag()) != 0) { |
| 1622 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1623 | // required int32 context_id = 1; |
| 1624 | case 1: { |
| 1625 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1626 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1627 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1628 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1629 | input, &context_id_))); |
| 1630 | _set_bit(0); |
| 1631 | } else { |
| 1632 | goto handle_uninterpreted; |
| 1633 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1634 | if (input->ExpectTag(16)) goto parse_start_time; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1635 | break; |
| 1636 | } |
| 1637 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1638 | // required int64 start_time = 2; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1639 | case 2: { |
| 1640 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1641 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1642 | parse_start_time: |
| 1643 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1644 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
| 1645 | input, &start_time_))); |
| 1646 | _set_bit(1); |
| 1647 | } else { |
| 1648 | goto handle_uninterpreted; |
| 1649 | } |
| 1650 | if (input->ExpectTag(24)) goto parse_duration; |
| 1651 | break; |
| 1652 | } |
| 1653 | |
| 1654 | // required int32 duration = 3; |
| 1655 | case 3: { |
| 1656 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1657 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
| 1658 | parse_duration: |
| 1659 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1660 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1661 | input, &duration_))); |
| 1662 | _set_bit(2); |
| 1663 | } else { |
| 1664 | goto handle_uninterpreted; |
| 1665 | } |
| 1666 | if (input->ExpectTag(32)) goto parse_function; |
| 1667 | break; |
| 1668 | } |
| 1669 | |
| 1670 | // required .android.gltrace.GLMessage.Function function = 4 [default = invalid]; |
| 1671 | case 4: { |
| 1672 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1673 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1674 | parse_function: |
| 1675 | int value; |
| 1676 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1677 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1678 | input, &value))); |
| 1679 | if (::android::gltrace::GLMessage_Function_IsValid(value)) { |
| 1680 | set_function(static_cast< ::android::gltrace::GLMessage_Function >(value)); |
| 1681 | } |
| 1682 | } else { |
| 1683 | goto handle_uninterpreted; |
| 1684 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1685 | if (input->ExpectTag(42)) goto parse_args; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1686 | break; |
| 1687 | } |
| 1688 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1689 | // repeated .android.gltrace.GLMessage.DataType args = 5; |
| 1690 | case 5: { |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1691 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1692 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1693 | parse_args: |
| 1694 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1695 | input, add_args())); |
| 1696 | } else { |
| 1697 | goto handle_uninterpreted; |
| 1698 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1699 | if (input->ExpectTag(42)) goto parse_args; |
| 1700 | if (input->ExpectTag(50)) goto parse_returnValue; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1701 | break; |
| 1702 | } |
| 1703 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1704 | // optional .android.gltrace.GLMessage.DataType returnValue = 6; |
| 1705 | case 6: { |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1706 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1707 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1708 | parse_returnValue: |
| 1709 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1710 | input, mutable_returnvalue())); |
| 1711 | } else { |
| 1712 | goto handle_uninterpreted; |
| 1713 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1714 | if (input->ExpectTag(58)) goto parse_fb; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1715 | break; |
| 1716 | } |
| 1717 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1718 | // optional .android.gltrace.GLMessage.FrameBuffer fb = 7; |
| 1719 | case 7: { |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1720 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1721 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { |
| 1722 | parse_fb: |
| 1723 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1724 | input, mutable_fb())); |
| 1725 | } else { |
| 1726 | goto handle_uninterpreted; |
| 1727 | } |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1728 | if (input->ExpectAtEnd()) return true; |
| 1729 | break; |
| 1730 | } |
| 1731 | |
| 1732 | default: { |
| 1733 | handle_uninterpreted: |
| 1734 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1735 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1736 | return true; |
| 1737 | } |
| 1738 | DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 1739 | break; |
| 1740 | } |
| 1741 | } |
| 1742 | } |
| 1743 | return true; |
| 1744 | #undef DO_ |
| 1745 | } |
| 1746 | |
| 1747 | void GLMessage::SerializeWithCachedSizes( |
| 1748 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1749 | // required int32 context_id = 1; |
| 1750 | if (_has_bit(0)) { |
| 1751 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->context_id(), output); |
| 1752 | } |
| 1753 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1754 | // required int64 start_time = 2; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1755 | if (_has_bit(1)) { |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1756 | ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->start_time(), output); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1757 | } |
| 1758 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1759 | // required int32 duration = 3; |
| 1760 | if (_has_bit(2)) { |
| 1761 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->duration(), output); |
| 1762 | } |
| 1763 | |
| 1764 | // required .android.gltrace.GLMessage.Function function = 4 [default = invalid]; |
| 1765 | if (_has_bit(3)) { |
| 1766 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1767 | 4, this->function(), output); |
| 1768 | } |
| 1769 | |
| 1770 | // repeated .android.gltrace.GLMessage.DataType args = 5; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1771 | for (int i = 0; i < this->args_size(); i++) { |
| 1772 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1773 | 5, this->args(i), output); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1774 | } |
| 1775 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1776 | // optional .android.gltrace.GLMessage.DataType returnValue = 6; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1777 | if (_has_bit(5)) { |
| 1778 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1779 | 6, this->returnvalue(), output); |
| 1780 | } |
| 1781 | |
| 1782 | // optional .android.gltrace.GLMessage.FrameBuffer fb = 7; |
| 1783 | if (_has_bit(6)) { |
| 1784 | ::google::protobuf::internal::WireFormatLite::WriteMessage( |
| 1785 | 7, this->fb(), output); |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1786 | } |
| 1787 | |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1788 | } |
| 1789 | |
| 1790 | int GLMessage::ByteSize() const { |
| 1791 | int total_size = 0; |
| 1792 | |
| 1793 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1794 | // required int32 context_id = 1; |
| 1795 | if (has_context_id()) { |
| 1796 | total_size += 1 + |
| 1797 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 1798 | this->context_id()); |
| 1799 | } |
| 1800 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1801 | // required int64 start_time = 2; |
| 1802 | if (has_start_time()) { |
| 1803 | total_size += 1 + |
| 1804 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 1805 | this->start_time()); |
| 1806 | } |
| 1807 | |
| 1808 | // required int32 duration = 3; |
| 1809 | if (has_duration()) { |
| 1810 | total_size += 1 + |
| 1811 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 1812 | this->duration()); |
| 1813 | } |
| 1814 | |
| 1815 | // required .android.gltrace.GLMessage.Function function = 4 [default = invalid]; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1816 | if (has_function()) { |
| 1817 | total_size += 1 + |
| 1818 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->function()); |
| 1819 | } |
| 1820 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1821 | // optional .android.gltrace.GLMessage.DataType returnValue = 6; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1822 | if (has_returnvalue()) { |
| 1823 | total_size += 1 + |
| 1824 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1825 | this->returnvalue()); |
| 1826 | } |
| 1827 | |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1828 | // optional .android.gltrace.GLMessage.FrameBuffer fb = 7; |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1829 | if (has_fb()) { |
| 1830 | total_size += 1 + |
| 1831 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1832 | this->fb()); |
| 1833 | } |
| 1834 | |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1835 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1836 | // repeated .android.gltrace.GLMessage.DataType args = 5; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1837 | total_size += 1 * this->args_size(); |
| 1838 | for (int i = 0; i < this->args_size(); i++) { |
| 1839 | total_size += |
| 1840 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1841 | this->args(i)); |
| 1842 | } |
| 1843 | |
| 1844 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1845 | _cached_size_ = total_size; |
| 1846 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1847 | return total_size; |
| 1848 | } |
| 1849 | |
| 1850 | void GLMessage::CheckTypeAndMergeFrom( |
| 1851 | const ::google::protobuf::MessageLite& from) { |
| 1852 | MergeFrom(*::google::protobuf::down_cast<const GLMessage*>(&from)); |
| 1853 | } |
| 1854 | |
| 1855 | void GLMessage::MergeFrom(const GLMessage& from) { |
| 1856 | GOOGLE_CHECK_NE(&from, this); |
| 1857 | args_.MergeFrom(from.args_); |
| 1858 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1859 | if (from._has_bit(0)) { |
| 1860 | set_context_id(from.context_id()); |
| 1861 | } |
| 1862 | if (from._has_bit(1)) { |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1863 | set_start_time(from.start_time()); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1864 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1865 | if (from._has_bit(2)) { |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1866 | set_duration(from.duration()); |
| 1867 | } |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1868 | if (from._has_bit(3)) { |
| 1869 | set_function(from.function()); |
| 1870 | } |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1871 | if (from._has_bit(5)) { |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1872 | mutable_returnvalue()->::android::gltrace::GLMessage_DataType::MergeFrom(from.returnvalue()); |
| 1873 | } |
| 1874 | if (from._has_bit(6)) { |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1875 | mutable_fb()->::android::gltrace::GLMessage_FrameBuffer::MergeFrom(from.fb()); |
| 1876 | } |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1877 | } |
| 1878 | } |
| 1879 | |
| 1880 | void GLMessage::CopyFrom(const GLMessage& from) { |
| 1881 | if (&from == this) return; |
| 1882 | Clear(); |
| 1883 | MergeFrom(from); |
| 1884 | } |
| 1885 | |
| 1886 | bool GLMessage::IsInitialized() const { |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1887 | if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1888 | |
| 1889 | for (int i = 0; i < args_size(); i++) { |
| 1890 | if (!this->args(i).IsInitialized()) return false; |
| 1891 | } |
| 1892 | if (has_returnvalue()) { |
| 1893 | if (!this->returnvalue().IsInitialized()) return false; |
| 1894 | } |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1895 | if (has_fb()) { |
| 1896 | if (!this->fb().IsInitialized()) return false; |
| 1897 | } |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1898 | return true; |
| 1899 | } |
| 1900 | |
| 1901 | void GLMessage::Swap(GLMessage* other) { |
| 1902 | if (other != this) { |
| 1903 | std::swap(context_id_, other->context_id_); |
Siva Velusamy | 5ed919e | 2011-12-15 17:32:05 -0800 | [diff] [blame] | 1904 | std::swap(start_time_, other->start_time_); |
| 1905 | std::swap(duration_, other->duration_); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1906 | std::swap(function_, other->function_); |
| 1907 | args_.Swap(&other->args_); |
| 1908 | std::swap(returnvalue_, other->returnvalue_); |
Siva Velusamy | c0f838f | 2011-12-05 11:12:31 -0800 | [diff] [blame] | 1909 | std::swap(fb_, other->fb_); |
Siva Velusamy | db97468 | 2011-11-30 15:05:37 -0800 | [diff] [blame] | 1910 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1911 | std::swap(_cached_size_, other->_cached_size_); |
| 1912 | } |
| 1913 | } |
| 1914 | |
| 1915 | ::std::string GLMessage::GetTypeName() const { |
| 1916 | return "android.gltrace.GLMessage"; |
| 1917 | } |
| 1918 | |
| 1919 | |
| 1920 | // @@protoc_insertion_point(namespace_scope) |
| 1921 | |
| 1922 | } // namespace gltrace |
| 1923 | } // namespace android |
| 1924 | |
| 1925 | // @@protoc_insertion_point(global_scope) |