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); | |
1075 command_line->AppendSwitchASCII( | 1074 command_line->AppendSwitchASCII( |
1076 switches::kNumRasterThreads, | 1075 switches::kNumRasterThreads, |
1077 base::IntToString(NumberOfRendererRasterThreads())); | 1076 base::IntToString(NumberOfRendererRasterThreads())); |
1077 } else { | |
1078 command_line->AppendSwitch(switches::kDisableImplSidePainting); | |
no sievers
2015/01/09 20:22:32
So this was broken before in that it didn't propag
danakj
2015/01/09 20:23:14
No the renderer was looking for enable before. Now
danakj
2015/01/09 21:32:52
Tho it appears that at least in the RenderThreadIm
| |
1078 } | 1079 } |
1079 | 1080 |
1080 if (IsGpuRasterizationEnabled()) | 1081 if (IsGpuRasterizationEnabled()) |
1081 command_line->AppendSwitch(switches::kEnableGpuRasterization); | 1082 command_line->AppendSwitch(switches::kEnableGpuRasterization); |
1082 | 1083 |
1083 if (IsForceGpuRasterizationEnabled()) | 1084 if (IsForceGpuRasterizationEnabled()) |
1084 command_line->AppendSwitch(switches::kForceGpuRasterization); | 1085 command_line->AppendSwitch(switches::kForceGpuRasterization); |
1085 | 1086 |
1086 if (BrowserGpuChannelHostFactory::IsGpuMemoryBufferFactoryUsageEnabled( | 1087 if (BrowserGpuChannelHostFactory::IsGpuMemoryBufferFactoryUsageEnabled( |
1087 gfx::GpuMemoryBuffer::MAP)) { | 1088 gfx::GpuMemoryBuffer::MAP)) { |
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2358 | 2359 |
2359 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2360 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2360 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2361 DCHECK_GT(worker_ref_count_, 0); | 2362 DCHECK_GT(worker_ref_count_, 0); |
2362 --worker_ref_count_; | 2363 --worker_ref_count_; |
2363 if (worker_ref_count_ == 0) | 2364 if (worker_ref_count_ == 0) |
2364 Cleanup(); | 2365 Cleanup(); |
2365 } | 2366 } |
2366 | 2367 |
2367 } // namespace content | 2368 } // namespace content |
OLD | NEW |