| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 return 1; | 319 return 1; |
| 320 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: | 320 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: |
| 321 return 1; | 321 return 1; |
| 322 case GL_CURRENT_VERTEX_ATTRIB: | 322 case GL_CURRENT_VERTEX_ATTRIB: |
| 323 return 4; | 323 return 4; |
| 324 | 324 |
| 325 // -- glHint with GL_OES_standard_derivatives | 325 // -- glHint with GL_OES_standard_derivatives |
| 326 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: | 326 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: |
| 327 return 1; | 327 return 1; |
| 328 | 328 |
| 329 // Chromium internal bind_generates_resource query |
| 330 case GL_BIND_GENERATES_RESOURCE_CHROMIUM: |
| 331 return 1; |
| 332 |
| 329 // bad enum | 333 // bad enum |
| 330 default: | 334 default: |
| 331 return 0; | 335 return 0; |
| 332 } | 336 } |
| 333 } | 337 } |
| 334 | 338 |
| 335 namespace { | 339 namespace { |
| 336 | 340 |
| 337 // Return the number of elements per group of a specified format. | 341 // Return the number of elements per group of a specified format. |
| 338 int ElementsPerGroup(int format, int type) { | 342 int ElementsPerGroup(int format, int type) { |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 } | 907 } |
| 904 | 908 |
| 905 return true; | 909 return true; |
| 906 } | 910 } |
| 907 | 911 |
| 908 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 912 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
| 909 | 913 |
| 910 } // namespace gles2 | 914 } // namespace gles2 |
| 911 } // namespace gpu | 915 } // namespace gpu |
| 912 | 916 |
| OLD | NEW |