Index: src/core/SkRTree.cpp |
diff --git a/src/core/SkRTree.cpp b/src/core/SkRTree.cpp |
index 6c7803119df757cc576ef2f4d6543b8b250910d7..13083be2125ff4d4d970cba0d74035ad06c0ca5f 100644 |
--- a/src/core/SkRTree.cpp |
+++ b/src/core/SkRTree.cpp |
@@ -170,3 +170,11 @@ void SkRTree::search(Node* node, const SkRect& query, SkTDArray<unsigned>* resul |
} |
} |
} |
+ |
+size_t SkRTree::bytesUsed() const { |
+ size_t byteCount = sizeof(SkRTree); |
+ |
+ byteCount += fNodes.reserved() * sizeof(Node); |
+ |
+ return byteCount; |
+} |