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 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1139 switches::kContentImageTextureTarget, | 1139 switches::kContentImageTextureTarget, |
1140 base::UintToString( | 1140 base::UintToString( |
1141 // TODO(reveman): We currently assume that the compositor will use | 1141 // TODO(reveman): We currently assume that the compositor will use |
1142 // BGRA_8888 if it's able to, and RGBA_8888 otherwise. Since we don't | 1142 // BGRA_8888 if it's able to, and RGBA_8888 otherwise. Since we don't |
1143 // know what it will use we hardcode BGRA_8888 here for now. We should | 1143 // know what it will use we hardcode BGRA_8888 here for now. We should |
1144 // instead move decisions about GpuMemoryBuffer format to the browser | 1144 // instead move decisions about GpuMemoryBuffer format to the browser |
1145 // embedder so we know it here, and pass that decision to the | 1145 // embedder so we know it here, and pass that decision to the |
1146 // compositor for each usage. | 1146 // compositor for each usage. |
1147 // crbug.com/490362 | 1147 // crbug.com/490362 |
1148 BrowserGpuMemoryBufferManager::GetImageTextureTarget( | 1148 BrowserGpuMemoryBufferManager::GetImageTextureTarget( |
1149 #if defined(OS_ANDROID) | |
1150 gfx::GpuMemoryBuffer::RGBA_8888, | |
1151 #else | |
reveman
2015/07/23 07:48:39
Let's get this fixed properly instead. The problem
| |
1149 gfx::GpuMemoryBuffer::BGRA_8888, | 1152 gfx::GpuMemoryBuffer::BGRA_8888, |
1153 #endif | |
1150 // TODO(danakj): When one-copy supports partial update, change | 1154 // TODO(danakj): When one-copy supports partial update, change |
1151 // this usage to PERSISTENT_MAP for one-copy. | 1155 // this usage to PERSISTENT_MAP for one-copy. |
1152 gfx::GpuMemoryBuffer::MAP))); | 1156 gfx::GpuMemoryBuffer::MAP))); |
1153 | 1157 |
1154 command_line->AppendSwitchASCII( | 1158 command_line->AppendSwitchASCII( |
1155 switches::kVideoImageTextureTarget, | 1159 switches::kVideoImageTextureTarget, |
1156 base::UintToString(BrowserGpuMemoryBufferManager::GetImageTextureTarget( | 1160 base::UintToString(BrowserGpuMemoryBufferManager::GetImageTextureTarget( |
1157 gfx::GpuMemoryBuffer::R_8, gfx::GpuMemoryBuffer::MAP))); | 1161 gfx::GpuMemoryBuffer::R_8, gfx::GpuMemoryBuffer::MAP))); |
1158 | 1162 |
1159 // Appending disable-gpu-feature switches due to software rendering list. | 1163 // Appending disable-gpu-feature switches due to software rendering list. |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2510 void RenderProcessHostImpl::GetAudioOutputControllers( | 2514 void RenderProcessHostImpl::GetAudioOutputControllers( |
2511 const GetAudioOutputControllersCallback& callback) const { | 2515 const GetAudioOutputControllersCallback& callback) const { |
2512 audio_renderer_host()->GetOutputControllers(callback); | 2516 audio_renderer_host()->GetOutputControllers(callback); |
2513 } | 2517 } |
2514 | 2518 |
2515 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2519 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2516 return bluetooth_dispatcher_host_.get(); | 2520 return bluetooth_dispatcher_host_.get(); |
2517 } | 2521 } |
2518 | 2522 |
2519 } // namespace content | 2523 } // namespace content |
OLD | NEW |