Index: tools/sk_tool_utils.h |
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h |
index 67fd869a878d196d0cef66a84cb77462b2c6dcda..3eabcdcd0fda7db431b954586ad63ad25743202c 100644 |
--- a/tools/sk_tool_utils.h |
+++ b/tools/sk_tool_utils.h |
@@ -118,12 +118,8 @@ namespace sk_tool_utils { |
// used. |
class PngPixelSerializer : public SkPixelSerializer { |
public: |
- bool onUseEncodedData(const void*, size_t) override { return true; } |
- SkData* onEncodePixels(const SkImageInfo& info, const void* pixels, |
- size_t rowBytes) override { |
- return SkImageEncoder::EncodeData(info, pixels, rowBytes, |
- SkImageEncoder::kPNG_Type, 100); |
- } |
+ bool onUseEncodedData(const void*, size_t) override; |
+ SkData* onEncode(const SkPixmap&) override; |
}; |
// A helper for inserting a drawtext call into a SkTextBlobBuilder |