| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 is_impl_side_painting_enabled_ = | 408 is_impl_side_painting_enabled_ = |
| 409 command_line.HasSwitch(switches::kEnableImplSidePainting); | 409 command_line.HasSwitch(switches::kEnableImplSidePainting); |
| 410 webkit::WebLayerImpl::SetImplSidePaintingEnabled( | 410 webkit::WebLayerImpl::SetImplSidePaintingEnabled( |
| 411 is_impl_side_painting_enabled_); | 411 is_impl_side_painting_enabled_); |
| 412 | 412 |
| 413 is_map_image_enabled_ = | 413 is_map_image_enabled_ = |
| 414 command_line.HasSwitch(switches::kEnableMapImage) && | 414 command_line.HasSwitch(switches::kEnableMapImage) && |
| 415 !command_line.HasSwitch(switches::kDisableMapImage); | 415 !command_line.HasSwitch(switches::kDisableMapImage); |
| 416 | 416 |
| 417 is_zero_copy_enabled_ = !command_line.HasSwitch(switches::kDisableZeroCopy); |
| 418 |
| 417 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 419 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 418 is_lcd_text_enabled_ = false; | 420 is_lcd_text_enabled_ = false; |
| 419 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 421 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 420 is_lcd_text_enabled_ = true; | 422 is_lcd_text_enabled_ = true; |
| 421 } else { | 423 } else { |
| 422 #if defined(OS_ANDROID) | 424 #if defined(OS_ANDROID) |
| 423 is_lcd_text_enabled_ = false; | 425 is_lcd_text_enabled_ = false; |
| 424 #else | 426 #else |
| 425 is_lcd_text_enabled_ = true; | 427 is_lcd_text_enabled_ = true; |
| 426 #endif | 428 #endif |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 hidden_widget_count_--; | 1521 hidden_widget_count_--; |
| 1520 | 1522 |
| 1521 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1522 return; | 1524 return; |
| 1523 } | 1525 } |
| 1524 | 1526 |
| 1525 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1526 } | 1528 } |
| 1527 | 1529 |
| 1528 } // namespace content | 1530 } // namespace content |
| OLD | NEW |