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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 cc::switches::kShowFPSCounter, | 1217 cc::switches::kShowFPSCounter, |
1218 cc::switches::kShowLayerAnimationBounds, | 1218 cc::switches::kShowLayerAnimationBounds, |
1219 cc::switches::kShowNonOccludingRects, | 1219 cc::switches::kShowNonOccludingRects, |
1220 cc::switches::kShowOccludingRects, | 1220 cc::switches::kShowOccludingRects, |
1221 cc::switches::kShowPropertyChangedRects, | 1221 cc::switches::kShowPropertyChangedRects, |
1222 cc::switches::kShowReplicaScreenSpaceRects, | 1222 cc::switches::kShowReplicaScreenSpaceRects, |
1223 cc::switches::kShowScreenSpaceRects, | 1223 cc::switches::kShowScreenSpaceRects, |
1224 cc::switches::kShowSurfaceDamageRects, | 1224 cc::switches::kShowSurfaceDamageRects, |
1225 cc::switches::kSlowDownRasterScaleFactor, | 1225 cc::switches::kSlowDownRasterScaleFactor, |
1226 cc::switches::kStrictLayerPropertyChangeChecking, | 1226 cc::switches::kStrictLayerPropertyChangeChecking, |
1227 cc::switches::kTopControlsHeight, | |
1228 cc::switches::kTopControlsHideThreshold, | 1227 cc::switches::kTopControlsHideThreshold, |
1229 cc::switches::kTopControlsShowThreshold, | 1228 cc::switches::kTopControlsShowThreshold, |
1230 #if defined(ENABLE_PLUGINS) | 1229 #if defined(ENABLE_PLUGINS) |
1231 switches::kEnablePepperTesting, | 1230 switches::kEnablePepperTesting, |
1232 switches::kEnablePluginPowerSaver, | 1231 switches::kEnablePluginPowerSaver, |
1233 #endif | 1232 #endif |
1234 #if defined(ENABLE_WEBRTC) | 1233 #if defined(ENABLE_WEBRTC) |
1235 switches::kDisableWebRtcHWDecoding, | 1234 switches::kDisableWebRtcHWDecoding, |
1236 switches::kDisableWebRtcHWEncoding, | 1235 switches::kDisableWebRtcHWEncoding, |
1237 switches::kEnableWebRtcHWVp8Encoding, | 1236 switches::kEnableWebRtcHWVp8Encoding, |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 | 2247 |
2249 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2248 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2250 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2249 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2251 DCHECK_GT(worker_ref_count_, 0); | 2250 DCHECK_GT(worker_ref_count_, 0); |
2252 --worker_ref_count_; | 2251 --worker_ref_count_; |
2253 if (worker_ref_count_ == 0) | 2252 if (worker_ref_count_ == 0) |
2254 Cleanup(); | 2253 Cleanup(); |
2255 } | 2254 } |
2256 | 2255 |
2257 } // namespace content | 2256 } // namespace content |
OLD | NEW |