| 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { | 1066 static void AppendCompositorCommandLineFlags(base::CommandLine* command_line) { |
| 1067 if (IsPinchVirtualViewportEnabled()) | 1067 if (IsPinchVirtualViewportEnabled()) |
| 1068 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); | 1068 command_line->AppendSwitch(cc::switches::kEnablePinchVirtualViewport); |
| 1069 | 1069 |
| 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->AppendSwitchASCII( | 1075 command_line->AppendSwitchASCII( |
| 1075 switches::kNumRasterThreads, | 1076 switches::kNumRasterThreads, |
| 1076 base::IntToString(NumberOfRendererRasterThreads())); | 1077 base::IntToString(NumberOfRendererRasterThreads())); |
| 1077 } else { | |
| 1078 command_line->AppendSwitch(switches::kDisableImplSidePainting); | |
| 1079 } | 1078 } |
| 1080 | 1079 |
| 1081 if (IsGpuRasterizationEnabled()) | 1080 if (IsGpuRasterizationEnabled()) |
| 1082 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1081 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
| 1083 | 1082 |
| 1084 if (IsForceGpuRasterizationEnabled()) | 1083 if (IsForceGpuRasterizationEnabled()) |
| 1085 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1084 command_line->AppendSwitch(switches::kForceGpuRasterization); |
| 1086 | 1085 |
| 1087 if (BrowserGpuChannelHostFactory::IsGpuMemoryBufferFactoryUsageEnabled( | 1086 if (BrowserGpuChannelHostFactory::IsGpuMemoryBufferFactoryUsageEnabled( |
| 1088 gfx::GpuMemoryBuffer::MAP)) { | 1087 gfx::GpuMemoryBuffer::MAP)) { |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 | 2355 |
| 2357 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2356 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2358 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2357 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2359 DCHECK_GT(worker_ref_count_, 0); | 2358 DCHECK_GT(worker_ref_count_, 0); |
| 2360 --worker_ref_count_; | 2359 --worker_ref_count_; |
| 2361 if (worker_ref_count_ == 0) | 2360 if (worker_ref_count_ == 0) |
| 2362 Cleanup(); | 2361 Cleanup(); |
| 2363 } | 2362 } |
| 2364 | 2363 |
| 2365 } // namespace content | 2364 } // namespace content |
| OLD | NEW |