| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "SkDebugger.h" | 9 #include "SkDebugger.h" |
| 10 #include "SkString.h" | 10 #include "SkString.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 overview->append("<br/>"); | 123 overview->append("<br/>"); |
| 124 overview->append("SkPicture Width: "); | 124 overview->append("SkPicture Width: "); |
| 125 overview->appendS32(pictureWidth()); | 125 overview->appendS32(pictureWidth()); |
| 126 overview->append("px<br/>"); | 126 overview->append("px<br/>"); |
| 127 overview->append("SkPicture Height: "); | 127 overview->append("SkPicture Height: "); |
| 128 overview->appendS32(pictureHeight()); | 128 overview->appendS32(pictureHeight()); |
| 129 overview->append("px"); | 129 overview->append("px"); |
| 130 } | 130 } |
| 131 | 131 |
| 132 #include "SkImageDecoder.h" | |
| 133 | |
| 134 void forceLinking(); | |
| 135 void forceLinking() { | |
| 136 // This function leaks, but that is okay because it is not intended | |
| 137 // to be called. It is only here so that the linker will include the | |
| 138 // decoders. | |
| 139 SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder(); | |
| 140 SkASSERT(creator); | |
| 141 SkDEBUGCODE(creator = ) CreateWEBPImageDecoder(); | |
| 142 SkASSERT(creator); | |
| 143 #if defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_NACL) | |
| 144 SkDEBUGCODE(creator = ) CreateGIFImageDecoder(); | |
| 145 SkASSERT(creator); | |
| 146 #endif | |
| 147 } | |
| OLD | NEW |