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

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

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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') | no next file » | 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. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated. DO NOT EDIT! 5 // This file is auto-generated. DO NOT EDIT!
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H _ // NOLINT 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H _ // NOLINT
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H _ // NOLINT 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H _ // NOLINT
9 9
10 bool ValidateGLenumAttachment(GLenum value) { 10 bool ValidateGLenumAttachment(GLenum value) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 case GL_GREATER: 75 case GL_GREATER:
76 case GL_NOTEQUAL: 76 case GL_NOTEQUAL:
77 case GL_GEQUAL: 77 case GL_GEQUAL:
78 case GL_ALWAYS: 78 case GL_ALWAYS:
79 return true; 79 return true;
80 default: 80 default:
81 return false; 81 return false;
82 } 82 }
83 } 83 }
84 84
85 bool ValidateGLenumCommandBufferState(GLenum value) {
86 switch (value) {
87 case GLES2_ALLOW_BUFFERS_ON_MULTIPLE_TARGETS:
88 return true;
89 default:
90 return false;
91 }
92 }
93
94 bool ValidateGLenumCompressedTextureFormat(GLenum value) { 85 bool ValidateGLenumCompressedTextureFormat(GLenum value) {
95 switch (value) { 86 switch (value) {
96 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: 87 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
97 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: 88 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
98 return true; 89 return true;
99 default: 90 default:
100 return false; 91 return false;
101 } 92 }
102 } 93 }
103 94
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 switch (value) { 617 switch (value) {
627 case GL_VERTEX_ATTRIB_ARRAY_POINTER: 618 case GL_VERTEX_ATTRIB_ARRAY_POINTER:
628 return true; 619 return true;
629 default: 620 default:
630 return false; 621 return false;
631 } 622 }
632 } 623 }
633 624
634 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ // NOLINT 625 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ // NOLINT
635 626
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698