Chromium Code Reviews| 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_ = | |
| 438 is_gpu_rasterization_enabled_ || is_gpu_rasterization_forced_; | |
|
enne (OOO)
2014/05/06 18:19:54
I don't really like flags turning on other feature
alokp
2014/05/06 18:41:11
I agree. This flag will be ignored anyway if gpu-r
jvanverth1
2014/05/06 20:09:39
Done.
| |
| 439 } else { | |
| 440 is_distance_field_text_enabled_ = false; | |
| 441 } | |
| 442 | |
| 434 is_low_res_tiling_enabled_ = true; | 443 is_low_res_tiling_enabled_ = true; |
| 435 if (command_line.HasSwitch(switches::kDisableLowResTiling) && | 444 if (command_line.HasSwitch(switches::kDisableLowResTiling) && |
| 436 !command_line.HasSwitch(switches::kEnableLowResTiling)) { | 445 !command_line.HasSwitch(switches::kEnableLowResTiling)) { |
| 437 is_low_res_tiling_enabled_ = false; | 446 is_low_res_tiling_enabled_ = false; |
| 438 } | 447 } |
| 439 | 448 |
| 440 // Note that under Linux, the media library will normally already have | 449 // Note that under Linux, the media library will normally already have |
| 441 // been initialized by the Zygote before this instance became a Renderer. | 450 // been initialized by the Zygote before this instance became a Renderer. |
| 442 base::FilePath media_path; | 451 base::FilePath media_path; |
| 443 PathService::Get(DIR_MEDIA_LIBS, &media_path); | 452 PathService::Get(DIR_MEDIA_LIBS, &media_path); |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1492 hidden_widget_count_--; | 1501 hidden_widget_count_--; |
| 1493 | 1502 |
| 1494 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1503 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1495 return; | 1504 return; |
| 1496 } | 1505 } |
| 1497 | 1506 |
| 1498 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1507 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1499 } | 1508 } |
| 1500 | 1509 |
| 1501 } // namespace content | 1510 } // namespace content |
| OLD | NEW |