| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 | 513 |
| 514 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 514 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 515 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads | 515 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads |
| 516 // in compositor_util.cc. We should be using methods from compositor_util here | 516 // in compositor_util.cc. We should be using methods from compositor_util here |
| 517 // instead of inspecting flags. | 517 // instead of inspecting flags. |
| 518 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); | 518 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); |
| 519 #else | 519 #else |
| 520 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); | 520 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); |
| 521 #endif | 521 #endif |
| 522 | 522 |
| 523 use_image_external_ = command_line.HasSwitch(switches::kUseImageExternal); |
| 524 |
| 523 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 525 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 524 is_lcd_text_enabled_ = false; | 526 is_lcd_text_enabled_ = false; |
| 525 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 527 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 526 is_lcd_text_enabled_ = true; | 528 is_lcd_text_enabled_ = true; |
| 527 } else { | 529 } else { |
| 528 #if defined(OS_ANDROID) | 530 #if defined(OS_ANDROID) |
| 529 is_lcd_text_enabled_ = false; | 531 is_lcd_text_enabled_ = false; |
| 530 #else | 532 #else |
| 531 is_lcd_text_enabled_ = true; | 533 is_lcd_text_enabled_ = true; |
| 532 #endif | 534 #endif |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 hidden_widget_count_--; | 1634 hidden_widget_count_--; |
| 1633 | 1635 |
| 1634 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1636 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1635 return; | 1637 return; |
| 1636 } | 1638 } |
| 1637 | 1639 |
| 1638 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1640 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1639 } | 1641 } |
| 1640 | 1642 |
| 1641 } // namespace content | 1643 } // namespace content |
| OLD | NEW |