OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
6 // includes where appropriate. | 6 // includes where appropriate. |
7 | 7 |
8 #include <sstream> | 8 #include <sstream> |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 return 1; | 322 return 1; |
323 case GL_TEXTURE_MAX_LEVEL: | 323 case GL_TEXTURE_MAX_LEVEL: |
324 return 1; | 324 return 1; |
325 case GL_TEXTURE_IMMUTABLE_FORMAT: | 325 case GL_TEXTURE_IMMUTABLE_FORMAT: |
326 return 1; | 326 return 1; |
327 case GL_TEXTURE_IMMUTABLE_LEVELS: | 327 case GL_TEXTURE_IMMUTABLE_LEVELS: |
328 return 1; | 328 return 1; |
329 case GL_TEXTURE_MAX_ANISOTROPY_EXT: | 329 case GL_TEXTURE_MAX_ANISOTROPY_EXT: |
330 return 1; | 330 return 1; |
331 | 331 |
332 // -- glGetVertexAttribfv, glGetVertexAttribiv | 332 // -- glGetVertexAttrib |
333 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: | 333 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: |
334 return 1; | 334 return 1; |
335 case GL_VERTEX_ATTRIB_ARRAY_ENABLED: | 335 case GL_VERTEX_ATTRIB_ARRAY_ENABLED: |
336 return 1; | 336 return 1; |
337 case GL_VERTEX_ATTRIB_ARRAY_SIZE: | 337 case GL_VERTEX_ATTRIB_ARRAY_SIZE: |
338 return 1; | 338 return 1; |
339 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: | 339 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: |
340 return 1; | 340 return 1; |
341 case GL_VERTEX_ATTRIB_ARRAY_TYPE: | 341 case GL_VERTEX_ATTRIB_ARRAY_TYPE: |
342 return 1; | 342 return 1; |
343 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: | 343 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: |
344 return 1; | 344 return 1; |
345 case GL_CURRENT_VERTEX_ATTRIB: | 345 case GL_CURRENT_VERTEX_ATTRIB: |
346 return 4; | 346 return 4; |
| 347 case GL_VERTEX_ATTRIB_ARRAY_INTEGER: |
| 348 return 1; |
| 349 case GL_VERTEX_ATTRIB_ARRAY_DIVISOR: |
| 350 return 1; |
347 | 351 |
348 // -- glGetSynciv | 352 // -- glGetSynciv |
349 case GL_OBJECT_TYPE: | 353 case GL_OBJECT_TYPE: |
350 return 1; | 354 return 1; |
351 case GL_SYNC_STATUS: | 355 case GL_SYNC_STATUS: |
352 return 1; | 356 return 1; |
353 case GL_SYNC_CONDITION: | 357 case GL_SYNC_CONDITION: |
354 return 1; | 358 return 1; |
355 case GL_SYNC_FLAGS: | 359 case GL_SYNC_FLAGS: |
356 return 1; | 360 return 1; |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 } | 1197 } |
1194 | 1198 |
1195 return true; | 1199 return true; |
1196 } | 1200 } |
1197 | 1201 |
1198 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1202 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
1199 | 1203 |
1200 } // namespace gles2 | 1204 } // namespace gles2 |
1201 } // namespace gpu | 1205 } // namespace gpu |
1202 | 1206 |
OLD | NEW |