Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13714 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/WritePixelsBench.cpp b/bench/WritePixelsBench.cpp
index 27c3f5a..80aeda7 100644
--- a/bench/WritePixelsBench.cpp
+++ b/bench/WritePixelsBench.cpp
@@ -57,7 +57,7 @@
SkImageInfo info = bmp.info();
info.fColorType = fColorType;
info.fAlphaType = fAlphaType;
-
+
for (int loop = 0; loop < loops; ++loop) {
canvas->writePixels(info, bmp.getPixels(), bmp.rowBytes(), 0, 0);
}
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp
index 6087cd2..b9c923c 100644
--- a/src/core/SkDevice.cpp
+++ b/src/core/SkDevice.cpp
@@ -193,4 +193,3 @@
#ifdef SK_SUPPORT_LEGACY_WRITEPIXELSCONFIG
void SkBaseDevice::writePixels(const SkBitmap&, int x, int y, SkCanvas::Config8888) {}
#endif
-
diff --git a/src/core/SkOffsetTable.h b/src/core/SkOffsetTable.h
index 60c6264..0596c38 100644
--- a/src/core/SkOffsetTable.h
+++ b/src/core/SkOffsetTable.h
@@ -44,10 +44,10 @@
}
int numIDs() const {
- return fOffsetArrays.count();
+ return fOffsetArrays.count();
}
- // Do the offsets of any commands referencing this ID fall in the
+ // Do the offsets of any commands referencing this ID fall in the
// range [min, max] (both inclusive)
bool overlap(int id, size_t min, size_t max) {
SkASSERT(id < fOffsetArrays.count());
@@ -87,17 +87,17 @@
protected:
class OffsetArray {
public:
- void add(size_t offset) {
+ void add(size_t offset) {
SkASSERT(fOffsets.count() == 0 || offset > this->max());
- *fOffsets.append() = offset;
+ *fOffsets.append() = offset;
}
- size_t min() const {
+ size_t min() const {
SkASSERT(fOffsets.count() > 0);
- return fOffsets[0];
+ return fOffsets[0];
}
- size_t max() const {
+ size_t max() const {
SkASSERT(fOffsets.count() > 0);
- return fOffsets[fOffsets.count()-1];
+ return fOffsets[fOffsets.count()-1];
}
int count() const {
return fOffsets.count();
diff --git a/src/core/SkPathHeap.cpp b/src/core/SkPathHeap.cpp
index d71257d..84ffb04 100644
--- a/src/core/SkPathHeap.cpp
+++ b/src/core/SkPathHeap.cpp
@@ -50,7 +50,7 @@
return fPaths.count();
}
-SkPathHeap::LookupEntry::LookupEntry(const SkPath& path)
+SkPathHeap::LookupEntry::LookupEntry(const SkPath& path)
: fGenerationID(path.getGenerationID()), fStorageSlot(0) {
}
@@ -59,7 +59,7 @@
int index = SkTSearch<const LookupEntry, LookupEntry::Less>(
fLookupTable.begin(),
fLookupTable.count(),
- searchKey,
+ searchKey,
sizeof(LookupEntry));
if (index < 0) {
index = ~index;
diff --git a/src/core/SkPathHeap.h b/src/core/SkPathHeap.h
index 7fdcdd9..377d8d9 100644
--- a/src/core/SkPathHeap.h
+++ b/src/core/SkPathHeap.h
@@ -63,7 +63,7 @@
private:
uint32_t fGenerationID; // the SkPath's generation ID
// the path's index in the heap + 1. It is 0 if the path is not yet in the heap.
- int fStorageSlot;
+ int fStorageSlot;
};
SkTDArray<LookupEntry> fLookupTable;
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index b81d64c..efe7501 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -521,7 +521,7 @@
if (info.width() == deviceInfo.width() && info.height() == deviceInfo.height()) {
this->skipPendingCommands();
}
-
+
this->prepareForImmediatePixelWrite();
return immediateDevice()->onWritePixels(info, pixels, rowBytes, x, y);
}
diff --git a/tests/PremulAlphaRoundTripTest.cpp b/tests/PremulAlphaRoundTripTest.cpp
index 68fbec8..1a42a9c 100644
--- a/tests/PremulAlphaRoundTripTest.cpp
+++ b/tests/PremulAlphaRoundTripTest.cpp
@@ -106,7 +106,7 @@
for (size_t upmaIdx = 0; upmaIdx < SK_ARRAY_COUNT(gUnpremul); ++upmaIdx) {
fillCanvas(&canvas, gUnpremul[upmaIdx].fColorType, gUnpremul[upmaIdx].fPackProc);
-
+
readBmp1.eraseColor(0);
readBmp2.eraseColor(0);
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index f5b8b9f..1197388 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -37,11 +37,11 @@
SkColorType colorType, SkAlphaType alphaType) {
SkBitmap tmp(bitmap);
tmp.lockPixels();
-
+
SkImageInfo info = tmp.info();
info.fColorType = colorType;
info.fAlphaType = alphaType;
-
+
canvas->writePixels(info, tmp.getPixels(), tmp.rowBytes(), x, y);
}