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

Unified Diff: ui/views/painter.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: reland 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: ui/views/painter.cc
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index ef5cfbfa722a4a6d5e2ebcfda316664ef4ec53ee..3933924d06881b93a9080eb898a74d225b244c0b 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -12,6 +12,7 @@
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/insets.h"
#include "ui/gfx/point.h"
+#include "ui/gfx/rect.h"
namespace views {
@@ -189,11 +190,8 @@ void HorizontalPainter::Paint(int w, int h, gfx::Canvas* canvas) {
}
canvas->DrawBitmapInt(*images_[LEFT], 0, 0);
canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0);
- canvas->TileImageInt(*images_[CENTER],
- images_[LEFT]->width(),
- 0,
- w - images_[LEFT]->width() - images_[RIGHT]->width(),
- height_);
+ canvas->TileImage(*images_[CENTER], gfx::Rect(images_[LEFT]->width(), 0,
+ w - images_[LEFT]->width() - images_[RIGHT]->width(), height_));
}
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698