Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10299 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index 993b81b..8d7b81b 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -17,26 +17,26 @@
// Implemented from en.wikipedia.org/wiki/MurmurHash.
static uint32_t compute_hash(const uint32_t data[], int count) {
uint32_t hash = 0;
-
+
for (int i = 0; i < count; ++i) {
uint32_t k = data[i];
k *= 0xcc9e2d51;
k = (k << 15) | (k >> 17);
k *= 0x1b873593;
-
+
hash ^= k;
hash = (hash << 13) | (hash >> 19);
hash *= 5;
hash += 0xe6546b64;
}
-
+
// hash ^= size;
hash ^= hash >> 16;
hash *= 0x85ebca6b;
hash ^= hash >> 13;
hash *= 0xc2b2ae35;
hash ^= hash >> 16;
-
+
return hash;
}
#else
@@ -46,7 +46,7 @@
static uint32_t compute_hash(const uint32_t data[], int count) {
uint32_t hash = 0;
-
+
for (int i = 0; i < count; ++i) {
hash = mix(hash, data[i]);
}
@@ -219,7 +219,7 @@
void SkScaledImageCache::purgeAsNeeded() {
size_t byteLimit = fByteLimit;
size_t bytesUsed = fBytesUsed;
-
+
Rec* rec = fTail;
while (rec) {
if (bytesUsed < byteLimit) {
@@ -254,20 +254,20 @@
void SkScaledImageCache::detach(Rec* rec) {
Rec* prev = rec->fPrev;
Rec* next = rec->fNext;
-
+
if (!prev) {
SkASSERT(fHead == rec);
fHead = next;
} else {
prev->fNext = next;
}
-
+
if (!next) {
fTail = prev;
} else {
next->fPrev = prev;
}
-
+
rec->fNext = rec->fPrev = NULL;
}
@@ -286,7 +286,7 @@
fHead->fPrev = rec;
rec->fNext = fHead;
fHead = rec;
-
+
this->validate();
}
@@ -347,7 +347,7 @@
used -= rec->bytesUsed();
rec = rec->fPrev;
}
-
+
SkASSERT(0 == count);
SkASSERT(0 == used);
}
@@ -418,4 +418,3 @@
size_t SkGraphics::SetImageCacheByteLimit(size_t newLimit) {
return SkScaledImageCache::SetByteLimit(newLimit);
}
-