Chromium Code Reviews| Index: src/core/SkRTree.h |
| diff --git a/src/core/SkRTree.h b/src/core/SkRTree.h |
| index 2d11f28a5739a21c69da94c999db80562196ced9..54421de14c4c50bb6542c37566c66c73fee6c7c4 100644 |
| --- a/src/core/SkRTree.h |
| +++ b/src/core/SkRTree.h |
| @@ -55,7 +55,8 @@ public: |
| * can provide an optional aspect ratio parameter. This allows the bulk-load algorithm to create |
| * better proportioned tiles of rectangles. |
| */ |
| - static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1); |
| + static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1, |
| + bool orderWhenBulkLoading = true); |
|
reed1
2013/08/29 19:17:35
add a comment above for this new param?
|
| virtual ~SkRTree(); |
| /** |
| @@ -144,7 +145,7 @@ private: |
| } |
| }; |
| - SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio); |
| + SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, bool orderWhenBulkLoading); |
| /** |
| * Recursively descend the tree to find an insertion position for 'branch', updates |
| @@ -184,6 +185,7 @@ private: |
| SkChunkAlloc fNodes; |
| SkTDArray<Branch> fDeferredInserts; |
| SkScalar fAspectRatio; |
| + bool fSortWhenBulkLoading; |
| Node* allocateNode(uint16_t level); |