Sanitizing source files in Skia_Periodic_House_Keeping
authorskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 11 Oct 2012 02:01:14 +0000 (02:01 +0000)
committerskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 11 Oct 2012 02:01:14 +0000 (02:01 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@5892 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/shadertext2.cpp
include/core/SkCanvas.h
include/core/SkDevice.h
samplecode/TransitionView.cpp
src/core/SkDraw.cpp
src/core/SkImageFilter.cpp

index 519e41f..387bd49 100644 (file)
@@ -23,7 +23,7 @@ static void makebm(SkBitmap* bm, SkBitmap::Config config, int w, int h) {
     static const SkScalar    kPos[] = { 0, SK_Scalar1/2, SK_Scalar1 };
     static const SkColor kColors0[] = {0x40FF00FF, 0xF0FFFF00, 0x4000FFFF };
     static const SkColor kColors1[] = {0xF0FF00FF, 0x80FFFF00, 0xF000FFFF };
-   
+
 
     SkPaint     paint;
 
@@ -95,7 +95,7 @@ protected:
         if (bmp.isNull()) {
             makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 2, kPointSize / 2);
         }
-        
+
         SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp,
                                                                    SkShader::kMirror_TileMode,
                                                                    SkShader::kRepeat_TileMode));
index 178364c..0d7b899 100644 (file)
@@ -988,7 +988,7 @@ private:
         fSurfaceBase = sb;
     }
     friend class SkSurface_Base;
-    
+
     bool fDeviceCMDirty;            // cleared by updateDeviceCMCache()
     void updateDeviceCMCache();
 
index 0873742..33be2f6 100644 (file)
@@ -204,7 +204,7 @@ protected:
      *  passed in).
      */
      virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
-                                   const SkClipStack&);
+                                const SkClipStack&);
 
     /** Clears the entire device to the specified color (including alpha).
      *  Ignores the clip.
index 4f15bd3..1caff13 100644 (file)
@@ -190,8 +190,8 @@ private:
 
 SkView* create_transition(SkView* prev, SkView* next, int direction) {
 #ifdef SK_BUILD_FOR_ANDROID
-       // Disable transitions for Android
-       return next;
+    // Disable transitions for Android
+    return next;
 #else
     return SkNEW_ARGS(TransitionView, (prev, next, direction));
 #endif
index 17d29b6..cdd59c1 100644 (file)
@@ -1541,7 +1541,7 @@ void SkDraw::drawText(const char text[], size_t byteLength,
     // SkScalarRec doesn't currently have a way of representing hairline stroke and
     // will fill if its frame-width is 0.
     if (/*paint.isLinearText() ||*/
-        (fMatrix->hasPerspective()) || 
+        (fMatrix->hasPerspective()) ||
         (0 == paint.getStrokeWidth() && SkPaint::kStroke_Style == paint.getStyle())) {
         this->drawText_asPaths(text, byteLength, x, y, paint);
         return;
index 573d49d..c688310 100644 (file)
@@ -40,7 +40,7 @@ SkImageFilter::~SkImageFilter() {
     delete[] fInputs;
 }
 
-SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer) 
+SkImageFilter::SkImageFilter(SkFlattenableReadBuffer& buffer)
     : fNumInputs(buffer.readInt()), fInputs(new SkImageFilter*[fNumInputs]) {
     for (int i = 0; i < fNumInputs; i++) {
         if (buffer.readBool()) {