Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@8120 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkFontHost.cpp b/src/core/SkFontHost.cpp
index d5b7341..4f0dc86 100644
--- a/src/core/SkFontHost.cpp
+++ b/src/core/SkFontHost.cpp
@@ -46,5 +46,3 @@
 void SkFontHost::SetSubpixelOrder(LCDOrder order) {
     SkFontLCDConfig::SetSubpixelOrder((SkFontLCDConfig::LCDOrder)order);
 }
-
-
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index 421c2bd..45412fe 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -227,7 +227,7 @@
 }
 
 // CommandInfos are fed to the 'match' method and filled in with command
-// information. 
+// information.
 struct CommandInfo {
     DrawType fActualOp;
     uint32_t fOffset;
@@ -236,7 +236,7 @@
 
 /*
  * Attempt to match the provided pattern of commands starting at 'offset'
- * in the byte stream and stopping at the end of the stream. Upon success, 
+ * in the byte stream and stopping at the end of the stream. Upon success,
  * return true with all the pattern information filled out in the result
  * array (i.e., actual ops, offsets and sizes).
  * Note this method skips any NOOPs seen in the stream
@@ -295,7 +295,7 @@
                                                  const CommandInfo& dbmInfo);
 
 /*
- * Restore has just been called (but not recorded), look back at the 
+ * Restore has just been called (but not recorded), look back at the
  * matching save* and see if we are in the configuration:
  *   SAVE_LAYER
  *       DRAW_BITMAP|DRAW_BITMAP_MATRIX|DRAW_BITMAP_NINE|DRAW_BITMAP_RECT_TO_RECT
@@ -345,9 +345,9 @@
                                                  const CommandInfo& saveLayerInfo,
                                                  const CommandInfo& dbmInfo) {
     SkASSERT(SAVE_LAYER == saveLayerInfo.fActualOp);
-    SkASSERT(DRAW_BITMAP == dbmInfo.fActualOp || 
+    SkASSERT(DRAW_BITMAP == dbmInfo.fActualOp ||
              DRAW_BITMAP_MATRIX == dbmInfo.fActualOp ||
-             DRAW_BITMAP_NINE == dbmInfo.fActualOp || 
+             DRAW_BITMAP_NINE == dbmInfo.fActualOp ||
              DRAW_BITMAP_RECT_TO_RECT == dbmInfo.fActualOp);
 
     uint32_t dbmPaintOffset = getPaintOffset(dbmInfo.fActualOp, dbmInfo.fSize);
@@ -410,7 +410,7 @@
 }
 
 /*
- * Restore has just been called (but not recorded), look back at the 
+ * Restore has just been called (but not recorded), look back at the
  * matching save* and see if we are in the configuration:
  *   SAVE_LAYER
  *      SAVE
diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp
index 105519e..f4d474d 100644
--- a/src/effects/SkBicubicImageFilter.cpp
+++ b/src/effects/SkBicubicImageFilter.cpp
@@ -70,9 +70,9 @@
     SkScalar r = SkScalarMul(cc[0], SkGetPackedR32(c0)) + SkScalarMul(cc[1], SkGetPackedR32(c1)) + SkScalarMul(cc[2], SkGetPackedR32(c2)) + SkScalarMul(cc[3], SkGetPackedR32(c3));
     SkScalar g = SkScalarMul(cc[0], SkGetPackedG32(c0)) + SkScalarMul(cc[1], SkGetPackedG32(c1)) + SkScalarMul(cc[2], SkGetPackedG32(c2)) + SkScalarMul(cc[3], SkGetPackedG32(c3));
     SkScalar b = SkScalarMul(cc[0], SkGetPackedB32(c0)) + SkScalarMul(cc[1], SkGetPackedB32(c1)) + SkScalarMul(cc[2], SkGetPackedB32(c2)) + SkScalarMul(cc[3], SkGetPackedB32(c3));
-    return SkPackARGB32(SkScalarRoundToInt(a), 
-                        SkScalarRoundToInt(SkScalarClampMax(r, a)), 
-                        SkScalarRoundToInt(SkScalarClampMax(g, a)), 
+    return SkPackARGB32(SkScalarRoundToInt(a),
+                        SkScalarRoundToInt(SkScalarClampMax(r, a)),
+                        SkScalarRoundToInt(SkScalarClampMax(g, a)),
                         SkScalarRoundToInt(SkScalarClampMax(b, a)));
 }
 
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 7c85212..271923a 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1131,8 +1131,8 @@
         drawState->setAttribBindings(GrDrawState::kDefault_AttribBindings);
 
         enum {
-            // the edge effects share this stage with glyph rendering 
-            // (kGlyphMaskStage in GrTextContext) && SW path rendering 
+            // the edge effects share this stage with glyph rendering
+            // (kGlyphMaskStage in GrTextContext) && SW path rendering
             // (kPathMaskStage in GrSWMaskHelper)
             kEdgeEffectStage = GrPaint::kTotalStages,
         };
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index fddce41..cd5fe1c 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -142,7 +142,7 @@
     }
 
     // sentinel to make sure effects don't try to use built-in attributes
-    static const int kBuiltInAttributeType = 10000; 
+    static const int kBuiltInAttributeType = 10000;
 
     // check our built-in indices
     if (fAttribIndices[kPosition_AttribIndex] >= kVertexAttribCnt) {
@@ -177,7 +177,7 @@
     }
 
     // now those set by effects
-    for (int s = 0; s < kNumStages; ++s) { 
+    for (int s = 0; s < kNumStages; ++s) {
         const GrEffectStage& stage = fStages[s];
         const GrEffectRef* effect = stage.getEffect();
         if (effect == NULL) {
@@ -199,7 +199,7 @@
             }
 
             GrSLType attributeType = effect->get()->vertexAttribType(i);
-            if (attributeTypes[attributeIndex] != -1 && 
+            if (attributeTypes[attributeIndex] != -1 &&
                 attributeTypes[attributeIndex] != attributeType) {
                 return false;
             }
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 220e290..4e9747d 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -334,7 +334,7 @@
     bool hasSolidCoverage(GrAttribBindings) const;
 
     static void VertexAttributesUnitTest();
-   
+
     /// @}
 
     ///////////////////////////////////////////////////////////////////////////
@@ -485,7 +485,7 @@
     /// @name Effect Stages
     ////
 
-    const GrEffectRef* setEffect(int stageIdx, const GrEffectRef* effect, 
+    const GrEffectRef* setEffect(int stageIdx, const GrEffectRef* effect,
                                  const int* indices = NULL) {
         fStages[stageIdx].setEffect(effect, indices);
         return effect;
@@ -517,8 +517,8 @@
         return true;
     }
 
-    void disableStage(int stageIdx) { 
-        this->setEffect(stageIdx, NULL, NULL); 
+    void disableStage(int stageIdx) {
+        this->setEffect(stageIdx, NULL, NULL);
     }
 
     /**
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp
index a8defcb..5ff13b0 100644
--- a/src/gpu/GrTextContext.cpp
+++ b/src/gpu/GrTextContext.cpp
@@ -19,8 +19,8 @@
 #include "SkStrokeRec.h"
 
 enum {
-    // glyph rendering shares this stage with edge rendering 
-    // (kEdgeEffectStage in GrContext) && SW path rendering 
+    // glyph rendering shares this stage with edge rendering
+    // (kEdgeEffectStage in GrContext) && SW path rendering
     // (kPathMaskStage in GrSWMaskHelper)
     kGlyphMaskStage = GrPaint::kTotalStages,
 };
diff --git a/src/gpu/effects/GrEllipseEdgeEffect.cpp b/src/gpu/effects/GrEllipseEdgeEffect.cpp
index 002753e..18301e9 100644
--- a/src/gpu/effects/GrEllipseEdgeEffect.cpp
+++ b/src/gpu/effects/GrEllipseEdgeEffect.cpp
@@ -30,12 +30,12 @@
 
         const SkString* attrName = builder->getEffectAttributeName(stage.getVertexAttribIndices()[0]);
         builder->vsCodeAppendf("\t%s = %s;\n", vsName, attrName->c_str());
-        
+
         builder->fsCodeAppend("\tfloat edgeAlpha;\n");
         // translate to origin
         builder->fsCodeAppendf("\tvec2 offset = (%s.xy - %s.xy);\n", builder->fragmentPosition(), fsName);
         // scale y by xRadius/yRadius
-        builder->fsCodeAppendf("\toffset.y *= %s.w;\n", fsName);  
+        builder->fsCodeAppendf("\toffset.y *= %s.w;\n", fsName);
         builder->fsCodeAppend("\tfloat d = length(offset);\n");
         // compare length against xRadius
         builder->fsCodeAppendf("\tedgeAlpha = smoothstep(d - 0.5, d + 0.5, %s.z);\n", fsName);
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp
index c164357..850f0bb 100644
--- a/src/gpu/gl/GrGLProgram.cpp
+++ b/src/gpu/gl/GrGLProgram.cpp
@@ -1013,7 +1013,7 @@
     }
 
     const GrGLShaderBuilder::AttributePair* attribEnd = builder.getEffectAttributes().end();
-    for (const GrGLShaderBuilder::AttributePair* attrib = builder.getEffectAttributes().begin(); 
+    for (const GrGLShaderBuilder::AttributePair* attrib = builder.getEffectAttributes().begin();
          attrib != attribEnd;
          ++attrib) {
          GL_CALL(BindAttribLocation(fProgramID, attrib->fIndex, attrib->fName.c_str()));
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index 1a238ae..b3b09cc 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -539,13 +539,13 @@
 
 const SkString* GrGLShaderBuilder::getEffectAttributeName(int attributeIndex) const {
     const AttributePair* attribEnd = this->getEffectAttributes().end();
-    for (const AttributePair* attrib = this->getEffectAttributes().begin(); 
+    for (const AttributePair* attrib = this->getEffectAttributes().begin();
          attrib != attribEnd;
          ++attrib) {
         if (attrib->fIndex == attributeIndex) {
             return &attrib->fName;
         }
-    }   
+    }
 
     return NULL;
 }
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp
index a717b86..5081089 100644
--- a/src/gpu/gl/GrGpuGL_program.cpp
+++ b/src/gpu/gl/GrGpuGL_program.cpp
@@ -19,7 +19,7 @@
 GrGpuGL::ProgramCache::ProgramCache(const GrGLContext& gl)
     : fCount(0)
     , fCurrLRUStamp(0)
-    , fGL(gl) 
+    , fGL(gl)
 #ifdef PROGRAM_CACHE_STATS
     , fTotalRequests(0)
     , fCacheMisses(0)