| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 // This file is auto-generated. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
| 2 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H
_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H
_ |
| 3 | 9 |
| 4 bool ValidateGLenumBufferParameter(GLenum value) { | 10 bool ValidateGLenumBufferParameter(GLenum value) { |
| 5 switch (value) { | 11 switch (value) { |
| 6 case GL_BUFFER_SIZE: | 12 case GL_BUFFER_SIZE: |
| 7 case GL_BUFFER_USAGE: | 13 case GL_BUFFER_USAGE: |
| 8 return true; | 14 return true; |
| 9 default: | 15 default: |
| 10 return false; | 16 return false; |
| 11 } | 17 } |
| 12 } | 18 } |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 302 |
| 297 bool ValidateGLenumFrameBufferTarget(GLenum value) { | 303 bool ValidateGLenumFrameBufferTarget(GLenum value) { |
| 298 switch (value) { | 304 switch (value) { |
| 299 case GL_FRAMEBUFFER: | 305 case GL_FRAMEBUFFER: |
| 300 return true; | 306 return true; |
| 301 default: | 307 default: |
| 302 return false; | 308 return false; |
| 303 } | 309 } |
| 304 } | 310 } |
| 305 | 311 |
| 306 bool ValidateGLenumPixelStoreAlignment(GLenum value) { | 312 bool ValidateGLbooleanFalse(GLenum value) { |
| 313 switch (value) { |
| 314 case false: |
| 315 return true; |
| 316 default: |
| 317 return false; |
| 318 } |
| 319 } |
| 320 |
| 321 bool ValidateGLintPixelStoreAlignment(GLenum value) { |
| 307 switch (value) { | 322 switch (value) { |
| 308 case 1: | 323 case 1: |
| 309 case 2: | 324 case 2: |
| 310 case 4: | 325 case 4: |
| 311 case 8: | 326 case 8: |
| 312 return true; | 327 return true; |
| 313 default: | 328 default: |
| 314 return false; | 329 return false; |
| 315 } | 330 } |
| 316 } | 331 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 case GL_INCR_WRAP: | 423 case GL_INCR_WRAP: |
| 409 case GL_DECR: | 424 case GL_DECR: |
| 410 case GL_DECR_WRAP: | 425 case GL_DECR_WRAP: |
| 411 case GL_INVERT: | 426 case GL_INVERT: |
| 412 return true; | 427 return true; |
| 413 default: | 428 default: |
| 414 return false; | 429 return false; |
| 415 } | 430 } |
| 416 } | 431 } |
| 417 | 432 |
| 418 bool ValidateGLenumVertexAttribSize(GLenum value) { | 433 bool ValidateGLintVertexAttribSize(GLenum value) { |
| 419 switch (value) { | 434 switch (value) { |
| 420 case 1: | 435 case 1: |
| 421 case 2: | 436 case 2: |
| 422 case 3: | 437 case 3: |
| 423 case 4: | 438 case 4: |
| 424 return true; | 439 return true; |
| 425 default: | 440 default: |
| 426 return false; | 441 return false; |
| 427 } | 442 } |
| 428 } | 443 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 493 |
| 479 bool ValidateGLenumVertexPointer(GLenum value) { | 494 bool ValidateGLenumVertexPointer(GLenum value) { |
| 480 switch (value) { | 495 switch (value) { |
| 481 case GL_VERTEX_ATTRIB_ARRAY_POINTER: | 496 case GL_VERTEX_ATTRIB_ARRAY_POINTER: |
| 482 return true; | 497 return true; |
| 483 default: | 498 default: |
| 484 return false; | 499 return false; |
| 485 } | 500 } |
| 486 } | 501 } |
| 487 | 502 |
| 503 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| 504 |
| OLD | NEW |