| 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 #endif | 1487 #endif |
| 1488 IPC_MESSAGE_UNHANDLED(handled = false) | 1488 IPC_MESSAGE_UNHANDLED(handled = false) |
| 1489 IPC_END_MESSAGE_MAP() | 1489 IPC_END_MESSAGE_MAP() |
| 1490 return handled; | 1490 return handled; |
| 1491 } | 1491 } |
| 1492 | 1492 |
| 1493 void RenderThreadImpl::OnCreateNewFrame( | 1493 void RenderThreadImpl::OnCreateNewFrame( |
| 1494 int routing_id, | 1494 int routing_id, |
| 1495 int parent_routing_id, | 1495 int parent_routing_id, |
| 1496 int proxy_routing_id, | 1496 int proxy_routing_id, |
| 1497 const FrameReplicationState& replicated_state, | 1497 const FrameReplicationState& replicated_state) { |
| 1498 FrameMsg_NewFrame_WidgetParams params) { | |
| 1499 CompositorDependencies* compositor_deps = this; | |
| 1500 RenderFrameImpl::CreateFrame(routing_id, parent_routing_id, proxy_routing_id, | 1498 RenderFrameImpl::CreateFrame(routing_id, parent_routing_id, proxy_routing_id, |
| 1501 replicated_state, compositor_deps, params); | 1499 replicated_state); |
| 1502 } | 1500 } |
| 1503 | 1501 |
| 1504 void RenderThreadImpl::OnCreateNewFrameProxy( | 1502 void RenderThreadImpl::OnCreateNewFrameProxy( |
| 1505 int routing_id, | 1503 int routing_id, |
| 1506 int parent_routing_id, | 1504 int parent_routing_id, |
| 1507 int render_view_routing_id, | 1505 int render_view_routing_id, |
| 1508 const FrameReplicationState& replicated_state) { | 1506 const FrameReplicationState& replicated_state) { |
| 1509 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, | 1507 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, |
| 1510 render_view_routing_id, replicated_state); | 1508 render_view_routing_id, replicated_state); |
| 1511 } | 1509 } |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 hidden_widget_count_--; | 1773 hidden_widget_count_--; |
| 1776 | 1774 |
| 1777 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1775 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1778 return; | 1776 return; |
| 1779 } | 1777 } |
| 1780 | 1778 |
| 1781 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1779 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1782 } | 1780 } |
| 1783 | 1781 |
| 1784 } // namespace content | 1782 } // namespace content |
| OLD | NEW |