Index: tools/render_pdfs_main.cpp |
diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp |
index e07664c304aab8e692fe517527889c1a1c969601..07c894f7536bda2af8a622cb72d652793e3e9927 100644 |
--- a/tools/render_pdfs_main.cpp |
+++ b/tools/render_pdfs_main.cpp |
@@ -82,7 +82,8 @@ static bool replace_filename_extension(SkString* path, |
} |
int gJpegQuality = 100; |
-static SkData* encode_to_dct_data(size_t* pixelRefOffset, const SkBitmap& bitmap) { |
+// the size_t* parameter is deprecated, so we ignore it |
+static SkData* encode_to_dct_data(size_t*, const SkBitmap& bitmap) { |
if (gJpegQuality == -1) { |
return NULL; |
} |
@@ -96,16 +97,6 @@ static SkData* encode_to_dct_data(size_t* pixelRefOffset, const SkBitmap& bitmap |
bm = copy; |
#endif |
- SkPixelRef* pr = bm.pixelRef(); |
- if (pr != NULL) { |
- SkData* data = pr->refEncodedData(); |
- if (data != NULL) { |
- *pixelRefOffset = bm.pixelRefOffset(); |
- return data; |
- } |
- } |
- |
- *pixelRefOffset = 0; |
return SkImageEncoder::EncodeData(bm, |
SkImageEncoder::kJPEG_Type, |
gJpegQuality); |