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

Side by Side Diff: cc/base/switches.cc

Issue 12502016: cc: Add command line switch to control resource usage for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « cc/base/switches.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "cc/base/switches.h" 5 #include "cc/base/switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace cc { 9 namespace cc {
10 namespace switches { 10 namespace switches {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // The scale factor for low resolution tile contents. 69 // The scale factor for low resolution tile contents.
70 const char kLowResolutionContentsScaleFactor[] = 70 const char kLowResolutionContentsScaleFactor[] =
71 "low-resolution-contents-scale-factor"; 71 "low-resolution-contents-scale-factor";
72 72
73 // Max distance from visible for prepaint tiles. 73 // Max distance from visible for prepaint tiles.
74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance"; 74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance";
75 75
76 // Max tiles allowed for each tilings interest area. 76 // Max tiles allowed for each tilings interest area.
77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; 77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area";
78 78
79 // The amount of unused resource memory compositor is allowed to keep around.
80 const char kMaxUnusedResourceMemoryUsagePercentage[] =
81 "max-unused-resource-memory-usage-percentage";
82
79 // Causes the compositor to render to textures which are then sent to the parent 83 // Causes the compositor to render to textures which are then sent to the parent
80 // through the texture mailbox mechanism. 84 // through the texture mailbox mechanism.
81 // Requires --enable-compositor-frame-message. 85 // Requires --enable-compositor-frame-message.
82 const char kCompositeToMailbox[] = "composite-to-mailbox"; 86 const char kCompositeToMailbox[] = "composite-to-mailbox";
83 87
84 const char kEnablePartialSwap[] = "enable-partial-swap"; 88 const char kEnablePartialSwap[] = "enable-partial-swap";
85 const char kUIEnablePartialSwap[] = "ui-enable-partial-swap"; 89 const char kUIEnablePartialSwap[] = "ui-enable-partial-swap";
86 90
87 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; 91 const char kEnablePerTilePainting[] = "enable-per-tile-painting";
88 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; 92 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 145
142 #if defined(OS_ANDROID) 146 #if defined(OS_ANDROID)
143 return true; 147 return true;
144 #else 148 #else
145 return false; 149 return false;
146 #endif 150 #endif
147 } 151 }
148 152
149 } // namespace switches 153 } // namespace switches
150 } // namespace cc 154 } // namespace cc
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698