Sanitizing source files in Housekeeper-Nightly
authorskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 7 Sep 2013 07:01:16 +0000 (07:01 +0000)
committerskia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 7 Sep 2013 07:01:16 +0000 (07:01 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@11143 2bbb7eff-a529-9590-31e7-b0007b416f81

12 files changed:
bench/BlurBench.cpp
bench/BlurRectBench.cpp
gm/bitmapalphathreshold.cpp
gm/blurrect.cpp
gm/circles.cpp
gm/rects.cpp
samplecode/SampleEffects.cpp
samplecode/SampleFuzz.cpp
samplecode/SampleTiling.cpp
src/animator/SkDrawBlur.cpp
src/effects/SkBitmapAlphaThresholdShader.cpp
tests/PaintTest.cpp

index a66dac097ecbab755ae08404dac1ba9aa1d4ebe4..54e7dfdb027d9179435278461fd87e7a016f68fb 100644 (file)
@@ -33,13 +33,13 @@ class BlurBench : public SkBenchmark {
     SkString    fName;
 
 public:
-    BlurBench(void* param, SkScalar rad, SkBlurMaskFilter::BlurStyle bs, uint32_t flags = 0) 
+    BlurBench(void* param, SkScalar rad, SkBlurMaskFilter::BlurStyle bs, uint32_t flags = 0)
         : INHERITED(param) {
         fRadius = rad;
         fStyle = bs;
         fFlags = flags;
         const char* name = rad > 0 ? gStyleName[bs] : "none";
-        const char* quality = flags & SkBlurMaskFilter::kHighQuality_BlurFlag ? "high_quality" 
+        const char* quality = flags & SkBlurMaskFilter::kHighQuality_BlurFlag ? "high_quality"
                                                                               : "low_quality";
         if (SkScalarFraction(rad) != 0) {
             fName.printf("blur_%.2f_%s_%s", SkScalarToFloat(rad), name, quality);
@@ -66,8 +66,8 @@ protected:
             r.offset(fRadius, fRadius);
 
             if (fRadius > 0) {
-                SkMaskFilter* mf = SkBlurMaskFilter::Create(fStyle, 
-                                            SkBlurMask::ConvertRadiusToSigma(fRadius), 
+                SkMaskFilter* mf = SkBlurMaskFilter::Create(fStyle,
+                                            SkBlurMask::ConvertRadiusToSigma(fRadius),
                                             fFlags);
                 paint.setMaskFilter(mf)->unref();
             }
index 5c93cd5d1a14a745ca6a411ce75b68e563d2696d..ccff8e38540dcd3c06b93ab71ba009342225d1d2 100644 (file)
@@ -90,7 +90,7 @@ class BlurRectDirectBench: public BlurRectBench {
 protected:
     virtual void makeBlurryRect(const SkRect& r) SK_OVERRIDE {
         SkMask mask;
-        SkBlurMask::BlurRect(SkBlurMask::ConvertRadiusToSigma(this->radius()), 
+        SkBlurMask::BlurRect(SkBlurMask::ConvertRadiusToSigma(this->radius()),
                              &mask, r, SkBlurMask::kNormal_Style);
         SkMask::FreeImage(mask.fImage);
     }
@@ -164,7 +164,7 @@ public:
         } else {
             name.printf("blurrect_gaussian_%d", SkScalarRoundToInt(rad));
         }
+
         this->setName(name);
     }
 
index 8af49fe351ea69a2b7133224f2d3a71602639938..e1413969f25eca9fc2d2f1663b265c4a649e8faa 100644 (file)
@@ -21,7 +21,7 @@ private:
     virtual uint32_t onGetFlags() const SK_OVERRIDE {
         // narrow this flags when the shader has a CPU implementation and
         // when it serializes.
-        return 
+        return
             kSkipPDF_Flag               |
             kSkipPicture_Flag           |
             kSkipPipe_Flag              |
@@ -62,10 +62,10 @@ private:
         SkPath batPath;
         SkParsePath::FromSVGString(
         "M305.214,374.779c2.463,0,3.45,0.493,3.45,0.493l1.478-6.241c0,0,1.15,4.763,1.643,9.034"
-               "c0.493,4.271,8.048,1.479,14.454,0.164c6.405-1.314,7.72-11.662,7.72-11.662h59.294c0,0-35.807,10.841-26.772,34.656"
-               "c0,0-52.889-8.048-61.101,24.967h-0.001c-8.212-33.015-61.101-24.967-61.101-24.967c9.034-23.815-26.772-34.656-26.772-34.656"
-               "h59.294c0,0,1.314,10.348,7.719,11.662c6.406,1.314,13.962,4.106,14.454-0.164c0.493-4.271,1.643-9.034,1.643-9.034l1.479,6.241"
-               "c0,0,0.985-0.493,3.449-0.493H305.214L305.214,374.779z",
+        "c0.493,4.271,8.048,1.479,14.454,0.164c6.405-1.314,7.72-11.662,7.72-11.662h59.294c0,0-35.807,10.841-26.772,34.656"
+        "c0,0-52.889-8.048-61.101,24.967h-0.001c-8.212-33.015-61.101-24.967-61.101-24.967c9.034-23.815-26.772-34.656-26.772-34.656"
+        "h59.294c0,0,1.314,10.348,7.719,11.662c6.406,1.314,13.962,4.106,14.454-0.164c0.493-4.271,1.643-9.034,1.643-9.034l1.479,6.241"
+        "c0,0,0.985-0.493,3.449-0.493H305.214L305.214,374.779z",
         &batPath);
 
         SkMatrix matrix;
index 40bbf71f8cba16e867cd8a6f19cc4171242daa7a..5e31a1ca749fe2ffd110bf6580d22c3044aec0b1 100644 (file)
@@ -141,8 +141,8 @@ class BlurRectCompareGM : public skiagm::GM {
     SkScalar fRadius;
     SkBlurMask::Style fStyle;
 public:
-    BlurRectCompareGM(const char name[], unsigned int rectWidth, 
-                      unsigned int rectHeight, float radius, 
+    BlurRectCompareGM(const char name[], unsigned int rectWidth,
+                      unsigned int rectHeight, float radius,
                       SkBlurMask::Style style)
         : fName(name)
         , fRectWidth(rectWidth)
@@ -244,8 +244,8 @@ protected:
 
         memset(src.fImage, 0xff, src.computeTotalImageSize());
 
-        return SkBlurMask::BoxBlur(m, src, 
-                                   SkBlurMask::ConvertRadiusToSigma(this->radius()), 
+        return SkBlurMask::BoxBlur(m, src,
+                                   SkBlurMask::ConvertRadiusToSigma(this->radius()),
                                    this->style(), this->getQuality());
     }
 
index a1aff754602d4c383dccd37248f7a91c9030977e..f57463954cac7835dc1a8573a8c95be479307e13 100644 (file)
@@ -81,8 +81,8 @@ protected:
         SkPaint p;
         p.setAntiAlias(true);
         SkBlurDrawLooper* shadowLooper =
-            new SkBlurDrawLooper (SK_ColorBLUE, 
-                                  SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), 
+            new SkBlurDrawLooper (SK_ColorBLUE,
+                                  SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)),
                                   SkIntToScalar(5), SkIntToScalar(10),
                                   SkBlurDrawLooper::kIgnoreTransform_BlurFlag |
                                   SkBlurDrawLooper::kOverrideColor_BlurFlag |
index 6350ea9dd1ab2ab97cb7a57a073a79c35380e59e..fb70dd76b48a219672220447f9e5f0a2ecdf8672 100644 (file)
@@ -86,8 +86,8 @@ protected:
             p.setColor(SK_ColorWHITE);
             p.setAntiAlias(true);
             SkBlurDrawLooper* shadowLooper =
-                new SkBlurDrawLooper (SK_ColorWHITE, 
-                                      SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), 
+                new SkBlurDrawLooper (SK_ColorWHITE,
+                                      SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)),
                                       SkIntToScalar(5), SkIntToScalar(10),
                                       SkBlurDrawLooper::kIgnoreTransform_BlurFlag |
                                       SkBlurDrawLooper::kOverrideColor_BlurFlag |
index fd1c2489dacc0115abf99580c84aedd33c29c146..a65b10b71f88b37e956862735f0b25c8c7824652 100644 (file)
@@ -31,7 +31,7 @@ static void paint_proc1(SkPaint* paint) {
 static void paint_proc2(SkPaint* paint) {
     SkScalar dir[3] = { 1, 1, 1};
     paint->setMaskFilter(
-            SkBlurMaskFilter::CreateEmboss(SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)), 
+            SkBlurMaskFilter::CreateEmboss(SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)),
                                            dir,
                                            SkFloatToScalar(0.1f),
                                            SkFloatToScalar(0.05f)))->unref();
index a72e4dcf37d07369a0faae6b5c33f301bcd589af..e66f086954c8184645c74c33882d987c4b331437 100644 (file)
@@ -60,7 +60,7 @@ static float make_number() {
   int sel;
 
   if (return_large == true && R(3) == 1) {
-      sel = R(6); 
+      sel = R(6);
   } else {
       sel = R(4);
   }
@@ -70,7 +70,7 @@ static float make_number() {
   }
 
   if (R(2) == 1) {
-      v = (float)R(100); 
+      v = (float)R(100);
   } else {
 
       switch (sel) {
@@ -84,7 +84,7 @@ static float make_number() {
 
   }
 
-  if (R(4) == 1) { 
+  if (R(4) == 1) {
       v = -v;
   }
 
index 7b6250722cdf3a55a8ed1a9e1234202efbda4ab3..eb791c5b399ee46937b013a3b6de269ca895ed72 100644 (file)
@@ -67,7 +67,7 @@ class TilingView : public SampleView {
     SkBlurDrawLooper    fLooper;
 public:
     TilingView()
-            : fLooper(0x88000000, 
+            : fLooper(0x88000000,
                       SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)),
                       SkIntToScalar(2), SkIntToScalar(2)) {
         fTextPicture = new SkPicture();
index 549aa0dae93aac5bf6f7ce3edaf97eb68b617fcb..5f388c9310f68becdd9f5d99593d27be8f17aa71 100644 (file)
@@ -20,7 +20,7 @@ const SkMemberInfo SkDrawBlur::fInfo[] = {
 
 DEFINE_GET_MEMBER(SkDrawBlur);
 
-SkDrawBlur::SkDrawBlur() 
+SkDrawBlur::SkDrawBlur()
     : fSigma(-1)
     , fBlurStyle(SkBlurMaskFilter::kNormal_BlurStyle) {
 }
index c9275883e3ae61cf22cfccceecc51f7b39a81a7e..0df3aec09b652c97e75b3f394f09c22ef962c691 100644 (file)
@@ -15,22 +15,22 @@ public:
     BATShader(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {
         // We should probably do something here.
     }
-    
-    
+
+
     virtual void shadeSpan(int x, int y, SkPMColor[], int count) SK_OVERRIDE {};
-    
+
 #if SK_SUPPORT_GPU
     virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint& paint) const SK_OVERRIDE;
 #endif
-    
+
     SK_DEVELOPER_TO_STRING();
     SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(BATShader)
-    
+
 private:
     SkBitmap fBitmap;
     SkRegion fRegion;
     U8CPU    fThreshold;
-    
+
     typedef SkShader INHERITED;
 };
 
index a7bbffa01cfc9adf8a94e5d63c18697342246a0a..c8d2becba2bac940eb70003a292bea7f0e1bbb98 100644 (file)
@@ -143,7 +143,7 @@ static void test_copy(skiatest::Reporter* reporter) {
     // set a few pointers
     SkLayerDrawLooper* looper = new SkLayerDrawLooper();
     paint.setLooper(looper)->unref();
-    SkMaskFilter* mask = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle, 
+    SkMaskFilter* mask = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle,
                                       SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(1)));
     paint.setMaskFilter(mask)->unref();