Add ShouldSkip variant that can read a --match flag directly.

Just seemed like we were going through lots of hoops for this common case.

BUG=
R=scroggo@google.com

Author: mtklein@google.com

Review URL: https://chromiumcodereview.appspot.com/23708009

git-svn-id: http://skia.googlecode.com/svn/trunk@11034 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/SkiaExamples/SkExample.cpp b/experimental/SkiaExamples/SkExample.cpp
index d3601e1..d4adaf4 100644
--- a/experimental/SkiaExamples/SkExample.cpp
+++ b/experimental/SkiaExamples/SkExample.cpp
@@ -42,9 +42,6 @@
     fCurrExample = fRegistry->factory()(this);
 
     if (FLAGS_match.count()) {
-        for(int i = 0; i < FLAGS_match.count(); ++i) {
-            fMatchStrs.push(FLAGS_match[i]);
-        }
         // Start with the a matching sample if possible.
         bool found = this->findNextMatch();
         if (!found) {
@@ -170,7 +167,7 @@
             fRegistry = SkExample::Registry::Head();
         }
         SkExample* next = fRegistry->factory()(this);
-        if (!SkCommandLineFlags::ShouldSkip(fMatchStrs, next->getName().c_str())) {
+        if (!SkCommandLineFlags::ShouldSkip(FLAGS_match, next->getName().c_str())) {
             fCurrExample = next;
             found = true;
         }