| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stdio.h> | 8 #include <stdio.h> |
| 9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
| 10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 case GL_STENCIL_WRITEMASK: | 188 case GL_STENCIL_WRITEMASK: |
| 189 return 1; | 189 return 1; |
| 190 case GL_SUBPIXEL_BITS: | 190 case GL_SUBPIXEL_BITS: |
| 191 return 1; | 191 return 1; |
| 192 case GL_TEXTURE_BINDING_2D: | 192 case GL_TEXTURE_BINDING_2D: |
| 193 return 1; | 193 return 1; |
| 194 case GL_TEXTURE_BINDING_CUBE_MAP: | 194 case GL_TEXTURE_BINDING_CUBE_MAP: |
| 195 return 1; | 195 return 1; |
| 196 case GL_TEXTURE_BINDING_EXTERNAL_OES: | 196 case GL_TEXTURE_BINDING_EXTERNAL_OES: |
| 197 return 1; | 197 return 1; |
| 198 case GL_TEXTURE_BINDING_RECTANGLE_ARB: |
| 199 return 1; |
| 198 case GL_UNPACK_ALIGNMENT: | 200 case GL_UNPACK_ALIGNMENT: |
| 199 return 1; | 201 return 1; |
| 200 case GL_VIEWPORT: | 202 case GL_VIEWPORT: |
| 201 return 4; | 203 return 4; |
| 202 // -- glGetBooleanv, glGetFloatv, glGetIntergerv with | 204 // -- glGetBooleanv, glGetFloatv, glGetIntergerv with |
| 203 // GL_CHROMIUM_framebuffer_multisample | 205 // GL_CHROMIUM_framebuffer_multisample |
| 204 case GL_MAX_SAMPLES_EXT: | 206 case GL_MAX_SAMPLES_EXT: |
| 205 return 1; | 207 return 1; |
| 206 | 208 |
| 207 // -- glGetBufferParameteriv | 209 // -- glGetBufferParameteriv |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 } | 573 } |
| 572 } | 574 } |
| 573 return GetStringEnum(value); | 575 return GetStringEnum(value); |
| 574 } | 576 } |
| 575 | 577 |
| 576 #include "../common/gles2_cmd_utils_implementation_autogen.h" | 578 #include "../common/gles2_cmd_utils_implementation_autogen.h" |
| 577 | 579 |
| 578 } // namespace gles2 | 580 } // namespace gles2 |
| 579 } // namespace gpu | 581 } // namespace gpu |
| 580 | 582 |
| OLD | NEW |