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

Unified Diff: chrome/browser/ui/views/about_chrome_view.cc

Issue 9332006: ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
Index: chrome/browser/ui/views/about_chrome_view.cc
diff --git a/chrome/browser/ui/views/about_chrome_view.cc b/chrome/browser/ui/views/about_chrome_view.cc
index 0e63b387192e2d43f2a476db34c9ecd36bf0327b..9909196073cd361f61de4a62e49e1eb3043e84af 100644
--- a/chrome/browser/ui/views/about_chrome_view.cc
+++ b/chrome/browser/ui/views/about_chrome_view.cc
@@ -430,11 +430,11 @@ void AboutChromeView::OnPaint(gfx::Canvas* canvas) {
// dialog.
SkBitmap* background = ResourceBundle::GetSharedInstance().GetBitmapNamed(
IDR_ABOUT_BACKGROUND_COLOR);
- canvas->TileImageInt(*background, 0, 0, dialog_dimensions_.width(),
- background->height());
+ canvas->TileImage(*background, gfx::Rect(0, 0, dialog_dimensions_.width(),
+ background->height()));
gfx::Font font =
- ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
+ ui::ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
Peter Kasting 2012/02/06 22:32:39 Nit: Why add this qualifier if it works without it
tfarina 2012/02/06 23:12:16 It is because ResourceBundle was moved into ui nam
const gfx::Rect label_bounds = main_text_label_->bounds();

Powered by Google App Engine
This is Rietveld 408576698