| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 523 use_image_external_ = command_line.HasSwitch(switches::kUseImageExternal); |
| 524 use_image_io_surface_ = command_line.HasSwitch(switches::kUseImageIOSurface); |
| 524 | 525 |
| 525 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 526 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 526 is_lcd_text_enabled_ = false; | 527 is_lcd_text_enabled_ = false; |
| 527 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 528 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 528 is_lcd_text_enabled_ = true; | 529 is_lcd_text_enabled_ = true; |
| 529 } else { | 530 } else { |
| 530 #if defined(OS_ANDROID) | 531 #if defined(OS_ANDROID) |
| 531 is_lcd_text_enabled_ = false; | 532 is_lcd_text_enabled_ = false; |
| 532 #else | 533 #else |
| 533 is_lcd_text_enabled_ = true; | 534 is_lcd_text_enabled_ = true; |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 hidden_widget_count_--; | 1619 hidden_widget_count_--; |
| 1619 | 1620 |
| 1620 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1621 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1621 return; | 1622 return; |
| 1622 } | 1623 } |
| 1623 | 1624 |
| 1624 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1625 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1625 } | 1626 } |
| 1626 | 1627 |
| 1627 } // namespace content | 1628 } // namespace content |
| OLD | NEW |