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 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 } | 1227 } |
1228 | 1228 |
1229 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { | 1229 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
1230 if (IsPropertyTreeVerificationEnabled()) | 1230 if (IsPropertyTreeVerificationEnabled()) |
1231 command_line->AppendSwitch(cc::switches::kEnablePropertyTreeVerification); | 1231 command_line->AppendSwitch(cc::switches::kEnablePropertyTreeVerification); |
1232 | 1232 |
1233 command_line->AppendSwitchASCII( | 1233 command_line->AppendSwitchASCII( |
1234 switches::kNumRasterThreads, | 1234 switches::kNumRasterThreads, |
1235 base::IntToString(NumberOfRendererRasterThreads())); | 1235 base::IntToString(NumberOfRendererRasterThreads())); |
1236 | 1236 |
| 1237 if (UseSingleThreadForBackgroundRasterTasks()) |
| 1238 command_line->AppendSwitch( |
| 1239 switches::kUseSingleThreadForBackgroundRasterTasks); |
| 1240 |
1237 if (IsGpuRasterizationEnabled()) | 1241 if (IsGpuRasterizationEnabled()) |
1238 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1242 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
1239 | 1243 |
1240 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1244 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
1241 if (msaa_sample_count >= 0) { | 1245 if (msaa_sample_count >= 0) { |
1242 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, | 1246 command_line->AppendSwitchASCII(switches::kGpuRasterizationMSAASampleCount, |
1243 base::IntToString(msaa_sample_count)); | 1247 base::IntToString(msaa_sample_count)); |
1244 } | 1248 } |
1245 | 1249 |
1246 if (IsZeroCopyUploadEnabled()) | 1250 if (IsZeroCopyUploadEnabled()) |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2747 void RenderProcessHostImpl::GetAudioOutputControllers( | 2751 void RenderProcessHostImpl::GetAudioOutputControllers( |
2748 const GetAudioOutputControllersCallback& callback) const { | 2752 const GetAudioOutputControllersCallback& callback) const { |
2749 audio_renderer_host()->GetOutputControllers(callback); | 2753 audio_renderer_host()->GetOutputControllers(callback); |
2750 } | 2754 } |
2751 | 2755 |
2752 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2756 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2753 return bluetooth_dispatcher_host_.get(); | 2757 return bluetooth_dispatcher_host_.get(); |
2754 } | 2758 } |
2755 | 2759 |
2756 } // namespace content | 2760 } // namespace content |
OLD | NEW |