| 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 if (IsGpuRasterizationEnabled()) | 1114 if (IsGpuRasterizationEnabled()) |
| 1115 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1115 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1116 | 1116 |
| 1117 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1117 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
| 1118 if (msaa_sample_count > 0) { | 1118 if (msaa_sample_count > 0) { |
| 1119 command_line->AppendSwitchASCII( | 1119 command_line->AppendSwitchASCII( |
| 1120 switches::kGpuRasterizationMSAASampleCount, | 1120 switches::kGpuRasterizationMSAASampleCount, |
| 1121 base::IntToString(msaa_sample_count)); | 1121 base::IntToString(msaa_sample_count)); |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); | 1124 DCHECK(!IsZeroCopyUploadEnabled() || !IsOneCopyUploadEnabled()); |
| 1125 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); | |
| 1126 if (IsZeroCopyUploadEnabled()) | 1125 if (IsZeroCopyUploadEnabled()) |
| 1127 command_line->AppendSwitch(switches::kEnableZeroCopy); | 1126 command_line->AppendSwitch(switches::kEnableZeroCopy); |
| 1128 if (!IsOneCopyUploadEnabled()) | 1127 if (!IsOneCopyUploadEnabled()) |
| 1129 command_line->AppendSwitch(switches::kDisableOneCopy); | 1128 command_line->AppendSwitch(switches::kDisableOneCopy); |
| 1130 | 1129 |
| 1131 if (IsForceGpuRasterizationEnabled()) | 1130 if (IsForceGpuRasterizationEnabled()) |
| 1132 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1131 command_line->AppendSwitch(switches::kForceGpuRasterization); |
| 1133 | 1132 |
| 1134 command_line->AppendSwitchASCII( | 1133 command_line->AppendSwitchASCII( |
| 1135 switches::kContentImageTextureTarget, | 1134 switches::kContentImageTextureTarget, |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2512 void RenderProcessHostImpl::GetAudioOutputControllers( | 2511 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2513 const GetAudioOutputControllersCallback& callback) const { | 2512 const GetAudioOutputControllersCallback& callback) const { |
| 2514 audio_renderer_host()->GetOutputControllers(callback); | 2513 audio_renderer_host()->GetOutputControllers(callback); |
| 2515 } | 2514 } |
| 2516 | 2515 |
| 2517 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2516 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2518 return bluetooth_dispatcher_host_.get(); | 2517 return bluetooth_dispatcher_host_.get(); |
| 2519 } | 2518 } |
| 2520 | 2519 |
| 2521 } // namespace content | 2520 } // namespace content |
| OLD | NEW |