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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 } | 1356 } |
1357 | 1357 |
1358 bool RenderThreadImpl::IsOneCopyEnabled() { | 1358 bool RenderThreadImpl::IsOneCopyEnabled() { |
1359 return is_one_copy_enabled_; | 1359 return is_one_copy_enabled_; |
1360 } | 1360 } |
1361 | 1361 |
1362 bool RenderThreadImpl::IsElasticOverscrollEnabled() { | 1362 bool RenderThreadImpl::IsElasticOverscrollEnabled() { |
1363 return is_elastic_overscroll_enabled_; | 1363 return is_elastic_overscroll_enabled_; |
1364 } | 1364 } |
1365 | 1365 |
| 1366 bool RenderThreadImpl::UseSingleThreadScheduler() { |
| 1367 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); |
| 1368 return !cmd->HasSwitch(switches::kDisableSingleThreadProxyScheduler); |
| 1369 } |
| 1370 |
1366 uint32 RenderThreadImpl::GetImageTextureTarget() { | 1371 uint32 RenderThreadImpl::GetImageTextureTarget() { |
1367 return use_image_texture_target_; | 1372 return use_image_texture_target_; |
1368 } | 1373 } |
1369 scoped_refptr<base::SingleThreadTaskRunner> | 1374 scoped_refptr<base::SingleThreadTaskRunner> |
1370 RenderThreadImpl::GetCompositorMainThreadTaskRunner() { | 1375 RenderThreadImpl::GetCompositorMainThreadTaskRunner() { |
1371 return main_thread_compositor_task_runner_; | 1376 return main_thread_compositor_task_runner_; |
1372 } | 1377 } |
1373 | 1378 |
1374 scoped_refptr<base::SingleThreadTaskRunner> | 1379 scoped_refptr<base::SingleThreadTaskRunner> |
1375 RenderThreadImpl::GetCompositorImplThreadTaskRunner() { | 1380 RenderThreadImpl::GetCompositorImplThreadTaskRunner() { |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1769 hidden_widget_count_--; | 1774 hidden_widget_count_--; |
1770 | 1775 |
1771 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1776 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1772 return; | 1777 return; |
1773 } | 1778 } |
1774 | 1779 |
1775 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1780 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1776 } | 1781 } |
1777 | 1782 |
1778 } // namespace content | 1783 } // namespace content |
OLD | NEW |