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

Unified Diff: cc/render_surface_unittest.cc

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings Created 8 years, 1 month 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 | « cc/render_pass.cc ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_surface_unittest.cc
diff --git a/cc/render_surface_unittest.cc b/cc/render_surface_unittest.cc
index 8e11d8e340257281efec477e594b3ef6137c8dac..0bd7be52a18275b4aa1c013437c4c9542e025510 100644
--- a/cc/render_surface_unittest.cc
+++ b/cc/render_surface_unittest.cc
@@ -43,7 +43,7 @@ TEST(RenderSurfaceTest, verifySurfaceChangesAreTrackedProperly)
owningLayer->createRenderSurface();
ASSERT_TRUE(owningLayer->renderSurface());
RenderSurfaceImpl* renderSurface = owningLayer->renderSurface();
- IntRect testRect = IntRect(IntPoint(3, 4), IntSize(5, 6));
+ gfx::Rect testRect = gfx::Rect(gfx::Point(3, 4), gfx::Size(5, 6));
owningLayer->resetAllChangeTrackingForSubtree();
// Currently, the contentRect, clipRect, and owningLayer->layerPropertyChanged() are
@@ -83,8 +83,8 @@ TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectSharedQuadState)
rootLayer->addChild(owningLayer.Pass());
- IntRect contentRect = IntRect(IntPoint::zero(), IntSize(50, 50));
- IntRect clipRect = IntRect(IntPoint(5, 5), IntSize(40, 40));
+ gfx::Rect contentRect = gfx::Rect(gfx::Point(), gfx::Size(50, 50));
+ gfx::Rect clipRect = gfx::Rect(gfx::Point(5, 5), gfx::Size(40, 40));
WebTransformationMatrix origin;
origin.translate(30, 40);
@@ -107,7 +107,7 @@ TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectSharedQuadState)
EXPECT_EQ(30, sharedQuadState->quadTransform.m41());
EXPECT_EQ(40, sharedQuadState->quadTransform.m42());
- EXPECT_RECT_EQ(contentRect, IntRect(sharedQuadState->visibleContentRect));
+ EXPECT_RECT_EQ(contentRect, gfx::Rect(sharedQuadState->visibleContentRect));
EXPECT_EQ(1, sharedQuadState->opacity);
EXPECT_FALSE(sharedQuadState->opaque);
}
@@ -134,7 +134,7 @@ TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectRenderPass)
rootLayer->addChild(owningLayer.Pass());
- IntRect contentRect = IntRect(IntPoint::zero(), IntSize(50, 50));
+ gfx::Rect contentRect = gfx::Rect(gfx::Point(), gfx::Size(50, 50));
WebTransformationMatrix origin;
origin.translate(30, 40);
« no previous file with comments | « cc/render_pass.cc ('k') | cc/scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698