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

Side by Side Diff: src/images/SkForceLinking.cpp

Issue 15806010: Separate core and images project. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Leave SkImageDecoder_iOS alone. 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkForceLinking.h"
9 #include "SkImageDecoder.h"
10
robertphillips 2013/05/28 23:22:56 // This method is required to fool the linker into
scroggo 2013/05/29 17:34:20 Done.
11 int SkForceLinking(bool doNotPassTrue) {
12 if (doNotPassTrue) {
13 SkASSERT(false);
14 CreateJPEGImageDecoder();
15 CreateWEBPImageDecoder();
16 CreateBMPImageDecoder();
17 CreateICOImageDecoder();
18 CreateWBMPImageDecoder();
19 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_WIN)
20 CreateDefaultDecoder();
21 #endif
22 // Only link GIF and PNG on platforms that build them. See images.gyp
23 #if !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUILD_FOR_WIN) && !defined(SK_BUIL D_FOR_NACL)
24 CreateGIFImageDecoder();
25 #endif
26 #if !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUILD_FOR_WIN)
27 CreatePNGImageDecoder();
28 #endif
29 return -1;
30 }
31 return 0;
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698