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

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

Issue 1293873005: Expire resources in ResourcePool after non-use (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@re-use
Patch Set: Fix unit test Created 5 years, 4 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
« 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 17 matching lines...) Expand all
28 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold"; 28 const char kTopControlsHideThreshold[] = "top-controls-hide-threshold";
29 29
30 // Percentage of the top controls need to be shown before they will auto show. 30 // Percentage of the top controls need to be shown before they will auto show.
31 const char kTopControlsShowThreshold[] = "top-controls-show-threshold"; 31 const char kTopControlsShowThreshold[] = "top-controls-show-threshold";
32 32
33 // Re-rasters everything multiple times to simulate a much slower machine. 33 // Re-rasters everything multiple times to simulate a much slower machine.
34 // Give a scale factor to cause raster to take that many times longer to 34 // Give a scale factor to cause raster to take that many times longer to
35 // complete, such as --slow-down-raster-scale-factor=25. 35 // complete, such as --slow-down-raster-scale-factor=25.
36 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor"; 36 const char kSlowDownRasterScaleFactor[] = "slow-down-raster-scale-factor";
37 37
38 // The amount of unused resource memory compositor is allowed to keep around.
39 const char kMaxUnusedResourceMemoryUsagePercentage[] =
40 "max-unused-resource-memory-usage-percentage";
41
42 // Causes the compositor to render to textures which are then sent to the parent 38 // Causes the compositor to render to textures which are then sent to the parent
43 // through the texture mailbox mechanism. 39 // through the texture mailbox mechanism.
44 // Requires --enable-compositor-frame-message. 40 // Requires --enable-compositor-frame-message.
45 const char kCompositeToMailbox[] = "composite-to-mailbox"; 41 const char kCompositeToMailbox[] = "composite-to-mailbox";
46 42
47 // Check that property changes during paint do not occur. 43 // Check that property changes during paint do not occur.
48 const char kStrictLayerPropertyChangeChecking[] = 44 const char kStrictLayerPropertyChangeChecking[] =
49 "strict-layer-property-change-checking"; 45 "strict-layer-property-change-checking";
50 46
51 // Ensures that the draw properties computed via the property trees match those 47 // Ensures that the draw properties computed via the property trees match those
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 "ui-show-replica-screenspace-rects"; 94 "ui-show-replica-screenspace-rects";
99 95
100 // Prevents the layer tree unit tests from timing out. 96 // Prevents the layer tree unit tests from timing out.
101 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; 97 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout";
102 98
103 // Makes pixel tests write their output instead of read it. 99 // Makes pixel tests write their output instead of read it.
104 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; 100 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests";
105 101
106 } // namespace switches 102 } // namespace switches
107 } // namespace cc 103 } // 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