| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 403 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 404 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking)) | 404 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking)) |
| 405 RegisterExtension(GpuBenchmarkingExtension::Get()); | 405 RegisterExtension(GpuBenchmarkingExtension::Get()); |
| 406 | 406 |
| 407 is_impl_side_painting_enabled_ = | 407 is_impl_side_painting_enabled_ = |
| 408 command_line.HasSwitch(switches::kEnableImplSidePainting); | 408 command_line.HasSwitch(switches::kEnableImplSidePainting); |
| 409 webkit::WebLayerImpl::SetImplSidePaintingEnabled( | 409 webkit::WebLayerImpl::SetImplSidePaintingEnabled( |
| 410 is_impl_side_painting_enabled_); | 410 is_impl_side_painting_enabled_); |
| 411 | 411 |
| 412 is_map_image_enabled_ = | 412 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy) && |
| 413 command_line.HasSwitch(switches::kEnableMapImage) && | 413 !command_line.HasSwitch(switches::kDisableZeroCopy); |
| 414 !command_line.HasSwitch(switches::kDisableMapImage); | 414 |
| 415 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); |
| 415 | 416 |
| 416 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 417 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 417 is_lcd_text_enabled_ = false; | 418 is_lcd_text_enabled_ = false; |
| 418 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 419 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| 419 is_lcd_text_enabled_ = true; | 420 is_lcd_text_enabled_ = true; |
| 420 } else { | 421 } else { |
| 421 #if defined(OS_ANDROID) | 422 #if defined(OS_ANDROID) |
| 422 is_lcd_text_enabled_ = false; | 423 is_lcd_text_enabled_ = false; |
| 423 #else | 424 #else |
| 424 is_lcd_text_enabled_ = true; | 425 is_lcd_text_enabled_ = true; |
| (...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 hidden_widget_count_--; | 1492 hidden_widget_count_--; |
| 1492 | 1493 |
| 1493 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1494 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1494 return; | 1495 return; |
| 1495 } | 1496 } |
| 1496 | 1497 |
| 1497 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1498 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1498 } | 1499 } |
| 1499 | 1500 |
| 1500 } // namespace content | 1501 } // namespace content |
| OLD | NEW |