| OLD | NEW |
| 1 // Copyright (c) 2009 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 <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> |
| 11 | 11 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 case GL_UNSIGNED_INT_24_8_OES: | 316 case GL_UNSIGNED_INT_24_8_OES: |
| 317 return 1; | 317 return 1; |
| 318 default: | 318 default: |
| 319 break; | 319 break; |
| 320 } | 320 } |
| 321 | 321 |
| 322 switch (format) { | 322 switch (format) { |
| 323 case GL_RGB: | 323 case GL_RGB: |
| 324 return 3; | 324 return 3; |
| 325 case GL_LUMINANCE_ALPHA: | 325 case GL_LUMINANCE_ALPHA: |
| 326 return 2; |
| 326 case GL_RGBA: | 327 case GL_RGBA: |
| 327 case GL_BGRA_EXT: | 328 case GL_BGRA_EXT: |
| 328 return 4; | 329 return 4; |
| 329 case GL_ALPHA: | 330 case GL_ALPHA: |
| 330 case GL_LUMINANCE: | 331 case GL_LUMINANCE: |
| 331 case GL_DEPTH_COMPONENT: | 332 case GL_DEPTH_COMPONENT: |
| 332 case GL_DEPTH_STENCIL_OES: | 333 case GL_DEPTH_STENCIL_OES: |
| 333 return 1; | 334 return 1; |
| 334 default: | 335 default: |
| 335 return 0; | 336 return 0; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 case GL_RGB5_A1: | 522 case GL_RGB5_A1: |
| 522 return 0x000F; | 523 return 0x000F; |
| 523 default: | 524 default: |
| 524 return 0x0000; | 525 return 0x0000; |
| 525 } | 526 } |
| 526 } | 527 } |
| 527 | 528 |
| 528 } // namespace gles2 | 529 } // namespace gles2 |
| 529 } // namespace gpu | 530 } // namespace gpu |
| 530 | 531 |
| OLD | NEW |