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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 if (IsGpuRasterizationEnabled()) 1137 if (IsGpuRasterizationEnabled())
1138 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1138 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1139 1139
1140 int msaa_sample_count = GpuRasterizationMSAASampleCount(); 1140 int msaa_sample_count = GpuRasterizationMSAASampleCount();
1141 if (msaa_sample_count >= 0) { 1141 if (msaa_sample_count >= 0) {
1142 command_line->AppendSwitchASCII( 1142 command_line->AppendSwitchASCII(
1143 switches::kGpuRasterizationMSAASampleCount, 1143 switches::kGpuRasterizationMSAASampleCount,
1144 base::IntToString(msaa_sample_count)); 1144 base::IntToString(msaa_sample_count));
1145 } 1145 }
1146 1146
1147 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
1148 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());
1149 if (IsZeroCopyUploadEnabled()) 1147 if (IsZeroCopyUploadEnabled())
1150 command_line->AppendSwitch(switches::kEnableZeroCopy); 1148 command_line->AppendSwitch(switches::kEnableZeroCopy);
1151 if (!IsOneCopyUploadEnabled())
1152 command_line->AppendSwitch(switches::kDisableOneCopy);
1153 if (IsPersistentGpuMemoryBufferEnabled()) 1149 if (IsPersistentGpuMemoryBufferEnabled())
1154 command_line->AppendSwitch(switches::kEnablePersistentGpuMemoryBuffer); 1150 command_line->AppendSwitch(switches::kEnablePersistentGpuMemoryBuffer);
1155 1151
1156 if (IsForceGpuRasterizationEnabled()) 1152 if (IsForceGpuRasterizationEnabled())
1157 command_line->AppendSwitch(switches::kForceGpuRasterization); 1153 command_line->AppendSwitch(switches::kForceGpuRasterization);
1158 1154
1159 gfx::BufferUsage buffer_usage = IsPersistentGpuMemoryBufferEnabled() 1155 gfx::BufferUsage buffer_usage = IsPersistentGpuMemoryBufferEnabled()
1160 ? gfx::BufferUsage::PERSISTENT_MAP 1156 ? gfx::BufferUsage::PERSISTENT_MAP
1161 : gfx::BufferUsage::MAP; 1157 : gfx::BufferUsage::MAP;
1162 std::vector<unsigned> image_targets( 1158 std::vector<unsigned> image_targets(
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 void RenderProcessHostImpl::GetAudioOutputControllers( 2528 void RenderProcessHostImpl::GetAudioOutputControllers(
2533 const GetAudioOutputControllersCallback& callback) const { 2529 const GetAudioOutputControllersCallback& callback) const {
2534 audio_renderer_host()->GetOutputControllers(callback); 2530 audio_renderer_host()->GetOutputControllers(callback);
2535 } 2531 }
2536 2532
2537 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2533 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2538 return bluetooth_dispatcher_host_.get(); 2534 return bluetooth_dispatcher_host_.get();
2539 } 2535 }
2540 2536
2541 } // namespace content 2537 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698