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

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

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 months 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 | Annotate | Revision Log
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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 1100 cc::switches::kBackgroundColorInsteadOfCheckerboard,
1101 cc::switches::kCompositeToMailbox, 1101 cc::switches::kCompositeToMailbox,
1102 cc::switches::kDisableCompositedAntialiasing, 1102 cc::switches::kDisableCompositedAntialiasing,
1103 cc::switches::kDisableCompositorTouchHitTesting, 1103 cc::switches::kDisableCompositorTouchHitTesting,
1104 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,
1111 cc::switches::kEnableImplSidePainting, 1109 cc::switches::kEnableImplSidePainting,
1112 cc::switches::kEnableLCDText, 1110 cc::switches::kEnableLCDText,
1113 cc::switches::kEnableMapImage, 1111 cc::switches::kEnableMapImage,
1114 cc::switches::kEnablePinchVirtualViewport, 1112 cc::switches::kEnablePinchVirtualViewport,
1115 cc::switches::kEnableTopControlsPositionCalculation, 1113 cc::switches::kEnableTopControlsPositionCalculation,
1116 cc::switches::kMaxTilesForInterestArea, 1114 cc::switches::kMaxTilesForInterestArea,
1117 cc::switches::kMaxUnusedResourceMemoryUsagePercentage, 1115 cc::switches::kMaxUnusedResourceMemoryUsagePercentage,
1116 cc::switches::kRasterizationSite,
1118 cc::switches::kShowCompositedLayerBorders, 1117 cc::switches::kShowCompositedLayerBorders,
1119 cc::switches::kShowFPSCounter, 1118 cc::switches::kShowFPSCounter,
1120 cc::switches::kShowLayerAnimationBounds, 1119 cc::switches::kShowLayerAnimationBounds,
1121 cc::switches::kShowNonOccludingRects, 1120 cc::switches::kShowNonOccludingRects,
1122 cc::switches::kShowOccludingRects, 1121 cc::switches::kShowOccludingRects,
1123 cc::switches::kShowPropertyChangedRects, 1122 cc::switches::kShowPropertyChangedRects,
1124 cc::switches::kShowReplicaScreenSpaceRects, 1123 cc::switches::kShowReplicaScreenSpaceRects,
1125 cc::switches::kShowScreenSpaceRects, 1124 cc::switches::kShowScreenSpaceRects,
1126 cc::switches::kShowSurfaceDamageRects, 1125 cc::switches::kShowSurfaceDamageRects,
1127 cc::switches::kSlowDownRasterScaleFactor, 1126 cc::switches::kSlowDownRasterScaleFactor,
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698