From 7fe2839a49f64048d4530c22b3ca73efcc1d065c Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 27 Oct 2011 00:16:05 +0000 Subject: ui/gfx: Convert Canvas::TranslateInt() to use gfx::Point. BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8390037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107483 0039d316-1c4b-4281-b951-d872f2087c98 --- views/painter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/painter.cc') diff --git a/views/painter.cc b/views/painter.cc index f39317d..5b2fc12 100644 --- a/views/painter.cc +++ b/views/painter.cc @@ -11,6 +11,7 @@ #include "ui/gfx/canvas.h" #include "ui/gfx/canvas_skia.h" #include "ui/gfx/insets.h" +#include "ui/gfx/point.h" namespace views { @@ -149,7 +150,7 @@ void Painter::PaintPainterAt(int x, int y, int w, int h, if (w < 0 || h < 0) return; canvas->Save(); - canvas->TranslateInt(x, y); + canvas->Translate(gfx::Point(x, y)); painter->Paint(w, h, canvas); canvas->Restore(); } -- cgit v1.1