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 <utility> | 10 #include <utility> |
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 | 1765 |
1766 void RenderThreadImpl::OnProcessBackgrounded(bool backgrounded) { | 1766 void RenderThreadImpl::OnProcessBackgrounded(bool backgrounded) { |
1767 ChildThreadImpl::OnProcessBackgrounded(backgrounded); | 1767 ChildThreadImpl::OnProcessBackgrounded(backgrounded); |
1768 | 1768 |
1769 if (backgrounded) | 1769 if (backgrounded) |
1770 renderer_scheduler_->OnRendererBackgrounded(); | 1770 renderer_scheduler_->OnRendererBackgrounded(); |
1771 else | 1771 else |
1772 renderer_scheduler_->OnRendererForegrounded(); | 1772 renderer_scheduler_->OnRendererForegrounded(); |
1773 } | 1773 } |
1774 | 1774 |
| 1775 void RenderThreadImpl::OnProcessSuspend() { |
| 1776 ChildThreadImpl::OnProcessSuspend(); |
| 1777 renderer_scheduler_->OnRendererSuspend(); |
| 1778 } |
| 1779 |
1775 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { | 1780 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { |
1776 CompositorDependencies* compositor_deps = this; | 1781 CompositorDependencies* compositor_deps = this; |
1777 RenderFrameImpl::CreateFrame( | 1782 RenderFrameImpl::CreateFrame( |
1778 params.routing_id, params.proxy_routing_id, params.opener_routing_id, | 1783 params.routing_id, params.proxy_routing_id, params.opener_routing_id, |
1779 params.parent_routing_id, params.previous_sibling_routing_id, | 1784 params.parent_routing_id, params.previous_sibling_routing_id, |
1780 params.replication_state, compositor_deps, params.widget_params, | 1785 params.replication_state, compositor_deps, params.widget_params, |
1781 params.frame_owner_properties); | 1786 params.frame_owner_properties); |
1782 } | 1787 } |
1783 | 1788 |
1784 void RenderThreadImpl::OnCreateNewFrameProxy( | 1789 void RenderThreadImpl::OnCreateNewFrameProxy( |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 } | 2147 } |
2143 | 2148 |
2144 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 2149 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
2145 size_t erased = | 2150 size_t erased = |
2146 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 2151 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
2147 routing_id_); | 2152 routing_id_); |
2148 DCHECK_EQ(1u, erased); | 2153 DCHECK_EQ(1u, erased); |
2149 } | 2154 } |
2150 | 2155 |
2151 } // namespace content | 2156 } // namespace content |
OLD | NEW |