39 void search(
const SkRect& query, std::vector<int>* results)
const override;
45 int getDepth()
const {
return fCount ? fRoot.fSubtree->fLevel + 1 : 0; }
65 uint16_t fNumChildren;
73 Branch bulkLoad(std::vector<Branch>* branches,
int level = 0);
76 static int CountNodes(
int branches);
78 Node* allocateNodeAtLevel(uint16_t
level);
83 std::vector<Node> fNodes;
void insert(const SkRect[], int N) override
static const int kMinChildren
void search(const SkRect &query, std::vector< int > *results) const override
static const int kMaxChildren
size_t bytesUsed() const override