Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1251693003: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc: Fix the format of GpuMemoryBuffer for SurfaceTexture Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698