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 4785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4796 offscreen_target_frame_buffer_.reset(); | 4796 offscreen_target_frame_buffer_.reset(); |
4797 offscreen_target_color_texture_.reset(); | 4797 offscreen_target_color_texture_.reset(); |
4798 offscreen_target_color_render_buffer_.reset(); | 4798 offscreen_target_color_render_buffer_.reset(); |
4799 offscreen_target_depth_render_buffer_.reset(); | 4799 offscreen_target_depth_render_buffer_.reset(); |
4800 offscreen_target_stencil_render_buffer_.reset(); | 4800 offscreen_target_stencil_render_buffer_.reset(); |
4801 offscreen_saved_frame_buffer_.reset(); | 4801 offscreen_saved_frame_buffer_.reset(); |
4802 offscreen_saved_color_texture_.reset(); | 4802 offscreen_saved_color_texture_.reset(); |
4803 offscreen_resolved_frame_buffer_.reset(); | 4803 offscreen_resolved_frame_buffer_.reset(); |
4804 offscreen_resolved_color_texture_.reset(); | 4804 offscreen_resolved_color_texture_.reset(); |
4805 | 4805 |
| 4806 // Release all fences now, because some fence types need the context to be |
| 4807 // current on destruction. |
| 4808 pending_readpixel_fences_ = std::queue<FenceCallback>(); |
| 4809 |
4806 // Need to release these before releasing |group_| which may own the | 4810 // Need to release these before releasing |group_| which may own the |
4807 // ShaderTranslatorCache. | 4811 // ShaderTranslatorCache. |
4808 fragment_translator_ = NULL; | 4812 fragment_translator_ = NULL; |
4809 vertex_translator_ = NULL; | 4813 vertex_translator_ = NULL; |
4810 | 4814 |
4811 // Destroy the GPU Tracer which may own some in process GPU Timings. | 4815 // Destroy the GPU Tracer which may own some in process GPU Timings. |
4812 if (gpu_tracer_) { | 4816 if (gpu_tracer_) { |
4813 gpu_tracer_->Destroy(have_context); | 4817 gpu_tracer_->Destroy(have_context); |
4814 gpu_tracer_.reset(); | 4818 gpu_tracer_.reset(); |
4815 } | 4819 } |
(...skipping 14115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18931 } | 18935 } |
18932 | 18936 |
18933 // Include the auto-generated part of this file. We split this because it means | 18937 // Include the auto-generated part of this file. We split this because it means |
18934 // we can easily edit the non-auto generated parts right here in this file | 18938 // we can easily edit the non-auto generated parts right here in this file |
18935 // instead of having to edit some template or the code generator. | 18939 // instead of having to edit some template or the code generator. |
18936 #include "base/macros.h" | 18940 #include "base/macros.h" |
18937 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 18941 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
18938 | 18942 |
18939 } // namespace gles2 | 18943 } // namespace gles2 |
18940 } // namespace gpu | 18944 } // namespace gpu |
OLD | NEW |