| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkBitmap.h" | 8 #include "SkBitmap.h" |
| 9 #include "SkCommandLineFlags.h" | 9 #include "SkCommandLineFlags.h" |
| 10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 | 158 |
| 159 void forceLinking(); | 159 void forceLinking(); |
| 160 | 160 |
| 161 void forceLinking() { | 161 void forceLinking() { |
| 162 // This function leaks, but that is okay because it is not intended | 162 // This function leaks, but that is okay because it is not intended |
| 163 // to be called. It is only here so that the linker will include the | 163 // to be called. It is only here so that the linker will include the |
| 164 // decoders. | 164 // decoders. |
| 165 SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder(); | 165 SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder(); |
| 166 SkASSERT(creator); | 166 SkASSERT(creator); |
| 167 SkDEBUGCODE(creator = ) CreateWEBPImageDecoder(); |
| 168 SkASSERT(creator); |
| 167 #ifdef SK_BUILD_FOR_UNIX | 169 #ifdef SK_BUILD_FOR_UNIX |
| 168 SkDEBUGCODE(creator = ) CreateGIFImageDecoder(); | 170 SkDEBUGCODE(creator = ) CreateGIFImageDecoder(); |
| 169 SkASSERT(creator); | 171 SkASSERT(creator); |
| 170 #endif | 172 #endif |
| 171 } | 173 } |
| 172 | 174 |
| 173 #if !defined SK_BUILD_FOR_IOS | 175 #if !defined SK_BUILD_FOR_IOS |
| 174 int main(int argc, char * const argv[]) { | 176 int main(int argc, char * const argv[]) { |
| 175 return tool_main(argc, (char**) argv); | 177 return tool_main(argc, (char**) argv); |
| 176 } | 178 } |
| 177 #endif | 179 #endif |
| OLD | NEW |