Index: ui/aura_shell/desktop_background_view.cc |
diff --git a/ui/aura_shell/desktop_background_view.cc b/ui/aura_shell/desktop_background_view.cc |
index 92d876425df4ed32d52ca0c366916347c933d08e..654b06fb8f154c859821e6a84074919543896973 100644 |
--- a/ui/aura_shell/desktop_background_view.cc |
+++ b/ui/aura_shell/desktop_background_view.cc |
@@ -23,6 +23,7 @@ namespace internal { |
DesktopBackgroundView::DesktopBackgroundView() { |
wallpaper_ = *ResourceBundle::GetSharedInstance().GetBitmapNamed( |
IDR_AURA_WALLPAPER); |
+ wallpaper_.buildMipMap(false); |
} |
DesktopBackgroundView::~DesktopBackgroundView() { |
@@ -32,7 +33,10 @@ DesktopBackgroundView::~DesktopBackgroundView() { |
// DesktopBackgroundView, views::View overrides: |
void DesktopBackgroundView::OnPaint(gfx::Canvas* canvas) { |
- canvas->TileImageInt(wallpaper_, 0, 0, width(), height()); |
+ canvas->DrawBitmapInt(wallpaper_, |
+ 0, 0, wallpaper_.width(), wallpaper_.height(), |
+ 0, 0, width(), height(), |
+ true); |
} |
bool DesktopBackgroundView::OnMousePressed(const views::MouseEvent& event) { |