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

Unified Diff: ui/aura_shell/desktop_background_view.cc

Issue 8970032: Changing Aura background for new temporary one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adressed comment Created 9 years 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 | « no previous file | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | ui/base/resource/resource_bundle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698