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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 switches::kUseMobileUserAgent, | 1114 switches::kUseMobileUserAgent, |
1115 switches::kV, | 1115 switches::kV, |
1116 switches::kVideoThreads, | 1116 switches::kVideoThreads, |
1117 switches::kVModule, | 1117 switches::kVModule, |
1118 switches::kWebGLCommandBufferSizeKb, | 1118 switches::kWebGLCommandBufferSizeKb, |
1119 // Please keep these in alphabetical order. Compositor switches here should | 1119 // Please keep these in alphabetical order. Compositor switches here should |
1120 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1120 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1121 cc::switches::kCompositeToMailbox, | 1121 cc::switches::kCompositeToMailbox, |
1122 cc::switches::kDisableCompositedAntialiasing, | 1122 cc::switches::kDisableCompositedAntialiasing, |
1123 cc::switches::kDisableCompositorTouchHitTesting, | 1123 cc::switches::kDisableCompositorTouchHitTesting, |
| 1124 cc::switches::kDisableMainFrameBeforeActivation, |
| 1125 cc::switches::kDisableMainFrameBeforeDraw, |
1124 cc::switches::kDisableThreadedAnimation, | 1126 cc::switches::kDisableThreadedAnimation, |
1125 cc::switches::kEnableGpuBenchmarking, | 1127 cc::switches::kEnableGpuBenchmarking, |
1126 cc::switches::kEnablePinchVirtualViewport, | 1128 cc::switches::kEnablePinchVirtualViewport, |
| 1129 cc::switches::kEnableMainFrameBeforeActivation, |
1127 cc::switches::kEnableTopControlsPositionCalculation, | 1130 cc::switches::kEnableTopControlsPositionCalculation, |
1128 cc::switches::kMaxTilesForInterestArea, | 1131 cc::switches::kMaxTilesForInterestArea, |
1129 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1132 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
1130 cc::switches::kShowCompositedLayerBorders, | 1133 cc::switches::kShowCompositedLayerBorders, |
1131 cc::switches::kShowFPSCounter, | 1134 cc::switches::kShowFPSCounter, |
1132 cc::switches::kShowLayerAnimationBounds, | 1135 cc::switches::kShowLayerAnimationBounds, |
1133 cc::switches::kShowNonOccludingRects, | 1136 cc::switches::kShowNonOccludingRects, |
1134 cc::switches::kShowOccludingRects, | 1137 cc::switches::kShowOccludingRects, |
1135 cc::switches::kShowPropertyChangedRects, | 1138 cc::switches::kShowPropertyChangedRects, |
1136 cc::switches::kShowReplicaScreenSpaceRects, | 1139 cc::switches::kShowReplicaScreenSpaceRects, |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2108 | 2111 |
2109 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2112 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2110 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2113 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2111 DCHECK_GT(worker_ref_count_, 0); | 2114 DCHECK_GT(worker_ref_count_, 0); |
2112 --worker_ref_count_; | 2115 --worker_ref_count_; |
2113 if (worker_ref_count_ == 0) | 2116 if (worker_ref_count_ == 0) |
2114 Cleanup(); | 2117 Cleanup(); |
2115 } | 2118 } |
2116 | 2119 |
2117 } // namespace content | 2120 } // namespace content |
OLD | NEW |