Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 521018: A bunch of unit tests for GLES2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698