summaryrefslogtreecommitdiffstats
path: root/views/painter.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 00:16:05 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 00:16:05 +0000
commit7fe2839a49f64048d4530c22b3ca73efcc1d065c (patch)
treea55bd1e9f1f279e943a3acc27ccd284cd456fc3e /views/painter.cc
parentcc07b048f1d76e73f0b0f2c1aac9baa574683af8 (diff)
downloadchromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.zip
chromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.tar.gz
chromium_src-7fe2839a49f64048d4530c22b3ca73efcc1d065c.tar.bz2
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
Diffstat (limited to 'views/painter.cc')
-rw-r--r--views/painter.cc3
1 files changed, 2 insertions, 1 deletions
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();
}