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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 10071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10082 case GL_RGB16F_EXT: | 10082 case GL_RGB16F_EXT: |
10083 return GL_RGB; | 10083 return GL_RGB; |
10084 case GL_ALPHA16F_EXT: | 10084 case GL_ALPHA16F_EXT: |
10085 return GL_ALPHA; | 10085 return GL_ALPHA; |
10086 case GL_LUMINANCE16F_EXT: | 10086 case GL_LUMINANCE16F_EXT: |
10087 return GL_LUMINANCE; | 10087 return GL_LUMINANCE; |
10088 case GL_LUMINANCE_ALPHA16F_EXT: | 10088 case GL_LUMINANCE_ALPHA16F_EXT: |
10089 return GL_LUMINANCE_ALPHA; | 10089 return GL_LUMINANCE_ALPHA; |
10090 case GL_BGRA8_EXT: | 10090 case GL_BGRA8_EXT: |
10091 return GL_BGRA_EXT; | 10091 return GL_BGRA_EXT; |
| 10092 case GL_SRGB8_ALPHA8_EXT: |
| 10093 return GL_SRGB_ALPHA_EXT; |
10092 default: | 10094 default: |
10093 return GL_NONE; | 10095 return GL_NONE; |
10094 } | 10096 } |
10095 } | 10097 } |
10096 | 10098 |
10097 void GLES2DecoderImpl::DoCopyTextureCHROMIUM( | 10099 void GLES2DecoderImpl::DoCopyTextureCHROMIUM( |
10098 GLenum target, GLuint source_id, GLuint dest_id, GLint level, | 10100 GLenum target, GLuint source_id, GLuint dest_id, GLint level, |
10099 GLenum internal_format, GLenum dest_type) { | 10101 GLenum internal_format, GLenum dest_type) { |
10100 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCopyTextureCHROMIUM"); | 10102 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCopyTextureCHROMIUM"); |
10101 | 10103 |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11149 } | 11151 } |
11150 } | 11152 } |
11151 | 11153 |
11152 // Include the auto-generated part of this file. We split this because it means | 11154 // Include the auto-generated part of this file. We split this because it means |
11153 // we can easily edit the non-auto generated parts right here in this file | 11155 // we can easily edit the non-auto generated parts right here in this file |
11154 // instead of having to edit some template or the code generator. | 11156 // instead of having to edit some template or the code generator. |
11155 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 11157 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
11156 | 11158 |
11157 } // namespace gles2 | 11159 } // namespace gles2 |
11158 } // namespace gpu | 11160 } // namespace gpu |
OLD | NEW |