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

Unified Diff: cc/trees/damage_tracker_unittest.cc

Issue 12967018: cc: Avoid pointless gfx::Point/Size contructors when making Rects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RectFs as well Created 7 years, 9 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 | « cc/scheduler/texture_uploader_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index 610c68fc2953d7ff00bb11e25301c1468dc5cfa3..c0f5d49af23cf2a8b9f2caf8d5d3b1792b077fcb 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -96,8 +96,7 @@ class DamageTrackerTest : public testing::Test {
root->SetContentBounds(gfx::Size(500, 500));
root->SetDrawsContent(true);
root->CreateRenderSurface();
- root->render_surface()->SetContentRect(
- gfx::Rect(gfx::Point(), gfx::Size(500, 500)));
+ root->render_surface()->SetContentRect(gfx::Rect(0, 0, 500, 500));
child->SetPosition(gfx::PointF(100.f, 100.f));
child->SetAnchorPoint(gfx::PointF());
@@ -131,8 +130,7 @@ class DamageTrackerTest : public testing::Test {
root->SetContentBounds(gfx::Size(500, 500));
root->SetDrawsContent(true);
root->CreateRenderSurface();
- root->render_surface()->SetContentRect(
- gfx::Rect(gfx::Point(), gfx::Size(500, 500)));
+ root->render_surface()->SetContentRect(gfx::Rect(0, 0, 500, 500));
child1->SetPosition(gfx::PointF(100.f, 100.f));
child1->SetAnchorPoint(gfx::PointF());
« no previous file with comments | « cc/scheduler/texture_uploader_unittest.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698