summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 12:29:21 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-27 12:29:21 +0000
commit80277112be3fb17ae6ad8e2aa41951a1e5d9098c (patch)
tree264e06468a0bd2080834ee8a3fabd673fc6fb298 /views
parent8333b9b18f9b8758fd77319d184b182dd9d41f34 (diff)
downloadchromium_src-80277112be3fb17ae6ad8e2aa41951a1e5d9098c.zip
chromium_src-80277112be3fb17ae6ad8e2aa41951a1e5d9098c.tar.gz
chromium_src-80277112be3fb17ae6ad8e2aa41951a1e5d9098c.tar.bz2
ui/gfx: Change Canvas::ScaleInt() to just Canvas::Scale().
BUG=100898 R=pkasting@chromium.org Review URL: http://codereview.chromium.org/8363036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/menu/menu_image_util.cc2
-rw-r--r--views/view.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/menu/menu_image_util.cc b/views/controls/menu/menu_image_util.cc
index 883ced58..2c3aaa2 100644
--- a/views/controls/menu/menu_image_util.cc
+++ b/views/controls/menu/menu_image_util.cc
@@ -89,7 +89,7 @@ SkBitmap* GetRtlSubmenuArrowImage() {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
SkBitmap* r = rb.GetBitmapNamed(IDR_MENU_ARROW);
gfx::CanvasSkia canvas(r->width(), r->height(), false);
- canvas.ScaleInt(-1, 1);
+ canvas.Scale(-1, 1);
canvas.DrawBitmapInt(*r, - r->width(), 0);
kRtlArrow = new SkBitmap(canvas.ExtractBitmap());
}
diff --git a/views/view.cc b/views/view.cc
index 0a6fdd1..060eb15 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1464,7 +1464,7 @@ void View::PaintCommon(gfx::Canvas* canvas) {
ScopedCanvas scoped(canvas);
if (FlipCanvasOnPaintForRTLUI()) {
canvas->Translate(gfx::Point(width(), 0));
- canvas->ScaleInt(-1, 1);
+ canvas->Scale(-1, 1);
}
OnPaint(canvas);