diff options
author | 2011-06-28 19:44:03 +0000 | |
---|---|---|
committer | 2011-06-28 19:44:03 +0000 | |
commit | 78b8253c0a389a484e15439722e35a1658eb3b01 (patch) | |
tree | 732fb5f2f8655c841de93343a1a26417a1d79533 /unix_test_app/main.cpp | |
parent | 4809fc862957010dad610c68bdff5058d8b16a4c (diff) |
Parse SampleApp command line for a test name. If an argument is passed to
SampleApp on the command line, interpret it as a test name. If it's a valid
test, open that test at startup.
Review URL: http://codereview.appspot.com/4661054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1742 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'unix_test_app/main.cpp')
-rw-r--r-- | unix_test_app/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix_test_app/main.cpp b/unix_test_app/main.cpp index 9dafb3c902..21de4d2fbc 100644 --- a/unix_test_app/main.cpp +++ b/unix_test_app/main.cpp @@ -16,10 +16,10 @@ static void catch_alarm(int sig) SkEvent::ServiceQueueTimer(); } -int main(){ +int main(int argc, char** argv){ signal(SIGALRM, catch_alarm); - gWindow = create_sk_window(NULL); + gWindow = create_sk_window(NULL, argc, argv); // Start normal Skia sequence application_init(); |