aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRTree.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-19 09:51:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-19 09:51:01 -0700
commitc6ad06acefa096716f8dabed5342f9b89dc43dfe (patch)
treed7f0f880609d4e7876790a846cdbab4702590109 /src/core/SkRTree.h
parent4b013296bf67df6c8d119a8f5a2b3dd6530c0b6f (diff)
unsigned -> int for counts and indices in picture-related code
also, (C) BUG=skia: Review URL: https://codereview.chromium.org/1300163002
Diffstat (limited to 'src/core/SkRTree.h')
-rw-r--r--src/core/SkRTree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkRTree.h b/src/core/SkRTree.h
index 205c0b60c2..557817189d 100644
--- a/src/core/SkRTree.h
+++ b/src/core/SkRTree.h
@@ -31,7 +31,7 @@
*/
class SkRTree : public SkBBoxHierarchy {
public:
-
+
/**
* If you have some prior information about the distribution of bounds you're expecting, you
@@ -42,7 +42,7 @@ public:
virtual ~SkRTree() {}
void insert(const SkRect[], int N) override;
- void search(const SkRect& query, SkTDArray<unsigned>* results) const override;
+ void search(const SkRect& query, SkTDArray<int>* results) const override;
size_t bytesUsed() const override;
// Methods and constants below here are only public for tests.
@@ -65,7 +65,7 @@ private:
struct Branch {
union {
Node* fSubtree;
- unsigned fOpIndex;
+ int fOpIndex;
};
SkRect fBounds;
};
@@ -76,7 +76,7 @@ private:
Branch fChildren[kMaxChildren];
};
- void search(Node* root, const SkRect& query, SkTDArray<unsigned>* results) const;
+ void search(Node* root, const SkRect& query, SkTDArray<int>* results) const;
// Consumes the input array.
Branch bulkLoad(SkTDArray<Branch>* branches, int level = 0);