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 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 command_line->AppendSwitch(switches::kEnablePartialRaster); | 1197 command_line->AppendSwitch(switches::kEnablePartialRaster); |
1198 | 1198 |
1199 if (IsForceGpuRasterizationEnabled()) | 1199 if (IsForceGpuRasterizationEnabled()) |
1200 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1200 command_line->AppendSwitch(switches::kForceGpuRasterization); |
1201 | 1201 |
1202 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { | 1202 if (IsGpuMemoryBufferCompositorResourcesEnabled()) { |
1203 command_line->AppendSwitch( | 1203 command_line->AppendSwitch( |
1204 switches::kEnableGpuMemoryBufferCompositorResources); | 1204 switches::kEnableGpuMemoryBufferCompositorResources); |
1205 } | 1205 } |
1206 | 1206 |
| 1207 if (IsBlinkSynchronizedPaintingEnabled()) { |
| 1208 command_line->AppendSwitch( |
| 1209 switches::kEnableBlinkSynchronizedPainting); |
| 1210 } |
| 1211 |
1207 // Persistent buffers may come at a performance hit (not all platform specific | 1212 // Persistent buffers may come at a performance hit (not all platform specific |
1208 // buffers support it), so only enable them if partial raster is enabled and | 1213 // buffers support it), so only enable them if partial raster is enabled and |
1209 // we are actually going to use them. | 1214 // we are actually going to use them. |
1210 gfx::BufferUsage buffer_usage = | 1215 gfx::BufferUsage buffer_usage = |
1211 IsPartialRasterEnabled() | 1216 IsPartialRasterEnabled() |
1212 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT | 1217 ? gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT |
1213 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE; | 1218 : gfx::BufferUsage::GPU_READ_CPU_READ_WRITE; |
1214 std::vector<unsigned> image_targets( | 1219 std::vector<unsigned> image_targets( |
1215 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D); | 1220 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, GL_TEXTURE_2D); |
1216 for (size_t format = 0; | 1221 for (size_t format = 0; |
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 void RenderProcessHostImpl::GetAudioOutputControllers( | 2642 void RenderProcessHostImpl::GetAudioOutputControllers( |
2638 const GetAudioOutputControllersCallback& callback) const { | 2643 const GetAudioOutputControllersCallback& callback) const { |
2639 audio_renderer_host()->GetOutputControllers(callback); | 2644 audio_renderer_host()->GetOutputControllers(callback); |
2640 } | 2645 } |
2641 | 2646 |
2642 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2647 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2643 return bluetooth_dispatcher_host_.get(); | 2648 return bluetooth_dispatcher_host_.get(); |
2644 } | 2649 } |
2645 | 2650 |
2646 } // namespace content | 2651 } // namespace content |
OLD | NEW |