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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 // EmbeddedWorkerDispatcher. So it must be deleted before deleting | 737 // EmbeddedWorkerDispatcher. So it must be deleted before deleting |
738 // RenderThreadImpl. | 738 // RenderThreadImpl. |
739 embedded_worker_dispatcher_.reset(); | 739 embedded_worker_dispatcher_.reset(); |
740 | 740 |
741 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might | 741 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might |
742 // hold pointers to V8 objects (e.g., via pending requests). | 742 // hold pointers to V8 objects (e.g., via pending requests). |
743 main_thread_indexed_db_dispatcher_.reset(); | 743 main_thread_indexed_db_dispatcher_.reset(); |
744 | 744 |
745 main_thread_compositor_task_runner_ = NULL; | 745 main_thread_compositor_task_runner_ = NULL; |
746 | 746 |
747 if (gpu_channel_.get()) | 747 gpu_va_context_provider_ = NULL; |
| 748 |
| 749 if (gpu_channel_.get()) { |
748 gpu_channel_->DestroyChannel(); | 750 gpu_channel_->DestroyChannel(); |
| 751 gpu_channel_ = NULL; |
| 752 } |
749 | 753 |
750 // TODO(port) | 754 // TODO(port) |
751 #if defined(OS_WIN) | 755 #if defined(OS_WIN) |
752 // Clean up plugin channels before this thread goes away. | 756 // Clean up plugin channels before this thread goes away. |
753 NPChannelBase::CleanupChannels(); | 757 NPChannelBase::CleanupChannels(); |
754 #endif | 758 #endif |
755 | 759 |
756 // Shut down the message loop before shutting down Blink. | 760 // Shut down the message loop before shutting down Blink. |
757 // This prevents a scenario where a pending task in the message loop accesses | 761 // This prevents a scenario where a pending task in the message loop accesses |
758 // Blink objects after Blink shuts down. | 762 // Blink objects after Blink shuts down. |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 hidden_widget_count_--; | 1779 hidden_widget_count_--; |
1776 | 1780 |
1777 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1781 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1778 return; | 1782 return; |
1779 } | 1783 } |
1780 | 1784 |
1781 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1785 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1782 } | 1786 } |
1783 | 1787 |
1784 } // namespace content | 1788 } // namespace content |
OLD | NEW |