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 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3749 // Need to release these before releasing |group_| which may own the | 3749 // Need to release these before releasing |group_| which may own the |
3750 // ShaderTranslatorCache. | 3750 // ShaderTranslatorCache. |
3751 fragment_translator_ = NULL; | 3751 fragment_translator_ = NULL; |
3752 vertex_translator_ = NULL; | 3752 vertex_translator_ = NULL; |
3753 | 3753 |
3754 // Should destroy the transfer manager before the texture manager held | 3754 // Should destroy the transfer manager before the texture manager held |
3755 // by the context group. | 3755 // by the context group. |
3756 async_pixel_transfer_manager_.reset(); | 3756 async_pixel_transfer_manager_.reset(); |
3757 | 3757 |
3758 // Destroy the GPU Tracer which may own some in process GPU Timings. | 3758 // Destroy the GPU Tracer which may own some in process GPU Timings. |
3759 gpu_tracer_->Destroy(have_context); | 3759 if (gpu_tracer_.get()) { |
Vitaly Buka (NO REVIEWS)
2015/03/26 22:13:41
if (gpu_tracer_) {
David Yen
2015/03/26 22:18:28
Done.
| |
3760 gpu_tracer_ = NULL; | 3760 gpu_tracer_->Destroy(have_context); |
3761 gpu_tracer_ = NULL; | |
Vitaly Buka (NO REVIEWS)
2015/03/26 22:13:41
gpi_tracer_.reset()
David Yen
2015/03/26 22:18:28
Done.
| |
3762 } | |
3761 | 3763 |
3762 if (group_.get()) { | 3764 if (group_.get()) { |
3763 framebuffer_manager()->RemoveObserver(this); | 3765 framebuffer_manager()->RemoveObserver(this); |
3764 group_->Destroy(this, have_context); | 3766 group_->Destroy(this, have_context); |
3765 group_ = NULL; | 3767 group_ = NULL; |
3766 } | 3768 } |
3767 | 3769 |
3768 if (context_.get()) { | 3770 if (context_.get()) { |
3769 context_->ReleaseCurrent(NULL); | 3771 context_->ReleaseCurrent(NULL); |
3770 context_ = NULL; | 3772 context_ = NULL; |
(...skipping 8667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
12438 } | 12440 } |
12439 } | 12441 } |
12440 | 12442 |
12441 // Include the auto-generated part of this file. We split this because it means | 12443 // Include the auto-generated part of this file. We split this because it means |
12442 // we can easily edit the non-auto generated parts right here in this file | 12444 // we can easily edit the non-auto generated parts right here in this file |
12443 // instead of having to edit some template or the code generator. | 12445 // instead of having to edit some template or the code generator. |
12444 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 12446 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
12445 | 12447 |
12446 } // namespace gles2 | 12448 } // namespace gles2 |
12447 } // namespace gpu | 12449 } // namespace gpu |
OLD | NEW |