diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 13:19:12 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 13:19:12 +0000 |
commit | 4232c968cd67dcf8e1bf2a4f8e46850e40157d5d (patch) | |
tree | 5dba1d21d369f3f0c38566735927618a609f1372 /chrome/browser/tab_contents/thumbnail_generator.cc | |
parent | 1d7cd66f3fb753a2ac1b3d00dab13fff28146ccd (diff) | |
download | chromium_src-4232c968cd67dcf8e1bf2a4f8e46850e40157d5d.zip chromium_src-4232c968cd67dcf8e1bf2a4f8e46850e40157d5d.tar.gz chromium_src-4232c968cd67dcf8e1bf2a4f8e46850e40157d5d.tar.bz2 |
Change TopSites and History to use gfx::Image instead of SkBitmap in their
public APIs. Move JPEG encoding into image utils.
BUG=none
TEST=unit tests all pass
Review URL: http://codereview.chromium.org/7461118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/thumbnail_generator.cc')
-rw-r--r-- | chrome/browser/tab_contents/thumbnail_generator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/thumbnail_generator.cc b/chrome/browser/tab_contents/thumbnail_generator.cc index d0cbd9b..e769ef0 100644 --- a/chrome/browser/tab_contents/thumbnail_generator.cc +++ b/chrome/browser/tab_contents/thumbnail_generator.cc @@ -465,7 +465,8 @@ void ThumbnailGenerator::UpdateThumbnailIfNecessary( clip_result == ThumbnailGenerator::kNotClipped); score.load_completed = (!load_interrupted_ && !tab_contents->IsLoading()); - top_sites->SetPageThumbnail(url, thumbnail, score); + gfx::Image image(new SkBitmap(thumbnail)); + top_sites->SetPageThumbnail(url, &image, score); VLOG(1) << "Thumbnail taken for " << url << ": " << score.ToString(); } |