| 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 6218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6229 switch (internalformat) { | 6229 switch (internalformat) { |
| 6230 case GL_ATC_RGB_AMD: | 6230 case GL_ATC_RGB_AMD: |
| 6231 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 6231 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
| 6232 return capabilities.texture_format_atc; | 6232 return capabilities.texture_format_atc; |
| 6233 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 6233 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 6234 return capabilities.texture_format_dxt1; | 6234 return capabilities.texture_format_dxt1; |
| 6235 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 6235 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 6236 return capabilities.texture_format_dxt5; | 6236 return capabilities.texture_format_dxt5; |
| 6237 case GL_ETC1_RGB8_OES: | 6237 case GL_ETC1_RGB8_OES: |
| 6238 return capabilities.texture_format_etc1; | 6238 return capabilities.texture_format_etc1; |
| 6239 case GL_R16_EXT: |
| 6240 return capabilities.texture_norm16; |
| 6239 case GL_RED: | 6241 case GL_RED: |
| 6240 case GL_RG_EXT: | 6242 case GL_RG_EXT: |
| 6241 case GL_RGB: | 6243 case GL_RGB: |
| 6242 case GL_RGBA: | 6244 case GL_RGBA: |
| 6243 case GL_RGB_YCBCR_422_CHROMIUM: | 6245 case GL_RGB_YCBCR_422_CHROMIUM: |
| 6244 case GL_RGB_YCBCR_420V_CHROMIUM: | 6246 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 6245 case GL_RGB_YCRCB_420_CHROMIUM: | 6247 case GL_RGB_YCRCB_420_CHROMIUM: |
| 6246 case GL_BGRA_EXT: | 6248 case GL_BGRA_EXT: |
| 6247 return true; | 6249 return true; |
| 6248 default: | 6250 default: |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7116 CheckGLError(); | 7118 CheckGLError(); |
| 7117 } | 7119 } |
| 7118 | 7120 |
| 7119 // Include the auto-generated part of this file. We split this because it means | 7121 // Include the auto-generated part of this file. We split this because it means |
| 7120 // we can easily edit the non-auto generated parts right here in this file | 7122 // we can easily edit the non-auto generated parts right here in this file |
| 7121 // instead of having to edit some template or the code generator. | 7123 // instead of having to edit some template or the code generator. |
| 7122 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 7124 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 7123 | 7125 |
| 7124 } // namespace gles2 | 7126 } // namespace gles2 |
| 7125 } // namespace gpu | 7127 } // namespace gpu |
| OLD | NEW |