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 6211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6222 switch (internalformat) { | 6222 switch (internalformat) { |
6223 case GL_ATC_RGB_AMD: | 6223 case GL_ATC_RGB_AMD: |
6224 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 6224 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
6225 return capabilities.texture_format_atc; | 6225 return capabilities.texture_format_atc; |
6226 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 6226 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
6227 return capabilities.texture_format_dxt1; | 6227 return capabilities.texture_format_dxt1; |
6228 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 6228 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
6229 return capabilities.texture_format_dxt5; | 6229 return capabilities.texture_format_dxt5; |
6230 case GL_ETC1_RGB8_OES: | 6230 case GL_ETC1_RGB8_OES: |
6231 return capabilities.texture_format_etc1; | 6231 return capabilities.texture_format_etc1; |
| 6232 case GL_R16_EXT: |
| 6233 return capabilities.texture_norm16; |
6232 case GL_RED: | 6234 case GL_RED: |
6233 case GL_RG_EXT: | 6235 case GL_RG_EXT: |
6234 case GL_RGB: | 6236 case GL_RGB: |
6235 case GL_RGBA: | 6237 case GL_RGBA: |
6236 case GL_RGB_YCBCR_422_CHROMIUM: | 6238 case GL_RGB_YCBCR_422_CHROMIUM: |
6237 case GL_RGB_YCBCR_420V_CHROMIUM: | 6239 case GL_RGB_YCBCR_420V_CHROMIUM: |
6238 case GL_RGB_YCRCB_420_CHROMIUM: | 6240 case GL_RGB_YCRCB_420_CHROMIUM: |
6239 case GL_BGRA_EXT: | 6241 case GL_BGRA_EXT: |
6240 return true; | 6242 return true; |
6241 default: | 6243 default: |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7109 CheckGLError(); | 7111 CheckGLError(); |
7110 } | 7112 } |
7111 | 7113 |
7112 // Include the auto-generated part of this file. We split this because it means | 7114 // Include the auto-generated part of this file. We split this because it means |
7113 // we can easily edit the non-auto generated parts right here in this file | 7115 // we can easily edit the non-auto generated parts right here in this file |
7114 // instead of having to edit some template or the code generator. | 7116 // instead of having to edit some template or the code generator. |
7115 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 7117 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
7116 | 7118 |
7117 } // namespace gles2 | 7119 } // namespace gles2 |
7118 } // namespace gpu | 7120 } // namespace gpu |
OLD | NEW |