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;
70 void search(
Node* root,
const SkRect& query, std::vector<int>* results)
const;
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;