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

Unified Diff: include/core/SkBBHFactory.h

Issue 736583004: allow pictures to have a full bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use new roundOut Created 6 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 | « no previous file | include/core/SkCanvas.h » ('j') | include/core/SkPictureRecorder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | include/core/SkPictureRecorder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698