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 5653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5664 switch (internalformat) { | 5664 switch (internalformat) { |
5665 case GL_ATC_RGB_AMD: | 5665 case GL_ATC_RGB_AMD: |
5666 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 5666 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
5667 return capabilities.texture_format_atc; | 5667 return capabilities.texture_format_atc; |
5668 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 5668 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
5669 return capabilities.texture_format_dxt1; | 5669 return capabilities.texture_format_dxt1; |
5670 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 5670 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
5671 return capabilities.texture_format_dxt5; | 5671 return capabilities.texture_format_dxt5; |
5672 case GL_ETC1_RGB8_OES: | 5672 case GL_ETC1_RGB8_OES: |
5673 return capabilities.texture_format_etc1; | 5673 return capabilities.texture_format_etc1; |
5674 case GL_RED: | 5674 case GL_R8: |
Zhenyao Mo
2016/02/22 22:53:08
Please also keep GL_RED
Daniele Castagna
2016/02/22 23:16:33
As discussed offline, it's fine to limit GMB image
| |
5675 case GL_RGB: | 5675 case GL_RGB: |
5676 case GL_RGBA: | 5676 case GL_RGBA: |
5677 case GL_RGB_YCBCR_422_CHROMIUM: | 5677 case GL_RGB_YCBCR_422_CHROMIUM: |
5678 case GL_RGB_YCBCR_420V_CHROMIUM: | 5678 case GL_RGB_YCBCR_420V_CHROMIUM: |
5679 case GL_BGRA_EXT: | 5679 case GL_BGRA_EXT: |
5680 return true; | 5680 return true; |
5681 default: | 5681 default: |
5682 return false; | 5682 return false; |
5683 } | 5683 } |
5684 } | 5684 } |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6547 CheckGLError(); | 6547 CheckGLError(); |
6548 } | 6548 } |
6549 | 6549 |
6550 // Include the auto-generated part of this file. We split this because it means | 6550 // Include the auto-generated part of this file. We split this because it means |
6551 // we can easily edit the non-auto generated parts right here in this file | 6551 // we can easily edit the non-auto generated parts right here in this file |
6552 // instead of having to edit some template or the code generator. | 6552 // instead of having to edit some template or the code generator. |
6553 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 6553 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
6554 | 6554 |
6555 } // namespace gles2 | 6555 } // namespace gles2 |
6556 } // namespace gpu | 6556 } // namespace gpu |
OLD | NEW |