Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index 3aa027f250a4a23b170bae55efe15d7261db6197..f06cfeb1481d490be3a3b057fdd401dfab489ddc 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -9,6 +9,7 @@ |
#include "SkBitmap.h" |
#include "SkDevice.h" |
#include "SkCommandLineFlags.h" |
+#include "SkForceLinking.h" |
#include "SkGraphics.h" |
#include "SkImageDecoder.h" |
#include "SkImageEncoder.h" |
@@ -21,6 +22,9 @@ |
#include "PictureRenderingFlags.h" |
#include "picture_utils.h" |
+// Required to ensure that image decoders get linked correctly. |
+__SK_FORCE_IMAGE_DECODER_LINKING; |
+ |
// Flags used by this file, alphabetically: |
DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); |
DECLARE_bool(deferImageDecoding); |