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 9608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9619 } | 9619 } |
9620 | 9620 |
9621 texture_manager()->SetLevelInfo( | 9621 texture_manager()->SetLevelInfo( |
9622 dest_info, GL_TEXTURE_2D, level, internal_format, source_width, | 9622 dest_info, GL_TEXTURE_2D, level, internal_format, source_width, |
9623 source_height, 1, 0, internal_format, dest_type, true); | 9623 source_height, 1, 0, internal_format, dest_type, true); |
9624 } else { | 9624 } else { |
9625 texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level, true); | 9625 texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level, true); |
9626 } | 9626 } |
9627 | 9627 |
9628 copy_texture_CHROMIUM_->DoCopyTexture(this, | 9628 copy_texture_CHROMIUM_->DoCopyTexture(this, |
9629 target, source_info->service_id(), | 9629 source_info->target(), |
| 9630 dest_info->target(), |
| 9631 source_info->service_id(), |
9630 dest_info->service_id(), level, | 9632 dest_info->service_id(), level, |
9631 source_width, source_height, | 9633 source_width, source_height, |
9632 unpack_flip_y_, | 9634 unpack_flip_y_, |
9633 unpack_premultiply_alpha_, | 9635 unpack_premultiply_alpha_, |
9634 unpack_unpremultiply_alpha_); | 9636 unpack_unpremultiply_alpha_); |
9635 } | 9637 } |
9636 | 9638 |
9637 static GLenum ExtractTypeFromStorageFormat(GLenum internalformat) { | 9639 static GLenum ExtractTypeFromStorageFormat(GLenum internalformat) { |
9638 switch (internalformat) { | 9640 switch (internalformat) { |
9639 case GL_RGB565: | 9641 case GL_RGB565: |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10155 return error::kNoError; | 10157 return error::kNoError; |
10156 } | 10158 } |
10157 | 10159 |
10158 // Include the auto-generated part of this file. We split this because it means | 10160 // Include the auto-generated part of this file. We split this because it means |
10159 // we can easily edit the non-auto generated parts right here in this file | 10161 // we can easily edit the non-auto generated parts right here in this file |
10160 // instead of having to edit some template or the code generator. | 10162 // instead of having to edit some template or the code generator. |
10161 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10163 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10162 | 10164 |
10163 } // namespace gles2 | 10165 } // namespace gles2 |
10164 } // namespace gpu | 10166 } // namespace gpu |
OLD | NEW |