aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bench/benchmain.cpp10
-rw-r--r--experimental/Intersection/DataTypes.h2
-rw-r--r--experimental/Intersection/EdgeWalker_TestUtility.cpp8
-rw-r--r--experimental/Intersection/Simplify.cpp4
-rw-r--r--experimental/Intersection/SimplifyNew_Test.cpp2
-rw-r--r--include/core/SkImage.h2
-rw-r--r--include/core/SkPicture.h2
-rw-r--r--include/core/SkSurface.h2
-rw-r--r--include/core/SkWriter32.h2
-rw-r--r--src/core/SkCanvas.cpp2
-rw-r--r--src/core/SkPicturePlayback.cpp2
-rw-r--r--src/core/SkWriter32.cpp8
-rw-r--r--src/gpu/gl/GrGLProgram.h2
-rw-r--r--src/ports/SkFontHost_FreeType.cpp2
-rw-r--r--tests/Writer32Test.cpp2
15 files changed, 26 insertions, 26 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index dfde94a396..e6f6620b31 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -949,19 +949,19 @@ int main (int argc, char * const argv[]) {
// otherwise output only the average
if (!logPerIter) {
fWallStr.set(" msecs = ");
- fWallStr.appendf(normalTimeFormat.c_str(),
+ fWallStr.appendf(normalTimeFormat.c_str(),
printMin ? fWallMin : fWallSum / repeatDraw);
fCpuStr.set(" cmsecs = ");
- fCpuStr.appendf(normalTimeFormat.c_str(),
+ fCpuStr.appendf(normalTimeFormat.c_str(),
printMin ? fCpuMin : fCpuSum / repeatDraw);
fTruncatedWallStr.set(" Wmsecs = ");
- fTruncatedWallStr.appendf(normalTimeFormat.c_str(),
+ fTruncatedWallStr.appendf(normalTimeFormat.c_str(),
printMin ? fTruncatedWallMin : fTruncatedWallSum / repeatDraw);
fTruncatedCpuStr.set(" Cmsecs = ");
- fTruncatedCpuStr.appendf(normalTimeFormat.c_str(),
+ fTruncatedCpuStr.appendf(normalTimeFormat.c_str(),
printMin ? fTruncatedCpuMin : fTruncatedCpuSum / repeatDraw);
fGpuStr.set(" gmsecs = ");
- fGpuStr.appendf(normalTimeFormat.c_str(),
+ fGpuStr.appendf(normalTimeFormat.c_str(),
printMin ? fGpuMin : fGpuSum / repeatDraw);
}
SkString str;
diff --git a/experimental/Intersection/DataTypes.h b/experimental/Intersection/DataTypes.h
index f36de9e45d..f4ef1ab8f9 100644
--- a/experimental/Intersection/DataTypes.h
+++ b/experimental/Intersection/DataTypes.h
@@ -70,7 +70,7 @@ inline bool approximately_zero(double x) {
}
inline bool approximately_zero(float x) {
-
+
return fabs(x) < FLT_EPSILON;
}
diff --git a/experimental/Intersection/EdgeWalker_TestUtility.cpp b/experimental/Intersection/EdgeWalker_TestUtility.cpp
index 2f67abd56b..fa590c318a 100644
--- a/experimental/Intersection/EdgeWalker_TestUtility.cpp
+++ b/experimental/Intersection/EdgeWalker_TestUtility.cpp
@@ -207,7 +207,7 @@ int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap,
}
const int MAX_ERRORS = 5;
if (errors2x2 > MAX_ERRORS && gComparePathsAssert) {
- SkDebugf("%s errors=%d\n", __FUNCTION__, errors);
+ SkDebugf("%s errors=%d\n", __FUNCTION__, errors);
showPath(one);
showPath(two, "simplified:");
SkASSERT(0);
@@ -396,7 +396,7 @@ void initializeTests(const char* test, size_t testNameSize) {
size_t inLen = inData.count();
inFile.read(inData.begin(), inLen);
inFile.setPath(NULL);
- char* insert = strstr(inData.begin(), marker);
+ char* insert = strstr(inData.begin(), marker);
if (insert) {
insert += sizeof(marker) - 1;
const char* numLoc = insert + 4 /* indent spaces */ + testNameSize - 1;
@@ -454,12 +454,12 @@ void outputToStream(const State4& state, const char* pathStr, SkPath::FillType p
}
outFile.writeText(pathStr);
outFile.writeText("</div>\n\n");
-
+
outFile.writeText(marker);
outFile.writeText(" ");
writeTestName(pathFillType, outFile);
outFile.writeText(",\n\n\n");
-
+
outFile.writeText("static void ");
writeTestName(pathFillType, outFile);
outFile.writeText("() {\n SkPath path;\n");
diff --git a/experimental/Intersection/Simplify.cpp b/experimental/Intersection/Simplify.cpp
index cea2f69da4..3c626c84b8 100644
--- a/experimental/Intersection/Simplify.cpp
+++ b/experimental/Intersection/Simplify.cpp
@@ -549,7 +549,7 @@ public:
bool isHorizontal() const {
return fDy == 0 && fDDy == 0 && fDDDy == 0;
}
-
+
// high precision version
#if HIGH_DEF_ANGLES
void set(const SkPoint* orig, SkPath::Verb verb, const Segment* segment,
@@ -575,7 +575,7 @@ public:
fDDDy = approximately_pin(pts[3].y + 3 * (pts[1].y - pts[2].y) - pts[0].y);
}
-#else
+#else
// since all angles share a point, this needs to know which point
// is the common origin, i.e., whether the center is at pts[0] or pts[verb]
// practically, this should only be called by addAngle
diff --git a/experimental/Intersection/SimplifyNew_Test.cpp b/experimental/Intersection/SimplifyNew_Test.cpp
index 53839ae8c9..c5f2198280 100644
--- a/experimental/Intersection/SimplifyNew_Test.cpp
+++ b/experimental/Intersection/SimplifyNew_Test.cpp
@@ -513,7 +513,7 @@ static void testLine19x() {
SkPath path;
path.setFillType(SkPath::kEvenOdd_FillType);
path.addRect(0, 0, 12, 12, (SkPath::Direction) 0);
- path.addRect(12, 16, 21, 21, (SkPath::Direction) 0);
+ path.addRect(12, 16, 21, 21, (SkPath::Direction) 0);
testSimplifyx(path);
}
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 2991b9a989..05350bfbfb 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -96,7 +96,7 @@ private:
const uint32_t fUniqueID;
static uint32_t NextUniqueID();
-
+
typedef SkRefCnt INHERITED;
};
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 83ff725e60..d2ead16e46 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -48,7 +48,7 @@ public:
* Swap the contents of the two pictures. Guaranteed to succeed.
*/
void swap(SkPicture& other);
-
+
/**
* Creates a thread-safe clone of the picture that is ready for playback.
*/
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index 2a9784bc0a..18ae5ccdc7 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -137,7 +137,7 @@ private:
const int fWidth;
const int fHeight;
uint32_t fGenerationID;
-
+
typedef SkRefCnt INHERITED;
};
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h
index f961736dcc..fa30f0f8eb 100644
--- a/include/core/SkWriter32.h
+++ b/include/core/SkWriter32.h
@@ -56,7 +56,7 @@ public:
void reset();
uint32_t* reserve(size_t size); // size MUST be multiple of 4
-
+
/**
* Specify the single block to back the writer, rathern than dynamically
* allocating the memory. If block == NULL, then the writer reverts to
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index ba8042df65..0df44b66de 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -468,7 +468,7 @@ SkDevice* SkCanvas::init(SkDevice* device) {
fExternalMatrix.reset();
fExternalInverse.reset();
fUseExternalMatrix = false;
-
+
fSurfaceBase = NULL;
return this->setDevice(device);
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index 457b860a49..bcad6162c0 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -325,7 +325,7 @@ void SkPicturePlayback::flattenToBuffer(SkOrderedWriteBuffer& buffer) const {
buffer.writePaint((*fPaints)[i]);
}
}
-
+
if ((n = SafeCount(fPathHeap.get())) > 0) {
writeTagSize(buffer, PICT_PATH_BUFFER_TAG, n);
fPathHeap->flatten(buffer);
diff --git a/src/core/SkWriter32.cpp b/src/core/SkWriter32.cpp
index a94a92fd88..d2c85876a9 100644
--- a/src/core/SkWriter32.cpp
+++ b/src/core/SkWriter32.cpp
@@ -141,7 +141,7 @@ uint32_t* SkWriter32::reserve(size_t size) {
uint32_t* SkWriter32::peek32(size_t offset) {
SkDEBUGCODE(this->validate();)
-
+
SkASSERT(SkAlign4(offset) == offset);
SkASSERT(offset <= fSize);
@@ -175,11 +175,11 @@ void SkWriter32::rewindToOffset(size_t offset) {
if (fSingleBlock) {
return;
}
-
+
// Similar to peek32, except that we free up any following blocks
Block* block = fHead;
SkASSERT(NULL != block);
-
+
while (offset >= block->fAllocatedSoFar) {
offset -= block->fAllocatedSoFar;
block = block->fNext;
@@ -188,7 +188,7 @@ void SkWriter32::rewindToOffset(size_t offset) {
fTail = block;
block->fAllocatedSoFar = offset;
-
+
// free up any following blocks
SkASSERT(block);
block = block->fNext;
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h
index 8b06b3edc9..0d0f8b096b 100644
--- a/src/gpu/gl/GrGLProgram.h
+++ b/src/gpu/gl/GrGLProgram.h
@@ -113,7 +113,7 @@ public:
kSmearAlpha_InConfigFlag = 0x02,
/**
- Smear the red channel across all four channels. This flag is
+ Smear the red channel across all four channels. This flag is
incompatible with kSmearAlpha. It is preferable to use
GL_ARB_texture_swizzle instead of this flag.
*/
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 3d6b574616..f25223f750 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -641,7 +641,7 @@ void SkFontHost::FilterRec(SkScalerContext::Rec* rec) {
if (rec->fTextSize > SkIntToScalar(1 << 14)) {
rec->fTextSize = SkIntToScalar(1 << 14);
}
-
+
if (!gLCDSupportValid) {
InitFreetype();
FT_Done_FreeType(gFTLibrary);
diff --git a/tests/Writer32Test.cpp b/tests/Writer32Test.cpp
index fdc074547d..21c11c16c6 100644
--- a/tests/Writer32Test.cpp
+++ b/tests/Writer32Test.cpp
@@ -24,7 +24,7 @@ static void check_contents(skiatest::Reporter* reporter, const SkWriter32& write
static void test_rewind(skiatest::Reporter* reporter) {
SkSWriter32<32> writer(32);
int32_t array[3] = { 1, 2, 4 };
-
+
REPORTER_ASSERT(reporter, 0 == writer.bytesWritten());
for (size_t i = 0; i < SK_ARRAY_COUNT(array); ++i) {
writer.writeInt(array[i]);