| 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 "SkLua.h" | 8 #include "SkLua.h" |
| 9 #include "SkLuaCanvas.h" | 9 #include "SkLuaCanvas.h" |
| 10 #include "SkPicture.h" | 10 #include "SkPicture.h" |
| 11 #include "SkCommandLineFlags.h" | 11 #include "SkCommandLineFlags.h" |
| 12 #include "SkGraphics.h" | 12 #include "SkGraphics.h" |
| 13 #include "SkStream.h" | 13 #include "SkStream.h" |
| 14 #include "SkData.h" | 14 #include "SkData.h" |
| 15 #include "picture_utils.h" | 15 #include "picture_utils.h" |
| 16 #include "SkOSFile.h" | 16 #include "SkOSFile.h" |
| 17 #include "SkImageDecoder.h" | 17 #include "SkImageDecoder.h" |
| 18 #include "SkForceLinking.h" |
| 19 |
| 20 __SK_FORCE_IMAGE_DECODER_LINKING; |
| 18 | 21 |
| 19 extern "C" { | 22 extern "C" { |
| 20 #include "lua.h" | 23 #include "lua.h" |
| 21 #include "lualib.h" | 24 #include "lualib.h" |
| 22 #include "lauxlib.h" | 25 #include "lauxlib.h" |
| 23 } | 26 } |
| 24 | 27 |
| 25 static const char gStartCanvasFunc[] = "sk_scrape_startcanvas"; | 28 static const char gStartCanvasFunc[] = "sk_scrape_startcanvas"; |
| 26 static const char gEndCanvasFunc[] = "sk_scrape_endcanvas"; | 29 static const char gEndCanvasFunc[] = "sk_scrape_endcanvas"; |
| 27 static const char gAccumulateFunc[] = "sk_scrape_accumulate"; | 30 static const char gAccumulateFunc[] = "sk_scrape_accumulate"; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 143 } |
| 141 } | 144 } |
| 142 return 0; | 145 return 0; |
| 143 } | 146 } |
| 144 | 147 |
| 145 #if !defined SK_BUILD_FOR_IOS | 148 #if !defined SK_BUILD_FOR_IOS |
| 146 int main(int argc, char * const argv[]) { | 149 int main(int argc, char * const argv[]) { |
| 147 return tool_main(argc, (char**) argv); | 150 return tool_main(argc, (char**) argv); |
| 148 } | 151 } |
| 149 #endif | 152 #endif |
| OLD | NEW |