ok, add a8 dst support

Change-Id: Ib7f855c833c8e73f448de7c8a75f59b1a0880874
Reviewed-on: https://skia-review.googlesource.com/53600
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
diff --git a/tools/ok_dsts.cpp b/tools/ok_dsts.cpp
index c25a8d5..1f4fe42 100644
--- a/tools/ok_dsts.cpp
+++ b/tools/ok_dsts.cpp
@@ -14,6 +14,7 @@
 
     static std::unique_ptr<Dst> Create(Options options) {
         SkImageInfo info = SkImageInfo::MakeN32Premul(0,0);
+        if (options("ct") == "a8")  { info = info.makeColorType(kAlpha_8_SkColorType); }
         if (options("ct") == "565") { info = info.makeColorType(kRGB_565_SkColorType); }
         if (options("ct") == "f16") { info = info.makeColorType(kRGBA_F16_SkColorType); }
 
@@ -41,6 +42,11 @@
 static Register sw{"sw", "draw with the software backend", SWDst::Create};
 static Register _8888{"8888", "alias for sw", SWDst::Create};
 
+static Register a8{"a8", "alias for sw:ct=a8", [](Options options) {
+    options["ct"] = "a8";
+    return SWDst::Create(options);
+}};
+
 static Register _565{"565", "alias for sw:ct=565", [](Options options) {
     options["ct"] = "565";
     return SWDst::Create(options);