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

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

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
Index: Source/core/platform/image-encoders/skia/WEBPImageEncoder.h
diff --git a/Source/core/platform/image-encoders/skia/WEBPImageEncoder.h b/Source/core/platform/image-encoders/skia/WEBPImageEncoder.h
index e04c7023082e237f2c98223b0f435e9e9830bdbd..e138bc8267327ad1bbf9e549e62c176651d4ac35 100644
--- a/Source/core/platform/image-encoders/skia/WEBPImageEncoder.h
+++ b/Source/core/platform/image-encoders/skia/WEBPImageEncoder.h
@@ -37,13 +37,13 @@ class SkBitmap;
namespace WebCore {
-class ImageData;
+struct ImageDataBuffer;
class WEBPImageEncoder {
public:
// Encode the input data with a compression quality in [0-100].
static bool encode(const SkBitmap&, int quality, Vector<unsigned char>*);
- static bool encode(const ImageData&, int quality, Vector<unsigned char>*);
+ static bool encode(const ImageDataBuffer&, int quality, Vector<unsigned char>*);
// For callers: provide a reasonable compression quality default.
enum Quality { DefaultCompressionQuality = 80 };

Powered by Google App Engine
This is Rietveld 408576698