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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 if (IsDelegatedRendererEnabled()) | 1070 if (IsDelegatedRendererEnabled()) |
1071 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); | 1071 command_line->AppendSwitch(switches::kEnableDelegatedRenderer); |
1072 | 1072 |
1073 if (IsImplSidePaintingEnabled()) { | 1073 if (IsImplSidePaintingEnabled()) { |
1074 command_line->AppendSwitch(switches::kEnableImplSidePainting); | 1074 command_line->AppendSwitch(switches::kEnableImplSidePainting); |
1075 command_line->AppendSwitchASCII( | 1075 command_line->AppendSwitchASCII( |
1076 switches::kNumRasterThreads, | 1076 switches::kNumRasterThreads, |
1077 base::IntToString(NumberOfRendererRasterThreads())); | 1077 base::IntToString(NumberOfRendererRasterThreads())); |
1078 } | 1078 } |
1079 | 1079 |
1080 if (IsGpuRasterizationEnabled()) | 1080 if (IsGpuRasterizationEnabled()) { |
1081 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1081 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1082 command_line->AppendSwitchASCII( |
| 1083 switches::kGpuRasterizationMSAASampleCount, |
| 1084 base::IntToString(GpuRasterizationMSAASampleCount())); |
| 1085 } |
1082 | 1086 |
1083 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); | 1087 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); |
1084 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); | 1088 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); |
1085 if (IsZeroCopyUploadEnabled()) | 1089 if (IsZeroCopyUploadEnabled()) |
1086 command_line->AppendSwitch(switches::kEnableZeroCopy); | 1090 command_line->AppendSwitch(switches::kEnableZeroCopy); |
1087 if (!IsOneCopyUploadEnabled()) | 1091 if (!IsOneCopyUploadEnabled()) |
1088 command_line->AppendSwitch(switches::kDisableOneCopy); | 1092 command_line->AppendSwitch(switches::kDisableOneCopy); |
1089 | 1093 |
1090 if (IsForceGpuRasterizationEnabled()) | 1094 if (IsForceGpuRasterizationEnabled()) |
1091 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1095 command_line->AppendSwitch(switches::kForceGpuRasterization); |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 | 2363 |
2360 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2364 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2365 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2362 DCHECK_GT(worker_ref_count_, 0); | 2366 DCHECK_GT(worker_ref_count_, 0); |
2363 --worker_ref_count_; | 2367 --worker_ref_count_; |
2364 if (worker_ref_count_ == 0) | 2368 if (worker_ref_count_ == 0) |
2365 Cleanup(); | 2369 Cleanup(); |
2366 } | 2370 } |
2367 | 2371 |
2368 } // namespace content | 2372 } // namespace content |
OLD | NEW |