Index: tools/PictureRenderer.cpp |
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp |
index b61288a2bd3ea1f6646e1b3296fe8851ac4daa3f..53654b923f379476f66ba1608813f1c3c2f79545 100644 |
--- a/tools/PictureRenderer.cpp |
+++ b/tools/PictureRenderer.cpp |
@@ -340,16 +340,8 @@ SkCanvas* RecordPictureRenderer::setupCanvas(int width, int height) { |
return NULL; |
} |
-static SkData* encode_bitmap_to_data(size_t* offset, const SkBitmap& bm) { |
- SkPixelRef* pr = bm.pixelRef(); |
- if (pr != NULL) { |
- SkData* data = pr->refEncodedData(); |
- if (data != NULL) { |
- *offset = bm.pixelRefOffset(); |
- return data; |
- } |
- } |
- *offset = 0; |
+// the size_t* parameter is deprecated, so we ignore it |
+static SkData* encode_bitmap_to_data(size_t*, const SkBitmap& bm) { |
return SkImageEncoder::EncodeData(bm, SkImageEncoder::kPNG_Type, 100); |
} |