summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 21:36:47 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 21:36:47 +0000
commit4f693b2b63bc60bebe30790a80f8d04a966421af (patch)
tree959762bfb23ec82ee80a341e466568cf1e84b30a /views
parent840434d046cbaefb5a70875b7e364523c713c79b (diff)
downloadchromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.zip
chromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.tar.gz
chromium_src-4f693b2b63bc60bebe30790a80f8d04a966421af.tar.bz2
Add Linux support for getting the thumbnail and wire into the switcher.
Review URL: http://codereview.chromium.org/144006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/image_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/controls/image_view.cc b/views/controls/image_view.cc
index d8108b04..e2cf501 100644
--- a/views/controls/image_view.cc
+++ b/views/controls/image_view.cc
@@ -125,9 +125,11 @@ void ImageView::Paint(gfx::Canvas* canvas) {
// Resize case
image_.buildMipMap(false);
ComputeImageOrigin(image_size_.width(), image_size_.height(), &x, &y);
+ SkPaint paint;
+ paint.setFilterBitmap(true);
canvas->DrawBitmapInt(image_, 0, 0, image_width, image_height,
x, y, image_size_.width(), image_size_.height(),
- true);
+ true, paint);
} else {
ComputeImageOrigin(image_width, image_height, &x, &y);
canvas->DrawBitmapInt(image_, x, y);