-= to control width of fatbits line width

Bug: skia:
Change-Id: Id100ac5c22f5cc878d782d53557c6b37370a2989
Reviewed-on: https://skia-review.googlesource.com/66621
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
index 4e44a7f..80f656e 100644
--- a/samplecode/SampleFatBits.cpp
+++ b/samplecode/SampleFatBits.cpp
@@ -76,6 +76,8 @@
         }
     }
 
+    float fStrokeWidth = 1;
+
     bool getUseClip() const { return fUseClip; }
     void setUseClip(bool uc) { fUseClip = uc; }
 
@@ -131,7 +133,7 @@
                 paint->setStrokeWidth(0);
                 break;
             case kStroke_Style:
-                paint->setStrokeWidth(SK_Scalar1);
+                paint->setStrokeWidth(fStrokeWidth);
                 break;
         }
         paint->setAntiAlias(aa);
@@ -231,7 +233,7 @@
     if (fStyle == kStroke_Style) {
         SkPaint p;
         p.setStyle(SkPaint::kStroke_Style);
-        p.setStrokeWidth(SK_Scalar1 * fZoom);
+        p.setStrokeWidth(fStrokeWidth * fZoom);
         p.setStrokeCap(fStrokeCap);
         SkPath dst;
         p.getFillPath(path, &dst);
@@ -435,6 +437,14 @@
                     fFB.setTriangle(!fFB.getTriangle());
                     this->inval(nullptr);
                     return true;
+                case '-':
+                    fFB.fStrokeWidth -= 0.125f;
+                    this->inval(nullptr);
+                    return true;
+                case '=':
+                    fFB.fStrokeWidth += 0.125f;
+                    this->inval(nullptr);
+                    return true;
             }
         }
         return this->INHERITED::onQuery(evt);