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 5458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5469 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 5469 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
5470 return capabilities.texture_format_dxt1; | 5470 return capabilities.texture_format_dxt1; |
5471 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 5471 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
5472 return capabilities.texture_format_dxt5; | 5472 return capabilities.texture_format_dxt5; |
5473 case GL_ETC1_RGB8_OES: | 5473 case GL_ETC1_RGB8_OES: |
5474 return capabilities.texture_format_etc1; | 5474 return capabilities.texture_format_etc1; |
5475 case GL_R8: | 5475 case GL_R8: |
5476 case GL_RGB: | 5476 case GL_RGB: |
5477 case GL_RGBA: | 5477 case GL_RGBA: |
5478 case GL_RGB_YCBCR_422_CHROMIUM: | 5478 case GL_RGB_YCBCR_422_CHROMIUM: |
| 5479 case GL_RGB_YCBCR_420V_CHROMIUM: |
5479 case GL_BGRA_EXT: | 5480 case GL_BGRA_EXT: |
5480 return true; | 5481 return true; |
5481 default: | 5482 default: |
5482 return false; | 5483 return false; |
5483 } | 5484 } |
5484 } | 5485 } |
5485 | 5486 |
5486 bool ValidImageUsage(GLenum usage) { | 5487 bool ValidImageUsage(GLenum usage) { |
5487 switch (usage) { | 5488 switch (usage) { |
5488 case GL_MAP_CHROMIUM: | 5489 case GL_MAP_CHROMIUM: |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5976 CheckGLError(); | 5977 CheckGLError(); |
5977 } | 5978 } |
5978 | 5979 |
5979 // Include the auto-generated part of this file. We split this because it means | 5980 // Include the auto-generated part of this file. We split this because it means |
5980 // we can easily edit the non-auto generated parts right here in this file | 5981 // we can easily edit the non-auto generated parts right here in this file |
5981 // instead of having to edit some template or the code generator. | 5982 // instead of having to edit some template or the code generator. |
5982 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 5983 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
5983 | 5984 |
5984 } // namespace gles2 | 5985 } // namespace gles2 |
5985 } // namespace gpu | 5986 } // namespace gpu |
OLD | NEW |