diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-27 00:16:05 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-27 00:16:05 +0000 |
commit | 7fe2839a49f64048d4530c22b3ca73efcc1d065c (patch) | |
tree | a55bd1e9f1f279e943a3acc27ccd284cd456fc3e /ui/gfx/canvas_direct2d_unittest.cc | |
parent | cc07b048f1d76e73f0b0f2c1aac9baa574683af8 (diff) | |
download | chromium_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 'ui/gfx/canvas_direct2d_unittest.cc')
-rw-r--r-- | ui/gfx/canvas_direct2d_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/gfx/canvas_direct2d_unittest.cc b/ui/gfx/canvas_direct2d_unittest.cc index 61fc66b..db57990 100644 --- a/ui/gfx/canvas_direct2d_unittest.cc +++ b/ui/gfx/canvas_direct2d_unittest.cc @@ -220,7 +220,7 @@ TEST(CanvasDirect2D, ClipRect) { gfx::CanvasDirect2D canvas(window.rt()); canvas.FillRectInt(SK_ColorGREEN, 0, 0, 500, 500); - canvas.ClipRectInt(gfx::Rect(20, 20, 120, 120)); + canvas.ClipRect(gfx::Rect(20, 20, 120, 120)); canvas.FillRectInt(SK_ColorBLUE, 0, 0, 500, 500); } @@ -233,14 +233,14 @@ TEST(CanvasDirect2D, ClipRectWithTranslate) { // Repeat the same rendering as in ClipRect... canvas.Save(); canvas.FillRectInt(SK_ColorGREEN, 0, 0, 500, 500); - canvas.ClipRectInt(gfx::Rect(20, 20, 120, 120)); + canvas.ClipRect(gfx::Rect(20, 20, 120, 120)); canvas.FillRectInt(SK_ColorBLUE, 0, 0, 500, 500); canvas.Restore(); // ... then translate, clip and fill again relative to the new origin. canvas.Save(); - canvas.TranslateInt(150, 150); - canvas.ClipRectInt(gfx::Rect(10, 10, 110, 110)); + canvas.Translate(gfx::Point(150, 150)); + canvas.ClipRect(gfx::Rect(10, 10, 110, 110)); canvas.FillRectInt(SK_ColorRED, 0, 0, 500, 500); canvas.Restore(); } @@ -254,16 +254,16 @@ TEST(CanvasDirect2D, ClipRectWithScale) { // Repeat the same rendering as in ClipRect... canvas.Save(); canvas.FillRectInt(SK_ColorGREEN, 0, 0, 500, 500); - canvas.ClipRectInt(gfx::Rect(20, 20, 120, 120)); + canvas.ClipRect(gfx::Rect(20, 20, 120, 120)); canvas.FillRectInt(SK_ColorBLUE, 0, 0, 500, 500); canvas.Restore(); // ... then translate and scale, clip and fill again relative to the new // origin. canvas.Save(); - canvas.TranslateInt(150, 150); + canvas.Translate(gfx::Point(150, 150)); canvas.ScaleInt(2, 2); - canvas.ClipRectInt(gfx::Rect(10, 10, 110, 110)); + canvas.ClipRect(gfx::Rect(10, 10, 110, 110)); canvas.FillRectInt(SK_ColorRED, 0, 0, 500, 500); canvas.Restore(); } |