OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkDebuggerGUI.h" | 9 #include "SkDebuggerGUI.h" |
10 #include "SkForceLinking.h" | 10 #include "SkForceLinking.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 if (!input.isEmpty()) { | 60 if (!input.isEmpty()) { |
61 if (SkStrEndsWith(input.c_str(), ".skp")) { | 61 if (SkStrEndsWith(input.c_str(), ".skp")) { |
62 w.openFile(input.c_str()); | 62 w.openFile(input.c_str()); |
63 } else { | 63 } else { |
64 w.setupDirectoryWidget(input.c_str()); | 64 w.setupDirectoryWidget(input.c_str()); |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 w.show(); | 68 w.show(); |
69 int result = a.exec(); | 69 int result = a.exec(); |
70 SkGraphics::Term(); | |
71 return result; | 70 return result; |
72 } | 71 } |
OLD | NEW |