Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |