summaryrefslogtreecommitdiff
path: root/gpu/GrResourceCache.cpp
diff options
context:
space:
mode:
authorrmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
committerrmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-23 18:09:54 +0000
commit935e9f4fafdfc64130e6be9ea2bb30e3bafd852a (patch)
tree7d9c7aebb2b0d8ed2b629fbf26fe6703cdb72118 /gpu/GrResourceCache.cpp
parentdbdc8a2c23fdabc64d7395dc635239b80057106e (diff)
downloadsrc-935e9f4fafdfc64130e6be9ea2bb30e3bafd852a.tar.gz
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part I of IV (I broke down the 1280 files into 4 CLs). Review URL: https://codereview.appspot.com/6485054 git-svn-id: http://skia.googlecode.com/svn/trunk/src@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrResourceCache.cpp')
-rw-r--r--gpu/GrResourceCache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpu/GrResourceCache.cpp b/gpu/GrResourceCache.cpp
index cae2ec9b..60e20a77 100644
--- a/gpu/GrResourceCache.cpp
+++ b/gpu/GrResourceCache.cpp
@@ -296,7 +296,7 @@ void GrResourceCache::unlock(GrResourceEntry* entry) {
}
/**
- * Destroying a resource may potentially trigger the unlock of additional
+ * Destroying a resource may potentially trigger the unlock of additional
* resources which in turn will trigger a nested purge. We block the nested
* purge using the fPurging variable. However, the initial purge will keep
* looping until either all resources in the cache are unlocked or we've met
@@ -311,8 +311,8 @@ void GrResourceCache::purgeAsNeeded() {
bool withinBudget = false;
do {
SkTDLinkedList<GrResourceEntry>::Iter iter;
-
- // Note: the following code relies on the fact that the
+
+ // Note: the following code relies on the fact that the
// doubly linked list doesn't invalidate its data/pointers
// outside of the specific area where a deletion occurs (e.g.,
// in internalDetach)
@@ -388,7 +388,7 @@ size_t GrResourceCache::countBytes(const SkTDLinkedList<GrResourceEntry>& list)
size_t bytes = 0;
SkTDLinkedList<GrResourceEntry>::Iter iter;
-
+
const GrResourceEntry* entry = iter.init(
const_cast<SkTDLinkedList<GrResourceEntry>&>(list),
SkTDLinkedList<GrResourceEntry>::Iter::kTail_IterStart);
@@ -418,7 +418,7 @@ void GrResourceCache::validate() const {
int unlockCount = 0;
SkTDLinkedList<GrResourceEntry>::Iter iter;
-
+
const GrResourceEntry* entry = iter.init(
const_cast<SkTDLinkedList<GrResourceEntry>&>(fList),
SkTDLinkedList<GrResourceEntry>::Iter::kHead_IterStart);