Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 796543002: Plugin Power Saver: Implement option in Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 cc::switches::kShowPropertyChangedRects, 1264 cc::switches::kShowPropertyChangedRects,
1265 cc::switches::kShowReplicaScreenSpaceRects, 1265 cc::switches::kShowReplicaScreenSpaceRects,
1266 cc::switches::kShowScreenSpaceRects, 1266 cc::switches::kShowScreenSpaceRects,
1267 cc::switches::kShowSurfaceDamageRects, 1267 cc::switches::kShowSurfaceDamageRects,
1268 cc::switches::kSlowDownRasterScaleFactor, 1268 cc::switches::kSlowDownRasterScaleFactor,
1269 cc::switches::kStrictLayerPropertyChangeChecking, 1269 cc::switches::kStrictLayerPropertyChangeChecking,
1270 cc::switches::kTopControlsHideThreshold, 1270 cc::switches::kTopControlsHideThreshold,
1271 cc::switches::kTopControlsShowThreshold, 1271 cc::switches::kTopControlsShowThreshold,
1272 #if defined(ENABLE_PLUGINS) 1272 #if defined(ENABLE_PLUGINS)
1273 switches::kEnablePepperTesting, 1273 switches::kEnablePepperTesting,
1274 switches::kEnablePluginPowerSaver,
1275 #endif 1274 #endif
1276 #if defined(ENABLE_WEBRTC) 1275 #if defined(ENABLE_WEBRTC)
1277 switches::kDisableWebRtcHWDecoding, 1276 switches::kDisableWebRtcHWDecoding,
1278 switches::kDisableWebRtcHWEncoding, 1277 switches::kDisableWebRtcHWEncoding,
1279 switches::kEnableWebRtcHWVp8Encoding, 1278 switches::kEnableWebRtcHWVp8Encoding,
1280 switches::kEnableWebRtcHWH264Encoding, 1279 switches::kEnableWebRtcHWH264Encoding,
1281 switches::kWebRtcMaxCaptureFramerate, 1280 switches::kWebRtcMaxCaptureFramerate,
1282 #endif 1281 #endif
1283 switches::kLowEndDeviceMode, 1282 switches::kLowEndDeviceMode,
1284 #if defined(OS_ANDROID) 1283 #if defined(OS_ANDROID)
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 2312
2314 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2313 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2315 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2314 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2316 DCHECK_GT(worker_ref_count_, 0); 2315 DCHECK_GT(worker_ref_count_, 0);
2317 --worker_ref_count_; 2316 --worker_ref_count_;
2318 if (worker_ref_count_ == 0) 2317 if (worker_ref_count_ == 0)
2319 Cleanup(); 2318 Cleanup();
2320 } 2319 }
2321 2320
2322 } // namespace content 2321 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698