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