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

Unified Diff: components/suggestions/image_encoder.cc

Issue 2895953003: Use SkJpegEncoder in gfx jpeg_codec (Closed)
Patch Set: Created 3 years, 7 months 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: components/suggestions/image_encoder.cc
diff --git a/components/suggestions/image_encoder.cc b/components/suggestions/image_encoder.cc
index 8b0fa09fc260d64b8df3bc12cf5499dd017f604e..2cdf79cb1a3323c0e18ffc30952c69d6e927e046 100644
--- a/components/suggestions/image_encoder.cc
+++ b/components/suggestions/image_encoder.cc
@@ -22,8 +22,8 @@ bool EncodeSkBitmapToJPEG(const SkBitmap& bitmap,
}
return gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
- gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), bitmap.height(),
- bitmap.rowBytes(), 100, dest);
+ kN32_SkColorType, bitmap.width(), bitmap.height(), bitmap.rowBytes(), 100,
+ dest);
}
} // namespace suggestions

Powered by Google App Engine
This is Rietveld 408576698