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

Unified Diff: views/desktop/desktop_background.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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: views/desktop/desktop_background.cc
diff --git a/views/desktop/desktop_background.cc b/views/desktop/desktop_background.cc
index 89399e16db07182e3c6e7827bfaca278a9ecb508..b235c5c156c1bacd63a629d684e5f1321eba31c5 100644
--- a/views/desktop/desktop_background.cc
+++ b/views/desktop/desktop_background.cc
@@ -19,7 +19,7 @@ DesktopBackground::~DesktopBackground() {
void DesktopBackground::Paint(gfx::Canvas* canvas, View* view) const {
// Paint the sky.
- canvas->FillRectInt(SK_ColorCYAN, 0, 0, view->width(), view->width());
+ canvas->FillRect(SK_ColorCYAN, gfx::Rect(0, 0, view->width(), view->width()));
Peter Kasting 2011/10/27 19:17:29 I think the double-use of width() here is a bug (B
tfarina 2011/10/27 20:46:03 Done.
SkPaint paint;
paint.setAntiAlias(true);

Powered by Google App Engine
This is Rietveld 408576698