| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 /** | 81 /** |
| 82 * Rewinds all the most recently inserted data elements until an element | 82 * Rewinds all the most recently inserted data elements until an element |
| 83 * is encountered for which client->shouldRewind(data) returns false. May | 83 * is encountered for which client->shouldRewind(data) returns false. May |
| 84 * not rewind elements that were inserted prior to the last call to | 84 * not rewind elements that were inserted prior to the last call to |
| 85 * flushDeferredInserts. | 85 * flushDeferredInserts. |
| 86 */ | 86 */ |
| 87 virtual void rewindInserts() = 0; | 87 virtual void rewindInserts() = 0; |
| 88 | 88 |
| 89 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } | 89 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } |
| 90 | 90 |
| 91 virtual size_t bytesUsed() const = 0; |
| 92 |
| 91 protected: | 93 protected: |
| 92 SkBBoxHierarchyClient* fClient; | 94 SkBBoxHierarchyClient* fClient; |
| 93 | 95 |
| 94 private: | 96 private: |
| 95 typedef SkRefCnt INHERITED; | 97 typedef SkRefCnt INHERITED; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 #endif | 100 #endif |
| OLD | NEW |