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

Unified Diff: cc/priority_calculator.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScaleAsVector 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/overdraw_metrics.cc ('k') | cc/priority_calculator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/priority_calculator.h
diff --git a/cc/priority_calculator.h b/cc/priority_calculator.h
index 761b6d5b97e3183cb0892f083a2b2b170db63ef6..2b39fdc6d2ed3a8bd8254e9f38a9077aa9fc687c 100644
--- a/cc/priority_calculator.h
+++ b/cc/priority_calculator.h
@@ -5,8 +5,9 @@
#ifndef CCPriorityCalculator_h
#define CCPriorityCalculator_h
-#include "IntRect.h"
-#include "IntSize.h"
+namespace gfx {
+class Rect;
+}
namespace cc {
@@ -16,7 +17,7 @@ public:
static int visiblePriority(bool drawsToRootSurface);
static int renderSurfacePriority();
static int lingeringPriority(int previousPriority);
- static int priorityFromDistance(const IntRect& visibleRect, const IntRect& textureRect, bool drawsToRootSurface);
+ static int priorityFromDistance(const gfx::Rect& visibleRect, const gfx::Rect& textureRect, bool drawsToRootSurface);
static int smallAnimatedLayerMinPriority();
static int highestPriority();
« no previous file with comments | « cc/overdraw_metrics.cc ('k') | cc/priority_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698