Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10385 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 9486d7a..0e7ac6a 100644
--- a/src/core/SkBitmapProcShader.cpp
+++ b/src/core/SkBitmapProcShader.cpp
@@ -380,7 +380,7 @@
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
-
+
}
GrTextureParams params(tm, textureFilterMode);
GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, fRawBitmap, ¶ms);
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index 4afa98f..45c7344 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -324,7 +324,7 @@
#ifdef USE_HASH
fHash->remove(rec->fKey);
#endif
-
+
SkDELETE(rec);
fCount -= 1;
}
diff --git a/src/core/SkTDynamicHash.h b/src/core/SkTDynamicHash.h
index b4787fb..823fde8 100644
--- a/src/core/SkTDynamicHash.h
+++ b/src/core/SkTDynamicHash.h
@@ -19,7 +19,7 @@
int fCapacity;
int fCountUsed;
int fCountDeleted;
-
+
const T* deletedValue() const { return reinterpret_cast<const T*>(-1); }
uint32_t hashMask() const { return fCapacity - 1; }
int hashToIndex(uint32_t hash) const {
@@ -37,13 +37,13 @@
sk_free(fArray);
}
}
-
+
T* find(const KEY& key) {
const T* const deleted = this->deletedValue();
const unsigned mask = this->hashMask();
int index = this->hashToIndex(HASH_FROM_KEY(key));
int delta = 1;
-
+
do {
T* candidate = fArray[index];
if (NULL == candidate) {
@@ -57,14 +57,14 @@
} while (delta <= fCapacity);
return NULL;
}
-
+
bool add(const KEY& key, T* newElement, bool autoGrow = true) {
const T* const deleted = this->deletedValue();
for (;;) {
const unsigned mask = this->hashMask();
int index = this->hashToIndex(HASH_FROM_KEY(key));
int delta = 1;
-
+
do {
const T* candidate = fArray[index];
if (NULL == candidate || deleted == candidate) {
@@ -88,13 +88,13 @@
SkASSERT(!"never get here");
return false;
}
-
+
void remove(const KEY& key) {
const T* const deleted = this->deletedValue();
const unsigned mask = this->hashMask();
int index = this->hashToIndex(HASH_FROM_KEY(key));
int delta = 1;
-
+
for (;;) {
const T* candidate = fArray[index];
SkASSERT(candidate);
@@ -110,7 +110,7 @@
}
this->checkStrink();
}
-
+
private:
int countCollisions(const Key& key) const {
const T* const deleted = this->deletedValue();
@@ -147,17 +147,17 @@
#endif
int oldCapacity = fCapacity;
T** oldArray = fArray;
-
+
int newCapacity = oldCapacity << 1;
T** newArray = (T**)sk_malloc_throw(sizeof(T*) * newCapacity);
sk_bzero(newArray, sizeof(T*) * newCapacity);
-
+
SkDEBUGCODE(int oldCountUsed = fCountUsed;)
fArray = newArray;
fCapacity = newCapacity;
fCountUsed = 0;
fCountDeleted = 0;
-
+
for (int i = 0; i < oldCapacity; ++i) {
T* elem = oldArray[i];
if (NULL == elem || deleted == elem) {
@@ -172,7 +172,7 @@
sk_free(oldArray);
}
}
-
+
void checkStrink() {
// todo: based on density and deadspace (fCountDeleted), consider
// shrinking fArray and repopulating it.
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 9831f1d..93c4564 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -358,7 +358,7 @@
SkMatrix sampleM;
sampleM.setIDiv(srcMask->width(), srcMask->height());
-
+
drawState->addColorEffect(
GrTextureDomainEffect::Create(srcMask,
sampleM,
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 6d90276..61de982 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1161,9 +1161,9 @@
"MIPMaps.");
textureFilterMode = GrTextureParams::kMipMap_FilterMode;
break;
-
+
}
-
+
params.setFilterMode(textureFilterMode);
if (!this->shouldTileBitmap(bitmap, params, srcRectPtr)) {
@@ -1235,7 +1235,7 @@
}
}
-static bool has_aligned_samples(const SkRect& srcRect,
+static bool has_aligned_samples(const SkRect& srcRect,
const SkRect& transformedRect) {
// detect pixel disalignment
if (SkScalarAbs(SkScalarRoundToScalar(transformedRect.left()) -
@@ -1251,7 +1251,7 @@
return false;
}
-static bool may_color_bleed(const SkRect& srcRect,
+static bool may_color_bleed(const SkRect& srcRect,
const SkRect& transformedRect,
const SkMatrix& m) {
// Only gets called if has_aligned_samples returned false.
diff --git a/src/gpu/effects/GrSingleTextureEffect.h b/src/gpu/effects/GrSingleTextureEffect.h
index 74ca9f9..1331ae4 100644
--- a/src/gpu/effects/GrSingleTextureEffect.h
+++ b/src/gpu/effects/GrSingleTextureEffect.h
@@ -30,7 +30,7 @@
/** unfiltered, clamp mode */
GrSingleTextureEffect(GrTexture*, const SkMatrix&, CoordsType = kLocal_CoordsType);
/** clamp mode */
- GrSingleTextureEffect(GrTexture*, const SkMatrix&, GrTextureParams::FilterMode filterMode,
+ GrSingleTextureEffect(GrTexture*, const SkMatrix&, GrTextureParams::FilterMode filterMode,
CoordsType = kLocal_CoordsType);
GrSingleTextureEffect(GrTexture*,
const SkMatrix&,