| OLD | NEW |
| 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 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 <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include <GLES2/gl2ext.h> | 9 #include <GLES2/gl2ext.h> |
| 10 #include <GLES2/gles2_command_buffer.h> | 10 #include <GLES2/gles2_command_buffer.h> |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 case GL_SUBPIXEL_BITS: | 186 case GL_SUBPIXEL_BITS: |
| 187 return 1; | 187 return 1; |
| 188 case GL_TEXTURE_BINDING_2D: | 188 case GL_TEXTURE_BINDING_2D: |
| 189 return 1; | 189 return 1; |
| 190 case GL_TEXTURE_BINDING_CUBE_MAP: | 190 case GL_TEXTURE_BINDING_CUBE_MAP: |
| 191 return 1; | 191 return 1; |
| 192 case GL_UNPACK_ALIGNMENT: | 192 case GL_UNPACK_ALIGNMENT: |
| 193 return 1; | 193 return 1; |
| 194 case GL_VIEWPORT: | 194 case GL_VIEWPORT: |
| 195 return 4; | 195 return 4; |
| 196 // -- glGetBooleanv, glGetFloatv, glGetIntergerv with |
| 197 // GL_CHROMIUM_framebuffer_multisample |
| 198 case GL_MAX_SAMPLES_EXT: |
| 199 return 1; |
| 196 | 200 |
| 197 // -- glGetBufferParameteriv | 201 // -- glGetBufferParameteriv |
| 198 case GL_BUFFER_SIZE: | 202 case GL_BUFFER_SIZE: |
| 199 return 1; | 203 return 1; |
| 200 case GL_BUFFER_USAGE: | 204 case GL_BUFFER_USAGE: |
| 201 return 1; | 205 return 1; |
| 202 | 206 |
| 203 // -- glGetFramebufferAttachmentParameteriv | 207 // -- glGetFramebufferAttachmentParameteriv |
| 204 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: | 208 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: |
| 205 return 1; | 209 return 1; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 case GL_RGB5_A1: | 519 case GL_RGB5_A1: |
| 516 return 0x000F; | 520 return 0x000F; |
| 517 default: | 521 default: |
| 518 return 0x0000; | 522 return 0x0000; |
| 519 } | 523 } |
| 520 } | 524 } |
| 521 | 525 |
| 522 } // namespace gles2 | 526 } // namespace gles2 |
| 523 } // namespace gpu | 527 } // namespace gpu |
| 524 | 528 |
| OLD | NEW |