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_VERTEX_ATTRIB_ARRAY_STRIDE: | 323 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: |
324 return 1; | 324 return 1; |
325 case GL_VERTEX_ATTRIB_ARRAY_TYPE: | 325 case GL_VERTEX_ATTRIB_ARRAY_TYPE: |
326 return 1; | 326 return 1; |
327 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: | 327 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: |
328 return 1; | 328 return 1; |
329 case GL_CURRENT_VERTEX_ATTRIB: | 329 case GL_CURRENT_VERTEX_ATTRIB: |
330 return 4; | 330 return 4; |
331 | 331 |
| 332 // -- glGetSynciv |
| 333 case GL_OBJECT_TYPE: |
| 334 return 1; |
| 335 case GL_SYNC_STATUS: |
| 336 return 1; |
| 337 case GL_SYNC_CONDITION: |
| 338 return 1; |
| 339 case GL_SYNC_FLAGS: |
| 340 return 1; |
| 341 |
332 // -- glHint with GL_OES_standard_derivatives | 342 // -- glHint with GL_OES_standard_derivatives |
333 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: | 343 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
334 return 1; | 344 return 1; |
335 | 345 |
336 // Chromium internal bind_generates_resource query | 346 // Chromium internal bind_generates_resource query |
337 case GL_BIND_GENERATES_RESOURCE_CHROMIUM: | 347 case GL_BIND_GENERATES_RESOURCE_CHROMIUM: |
338 return 1; | 348 return 1; |
339 | 349 |
340 // bad enum | 350 // bad enum |
341 default: | 351 default: |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 } | 1016 } |
1007 | 1017 |
1008 return true; | 1018 return true; |
1009 } | 1019 } |
1010 | 1020 |
1011 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1021 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
1012 | 1022 |
1013 } // namespace gles2 | 1023 } // namespace gles2 |
1014 } // namespace gpu | 1024 } // namespace gpu |
1015 | 1025 |
OLD | NEW |