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

Unified Diff: ui/gfx/image/image_util.h

Issue 8631002: [ntp4] Use highest quality jpeg compression for thumbnail images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/browser/history/top_sites.cc ('k') | ui/gfx/image/image_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_util.h
===================================================================
--- ui/gfx/image/image_util.h (revision 111060)
+++ ui/gfx/image/image_util.h (working copy)
@@ -28,8 +28,9 @@
std::vector<unsigned char>* dst);
// Fills the |dst| vector with JPEG-encoded bytes based on the given Image.
+// |quality| determines the compression level, 0 == lowest, 100 == highest.
// Returns true if the Image was encoded successfully.
-UI_EXPORT bool JPEGEncodedDataFromImage(const Image& image,
+UI_EXPORT bool JPEGEncodedDataFromImage(const Image& image, int quality,
sky 2011/11/28 15:44:37 nit: each param on its own line.
csilv 2011/11/28 18:04:41 Done.
std::vector<unsigned char>* dst);
}
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | ui/gfx/image/image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698