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