Index: Source/platform/graphics/ImageBuffer.cpp |
diff --git a/Source/platform/graphics/ImageBuffer.cpp b/Source/platform/graphics/ImageBuffer.cpp |
index 5f941f6593bea42c2f1ae9a8c22b56adb6a82048..b055ed4fc5a730f5d9305a8475dee68d0d70ed81 100644 |
--- a/Source/platform/graphics/ImageBuffer.cpp |
+++ b/Source/platform/graphics/ImageBuffer.cpp |
@@ -401,12 +401,12 @@ String ImageBuffer::toDataURL(const String& mimeType, const double* quality) con |
return "data:" + mimeType + ";base64," + base64Encode(encodedImage); |
} |
-String ImageDataToDataURL(const ImageDataBuffer& imageData, const String& mimeType, const double* quality) |
+String ImageDataBuffer::toDataURL(const String& mimeType, const double* quality) const |
{ |
ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); |
Vector<char> encodedImage; |
- if (!encodeImage(imageData, mimeType, quality, &encodedImage)) |
+ if (!encodeImage(*this, mimeType, quality, &encodedImage)) |
return "data:,"; |
return "data:" + mimeType + ";base64," + base64Encode(encodedImage); |