Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: experimental/SkiaExamples/SkExample.cpp

Issue 23708009: Add ShouldSkip variant that can read a --match flag directly. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: reupload Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/SkiaExamples/SkExample.h ('k') | gm/gmmain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkiaExamples/SkExample.cpp
diff --git a/experimental/SkiaExamples/SkExample.cpp b/experimental/SkiaExamples/SkExample.cpp
index d3601e1cac83129b33e0f5db245db4212e7493f1..d4adaf49249d28daf7db0c526f59218cbd4f9128 100644
--- a/experimental/SkiaExamples/SkExample.cpp
+++ b/experimental/SkiaExamples/SkExample.cpp
@@ -42,9 +42,6 @@ SkExampleWindow::SkExampleWindow(void* hwnd)
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 @@ bool SkExampleWindow::findNextMatch() {
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;
}
« no previous file with comments | « experimental/SkiaExamples/SkExample.h ('k') | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698