Index: Source/platform/image-encoders/skia/WEBPImageEncoder.cpp |
diff --git a/Source/platform/image-encoders/skia/WEBPImageEncoder.cpp b/Source/platform/image-encoders/skia/WEBPImageEncoder.cpp |
index fbded265fc6080f184416957bfefae9a97629457..faf35ab62d17369742b477c29609e31fd9b4a174 100644 |
--- a/Source/platform/image-encoders/skia/WEBPImageEncoder.cpp |
+++ b/Source/platform/image-encoders/skia/WEBPImageEncoder.cpp |
@@ -135,7 +135,7 @@ bool WEBPImageEncoder::encode(const SkBitmap& bitmap, int quality, Vector<unsign |
bool WEBPImageEncoder::encode(const ImageDataBuffer& imageData, int quality, Vector<unsigned char>* output) |
{ |
- return encodePixels(imageData.size(), imageData.data(), false, quality, output); |
+ return encodePixels(IntSize(imageData.width(), imageData.height()), imageData.pixels(), false, quality, output); |
} |
} // namespace blink |