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

Unified Diff: cc/test/layer_test_common.cc

Issue 11369051: cc: Remove WebCore::FloatRect use from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index 7208377631eef622b6cd57b412d6aeac0cd41a57..3fe716fcb369bf384e51dd793893da60a7084955 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -6,7 +6,6 @@
#include "cc/test/layer_test_common.h"
-#include "FloatRect.h"
#include "Region.h"
#include "cc/draw_quad.h"
#include "cc/math_util.h"
@@ -25,12 +24,11 @@ const char* quadString = " Quad: ";
bool canRectFBeSafelyRoundedToRect(const gfx::RectF& r)
{
// Ensure that range of float values is not beyond integer range.
- if (!cc::FloatRect(r).isExpressibleAsIntRect())
+ if (!r.IsExpressibleAsRect())
return false;
// Ensure that the values are actually integers.
- if (gfx::ToFlooredPoint(r.origin()) == r.origin()
- && gfx::ToFlooredSize(r.size()) == r.size())
+ if (gfx::ToFlooredPoint(r.origin()) == r.origin() && gfx::ToFlooredSize(r.size()) == r.size())
return true;
return false;

Powered by Google App Engine
This is Rietveld 408576698