| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 scoped_refptr<base::MessageLoopProxy> output_surface_loop; | 697 scoped_refptr<base::MessageLoopProxy> output_surface_loop; |
| 698 if (enable) | 698 if (enable) |
| 699 output_surface_loop = compositor_message_loop_proxy_; | 699 output_surface_loop = compositor_message_loop_proxy_; |
| 700 else | 700 else |
| 701 output_surface_loop = base::MessageLoopProxy::current(); | 701 output_surface_loop = base::MessageLoopProxy::current(); |
| 702 | 702 |
| 703 compositor_output_surface_filter_ = | 703 compositor_output_surface_filter_ = |
| 704 CompositorOutputSurface::CreateFilter(output_surface_loop.get()); | 704 CompositorOutputSurface::CreateFilter(output_surface_loop.get()); |
| 705 AddFilter(compositor_output_surface_filter_.get()); | 705 AddFilter(compositor_output_surface_filter_.get()); |
| 706 | 706 |
| 707 WebScriptController::enableV8SingleThreadMode(); | |
| 708 | |
| 709 RenderThreadImpl::RegisterSchemes(); | 707 RenderThreadImpl::RegisterSchemes(); |
| 710 | 708 |
| 711 EnableBlinkPlatformLogChannels( | 709 EnableBlinkPlatformLogChannels( |
| 712 command_line.GetSwitchValueASCII(switches::kBlinkPlatformLogChannels)); | 710 command_line.GetSwitchValueASCII(switches::kBlinkPlatformLogChannels)); |
| 713 | 711 |
| 714 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); | 712 SetRuntimeFeaturesDefaultsAndUpdateFromArgs(command_line); |
| 715 | 713 |
| 716 if (!media::IsMediaLibraryInitialized()) { | 714 if (!media::IsMediaLibraryInitialized()) { |
| 717 WebRuntimeFeatures::enableMediaPlayer(false); | 715 WebRuntimeFeatures::enableMediaPlayer(false); |
| 718 WebRuntimeFeatures::enableWebAudio(false); | 716 WebRuntimeFeatures::enableWebAudio(false); |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 hidden_widget_count_--; | 1418 hidden_widget_count_--; |
| 1421 | 1419 |
| 1422 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1420 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1423 return; | 1421 return; |
| 1424 } | 1422 } |
| 1425 | 1423 |
| 1426 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1424 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1427 } | 1425 } |
| 1428 | 1426 |
| 1429 } // namespace content | 1427 } // namespace content |
| OLD | NEW |