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

Side by Side Diff: cc/resources/managed_memory_policy.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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/resources/managed_memory_policy.h ('k') | cc/resources/managed_tile_state.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "managed_memory_policy.h" 5 #include "cc/resources/managed_memory_policy.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "priority_calculator.h" 8 #include "cc/resources/priority_calculator.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 ManagedMemoryPolicy::ManagedMemoryPolicy(size_t bytes_limit_when_visible) 12 ManagedMemoryPolicy::ManagedMemoryPolicy(size_t bytes_limit_when_visible)
13 : bytes_limit_when_visible(bytes_limit_when_visible), 13 : bytes_limit_when_visible(bytes_limit_when_visible),
14 priority_cutoff_when_visible(CUTOFF_ALLOW_EVERYTHING), 14 priority_cutoff_when_visible(CUTOFF_ALLOW_EVERYTHING),
15 bytes_limit_when_not_visible(0), 15 bytes_limit_when_not_visible(0),
16 priority_cutoff_when_not_visible(CUTOFF_ALLOW_NOTHING) {} 16 priority_cutoff_when_not_visible(CUTOFF_ALLOW_NOTHING) {}
17 17
18 ManagedMemoryPolicy::ManagedMemoryPolicy( 18 ManagedMemoryPolicy::ManagedMemoryPolicy(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 case CUTOFF_ALLOW_NICE_TO_HAVE: 65 case CUTOFF_ALLOW_NICE_TO_HAVE:
66 return ALLOW_PREPAINT_ONLY; 66 return ALLOW_PREPAINT_ONLY;
67 case CUTOFF_ALLOW_EVERYTHING: 67 case CUTOFF_ALLOW_EVERYTHING:
68 return ALLOW_ANYTHING; 68 return ALLOW_ANYTHING;
69 } 69 }
70 NOTREACHED(); 70 NOTREACHED();
71 return ALLOW_NOTHING; 71 return ALLOW_NOTHING;
72 } 72 }
73 73
74 } // namespace cc 74 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/managed_memory_policy.h ('k') | cc/resources/managed_tile_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698