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

Unified Diff: ui/gfx/canvas_skia.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: put back the Peter's nits 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
« no previous file with comments | « ui/gfx/canvas_skia.h ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia.cc
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc
index 6d93d8d6fbc4c32d11cd0159519ea0d05cfd4794..22b2e175b37c46bd34f4fe2617fc0669636c6ae9 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -325,9 +325,8 @@ void CanvasSkia::DrawStringInt(const string16& text,
display_rect.width(), display_rect.height());
}
-void CanvasSkia::TileImageInt(const SkBitmap& bitmap,
- int x, int y, int w, int h) {
- TileImageInt(bitmap, 0, 0, x, y, w, h);
+void CanvasSkia::TileImage(const SkBitmap& bitmap, const gfx::Rect& rect) {
+ TileImageInt(bitmap, 0, 0, rect.x(), rect.y(), rect.width(), rect.height());
}
void CanvasSkia::TileImageInt(const SkBitmap& bitmap,
« no previous file with comments | « ui/gfx/canvas_skia.h ('k') | ui/views/bubble/bubble_border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698