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

Unified Diff: ui/gfx/canvas_skia.cc

Issue 8363036: ui/gfx: Change Canvas::ScaleInt() to just Canvas::Scale(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Peter's review Created 9 years, 2 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') | views/controls/menu/menu_image_util.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 6550073ec75002e979fdc232327b1264635a9031..2f822e58454ccf96949c2b9b2923cccf6d54b867 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -118,8 +118,8 @@ void CanvasSkia::Translate(const gfx::Point& point) {
canvas_->translate(SkIntToScalar(point.x()), SkIntToScalar(point.y()));
}
-void CanvasSkia::ScaleInt(int x, int y) {
- canvas_->scale(SkIntToScalar(x), SkIntToScalar(y));
+void CanvasSkia::Scale(int x_scale, int y_scale) {
+ canvas_->scale(SkIntToScalar(x_scale), SkIntToScalar(y_scale));
}
void CanvasSkia::FillRectInt(const SkColor& color, int x, int y, int w, int h) {
« no previous file with comments | « ui/gfx/canvas_skia.h ('k') | views/controls/menu/menu_image_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698