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 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 // --in-process-webgl. | 1090 // --in-process-webgl. |
1091 switches::kUseGL, | 1091 switches::kUseGL, |
1092 switches::kUseMobileUserAgent, | 1092 switches::kUseMobileUserAgent, |
1093 switches::kUserAgent, | 1093 switches::kUserAgent, |
1094 switches::kV, | 1094 switches::kV, |
1095 switches::kVideoThreads, | 1095 switches::kVideoThreads, |
1096 switches::kVModule, | 1096 switches::kVModule, |
1097 switches::kWebGLCommandBufferSizeKb, | 1097 switches::kWebGLCommandBufferSizeKb, |
1098 // Please keep these in alphabetical order. Compositor switches here should | 1098 // Please keep these in alphabetical order. Compositor switches here should |
1099 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. | 1099 // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. |
1100 cc::switches::kBackgroundColorInsteadOfCheckerboard, | |
1101 cc::switches::kCompositeToMailbox, | 1100 cc::switches::kCompositeToMailbox, |
1102 cc::switches::kDisableCompositedAntialiasing, | 1101 cc::switches::kDisableCompositedAntialiasing, |
1103 cc::switches::kDisableCompositorTouchHitTesting, | 1102 cc::switches::kDisableCompositorTouchHitTesting, |
1104 cc::switches::kDisableGPURasterization, | 1103 cc::switches::kDisableGPURasterization, |
1105 cc::switches::kDisableImplSidePainting, | 1104 cc::switches::kDisableImplSidePainting, |
1106 cc::switches::kDisableLCDText, | 1105 cc::switches::kDisableLCDText, |
1107 cc::switches::kDisableMapImage, | 1106 cc::switches::kDisableMapImage, |
1108 cc::switches::kDisableThreadedAnimation, | 1107 cc::switches::kDisableThreadedAnimation, |
1109 cc::switches::kEnableGpuBenchmarking, | 1108 cc::switches::kEnableGpuBenchmarking, |
1110 cc::switches::kEnableGPURasterization, | 1109 cc::switches::kEnableGPURasterization, |
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 | 2094 |
2096 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2095 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2097 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 2096 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
2098 DCHECK_GT(worker_ref_count_, 0); | 2097 DCHECK_GT(worker_ref_count_, 0); |
2099 --worker_ref_count_; | 2098 --worker_ref_count_; |
2100 if (worker_ref_count_ == 0) | 2099 if (worker_ref_count_ == 0) |
2101 Cleanup(); | 2100 Cleanup(); |
2102 } | 2101 } |
2103 | 2102 |
2104 } // namespace content | 2103 } // namespace content |
OLD | NEW |