Index: Source/platform/graphics/GraphicsContextRecorder.cpp |
diff --git a/Source/platform/graphics/GraphicsContextRecorder.cpp b/Source/platform/graphics/GraphicsContextRecorder.cpp |
index 02615de435184b81902e47fee8b0ae3087c9a66d..5c6fb51bba50e8cbab2c46d9feb437343148a5e1 100644 |
--- a/Source/platform/graphics/GraphicsContextRecorder.cpp |
+++ b/Source/platform/graphics/GraphicsContextRecorder.cpp |
@@ -714,7 +714,8 @@ private: |
{ |
RefPtr<JSONObject> dataItem = JSONObject::create(); |
Vector<unsigned char> output; |
- WebCore::PNGImageEncoder::encode(bitmap, &output); |
+ int compressionQuality = PNGImageEncoder::DefaultCompressionQuality; |
+ WebCore::PNGImageEncoder::encode(bitmap, compressionQuality, &output); |
dataItem->setString("base64", WTF::base64Encode(reinterpret_cast<char*>(output.data()), output.size())); |
dataItem->setString("mimeType", "image/png"); |
return dataItem.release(); |