OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1138 command_line->AppendSwitch(switches::kForceGpuRasterization); |
1139 | 1139 |
1140 // TODO(reveman): We currently assume that the compositor will use BGRA_8888 | 1140 // TODO(reveman): We currently assume that the compositor will use BGRA_8888 |
1141 // if it's able to, and RGBA_8888 otherwise. Since we don't know what it will | 1141 // if it's able to, and RGBA_8888 otherwise. Since we don't know what it will |
1142 // use we hardcode BGRA_8888 here for now. We should instead | 1142 // use we hardcode BGRA_8888 here for now. We should instead |
1143 // move decisions about GpuMemoryBuffer format to the browser embedder so we | 1143 // move decisions about GpuMemoryBuffer format to the browser embedder so we |
1144 // know it here, and pass that decision to the compositor for each usage. | 1144 // know it here, and pass that decision to the compositor for each usage. |
1145 // crbug.com/490362 | 1145 // crbug.com/490362 |
1146 gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888; | 1146 gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888; |
1147 | 1147 |
1148 // TODO(danakj): When one-copy uploads support partial update, change this | 1148 // TODO(danakj): Use PERSISTENT_MAP for partial tile raster. |
1149 // usage to PERSISTENT_MAP for one-copy. | |
1150 gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP; | 1149 gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP; |
1151 | 1150 |
1152 command_line->AppendSwitchASCII( | 1151 command_line->AppendSwitchASCII( |
1153 switches::kUseImageTextureTarget, | 1152 switches::kUseImageTextureTarget, |
1154 base::UintToString( | 1153 base::UintToString( |
1155 BrowserGpuChannelHostFactory::GetImageTextureTarget(format, usage))); | 1154 BrowserGpuChannelHostFactory::GetImageTextureTarget(format, usage))); |
1156 | 1155 |
1157 // Appending disable-gpu-feature switches due to software rendering list. | 1156 // Appending disable-gpu-feature switches due to software rendering list. |
1158 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); | 1157 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); |
1159 DCHECK(gpu_data_manager); | 1158 DCHECK(gpu_data_manager); |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 void RenderProcessHostImpl::GetAudioOutputControllers( | 2476 void RenderProcessHostImpl::GetAudioOutputControllers( |
2478 const GetAudioOutputControllersCallback& callback) const { | 2477 const GetAudioOutputControllersCallback& callback) const { |
2479 audio_renderer_host()->GetOutputControllers(callback); | 2478 audio_renderer_host()->GetOutputControllers(callback); |
2480 } | 2479 } |
2481 | 2480 |
2482 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2481 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2483 return bluetooth_dispatcher_host_.get(); | 2482 return bluetooth_dispatcher_host_.get(); |
2484 } | 2483 } |
2485 | 2484 |
2486 } // namespace content | 2485 } // namespace content |
OLD | NEW |