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 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 cc::switches::kShowFPSCounter, | 1238 cc::switches::kShowFPSCounter, |
1239 cc::switches::kShowLayerAnimationBounds, | 1239 cc::switches::kShowLayerAnimationBounds, |
1240 cc::switches::kShowNonOccludingRects, | 1240 cc::switches::kShowNonOccludingRects, |
1241 cc::switches::kShowOccludingRects, | 1241 cc::switches::kShowOccludingRects, |
1242 cc::switches::kShowPropertyChangedRects, | 1242 cc::switches::kShowPropertyChangedRects, |
1243 cc::switches::kShowReplicaScreenSpaceRects, | 1243 cc::switches::kShowReplicaScreenSpaceRects, |
1244 cc::switches::kShowScreenSpaceRects, | 1244 cc::switches::kShowScreenSpaceRects, |
1245 cc::switches::kShowSurfaceDamageRects, | 1245 cc::switches::kShowSurfaceDamageRects, |
1246 cc::switches::kSlowDownRasterScaleFactor, | 1246 cc::switches::kSlowDownRasterScaleFactor, |
1247 cc::switches::kStrictLayerPropertyChangeChecking, | 1247 cc::switches::kStrictLayerPropertyChangeChecking, |
1248 cc::switches::kTopControlsHeight, | |
1249 cc::switches::kTopControlsHideThreshold, | 1248 cc::switches::kTopControlsHideThreshold, |
1250 cc::switches::kTopControlsShowThreshold, | 1249 cc::switches::kTopControlsShowThreshold, |
1251 #if defined(ENABLE_PLUGINS) | 1250 #if defined(ENABLE_PLUGINS) |
1252 switches::kEnablePepperTesting, | 1251 switches::kEnablePepperTesting, |
1253 switches::kEnablePluginPowerSaver, | 1252 switches::kEnablePluginPowerSaver, |
1254 #endif | 1253 #endif |
1255 #if defined(ENABLE_WEBRTC) | 1254 #if defined(ENABLE_WEBRTC) |
1256 switches::kDisableWebRtcHWDecoding, | 1255 switches::kDisableWebRtcHWDecoding, |
1257 switches::kDisableWebRtcHWEncoding, | 1256 switches::kDisableWebRtcHWEncoding, |
1258 switches::kEnableWebRtcHWVp8Encoding, | 1257 switches::kEnableWebRtcHWVp8Encoding, |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 | 2269 |
2271 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2270 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2272 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2271 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2273 DCHECK_GT(worker_ref_count_, 0); | 2272 DCHECK_GT(worker_ref_count_, 0); |
2274 --worker_ref_count_; | 2273 --worker_ref_count_; |
2275 if (worker_ref_count_ == 0) | 2274 if (worker_ref_count_ == 0) |
2276 Cleanup(); | 2275 Cleanup(); |
2277 } | 2276 } |
2278 | 2277 |
2279 } // namespace content | 2278 } // namespace content |
OLD | NEW |