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