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

Unified Diff: ui/gfx/canvas_direct2d_unittest.cc

Issue 8383028: ui/gfx: Convert Canvas::ClipRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo 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_direct2d.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_direct2d_unittest.cc
diff --git a/ui/gfx/canvas_direct2d_unittest.cc b/ui/gfx/canvas_direct2d_unittest.cc
index 05aa57d5c6bf1b2b245da5161a5dda9f89b8b521..61fc66b97855d33b780ab58886de91e7a05956af 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(20, 20, 120, 120);
+ canvas.ClipRectInt(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(20, 20, 120, 120);
+ canvas.ClipRectInt(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(10, 10, 110, 110);
+ canvas.ClipRectInt(gfx::Rect(10, 10, 110, 110));
canvas.FillRectInt(SK_ColorRED, 0, 0, 500, 500);
canvas.Restore();
}
@@ -254,7 +254,7 @@ TEST(CanvasDirect2D, ClipRectWithScale) {
// Repeat the same rendering as in ClipRect...
canvas.Save();
canvas.FillRectInt(SK_ColorGREEN, 0, 0, 500, 500);
- canvas.ClipRectInt(20, 20, 120, 120);
+ canvas.ClipRectInt(gfx::Rect(20, 20, 120, 120));
canvas.FillRectInt(SK_ColorBLUE, 0, 0, 500, 500);
canvas.Restore();
@@ -263,7 +263,7 @@ TEST(CanvasDirect2D, ClipRectWithScale) {
canvas.Save();
canvas.TranslateInt(150, 150);
canvas.ScaleInt(2, 2);
- canvas.ClipRectInt(10, 10, 110, 110);
+ canvas.ClipRectInt(gfx::Rect(10, 10, 110, 110));
canvas.FillRectInt(SK_ColorRED, 0, 0, 500, 500);
canvas.Restore();
}
« no previous file with comments | « ui/gfx/canvas_direct2d.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698