Index: Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp |
diff --git a/Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp b/Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp |
index a45e321a19d2a569088ffc7f2e17ef33a7dfba3a..46b06247cc5d7a0ff98659a597c311aa3ac6f1c3 100644 |
--- a/Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp |
+++ b/Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp |
@@ -32,7 +32,7 @@ |
#include "core/platform/image-encoders/skia/WEBPImageEncoder.h" |
#include "SkBitmap.h" |
-#include "core/html/ImageData.h" |
+#include "core/platform/graphics/ImageBuffer.h" |
#include "platform/geometry/IntSize.h" |
#include "webp/encode.h" |
@@ -125,9 +125,9 @@ bool WEBPImageEncoder::encode(const SkBitmap& bitmap, int quality, Vector<unsign |
return encodePixels(IntSize(bitmap.width(), bitmap.height()), static_cast<unsigned char *>(bitmap.getPixels()), true, quality, output); |
} |
-bool WEBPImageEncoder::encode(const ImageData& imageData, int quality, Vector<unsigned char>* output) |
+bool WEBPImageEncoder::encode(const ImageDataBuffer& imageData, int quality, Vector<unsigned char>* output) |
{ |
- return encodePixels(imageData.size(), imageData.data()->data(), false, quality, output); |
+ return encodePixels(imageData.size(), imageData.data(), false, quality, output); |
} |
} // namespace WebCore |