aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-14 12:47:37 +0000
committerGravatar halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-14 12:47:37 +0000
commit805ca19625ff477bf1354fa0a1c7cacebccd8940 (patch)
treef3a7040f5d8a26bf176bd8e5bf746f2161a8e02d /samplecode
parentddf94cf108ae430877f009bd67b9070341426947 (diff)
SampleApp - reduce unnecessary verbosity [with --picture $path]
Before this change, `SampleApp --picture $path` prints out usage (as well as --pictureDir) as if there was a syntax error in the command line arguments. BUG=skia:1677 R=reed@google.com Review URL: https://codereview.chromium.org/24503003 git-svn-id: http://skia.googlecode.com/svn/trunk@11748 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index f3037944fa..f044e70f3d 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -790,6 +790,10 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev
}
} else if (strcmp(*argv, "--list") == 0) {
listTitles();
+ } else if (strcmp(*argv, "--pictureDir") == 0) {
+ ++argv; // This case is dealt with in registerPictFileSamples().
+ } else if (strcmp(*argv, "--picture") == 0) {
+ ++argv; // This case is dealt with in registerPictFileSample().
}
else {
usage(commandName);