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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 hidden_widget_count_--; | 1616 hidden_widget_count_--; |
1615 | 1617 |
1616 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1618 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1617 return; | 1619 return; |
1618 } | 1620 } |
1619 | 1621 |
1620 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1622 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1621 } | 1623 } |
1622 | 1624 |
1623 } // namespace content | 1625 } // namespace content |
OLD | NEW |