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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1118 switches::kUseMobileUserAgent, | 1118 switches::kUseMobileUserAgent, |
1119 switches::kV, | 1119 switches::kV, |
1120 switches::kVideoThreads, | 1120 switches::kVideoThreads, |
1121 switches::kVModule, | 1121 switches::kVModule, |
1122 switches::kWebGLCommandBufferSizeKb, | 1122 switches::kWebGLCommandBufferSizeKb, |
1123 // Please keep these in alphabetical order. Compositor switches here should | 1123 // Please keep these in alphabetical order. Compositor switches here should |
1124 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1124 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1125 cc::switches::kCompositeToMailbox, | 1125 cc::switches::kCompositeToMailbox, |
1126 cc::switches::kDisableCompositedAntialiasing, | 1126 cc::switches::kDisableCompositedAntialiasing, |
1127 cc::switches::kDisableCompositorTouchHitTesting, | 1127 cc::switches::kDisableCompositorTouchHitTesting, |
1128 cc::switches::kDisableLowResTiling, | |
1128 cc::switches::kDisableThreadedAnimation, | 1129 cc::switches::kDisableThreadedAnimation, |
1129 cc::switches::kEnableGpuBenchmarking, | 1130 cc::switches::kEnableGpuBenchmarking, |
1131 cc::switches::kEnableLowResTiling, | |
piman
2014/03/13 00:52:00
Can you also add those to chrome/browser/chromeos/
| |
1130 cc::switches::kEnablePinchVirtualViewport, | 1132 cc::switches::kEnablePinchVirtualViewport, |
1131 cc::switches::kEnableTopControlsPositionCalculation, | 1133 cc::switches::kEnableTopControlsPositionCalculation, |
1132 cc::switches::kMaxTilesForInterestArea, | 1134 cc::switches::kMaxTilesForInterestArea, |
1133 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, | 1135 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, |
1134 cc::switches::kShowCompositedLayerBorders, | 1136 cc::switches::kShowCompositedLayerBorders, |
1135 cc::switches::kShowFPSCounter, | 1137 cc::switches::kShowFPSCounter, |
1136 cc::switches::kShowLayerAnimationBounds, | 1138 cc::switches::kShowLayerAnimationBounds, |
1137 cc::switches::kShowNonOccludingRects, | 1139 cc::switches::kShowNonOccludingRects, |
1138 cc::switches::kShowOccludingRects, | 1140 cc::switches::kShowOccludingRects, |
1139 cc::switches::kShowPropertyChangedRects, | 1141 cc::switches::kShowPropertyChangedRects, |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2112 | 2114 |
2113 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2115 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2116 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2115 DCHECK_GT(worker_ref_count_, 0); | 2117 DCHECK_GT(worker_ref_count_, 0); |
2116 --worker_ref_count_; | 2118 --worker_ref_count_; |
2117 if (worker_ref_count_ == 0) | 2119 if (worker_ref_count_ == 0) |
2118 Cleanup(); | 2120 Cleanup(); |
2119 } | 2121 } |
2120 | 2122 |
2121 } // namespace content | 2123 } // namespace content |
OLD | NEW |