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

Unified Diff: components/wallpaper/wallpaper_manager_base.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/wallpaper/wallpaper_manager_base.cc
diff --git a/components/wallpaper/wallpaper_manager_base.cc b/components/wallpaper/wallpaper_manager_base.cc
index e72039f4af39b08cf64af0a38d3511d24da51a9f..a5427b835544d85ead15b1e8d4cc6b70f81d1fb0 100644
--- a/components/wallpaper/wallpaper_manager_base.cc
+++ b/components/wallpaper/wallpaper_manager_base.cc
@@ -433,7 +433,7 @@ bool WallpaperManagerBase::ResizeImage(
SkBitmap bitmap = *(resized_image.bitmap());
gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
- gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), bitmap.height(),
+ kN32_SkColorType, bitmap.width(), bitmap.height(),
bitmap.width() * bitmap.bytesPerPixel(), kDefaultEncodingQuality,
&(*output)->data());

Powered by Google App Engine
This is Rietveld 408576698