| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 InitSkiaEventTracer(); | 487 InitSkiaEventTracer(); |
| 488 | 488 |
| 489 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 489 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 490 | 490 |
| 491 is_impl_side_painting_enabled_ = | 491 is_impl_side_painting_enabled_ = |
| 492 command_line.HasSwitch(switches::kEnableImplSidePainting); | 492 command_line.HasSwitch(switches::kEnableImplSidePainting); |
| 493 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( | 493 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( |
| 494 is_impl_side_painting_enabled_); | 494 is_impl_side_painting_enabled_); |
| 495 | 495 |
| 496 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy) && | 496 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); |
| 497 !command_line.HasSwitch(switches::kDisableZeroCopy); | |
| 498 | 497 |
| 498 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 499 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); | 499 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); |
| 500 #else |
| 501 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); |
| 502 #endif |
| 500 | 503 |
| 501 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 504 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 502 is_lcd_text_enabled_ = false; | 505 is_lcd_text_enabled_ = false; |
| 503 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 506 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 504 is_lcd_text_enabled_ = true; | 507 is_lcd_text_enabled_ = true; |
| 505 } else { | 508 } else { |
| 506 #if defined(OS_ANDROID) | 509 #if defined(OS_ANDROID) |
| 507 is_lcd_text_enabled_ = false; | 510 is_lcd_text_enabled_ = false; |
| 508 #else | 511 #else |
| 509 is_lcd_text_enabled_ = true; | 512 is_lcd_text_enabled_ = true; |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 hidden_widget_count_--; | 1587 hidden_widget_count_--; |
| 1585 | 1588 |
| 1586 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1589 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1587 return; | 1590 return; |
| 1588 } | 1591 } |
| 1589 | 1592 |
| 1590 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1593 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1591 } | 1594 } |
| 1592 | 1595 |
| 1593 } // namespace content | 1596 } // namespace content |
| OLD | NEW |