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

Unified Diff: cc/resources/prioritized_resource_manager.cc

Issue 12676029: cc: Fix capitalization style in chromified files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/prioritized_resource_manager.h ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/prioritized_resource_manager.cc
diff --git a/cc/resources/prioritized_resource_manager.cc b/cc/resources/prioritized_resource_manager.cc
index e3eea726b44191cfd1aa16b938aa4edc435d4730..2c406dfcf3600aab246f1450980a66ff71dd8d19 100644
--- a/cc/resources/prioritized_resource_manager.cc
+++ b/cc/resources/prioritized_resource_manager.cc
@@ -307,17 +307,17 @@ void PrioritizedResourceManager::ReduceWastedMemory(
// we really need very little memory. This should probably be solved by
// reducing the limit externally, but until then this just does some "clean
// up" of unused backing textures (any more than 10%).
- size_t wastedMemory = 0;
+ size_t wasted_memory = 0;
for (BackingList::iterator it = backings_.begin(); it != backings_.end();
++it) {
if ((*it)->owner())
break;
- wastedMemory += (*it)->bytes();
+ wasted_memory += (*it)->bytes();
}
- size_t tenPercentOfMemory = memory_available_bytes_ / 10;
- if (wastedMemory > tenPercentOfMemory)
+ size_t ten_percent_of_memory = memory_available_bytes_ / 10;
+ if (wasted_memory > ten_percent_of_memory)
EvictBackingsToReduceMemory(MemoryUseBytes() -
- (wastedMemory - tenPercentOfMemory),
+ (wasted_memory - ten_percent_of_memory),
PriorityCalculator::AllowEverythingCutoff(),
EVICT_ONLY_RECYCLABLE,
DO_NOT_UNLINK_BACKINGS,
@@ -515,7 +515,7 @@ void PrioritizedResourceManager::AssertInvariants() {
// At all times, backings that can be evicted must always come before
// backings that can't be evicted in the backing texture list (otherwise
- // reduceMemory will not find all textures available for eviction/recycling).
+ // ReduceMemory will not find all textures available for eviction/recycling).
bool reached_unrecyclable = false;
PrioritizedResource::Backing* previous_backing = NULL;
for (BackingList::iterator it = backings_.begin(); it != backings_.end();
« no previous file with comments | « cc/resources/prioritized_resource_manager.h ('k') | cc/resources/prioritized_resource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698