Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(831)

Unified Diff: Source/core/platform/image-encoders/skia/WEBPImageEncoder.cpp

Issue 54653004: Break dependency of platform/graphics on html/ImageData.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move struct into ImageBuffer.h Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/image-encoders/skia/WEBPImageEncoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/platform/image-encoders/skia/WEBPImageEncoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698