Chromium Code Reviews| 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 3732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3743 | 3743 |
| 3744 // Need to release these before releasing |group_| which may own the | 3744 // Need to release these before releasing |group_| which may own the |
| 3745 // ShaderTranslatorCache. | 3745 // ShaderTranslatorCache. |
| 3746 fragment_translator_ = NULL; | 3746 fragment_translator_ = NULL; |
| 3747 vertex_translator_ = NULL; | 3747 vertex_translator_ = NULL; |
| 3748 | 3748 |
| 3749 // Should destroy the transfer manager before the texture manager held | 3749 // Should destroy the transfer manager before the texture manager held |
| 3750 // by the context group. | 3750 // by the context group. |
| 3751 async_pixel_transfer_manager_.reset(); | 3751 async_pixel_transfer_manager_.reset(); |
| 3752 | 3752 |
| 3753 // Destroy the GPU Tracer which may own some in process GPU Timings. | |
| 3754 gpu_tracer_->Destroy(have_context); | |
|
vmiura
2015/03/19 22:56:36
Should we also delete gpu_tracer_here? gpu_tracer_
David Yen
2015/03/25 23:33:58
Done.
| |
| 3755 | |
| 3753 if (group_.get()) { | 3756 if (group_.get()) { |
| 3754 framebuffer_manager()->RemoveObserver(this); | 3757 framebuffer_manager()->RemoveObserver(this); |
| 3755 group_->Destroy(this, have_context); | 3758 group_->Destroy(this, have_context); |
| 3756 group_ = NULL; | 3759 group_ = NULL; |
| 3757 } | 3760 } |
| 3758 | 3761 |
| 3759 if (context_.get()) { | 3762 if (context_.get()) { |
| 3760 context_->ReleaseCurrent(NULL); | 3763 context_->ReleaseCurrent(NULL); |
| 3761 context_ = NULL; | 3764 context_ = NULL; |
| 3762 } | 3765 } |
| (...skipping 8655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 12418 } | 12421 } |
| 12419 } | 12422 } |
| 12420 | 12423 |
| 12421 // Include the auto-generated part of this file. We split this because it means | 12424 // Include the auto-generated part of this file. We split this because it means |
| 12422 // we can easily edit the non-auto generated parts right here in this file | 12425 // we can easily edit the non-auto generated parts right here in this file |
| 12423 // instead of having to edit some template or the code generator. | 12426 // instead of having to edit some template or the code generator. |
| 12424 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 12427 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 12425 | 12428 |
| 12426 } // namespace gles2 | 12429 } // namespace gles2 |
| 12427 } // namespace gpu | 12430 } // namespace gpu |
| OLD | NEW |