Index: chrome/browser/history/thumbnail_database.cc |
=================================================================== |
--- chrome/browser/history/thumbnail_database.cc (revision 111060) |
+++ chrome/browser/history/thumbnail_database.cc (working copy) |
@@ -42,6 +42,10 @@ |
static const int kCurrentVersionNumber = 5; |
static const int kCompatibleVersionNumber = 5; |
+// Use 90 quality (out of 100) which is pretty high, because we're very |
+// sensitive to artifacts for these small sized, highly detailed images. |
+static const int kImageQuality = 90; |
+ |
ThumbnailDatabase::ThumbnailDatabase() |
: history_publisher_(NULL), |
use_top_sites_(false) { |
@@ -262,7 +266,8 @@ |
return; |
std::vector<unsigned char> jpeg_data; |
- bool encoded = gfx::JPEGEncodedDataFromImage(*thumbnail, &jpeg_data); |
+ bool encoded = gfx::JPEGEncodedDataFromImage(*thumbnail, kImageQuality, |
+ &jpeg_data); |
if (encoded) { |
statement.BindInt64(0, id); |
statement.BindDouble(1, score.boring_score); |