| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 404 |
| 405 GetContentClient()->renderer()->RenderThreadStarted(); | 405 GetContentClient()->renderer()->RenderThreadStarted(); |
| 406 | 406 |
| 407 InitSkiaEventTracer(); | 407 InitSkiaEventTracer(); |
| 408 | 408 |
| 409 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 409 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 410 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking)) | 410 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking)) |
| 411 RegisterExtension(GpuBenchmarkingExtension::Get()); | 411 RegisterExtension(GpuBenchmarkingExtension::Get()); |
| 412 | 412 |
| 413 is_impl_side_painting_enabled_ = | 413 is_impl_side_painting_enabled_ = |
| 414 command_line.HasSwitch(switches::kEnableImplSidePainting); | 414 command_line.HasSwitch(switches::kEnableImplSidePainting) && |
| 415 !command_line.HasSwitch(switches::kDisableImplSidePainting); |
| 415 webkit::WebLayerImpl::SetImplSidePaintingEnabled( | 416 webkit::WebLayerImpl::SetImplSidePaintingEnabled( |
| 416 is_impl_side_painting_enabled_); | 417 is_impl_side_painting_enabled_); |
| 417 | 418 |
| 418 is_map_image_enabled_ = | 419 is_map_image_enabled_ = |
| 419 command_line.HasSwitch(switches::kEnableMapImage) && | 420 command_line.HasSwitch(switches::kEnableMapImage) && |
| 420 !command_line.HasSwitch(switches::kDisableMapImage); | 421 !command_line.HasSwitch(switches::kDisableMapImage); |
| 421 | 422 |
| 422 if (command_line.HasSwitch(switches::kDisableLCDText)) { | 423 if (command_line.HasSwitch(switches::kDisableLCDText)) { |
| 423 is_lcd_text_enabled_ = false; | 424 is_lcd_text_enabled_ = false; |
| 424 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { | 425 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 hidden_widget_count_--; | 1522 hidden_widget_count_--; |
| 1522 | 1523 |
| 1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1524 return; | 1525 return; |
| 1525 } | 1526 } |
| 1526 | 1527 |
| 1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1528 } | 1529 } |
| 1529 | 1530 |
| 1530 } // namespace content | 1531 } // namespace content |
| OLD | NEW |