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

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

Issue 1227163017: cc: one copy is default as well as final fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 5 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 if (IsGpuRasterizationEnabled()) 1118 if (IsGpuRasterizationEnabled())
1119 command_line->AppendSwitch(switches::kEnableGpuRasterization); 1119 command_line->AppendSwitch(switches::kEnableGpuRasterization);
1120 1120
1121 int msaa_sample_count = GpuRasterizationMSAASampleCount(); 1121 int msaa_sample_count = GpuRasterizationMSAASampleCount();
1122 if (msaa_sample_count > 0) { 1122 if (msaa_sample_count > 0) {
1123 command_line->AppendSwitchASCII( 1123 command_line->AppendSwitchASCII(
1124 switches::kGpuRasterizationMSAASampleCount, 1124 switches::kGpuRasterizationMSAASampleCount,
1125 base::IntToString(msaa_sample_count)); 1125 base::IntToString(msaa_sample_count));
1126 } 1126 }
1127 1127
1128 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled());
1129 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled());
1130 if (IsZeroCopyUploadEnabled()) 1128 if (IsZeroCopyUploadEnabled())
1131 command_line->AppendSwitch(switches::kEnableZeroCopy); 1129 command_line->AppendSwitch(switches::kEnableZeroCopy);
1132 if (!IsOneCopyUploadEnabled())
1133 command_line->AppendSwitch(switches::kDisableOneCopy);
1134 1130
1135 if (IsForceGpuRasterizationEnabled()) 1131 if (IsForceGpuRasterizationEnabled())
1136 command_line->AppendSwitch(switches::kForceGpuRasterization); 1132 command_line->AppendSwitch(switches::kForceGpuRasterization);
1137 1133
1138 command_line->AppendSwitchASCII( 1134 command_line->AppendSwitchASCII(
1139 switches::kContentImageTextureTarget, 1135 switches::kContentImageTextureTarget,
1140 base::UintToString( 1136 base::UintToString(
1141 // TODO(reveman): We currently assume that the compositor will use 1137 // 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 1138 // 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 1139 // know what it will use we hardcode BGRA_8888 here for now. We should
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2510 void RenderProcessHostImpl::GetAudioOutputControllers( 2506 void RenderProcessHostImpl::GetAudioOutputControllers(
2511 const GetAudioOutputControllersCallback& callback) const { 2507 const GetAudioOutputControllersCallback& callback) const {
2512 audio_renderer_host()->GetOutputControllers(callback); 2508 audio_renderer_host()->GetOutputControllers(callback);
2513 } 2509 }
2514 2510
2515 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2511 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2516 return bluetooth_dispatcher_host_.get(); 2512 return bluetooth_dispatcher_host_.get();
2517 } 2513 }
2518 2514
2519 } // namespace content 2515 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/public/common/content_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698