| 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 5993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6004 case GL_ATC_RGB_AMD: | 6004 case GL_ATC_RGB_AMD: |
| 6005 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 6005 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
| 6006 return capabilities.texture_format_atc; | 6006 return capabilities.texture_format_atc; |
| 6007 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 6007 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 6008 return capabilities.texture_format_dxt1; | 6008 return capabilities.texture_format_dxt1; |
| 6009 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 6009 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 6010 return capabilities.texture_format_dxt5; | 6010 return capabilities.texture_format_dxt5; |
| 6011 case GL_ETC1_RGB8_OES: | 6011 case GL_ETC1_RGB8_OES: |
| 6012 return capabilities.texture_format_etc1; | 6012 return capabilities.texture_format_etc1; |
| 6013 case GL_RED: | 6013 case GL_RED: |
| 6014 case GL_RG: |
| 6014 case GL_RGB: | 6015 case GL_RGB: |
| 6015 case GL_RGBA: | 6016 case GL_RGBA: |
| 6016 case GL_RGB_YCBCR_422_CHROMIUM: | 6017 case GL_RGB_YCBCR_422_CHROMIUM: |
| 6017 case GL_RGB_YCBCR_420V_CHROMIUM: | 6018 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 6018 case GL_RGB_YCRCB_420_CHROMIUM: | 6019 case GL_RGB_YCRCB_420_CHROMIUM: |
| 6019 case GL_BGRA_EXT: | 6020 case GL_BGRA_EXT: |
| 6020 return true; | 6021 return true; |
| 6021 default: | 6022 default: |
| 6022 return false; | 6023 return false; |
| 6023 } | 6024 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6909 cached_extensions_.clear(); | 6910 cached_extensions_.clear(); |
| 6910 } | 6911 } |
| 6911 | 6912 |
| 6912 // Include the auto-generated part of this file. We split this because it means | 6913 // Include the auto-generated part of this file. We split this because it means |
| 6913 // we can easily edit the non-auto generated parts right here in this file | 6914 // we can easily edit the non-auto generated parts right here in this file |
| 6914 // instead of having to edit some template or the code generator. | 6915 // instead of having to edit some template or the code generator. |
| 6915 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6916 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 6916 | 6917 |
| 6917 } // namespace gles2 | 6918 } // namespace gles2 |
| 6918 } // namespace gpu | 6919 } // namespace gpu |
| OLD | NEW |