| 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 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 params.renderer_preferences, | 1260 params.renderer_preferences, |
| 1261 params.web_preferences, | 1261 params.web_preferences, |
| 1262 params.view_id, | 1262 params.view_id, |
| 1263 params.main_frame_routing_id, | 1263 params.main_frame_routing_id, |
| 1264 params.surface_id, | 1264 params.surface_id, |
| 1265 params.session_storage_namespace_id, | 1265 params.session_storage_namespace_id, |
| 1266 params.frame_name, | 1266 params.frame_name, |
| 1267 false, | 1267 false, |
| 1268 params.swapped_out, | 1268 params.swapped_out, |
| 1269 params.hidden, | 1269 params.hidden, |
| 1270 params.background, |
| 1270 params.next_page_id, | 1271 params.next_page_id, |
| 1271 params.screen_info, | 1272 params.screen_info, |
| 1272 params.accessibility_mode); | 1273 params.accessibility_mode); |
| 1273 } | 1274 } |
| 1274 | 1275 |
| 1275 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( | 1276 GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( |
| 1276 CauseForGpuLaunch cause_for_gpu_launch) { | 1277 CauseForGpuLaunch cause_for_gpu_launch) { |
| 1277 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); | 1278 TRACE_EVENT0("gpu", "RenderThreadImpl::EstablishGpuChannelSync"); |
| 1278 | 1279 |
| 1279 if (gpu_channel_.get()) { | 1280 if (gpu_channel_.get()) { |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 hidden_widget_count_--; | 1515 hidden_widget_count_--; |
| 1515 | 1516 |
| 1516 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1517 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1517 return; | 1518 return; |
| 1518 } | 1519 } |
| 1519 | 1520 |
| 1520 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1521 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1521 } | 1522 } |
| 1522 | 1523 |
| 1523 } // namespace content | 1524 } // namespace content |
| OLD | NEW |