OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkQuadTree_DEFINED | 8 #ifndef SkQuadTree_DEFINED |
9 #define SkQuadTree_DEFINED | 9 #define SkQuadTree_DEFINED |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) S
K_OVERRIDE; | 47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) S
K_OVERRIDE; |
48 | 48 |
49 /** | 49 /** |
50 * If any inserts have been deferred, this will add them into the tree | 50 * If any inserts have been deferred, this will add them into the tree |
51 */ | 51 */ |
52 virtual void flushDeferredInserts() SK_OVERRIDE; | 52 virtual void flushDeferredInserts() SK_OVERRIDE; |
53 | 53 |
54 /** | 54 /** |
55 * Given a query rectangle, populates the passed-in array with the elements
it intersects | 55 * Given a query rectangle, populates the passed-in array with the elements
it intersects |
56 */ | 56 */ |
57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER
RIDE; | 57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) const S
K_OVERRIDE; |
58 | 58 |
59 virtual void clear() SK_OVERRIDE; | 59 virtual void clear() SK_OVERRIDE; |
60 | 60 |
61 /** | 61 /** |
62 * Gets the depth of the tree structure | 62 * Gets the depth of the tree structure |
63 */ | 63 */ |
64 virtual int getDepth() const SK_OVERRIDE; | 64 virtual int getDepth() const SK_OVERRIDE; |
65 | 65 |
66 /** | 66 /** |
67 * This gets the insertion count (rather than the node count) | 67 * This gets the insertion count (rather than the node count) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void insert(Node* node, Entry* entry); | 104 void insert(Node* node, Entry* entry); |
105 void split(Node* node); | 105 void split(Node* node); |
106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) con
st; | 106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) con
st; |
107 void clear(Node* node); | 107 void clear(Node* node); |
108 int getDepth(Node* node) const; | 108 int getDepth(Node* node) const; |
109 | 109 |
110 typedef SkBBoxHierarchy INHERITED; | 110 typedef SkBBoxHierarchy INHERITED; |
111 }; | 111 }; |
112 | 112 |
113 #endif | 113 #endif |
OLD | NEW |