Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index de477d3336157468157707bc410f64ea772d3b3b..a32ee815b9257cd186597e87abb15e67d4359412 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -9,7 +9,6 @@ |
#include "SkBitmap.h" |
#include "SkDevice.h" |
#include "SkCommandLineFlags.h" |
-#include "SkForceLinking.h" |
#include "SkGraphics.h" |
#include "SkImageDecoder.h" |
#include "SkImageEncoder.h" |
@@ -22,9 +21,6 @@ |
#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); |
@@ -49,9 +45,6 @@ static void make_output_filepath(SkString* path, const SkString& dir, |
path->remove(path->size() - 4, 4); |
} |
-// Defined in PictureRenderingFlags.cpp |
-extern bool lazy_decode_bitmap(const void* buffer, size_t size, SkBitmap* bitmap); |
- |
//////////////////////////////////////////////////////////////////////////////////////////////////// |
/** |
@@ -151,7 +144,7 @@ static bool render_picture(const SkString& inputPath, const SkString* outputDir, |
SkPicture::InstallPixelRefProc proc; |
if (FLAGS_deferImageDecoding) { |
- proc = &lazy_decode_bitmap; |
+ proc = &SkImageDecoder::LazyDecodeBitmap; |
} else if (FLAGS_writeEncodedImages) { |
SkASSERT(!FLAGS_writePath.isEmpty()); |
reset_image_file_base_name(inputFilename); |