| 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 // A class to emulate GLES2 over command buffers. | 5 // A class to emulate GLES2 over command buffers. |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 8 | 8 |
| 9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
| 10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
| (...skipping 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5469 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 5469 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 5470 return capabilities.texture_format_dxt1; | 5470 return capabilities.texture_format_dxt1; |
| 5471 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 5471 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 5472 return capabilities.texture_format_dxt5; | 5472 return capabilities.texture_format_dxt5; |
| 5473 case GL_ETC1_RGB8_OES: | 5473 case GL_ETC1_RGB8_OES: |
| 5474 return capabilities.texture_format_etc1; | 5474 return capabilities.texture_format_etc1; |
| 5475 case GL_R8: | 5475 case GL_R8: |
| 5476 case GL_RGB: | 5476 case GL_RGB: |
| 5477 case GL_RGBA: | 5477 case GL_RGBA: |
| 5478 case GL_RGB_YCBCR_422_CHROMIUM: | 5478 case GL_RGB_YCBCR_422_CHROMIUM: |
| 5479 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 5479 case GL_BGRA_EXT: | 5480 case GL_BGRA_EXT: |
| 5480 return true; | 5481 return true; |
| 5481 default: | 5482 default: |
| 5482 return false; | 5483 return false; |
| 5483 } | 5484 } |
| 5484 } | 5485 } |
| 5485 | 5486 |
| 5486 bool ValidImageUsage(GLenum usage) { | 5487 bool ValidImageUsage(GLenum usage) { |
| 5487 return usage == GL_READ_WRITE_CHROMIUM; | 5488 return usage == GL_READ_WRITE_CHROMIUM; |
| 5488 } | 5489 } |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6290 CheckGLError(); | 6291 CheckGLError(); |
| 6291 } | 6292 } |
| 6292 | 6293 |
| 6293 // Include the auto-generated part of this file. We split this because it means | 6294 // Include the auto-generated part of this file. We split this because it means |
| 6294 // we can easily edit the non-auto generated parts right here in this file | 6295 // we can easily edit the non-auto generated parts right here in this file |
| 6295 // instead of having to edit some template or the code generator. | 6296 // instead of having to edit some template or the code generator. |
| 6296 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6297 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 6297 | 6298 |
| 6298 } // namespace gles2 | 6299 } // namespace gles2 |
| 6299 } // namespace gpu | 6300 } // namespace gpu |
| OLD | NEW |