| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { | 1109 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
| 1110 if (IsPropertyTreeVerificationEnabled()) | 1110 if (IsPropertyTreeVerificationEnabled()) |
| 1111 command_line->AppendSwitch(cc::switches::kEnablePropertyTreeVerification); | 1111 command_line->AppendSwitch(cc::switches::kEnablePropertyTreeVerification); |
| 1112 | 1112 |
| 1113 if (IsDelegatedRendererEnabled()) | 1113 if (IsDelegatedRendererEnabled()) |
| 1114 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | 1114 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
| 1115 | 1115 |
| 1116 command_line->AppendSwitchASCII( | 1116 command_line->AppendSwitchASCII( |
| 1117 switches::kNumRasterThreads, | 1117 switches::kNumWorkerThreads, |
| 1118 base::IntToString(NumberOfRendererRasterThreads())); | 1118 base::IntToString(NumberOfRendererWorkerThreads())); |
| 1119 | 1119 |
| 1120 if (IsGpuRasterizationEnabled()) | 1120 if (IsGpuRasterizationEnabled()) |
| 1121 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1121 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1122 | 1122 |
| 1123 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1123 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
| 1124 if (msaa_sample_count > 0) { | 1124 if (msaa_sample_count > 0) { |
| 1125 command_line->AppendSwitchASCII( | 1125 command_line->AppendSwitchASCII( |
| 1126 switches::kGpuRasterizationMSAASampleCount, | 1126 switches::kGpuRasterizationMSAASampleCount, |
| 1127 base::IntToString(msaa_sample_count)); | 1127 base::IntToString(msaa_sample_count)); |
| 1128 } | 1128 } |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2505 void RenderProcessHostImpl::GetAudioOutputControllers( | 2505 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2506 const GetAudioOutputControllersCallback& callback) const { | 2506 const GetAudioOutputControllersCallback& callback) const { |
| 2507 audio_renderer_host()->GetOutputControllers(callback); | 2507 audio_renderer_host()->GetOutputControllers(callback); |
| 2508 } | 2508 } |
| 2509 | 2509 |
| 2510 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2510 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2511 return bluetooth_dispatcher_host_.get(); | 2511 return bluetooth_dispatcher_host_.get(); |
| 2512 } | 2512 } |
| 2513 | 2513 |
| 2514 } // namespace content | 2514 } // namespace content |
| OLD | NEW |