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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 } | 1189 } |
1190 | 1190 |
1191 if (IsZeroCopyUploadEnabled()) | 1191 if (IsZeroCopyUploadEnabled()) |
1192 command_line->AppendSwitch(switches::kEnableZeroCopy); | 1192 command_line->AppendSwitch(switches::kEnableZeroCopy); |
1193 if (IsPartialRasterEnabled()) | 1193 if (IsPartialRasterEnabled()) |
1194 command_line->AppendSwitch(switches::kEnablePartialRaster); | 1194 command_line->AppendSwitch(switches::kEnablePartialRaster); |
1195 | 1195 |
1196 if (IsForceGpuRasterizationEnabled()) | 1196 if (IsForceGpuRasterizationEnabled()) |
1197 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1197 command_line->AppendSwitch(switches::kForceGpuRasterization); |
1198 | 1198 |
| 1199 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { |
| 1200 command_line->AppendSwitch( |
| 1201 switches::kEnableGpuMemoryBufferCompositorResources); |
| 1202 } |
| 1203 |
1199 // Persistent buffers may come at a performance hit (not all platform specific | 1204 // Persistent buffers may come at a performance hit (not all platform specific |
1200 // buffers support it), so only enable them if partial raster is enabled and | 1205 // buffers support it), so only enable them if partial raster is enabled and |
1201 // we are actually going to use them. | 1206 // we are actually going to use them. |
1202 gfx::BufferUsage buffer_usage = | 1207 gfx::BufferUsage buffer_usage = |
1203 IsPartialRasterEnabled() | 1208 IsPartialRasterEnabled() |
1204 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT | 1209 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT |
1205 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE; | 1210 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE; |
1206 std::vector<unsigned> image_targets( | 1211 std::vector<unsigned> image_targets( |
1207 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D); | 1212 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D); |
1208 for (size_t format = 0; | 1213 for (size_t format = 0; |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 void RenderProcessHostImpl::GetAudioOutputControllers( | 2629 void RenderProcessHostImpl::GetAudioOutputControllers( |
2625 const GetAudioOutputControllersCallback& callback) const { | 2630 const GetAudioOutputControllersCallback& callback) const { |
2626 audio_renderer_host()->GetOutputControllers(callback); | 2631 audio_renderer_host()->GetOutputControllers(callback); |
2627 } | 2632 } |
2628 | 2633 |
2629 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2634 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2630 return bluetooth_dispatcher_host_.get(); | 2635 return bluetooth_dispatcher_host_.get(); |
2631 } | 2636 } |
2632 | 2637 |
2633 } // namespace content | 2638 } // namespace content |
OLD | NEW |