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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 if (IsGpuRasterizationEnabled()) | 1137 if (IsGpuRasterizationEnabled()) |
1138 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1138 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
1139 | 1139 |
1140 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1140 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
1141 if (msaa_sample_count >= 0) { | 1141 if (msaa_sample_count >= 0) { |
1142 command_line->AppendSwitchASCII( | 1142 command_line->AppendSwitchASCII( |
1143 switches::kGpuRasterizationMSAASampleCount, | 1143 switches::kGpuRasterizationMSAASampleCount, |
1144 base::IntToString(msaa_sample_count)); | 1144 base::IntToString(msaa_sample_count)); |
1145 } | 1145 } |
1146 | 1146 |
1147 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); | |
1148 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); | |
1149 if (IsZeroCopyUploadEnabled()) | 1147 if (IsZeroCopyUploadEnabled()) |
1150 command_line->AppendSwitch(switches::kEnableZeroCopy); | 1148 command_line->AppendSwitch(switches::kEnableZeroCopy); |
1151 if (!IsOneCopyUploadEnabled()) | |
1152 command_line->AppendSwitch(switches::kDisableOneCopy); | |
1153 if (IsPersistentGpuMemoryBufferEnabled()) | 1149 if (IsPersistentGpuMemoryBufferEnabled()) |
1154 command_line->AppendSwitch(switches::kEnablePersistentGpuMemoryBuffer); | 1150 command_line->AppendSwitch(switches::kEnablePersistentGpuMemoryBuffer); |
1155 | 1151 |
1156 if (IsForceGpuRasterizationEnabled()) | 1152 if (IsForceGpuRasterizationEnabled()) |
1157 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1153 command_line->AppendSwitch(switches::kForceGpuRasterization); |
1158 | 1154 |
1159 gfx::BufferUsage buffer_usage = IsPersistentGpuMemoryBufferEnabled() | 1155 gfx::BufferUsage buffer_usage = IsPersistentGpuMemoryBufferEnabled() |
1160 ? gfx::BufferUsage::PERSISTENT_MAP | 1156 ? gfx::BufferUsage::PERSISTENT_MAP |
1161 : gfx::BufferUsage::MAP; | 1157 : gfx::BufferUsage::MAP; |
1162 std::vector<unsigned> image_targets( | 1158 std::vector<unsigned> image_targets( |
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2532 void RenderProcessHostImpl::GetAudioOutputControllers( | 2528 void RenderProcessHostImpl::GetAudioOutputControllers( |
2533 const GetAudioOutputControllersCallback& callback) const { | 2529 const GetAudioOutputControllersCallback& callback) const { |
2534 audio_renderer_host()->GetOutputControllers(callback); | 2530 audio_renderer_host()->GetOutputControllers(callback); |
2535 } | 2531 } |
2536 | 2532 |
2537 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2533 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2538 return bluetooth_dispatcher_host_.get(); | 2534 return bluetooth_dispatcher_host_.get(); |
2539 } | 2535 } |
2540 | 2536 |
2541 } // namespace content | 2537 } // namespace content |
OLD | NEW |