| 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 command_line->AppendSwitchASCII( | 1074 command_line->AppendSwitchASCII( |
| 1075 switches::kNumRasterThreads, | 1075 switches::kNumRasterThreads, |
| 1076 base::IntToString(NumberOfRendererRasterThreads())); | 1076 base::IntToString(NumberOfRendererRasterThreads())); |
| 1077 } else { | 1077 } else { |
| 1078 command_line->AppendSwitch(switches::kDisableImplSidePainting); | 1078 command_line->AppendSwitch(switches::kDisableImplSidePainting); |
| 1079 } | 1079 } |
| 1080 | 1080 |
| 1081 if (IsGpuRasterizationEnabled()) | 1081 if (IsGpuRasterizationEnabled()) |
| 1082 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1082 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1083 | 1083 |
| 1084 if (IsThreadedGpuRasterizationEnabled()) |
| 1085 command_line->AppendSwitch(switches::kEnableThreadedGpuRasterization); |
| 1086 |
| 1084 int msaa_sample_count = GpuRasterizationMSAASampleCount(); | 1087 int msaa_sample_count = GpuRasterizationMSAASampleCount(); |
| 1085 if (msaa_sample_count > 0) { | 1088 if (msaa_sample_count > 0) { |
| 1086 command_line->AppendSwitchASCII( | 1089 command_line->AppendSwitchASCII( |
| 1087 switches::kGpuRasterizationMSAASampleCount, | 1090 switches::kGpuRasterizationMSAASampleCount, |
| 1088 base::IntToString(msaa_sample_count)); | 1091 base::IntToString(msaa_sample_count)); |
| 1089 } | 1092 } |
| 1090 | 1093 |
| 1091 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); | 1094 DCHECK_IMPLIES(IsZeroCopyUploadEnabled(), !IsOneCopyUploadEnabled()); |
| 1092 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); | 1095 DCHECK_IMPLIES(IsOneCopyUploadEnabled(), !IsZeroCopyUploadEnabled()); |
| 1093 if (IsZeroCopyUploadEnabled()) | 1096 if (IsZeroCopyUploadEnabled()) |
| (...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2388 | 2391 |
| 2389 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2392 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2390 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2393 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2391 DCHECK_GT(worker_ref_count_, 0); | 2394 DCHECK_GT(worker_ref_count_, 0); |
| 2392 --worker_ref_count_; | 2395 --worker_ref_count_; |
| 2393 if (worker_ref_count_ == 0) | 2396 if (worker_ref_count_ == 0) |
| 2394 Cleanup(); | 2397 Cleanup(); |
| 2395 } | 2398 } |
| 2396 | 2399 |
| 2397 } // namespace content | 2400 } // namespace content |
| OLD | NEW |