| 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 5923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5934 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 5934 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 5935 return capabilities.texture_format_dxt5; | 5935 return capabilities.texture_format_dxt5; |
| 5936 case GL_ETC1_RGB8_OES: | 5936 case GL_ETC1_RGB8_OES: |
| 5937 return capabilities.texture_format_etc1; | 5937 return capabilities.texture_format_etc1; |
| 5938 case GL_RED: | 5938 case GL_RED: |
| 5939 case GL_RGB: | 5939 case GL_RGB: |
| 5940 case GL_RGBA: | 5940 case GL_RGBA: |
| 5941 case GL_RGB_YCBCR_422_CHROMIUM: | 5941 case GL_RGB_YCBCR_422_CHROMIUM: |
| 5942 case GL_RGB_YCBCR_420V_CHROMIUM: | 5942 case GL_RGB_YCBCR_420V_CHROMIUM: |
| 5943 case GL_BGRA_EXT: | 5943 case GL_BGRA_EXT: |
| 5944 case GL_BGR_EXT: |
| 5944 return true; | 5945 return true; |
| 5945 default: | 5946 default: |
| 5946 return false; | 5947 return false; |
| 5947 } | 5948 } |
| 5948 } | 5949 } |
| 5949 | 5950 |
| 5950 bool ValidImageUsage(GLenum usage) { | 5951 bool ValidImageUsage(GLenum usage) { |
| 5951 return usage == GL_READ_WRITE_CHROMIUM; | 5952 return usage == GL_READ_WRITE_CHROMIUM; |
| 5952 } | 5953 } |
| 5953 | 5954 |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6823 cached_extensions_.clear(); | 6824 cached_extensions_.clear(); |
| 6824 } | 6825 } |
| 6825 | 6826 |
| 6826 // Include the auto-generated part of this file. We split this because it means | 6827 // Include the auto-generated part of this file. We split this because it means |
| 6827 // we can easily edit the non-auto generated parts right here in this file | 6828 // we can easily edit the non-auto generated parts right here in this file |
| 6828 // instead of having to edit some template or the code generator. | 6829 // instead of having to edit some template or the code generator. |
| 6829 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6830 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 6830 | 6831 |
| 6831 } // namespace gles2 | 6832 } // namespace gles2 |
| 6832 } // namespace gpu | 6833 } // namespace gpu |
| OLD | NEW |