| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 !command_line.HasSwitch(switches::kDisableGpuRasterization)) { | 438 !command_line.HasSwitch(switches::kDisableGpuRasterization)) { |
| 439 if (command_line.HasSwitch(switches::kForceGpuRasterization)) { | 439 if (command_line.HasSwitch(switches::kForceGpuRasterization)) { |
| 440 is_gpu_rasterization_forced_ = true; | 440 is_gpu_rasterization_forced_ = true; |
| 441 } else if (command_line.HasSwitch(switches::kEnableGpuRasterization) || | 441 } else if (command_line.HasSwitch(switches::kEnableGpuRasterization) || |
| 442 command_line.HasSwitch( | 442 command_line.HasSwitch( |
| 443 switches::kEnableBleedingEdgeRenderingFastPaths)) { | 443 switches::kEnableBleedingEdgeRenderingFastPaths)) { |
| 444 is_gpu_rasterization_enabled_ = true; | 444 is_gpu_rasterization_enabled_ = true; |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 | 447 |
| 448 is_low_res_tiling_enabled_ = !is_gpu_rasterization_enabled_; | 448 is_low_res_tiling_enabled_ = true; |
| 449 if (command_line.HasSwitch(switches::kDisableLowResTiling) && | 449 if (command_line.HasSwitch(switches::kDisableLowResTiling) && |
| 450 !command_line.HasSwitch(switches::kEnableLowResTiling)) { | 450 !command_line.HasSwitch(switches::kEnableLowResTiling)) { |
| 451 is_low_res_tiling_enabled_ = false; | 451 is_low_res_tiling_enabled_ = false; |
| 452 } | 452 } |
| 453 | 453 |
| 454 // Note that under Linux, the media library will normally already have | 454 // Note that under Linux, the media library will normally already have |
| 455 // been initialized by the Zygote before this instance became a Renderer. | 455 // been initialized by the Zygote before this instance became a Renderer. |
| 456 base::FilePath media_path; | 456 base::FilePath media_path; |
| 457 PathService::Get(DIR_MEDIA_LIBS, &media_path); | 457 PathService::Get(DIR_MEDIA_LIBS, &media_path); |
| 458 if (!media_path.empty()) | 458 if (!media_path.empty()) |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 hidden_widget_count_--; | 1522 hidden_widget_count_--; |
| 1523 | 1523 |
| 1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1525 return; | 1525 return; |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1529 } | 1529 } |
| 1530 | 1530 |
| 1531 } // namespace content | 1531 } // namespace content |
| OLD | NEW |