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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 #else | 424 #else |
425 is_lcd_text_enabled_ = true; | 425 is_lcd_text_enabled_ = true; |
426 #endif | 426 #endif |
427 } | 427 } |
428 | 428 |
429 is_gpu_rasterization_enabled_ = | 429 is_gpu_rasterization_enabled_ = |
430 command_line.HasSwitch(switches::kEnableGpuRasterization); | 430 command_line.HasSwitch(switches::kEnableGpuRasterization); |
431 is_gpu_rasterization_forced_ = | 431 is_gpu_rasterization_forced_ = |
432 command_line.HasSwitch(switches::kForceGpuRasterization); | 432 command_line.HasSwitch(switches::kForceGpuRasterization); |
433 | 433 |
| 434 if (command_line.HasSwitch(switches::kDisableDistanceFieldText)) { |
| 435 is_distance_field_text_enabled_ = false; |
| 436 } else if (command_line.HasSwitch(switches::kEnableDistanceFieldText)) { |
| 437 is_distance_field_text_enabled_ = true; |
| 438 } else { |
| 439 is_distance_field_text_enabled_ = false; |
| 440 } |
| 441 |
434 is_low_res_tiling_enabled_ = true; | 442 is_low_res_tiling_enabled_ = true; |
435 if (command_line.HasSwitch(switches::kDisableLowResTiling) && | 443 if (command_line.HasSwitch(switches::kDisableLowResTiling) && |
436 !command_line.HasSwitch(switches::kEnableLowResTiling)) { | 444 !command_line.HasSwitch(switches::kEnableLowResTiling)) { |
437 is_low_res_tiling_enabled_ = false; | 445 is_low_res_tiling_enabled_ = false; |
438 } | 446 } |
439 | 447 |
440 // Note that under Linux, the media library will normally already have | 448 // Note that under Linux, the media library will normally already have |
441 // been initialized by the Zygote before this instance became a Renderer. | 449 // been initialized by the Zygote before this instance became a Renderer. |
442 base::FilePath media_path; | 450 base::FilePath media_path; |
443 PathService::Get(DIR_MEDIA_LIBS, &media_path); | 451 PathService::Get(DIR_MEDIA_LIBS, &media_path); |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 hidden_widget_count_--; | 1500 hidden_widget_count_--; |
1493 | 1501 |
1494 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1502 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1495 return; | 1503 return; |
1496 } | 1504 } |
1497 | 1505 |
1498 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1506 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1499 } | 1507 } |
1500 | 1508 |
1501 } // namespace content | 1509 } // namespace content |
OLD | NEW |