Fix an SkCommandLineFlags bug.

Previously I was storing an SkTDArray of const char*,
which fails if the strings go out of scope.

Instead, store an SkTArray of SkString, and copy the
strings, so we do not depend on the strings sticking
around. Using an SkTArray because it is smart enough
to call the destructors, so the copies can be destroyed
on program exit.

BUG=https://code.google.com/p/skia/issues/detail?id=1237

Review URL: https://codereview.chromium.org/14414008

git-svn-id: http://skia.googlecode.com/svn/trunk@8829 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 4979d79..65058d6 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1256,7 +1256,7 @@
     return -1;
 }
 
-static bool skip_name(const SkTDArray<const char*> array, const char name[]) {
+static bool skip_name(SkCommandLineFlags::StringArray array, const char name[]) {
     if (0 == array.count()) {
         // no names, so don't skip anything
         return false;