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

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

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: tilemanagerconsistency Created 5 years, 7 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
OLDNEW
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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 command_line->AppendSwitch(switches::kForceGpuRasterization); 1134 command_line->AppendSwitch(switches::kForceGpuRasterization);
1135 1135
1136 // TODO(reveman): We currently assume that the compositor will use BGRA_8888 1136 // TODO(reveman): We currently assume that the compositor will use BGRA_8888
1137 // if it's able to, and RGBA_8888 otherwise. Since we don't know what it will 1137 // if it's able to, and RGBA_8888 otherwise. Since we don't know what it will
1138 // use we hardcode BGRA_8888 here for now. We should instead 1138 // use we hardcode BGRA_8888 here for now. We should instead
1139 // move decisions about GpuMemoryBuffer format to the browser embedder so we 1139 // move decisions about GpuMemoryBuffer format to the browser embedder so we
1140 // know it here, and pass that decision to the compositor for each usage. 1140 // know it here, and pass that decision to the compositor for each usage.
1141 // crbug.com/490362 1141 // crbug.com/490362
1142 gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888; 1142 gfx::GpuMemoryBuffer::Format format = gfx::GpuMemoryBuffer::BGRA_8888;
1143 1143
1144 // TODO(danakj): When one-copy uploads support partial update, change this
1145 // usage to PERSISTENT_MAP for one-copy.
1146 gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP; 1144 gfx::GpuMemoryBuffer::Usage usage = gfx::GpuMemoryBuffer::MAP;
1145 if (HavePersistentGpuMemoryBuffers()) {
1146 usage = gfx::GpuMemoryBuffer::PERSISTENT_MAP;
1147 command_line->AppendSwitch(switches::kUsePersistentGpuMemoryBuffers);
1148 }
1147 1149
1148 command_line->AppendSwitchASCII( 1150 command_line->AppendSwitchASCII(
1149 switches::kUseImageTextureTarget, 1151 switches::kUseImageTextureTarget,
1150 base::UintToString( 1152 base::UintToString(
1151 BrowserGpuChannelHostFactory::GetImageTextureTarget(format, usage))); 1153 BrowserGpuChannelHostFactory::GetImageTextureTarget(format, usage)));
1152 1154
1153 // Appending disable-gpu-feature switches due to software rendering list. 1155 // Appending disable-gpu-feature switches due to software rendering list.
1154 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance(); 1156 GpuDataManagerImpl* gpu_data_manager = GpuDataManagerImpl::GetInstance();
1155 DCHECK(gpu_data_manager); 1157 DCHECK(gpu_data_manager);
1156 gpu_data_manager->AppendRendererCommandLine(command_line); 1158 gpu_data_manager->AppendRendererCommandLine(command_line);
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 void RenderProcessHostImpl::GetAudioOutputControllers( 2473 void RenderProcessHostImpl::GetAudioOutputControllers(
2472 const GetAudioOutputControllersCallback& callback) const { 2474 const GetAudioOutputControllersCallback& callback) const {
2473 audio_renderer_host()->GetOutputControllers(callback); 2475 audio_renderer_host()->GetOutputControllers(callback);
2474 } 2476 }
2475 2477
2476 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2478 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2477 return bluetooth_dispatcher_host_.get(); 2479 return bluetooth_dispatcher_host_.get();
2478 } 2480 }
2479 2481
2480 } // namespace content 2482 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698