aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-02-06 12:46:20 -0500
committerGravatar Mike Klein <mtklein@chromium.org>2017-02-06 18:02:41 +0000
commitbe28ee2974474800323ce4fabf62a839018be591 (patch)
tree0af11271212a0d04bba7e63e84d78860410f31d5 /tools/skhello.cpp
parent160907f8defef112c358cdd5cb9e5e093ca93b09 (diff)
Make iOS main() functions normal.
The weird foo_mains are no longer needed when we build with GN. CQ_INCLUDE_TRYBOTS=skia.primary:Build-Mac-Clang-arm-Debug-iOS Change-Id: Iae50696741e0dc277d96dda4968a1ae41cb17c8a Reviewed-on: https://skia-review.googlesource.com/8064 Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Stephan Altmueller <stephana@google.com>
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 0411b398b8..2ab8069eee 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -54,8 +54,7 @@ static bool do_document(int w, int h, const char path[], const char text[],
return false;
}
-int tool_main(int argc, char** argv);
-int tool_main(int argc, char** argv) {
+int main(int argc, char** argv) {
SkCommandLineFlags::SetUsage("");
SkCommandLineFlags::Parse(argc, argv);
@@ -99,9 +98,3 @@ int tool_main(int argc, char** argv) {
}
return 0;
}
-
-#if !defined SK_BUILD_FOR_IOS
-int main(int argc, char * const argv[]) {
- return tool_main(argc, (char**) argv);
-}
-#endif