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

Unified Diff: views/controls/image_view.cc

Issue 144006: Add Linux support for getting the thumbnail and wire into the switcher. (Closed)
Patch Set: For checkin Created 11 years, 6 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
« no previous file with comments | « chrome/browser/views/tabs/tab_overview_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/image_view.cc
diff --git a/views/controls/image_view.cc b/views/controls/image_view.cc
index d8108b04dd748be417433cac48111807bbad5787..e2cf50169b3d2044e15892a414d3683d43ab5234 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);
« no previous file with comments | « chrome/browser/views/tabs/tab_overview_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698