Index: include/core/SkBBHFactory.h |
diff --git a/include/core/SkBBHFactory.h b/include/core/SkBBHFactory.h |
index 67c9cd767d5f1f0480c55e508b733c48dac3274a..2cc37e549195e64ce19148d441e3018c779b1794 100644 |
--- a/include/core/SkBBHFactory.h |
+++ b/include/core/SkBBHFactory.h |
@@ -9,7 +9,7 @@ |
#define SkBBHFactory_DEFINED |
#include "SkSize.h" |
-#include "SkPoint.h" |
+#include "SkRect.h" |
class SkBBoxHierarchy; |
@@ -18,13 +18,13 @@ public: |
/** |
* Allocate a new SkBBoxHierarchy. Return NULL on failure. |
*/ |
- virtual SkBBoxHierarchy* operator()(int width, int height) const = 0; |
+ virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const = 0; |
virtual ~SkBBHFactory() {}; |
}; |
class SK_API SkRTreeFactory : public SkBBHFactory { |
public: |
- virtual SkBBoxHierarchy* operator()(int width, int height) const SK_OVERRIDE; |
+ virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const SK_OVERRIDE; |
private: |
typedef SkBBHFactory INHERITED; |
}; |
@@ -50,7 +50,7 @@ public: |
SkTileGridFactory(const TileGridInfo& info) : fInfo(info) { } |
- virtual SkBBoxHierarchy* operator()(int width, int height) const SK_OVERRIDE; |
+ virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const SK_OVERRIDE; |
private: |
TileGridInfo fInfo; |