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

Unified Diff: cc/test/layer_test_common.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/stubs/int_size.h ('k') | cc/test/mock_quad_culler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index 9e7dd33dd4b6122a30e84b1e6f589b5fb5f59520..7208377631eef622b6cd57b412d6aeac0cd41a57 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -6,6 +6,7 @@
#include "cc/test/layer_test_common.h"
+#include "FloatRect.h"
#include "Region.h"
#include "cc/draw_quad.h"
#include "cc/math_util.h"
@@ -37,7 +38,7 @@ bool canRectFBeSafelyRoundedToRect(const gfx::RectF& r)
void verifyQuadsExactlyCoverRect(const cc::QuadList& quads,
const gfx::Rect& rect) {
- cc::Region remaining = cc::IntRect(rect);
+ cc::Region remaining = rect;
for (size_t i = 0; i < quads.size(); ++i) {
cc::DrawQuad* quad = quads[i];
@@ -50,11 +51,11 @@ void verifyQuadsExactlyCoverRect(const cc::QuadList& quads,
gfx::Rect quadRect = gfx::ToEnclosingRect(quadRectF);
EXPECT_TRUE(rect.Contains(quadRect)) << quadString << i;
- EXPECT_TRUE(remaining.contains(cc::IntRect(quadRect))) << quadString << i;
- remaining.subtract(cc::IntRect(quadRect));
+ EXPECT_TRUE(remaining.Contains(quadRect)) << quadString << i;
+ remaining.Subtract(quadRect);
}
- EXPECT_TRUE(remaining.isEmpty());
+ EXPECT_TRUE(remaining.IsEmpty());
}
} // namespace LayerTestCommon
« no previous file with comments | « cc/stubs/int_size.h ('k') | cc/test/mock_quad_culler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698