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

Unified Diff: cc/test/layer_test_common.cc

Issue 11360066: cc: Remove WebCore rect use from the compositor, except within Region. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Signs 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_rect.h ('k') | cc/tiled_layer.cc » ('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 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;
« no previous file with comments | « cc/stubs/int_rect.h ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698