| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 overview->insert(0, totalStr); | 121 overview->insert(0, totalStr); |
| 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 |
| 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 #ifdef SK_BUILD_FOR_UNIX |
| 142 SkDEBUGCODE(creator = ) CreateGIFImageDecoder(); |
| 143 SkASSERT(creator); |
| 144 #endif |
| 145 } |
| OLD | NEW |