| 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 6036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6047 case GL_ATC_RGB_AMD: | 6047 case GL_ATC_RGB_AMD: |
| 6048 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 6048 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
| 6049 return capabilities.texture_format_atc; | 6049 return capabilities.texture_format_atc; |
| 6050 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 6050 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 6051 return capabilities.texture_format_dxt1; | 6051 return capabilities.texture_format_dxt1; |
| 6052 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 6052 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 6053 return capabilities.texture_format_dxt5; | 6053 return capabilities.texture_format_dxt5; |
| 6054 case GL_ETC1_RGB8_OES: | 6054 case GL_ETC1_RGB8_OES: |
| 6055 return capabilities.texture_format_etc1; | 6055 return capabilities.texture_format_etc1; |
| 6056 case GL_RED: | 6056 case GL_RED: |
| 6057 case GL_RG_EXT: |
| 6057 case GL_RGB: | 6058 case GL_RGB: |
| 6058 case GL_RGBA: | 6059 case GL_RGBA: |
| 6059 case GL_RGB_YCBCR_422_CHROMIUM: | 6060 case GL_RGB_YCBCR_422_CHROMIUM: |
| 6060 case GL_RGB_YCBCR_420V_CHROMIUM: | 6061 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 6061 case GL_RGB_YCRCB_420_CHROMIUM: | 6062 case GL_RGB_YCRCB_420_CHROMIUM: |
| 6062 case GL_BGRA_EXT: | 6063 case GL_BGRA_EXT: |
| 6063 return true; | 6064 return true; |
| 6064 default: | 6065 default: |
| 6065 return false; | 6066 return false; |
| 6066 } | 6067 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6952 cached_extensions_.clear(); | 6953 cached_extensions_.clear(); |
| 6953 } | 6954 } |
| 6954 | 6955 |
| 6955 // Include the auto-generated part of this file. We split this because it means | 6956 // Include the auto-generated part of this file. We split this because it means |
| 6956 // we can easily edit the non-auto generated parts right here in this file | 6957 // we can easily edit the non-auto generated parts right here in this file |
| 6957 // instead of having to edit some template or the code generator. | 6958 // instead of having to edit some template or the code generator. |
| 6958 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6959 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 6959 | 6960 |
| 6960 } // namespace gles2 | 6961 } // namespace gles2 |
| 6961 } // namespace gpu | 6962 } // namespace gpu |
| OLD | NEW |