| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkBBoxHierarchy_DEFINED | 9 #ifndef SkBBoxHierarchy_DEFINED |
| 10 #define SkBBoxHierarchy_DEFINED | 10 #define SkBBoxHierarchy_DEFINED |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual void search(const SkIRect& query, SkTDArray<void*>* results) = 0; | 62 virtual void search(const SkIRect& query, SkTDArray<void*>* results) = 0; |
| 63 | 63 |
| 64 virtual void clear() = 0; | 64 virtual void clear() = 0; |
| 65 | 65 |
| 66 /** | 66 /** |
| 67 * Gets the number of insertions | 67 * Gets the number of insertions |
| 68 */ | 68 */ |
| 69 virtual int getCount() const = 0; | 69 virtual int getCount() const = 0; |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * Gets the depth of the tree structure |
| 73 */ |
| 74 virtual int getDepth() const = 0; |
| 75 |
| 76 /** |
| 72 * Rewinds all the most recently inserted data elements until an element | 77 * Rewinds all the most recently inserted data elements until an element |
| 73 * is encountered for which client->shouldRewind(data) returns false. May | 78 * is encountered for which client->shouldRewind(data) returns false. May |
| 74 * not rewind elements that were inserted prior to the last call to | 79 * not rewind elements that were inserted prior to the last call to |
| 75 * flushDeferredInserts. | 80 * flushDeferredInserts. |
| 76 */ | 81 */ |
| 77 virtual void rewindInserts() = 0; | 82 virtual void rewindInserts() = 0; |
| 78 | 83 |
| 79 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } | 84 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } |
| 80 | 85 |
| 81 protected: | 86 protected: |
| 82 SkBBoxHierarchyClient* fClient; | 87 SkBBoxHierarchyClient* fClient; |
| 83 | 88 |
| 84 private: | 89 private: |
| 85 typedef SkRefCnt INHERITED; | 90 typedef SkRefCnt INHERITED; |
| 86 }; | 91 }; |
| 87 | 92 |
| 88 #endif | 93 #endif |
| OLD | NEW |