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 9531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9542 } else { | 9542 } else { |
9543 texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level, true); | 9543 texture_manager()->SetLevelCleared(dest_info, GL_TEXTURE_2D, level, true); |
9544 } | 9544 } |
9545 | 9545 |
9546 clear_state_dirty_ = true; | 9546 clear_state_dirty_ = true; |
9547 glViewport(0, 0, source_width, source_height); | 9547 glViewport(0, 0, source_width, source_height); |
9548 copy_texture_CHROMIUM_->DoCopyTexture(target, source_info->service_id(), | 9548 copy_texture_CHROMIUM_->DoCopyTexture(target, source_info->service_id(), |
9549 dest_info->service_id(), level, | 9549 dest_info->service_id(), level, |
9550 unpack_flip_y_, | 9550 unpack_flip_y_, |
9551 unpack_premultiply_alpha_, | 9551 unpack_premultiply_alpha_, |
9552 unpack_unpremultiply_alpha_); | 9552 unpack_unpremultiply_alpha_, |
| 9553 false); |
9553 glViewport( | 9554 glViewport( |
9554 state_.viewport_x, state_.viewport_y, | 9555 state_.viewport_x, state_.viewport_y, |
9555 state_.viewport_width, state_.viewport_height); | 9556 state_.viewport_width, state_.viewport_height); |
9556 | 9557 |
9557 // Restore all of the state touched by the extension. | 9558 // Restore all of the state touched by the extension. |
9558 if (state_.current_program) | 9559 if (state_.current_program) |
9559 glUseProgram(state_.current_program->service_id()); | 9560 glUseProgram(state_.current_program->service_id()); |
9560 else | 9561 else |
9561 glUseProgram(0); | 9562 glUseProgram(0); |
9562 | 9563 |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10092 return error::kNoError; | 10093 return error::kNoError; |
10093 } | 10094 } |
10094 | 10095 |
10095 // Include the auto-generated part of this file. We split this because it means | 10096 // Include the auto-generated part of this file. We split this because it means |
10096 // we can easily edit the non-auto generated parts right here in this file | 10097 // we can easily edit the non-auto generated parts right here in this file |
10097 // instead of having to edit some template or the code generator. | 10098 // instead of having to edit some template or the code generator. |
10098 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10099 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
10099 | 10100 |
10100 } // namespace gles2 | 10101 } // namespace gles2 |
10101 } // namespace gpu | 10102 } // namespace gpu |
OLD | NEW |