| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); | 523 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
| 524 | 524 |
| 525 GetContentClient()->renderer()->RenderThreadStarted(); | 525 GetContentClient()->renderer()->RenderThreadStarted(); |
| 526 | 526 |
| 527 InitSkiaEventTracer(); | 527 InitSkiaEventTracer(); |
| 528 | 528 |
| 529 const base::CommandLine& command_line = | 529 const base::CommandLine& command_line = |
| 530 *base::CommandLine::ForCurrentProcess(); | 530 *base::CommandLine::ForCurrentProcess(); |
| 531 | 531 |
| 532 is_impl_side_painting_enabled_ = | 532 is_impl_side_painting_enabled_ = |
| 533 command_line.HasSwitch(switches::kEnableImplSidePainting); | 533 !command_line.HasSwitch(switches::kDisableImplSidePainting); |
| 534 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( | 534 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( |
| 535 is_impl_side_painting_enabled_); | 535 is_impl_side_painting_enabled_); |
| 536 | 536 |
| 537 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); | 537 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); |
| 538 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); | 538 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); |
| 539 | 539 |
| 540 #if defined(OS_MACOSX) && !defined(OS_IOS) | 540 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 541 is_elastic_overscroll_enabled_ = | 541 is_elastic_overscroll_enabled_ = |
| 542 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 542 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 543 switches::kDisableThreadedEventHandlingMac) && | 543 switches::kDisableThreadedEventHandlingMac) && |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 hidden_widget_count_--; | 1775 hidden_widget_count_--; |
| 1776 | 1776 |
| 1777 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1777 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1778 return; | 1778 return; |
| 1779 } | 1779 } |
| 1780 | 1780 |
| 1781 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1781 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 } // namespace content | 1784 } // namespace content |
| OLD | NEW |