| 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 "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 embedded_worker_dispatcher_.reset(); | 781 embedded_worker_dispatcher_.reset(); |
| 782 | 782 |
| 783 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might | 783 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might |
| 784 // hold pointers to V8 objects (e.g., via pending requests). | 784 // hold pointers to V8 objects (e.g., via pending requests). |
| 785 main_thread_indexed_db_dispatcher_.reset(); | 785 main_thread_indexed_db_dispatcher_.reset(); |
| 786 | 786 |
| 787 main_thread_compositor_task_runner_ = NULL; | 787 main_thread_compositor_task_runner_ = NULL; |
| 788 | 788 |
| 789 if (gpu_channel_.get()) | 789 if (gpu_channel_.get()) |
| 790 gpu_channel_->DestroyChannel(); | 790 gpu_channel_->DestroyChannel(); |
| 791 gpu_va_context_provider_ = nullptr; |
| 791 | 792 |
| 792 // TODO(port) | 793 // TODO(port) |
| 793 #if defined(OS_WIN) | 794 #if defined(OS_WIN) |
| 794 // Clean up plugin channels before this thread goes away. | 795 // Clean up plugin channels before this thread goes away. |
| 795 NPChannelBase::CleanupChannels(); | 796 NPChannelBase::CleanupChannels(); |
| 796 #endif | 797 #endif |
| 797 | 798 |
| 798 // Shut down the message loop and the renderer scheduler before shutting down | 799 // Shut down the message loop and the renderer scheduler before shutting down |
| 799 // Blink. This prevents a scenario where a pending task in the message loop | 800 // Blink. This prevents a scenario where a pending task in the message loop |
| 800 // accesses Blink objects after Blink shuts down. | 801 // accesses Blink objects after Blink shuts down. |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1851 } | 1852 } |
| 1852 | 1853 |
| 1853 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1854 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1854 size_t erased = | 1855 size_t erased = |
| 1855 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1856 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1856 routing_id_); | 1857 routing_id_); |
| 1857 DCHECK_EQ(1u, erased); | 1858 DCHECK_EQ(1u, erased); |
| 1858 } | 1859 } |
| 1859 | 1860 |
| 1860 } // namespace content | 1861 } // namespace content |
| OLD | NEW |