| 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 5906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5917 return capabilities.texture_format_dxt1; | 5917 return capabilities.texture_format_dxt1; |
| 5918 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 5918 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 5919 return capabilities.texture_format_dxt5; | 5919 return capabilities.texture_format_dxt5; |
| 5920 case GL_ETC1_RGB8_OES: | 5920 case GL_ETC1_RGB8_OES: |
| 5921 return capabilities.texture_format_etc1; | 5921 return capabilities.texture_format_etc1; |
| 5922 case GL_RED: | 5922 case GL_RED: |
| 5923 case GL_RGB: | 5923 case GL_RGB: |
| 5924 case GL_RGBA: | 5924 case GL_RGBA: |
| 5925 case GL_RGB_YCBCR_422_CHROMIUM: | 5925 case GL_RGB_YCBCR_422_CHROMIUM: |
| 5926 case GL_RGB_YCBCR_420V_CHROMIUM: | 5926 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 5927 case GL_RGB_YCRCB_420_CHROMIUM: |
| 5927 case GL_BGRA_EXT: | 5928 case GL_BGRA_EXT: |
| 5928 return true; | 5929 return true; |
| 5929 default: | 5930 default: |
| 5930 return false; | 5931 return false; |
| 5931 } | 5932 } |
| 5932 } | 5933 } |
| 5933 | 5934 |
| 5934 bool CreateGpuMemoryBufferValidInternalFormat(GLenum internalformat) { | 5935 bool CreateGpuMemoryBufferValidInternalFormat(GLenum internalformat) { |
| 5935 switch (internalformat) { | 5936 switch (internalformat) { |
| 5936 case GL_RGB: | 5937 case GL_RGB: |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6832 cached_extensions_.clear(); | 6833 cached_extensions_.clear(); |
| 6833 } | 6834 } |
| 6834 | 6835 |
| 6835 // Include the auto-generated part of this file. We split this because it means | 6836 // Include the auto-generated part of this file. We split this because it means |
| 6836 // we can easily edit the non-auto generated parts right here in this file | 6837 // we can easily edit the non-auto generated parts right here in this file |
| 6837 // instead of having to edit some template or the code generator. | 6838 // instead of having to edit some template or the code generator. |
| 6838 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6839 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 6839 | 6840 |
| 6840 } // namespace gles2 | 6841 } // namespace gles2 |
| 6841 } // namespace gpu | 6842 } // namespace gpu |
| OLD | NEW |