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 <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 4351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4362 if (offscreen_target_stencil_render_buffer_.get()) | 4362 if (offscreen_target_stencil_render_buffer_.get()) |
4363 offscreen_target_stencil_render_buffer_->Invalidate(); | 4363 offscreen_target_stencil_render_buffer_->Invalidate(); |
4364 if (offscreen_saved_frame_buffer_.get()) | 4364 if (offscreen_saved_frame_buffer_.get()) |
4365 offscreen_saved_frame_buffer_->Invalidate(); | 4365 offscreen_saved_frame_buffer_->Invalidate(); |
4366 if (offscreen_saved_color_texture_.get()) | 4366 if (offscreen_saved_color_texture_.get()) |
4367 offscreen_saved_color_texture_->Invalidate(); | 4367 offscreen_saved_color_texture_->Invalidate(); |
4368 if (offscreen_resolved_frame_buffer_.get()) | 4368 if (offscreen_resolved_frame_buffer_.get()) |
4369 offscreen_resolved_frame_buffer_->Invalidate(); | 4369 offscreen_resolved_frame_buffer_->Invalidate(); |
4370 if (offscreen_resolved_color_texture_.get()) | 4370 if (offscreen_resolved_color_texture_.get()) |
4371 offscreen_resolved_color_texture_->Invalidate(); | 4371 offscreen_resolved_color_texture_->Invalidate(); |
| 4372 for (auto& fence : deschedule_until_finished_fences_) { |
| 4373 fence->Invalidate(); |
| 4374 } |
4372 } | 4375 } |
| 4376 deschedule_until_finished_fences_.clear(); |
4373 | 4377 |
4374 // Current program must be cleared after calling ProgramManager::UnuseProgram. | 4378 // Current program must be cleared after calling ProgramManager::UnuseProgram. |
4375 // Otherwise, we can leak objects. http://crbug.com/258772. | 4379 // Otherwise, we can leak objects. http://crbug.com/258772. |
4376 // state_.current_program must be reset before group_ is reset because | 4380 // state_.current_program must be reset before group_ is reset because |
4377 // the later deletes the ProgramManager object that referred by | 4381 // the later deletes the ProgramManager object that referred by |
4378 // state_.current_program object. | 4382 // state_.current_program object. |
4379 state_.current_program = NULL; | 4383 state_.current_program = NULL; |
4380 | 4384 |
4381 apply_framebuffer_attachment_cmaa_intel_.reset(); | 4385 apply_framebuffer_attachment_cmaa_intel_.reset(); |
4382 copy_tex_image_blit_.reset(); | 4386 copy_tex_image_blit_.reset(); |
(...skipping 12430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16813 } | 16817 } |
16814 | 16818 |
16815 // Include the auto-generated part of this file. We split this because it means | 16819 // Include the auto-generated part of this file. We split this because it means |
16816 // we can easily edit the non-auto generated parts right here in this file | 16820 // we can easily edit the non-auto generated parts right here in this file |
16817 // instead of having to edit some template or the code generator. | 16821 // instead of having to edit some template or the code generator. |
16818 #include "base/macros.h" | 16822 #include "base/macros.h" |
16819 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16823 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
16820 | 16824 |
16821 } // namespace gles2 | 16825 } // namespace gles2 |
16822 } // namespace gpu | 16826 } // namespace gpu |
OLD | NEW |