Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Side by Side Diff: tools/lua/lua_pictures.cpp

Issue 16847002: use ForceLinking to get codecs into lua_picture (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698