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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); | 515 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); |
516 | 516 |
517 GetContentClient()->renderer()->RenderThreadStarted(); | 517 GetContentClient()->renderer()->RenderThreadStarted(); |
518 | 518 |
519 InitSkiaEventTracer(); | 519 InitSkiaEventTracer(); |
520 | 520 |
521 const base::CommandLine& command_line = | 521 const base::CommandLine& command_line = |
522 *base::CommandLine::ForCurrentProcess(); | 522 *base::CommandLine::ForCurrentProcess(); |
523 | 523 |
524 is_impl_side_painting_enabled_ = | 524 is_impl_side_painting_enabled_ = |
525 command_line.HasSwitch(switches::kEnableImplSidePainting); | 525 !command_line.HasSwitch(switches::kDisableImplSidePainting); |
526 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( | 526 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( |
527 is_impl_side_painting_enabled_); | 527 is_impl_side_painting_enabled_); |
528 | 528 |
529 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); | 529 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); |
530 | 530 |
531 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 531 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
532 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads | 532 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads |
533 // in compositor_util.cc. We should be using methods from compositor_util here | 533 // in compositor_util.cc. We should be using methods from compositor_util here |
534 // instead of inspecting flags. | 534 // instead of inspecting flags. |
535 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); | 535 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); |
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1759 hidden_widget_count_--; | 1759 hidden_widget_count_--; |
1760 | 1760 |
1761 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1761 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1762 return; | 1762 return; |
1763 } | 1763 } |
1764 | 1764 |
1765 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1765 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1766 } | 1766 } |
1767 | 1767 |
1768 } // namespace content | 1768 } // namespace content |
OLD | NEW |