OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "iOSShell.h" | 8 #include "iOSShell.h" |
9 | 9 |
10 #include "Resources.h" | 10 #include "Resources.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 DEFINE_bool(dm, false, "run dm"); | 56 DEFINE_bool(dm, false, "run dm"); |
57 DEFINE_bool(nanobench, false, "run nanobench"); | 57 DEFINE_bool(nanobench, false, "run nanobench"); |
58 | 58 |
59 int nanobench_main(); | 59 int nanobench_main(); |
60 int dm_main(); | 60 int dm_main(); |
61 | 61 |
62 IOS_launch_type set_cmd_line_args(int argc, char *argv[], const char* resourceDi
r) { | 62 IOS_launch_type set_cmd_line_args(int argc, char *argv[], const char* resourceDi
r) { |
63 SkCommandLineFlags::Parse(argc, argv); | 63 SkCommandLineFlags::Parse(argc, argv); |
64 SetResourcePath(resourceDir); | |
65 if (FLAGS_nanobench) { | 64 if (FLAGS_nanobench) { |
66 return nanobench_main() ? kError_iOSLaunchType : kTool_iOSLaunchType; | 65 return nanobench_main() ? kError_iOSLaunchType : kTool_iOSLaunchType; |
67 } | 66 } |
68 if (FLAGS_dm) { | 67 if (FLAGS_dm) { |
69 return dm_main() ? kError_iOSLaunchType : kTool_iOSLaunchType; | 68 return dm_main() ? kError_iOSLaunchType : kTool_iOSLaunchType; |
70 } | 69 } |
71 return kError_iOSLaunchType; | 70 return kError_iOSLaunchType; |
72 } | 71 } |
73 | 72 |
74 // FIXME: this should be in a header | 73 // FIXME: this should be in a header |
(...skipping 17 matching lines...) Expand all Loading... |
92 SkGraphics::Init(); | 91 SkGraphics::Init(); |
93 SkEvent::Init(); | 92 SkEvent::Init(); |
94 } | 93 } |
95 | 94 |
96 // FIXME: this should be in a header | 95 // FIXME: this should be in a header |
97 void application_term(); | 96 void application_term(); |
98 void application_term() { | 97 void application_term() { |
99 SkEvent::Term(); | 98 SkEvent::Term(); |
100 SkGraphics::Term(); | 99 SkGraphics::Term(); |
101 } | 100 } |
OLD | NEW |