Index: cc/priority_calculator.cc |
diff --git a/cc/priority_calculator.cc b/cc/priority_calculator.cc |
index e2bb0c7057bb68a9a5adcb98b162f1b6518124e4..fc680ad39f2e83be47cad78892390f640b6869fa 100644 |
--- a/cc/priority_calculator.cc |
+++ b/cc/priority_calculator.cc |
@@ -67,9 +67,9 @@ int PriorityCalculator::lingeringPriority(int previousPriority) |
} |
namespace { |
-int manhattanDistance(const IntRect& a, const IntRect& b) |
+int manhattanDistance(const gfx::Rect& a, const gfx::Rect& b) |
{ |
- IntRect c = unionRect(a, b); |
+ gfx::Rect c = gfx::UnionRects(a, b); |
int x = max(0, c.width() - a.width() - b.width() + 1); |
int y = max(0, c.height() - a.height() - b.height() + 1); |
return (x + y); |
@@ -77,7 +77,7 @@ int manhattanDistance(const IntRect& a, const IntRect& b) |
} |
// static |
-int PriorityCalculator::priorityFromDistance(const IntRect& visibleRect, const IntRect& textureRect, bool drawsToRootSurface) |
+int PriorityCalculator::priorityFromDistance(const gfx::Rect& visibleRect, const gfx::Rect& textureRect, bool drawsToRootSurface) |
{ |
int distance = manhattanDistance(visibleRect, textureRect); |
if (!distance) |