OLD | NEW |
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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 command_line->AppendSwitchASCII( | 1108 command_line->AppendSwitchASCII( |
1109 switches::kNumRasterThreads, | 1109 switches::kNumRasterThreads, |
1110 base::IntToString(NumberOfRendererRasterThreads())); | 1110 base::IntToString(NumberOfRendererRasterThreads())); |
1111 } else { | 1111 } else { |
1112 command_line->AppendSwitch(switches::kDisableImplSidePainting); | 1112 command_line->AppendSwitch(switches::kDisableImplSidePainting); |
1113 } | 1113 } |
1114 | 1114 |
1115 if (IsGpuRasterizationEnabled()) | 1115 if (IsGpuRasterizationEnabled()) |
1116 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1116 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
1117 | 1117 |
1118 if (IsThreadedGpuRasterizationEnabled()) | |
1119 command_line->AppendSwitch(switches::kEnableThreadedGpuRasterization); | |
1120 | |
1121 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1118 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
1122 if (msaa_sample_count > 0) { | 1119 if (msaa_sample_count > 0) { |
1123 command_line->AppendSwitchASCII( | 1120 command_line->AppendSwitchASCII( |
1124 switches::kGpuRasterizationMSAASampleCount, | 1121 switches::kGpuRasterizationMSAASampleCount, |
1125 base::IntToString(msaa_sample_count)); | 1122 base::IntToString(msaa_sample_count)); |
1126 } | 1123 } |
1127 | 1124 |
1128 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); | 1125 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); |
1129 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); | 1126 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); |
1130 if (IsZeroCopyUploadEnabled()) | 1127 if (IsZeroCopyUploadEnabled()) |
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 if (worker_ref_count_ == 0) | 2460 if (worker_ref_count_ == 0) |
2464 Cleanup(); | 2461 Cleanup(); |
2465 } | 2462 } |
2466 | 2463 |
2467 void RenderProcessHostImpl::GetAudioOutputControllers( | 2464 void RenderProcessHostImpl::GetAudioOutputControllers( |
2468 const GetAudioOutputControllersCallback& callback) const { | 2465 const GetAudioOutputControllersCallback& callback) const { |
2469 audio_renderer_host()->GetOutputControllers(callback); | 2466 audio_renderer_host()->GetOutputControllers(callback); |
2470 } | 2467 } |
2471 | 2468 |
2472 } // namespace content | 2469 } // namespace content |
OLD | NEW |