| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 is_impl_side_painting_enabled_); | 510 is_impl_side_painting_enabled_); |
| 511 | 511 |
| 512 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); | 512 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); |
| 513 | 513 |
| 514 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 514 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 515 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); | 515 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); |
| 516 #else | 516 #else |
| 517 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); | 517 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); |
| 518 #endif | 518 #endif |
| 519 | 519 |
| 520 use_image_external_ = command_line.HasSwitch(switches::kUseImageExternal); |
| 521 |
| 520 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 522 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 521 is_lcd_text_enabled_ = false; | 523 is_lcd_text_enabled_ = false; |
| 522 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 524 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 523 is_lcd_text_enabled_ = true; | 525 is_lcd_text_enabled_ = true; |
| 524 } else { | 526 } else { |
| 525 #if defined(OS_ANDROID) | 527 #if defined(OS_ANDROID) |
| 526 is_lcd_text_enabled_ = false; | 528 is_lcd_text_enabled_ = false; |
| 527 #else | 529 #else |
| 528 is_lcd_text_enabled_ = true; | 530 is_lcd_text_enabled_ = true; |
| 529 #endif | 531 #endif |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1626 hidden_widget_count_--; | 1628 hidden_widget_count_--; |
| 1627 | 1629 |
| 1628 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1630 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1629 return; | 1631 return; |
| 1630 } | 1632 } |
| 1631 | 1633 |
| 1632 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1634 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1633 } | 1635 } |
| 1634 | 1636 |
| 1635 } // namespace content | 1637 } // namespace content |
| OLD | NEW |