OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "LazyDecodeBitmap.h" | 8 #include "LazyDecodeBitmap.h" |
9 #include "SkLua.h" | 9 #include "SkLua.h" |
10 #include "SkLuaCanvas.h" | 10 #include "SkLuaCanvas.h" |
11 #include "SkPicture.h" | 11 #include "SkPicture.h" |
12 #include "SkCommandLineFlags.h" | 12 #include "SkCommandLineFlags.h" |
13 #include "SkGraphics.h" | 13 #include "SkGraphics.h" |
14 #include "SkStream.h" | 14 #include "SkStream.h" |
15 #include "SkData.h" | 15 #include "SkData.h" |
16 #include "picture_utils.h" | 16 #include "picture_utils.h" |
17 #include "SkOSFile.h" | 17 #include "SkOSFile.h" |
18 #include "SkImageDecoder.h" | 18 #include "SkImageDecoder.h" |
19 | 19 |
| 20 #include <stdlib.h> |
| 21 |
20 extern "C" { | 22 extern "C" { |
21 #include "lua.h" | 23 #include "lua.h" |
22 #include "lualib.h" | 24 #include "lualib.h" |
23 #include "lauxlib.h" | 25 #include "lauxlib.h" |
24 } | 26 } |
25 | 27 |
26 static const char gStartCanvasFunc[] = "sk_scrape_startcanvas"; | 28 static const char gStartCanvasFunc[] = "sk_scrape_startcanvas"; |
27 static const char gEndCanvasFunc[] = "sk_scrape_endcanvas"; | 29 static const char gEndCanvasFunc[] = "sk_scrape_endcanvas"; |
28 static const char gAccumulateFunc[] = "sk_scrape_accumulate"; | 30 static const char gAccumulateFunc[] = "sk_scrape_accumulate"; |
29 static const char gSummarizeFunc[] = "sk_scrape_summarize"; | 31 static const char gSummarizeFunc[] = "sk_scrape_summarize"; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 162 } |
161 } | 163 } |
162 return 0; | 164 return 0; |
163 } | 165 } |
164 | 166 |
165 #if !defined SK_BUILD_FOR_IOS | 167 #if !defined SK_BUILD_FOR_IOS |
166 int main(int argc, char * const argv[]) { | 168 int main(int argc, char * const argv[]) { |
167 return tool_main(argc, (char**) argv); | 169 return tool_main(argc, (char**) argv); |
168 } | 170 } |
169 #endif | 171 #endif |
OLD | NEW |