| Index: src/core/SkRTree.cpp
|
| diff --git a/src/core/SkRTree.cpp b/src/core/SkRTree.cpp
|
| index 93f914276fac6bda3bc3c750ea961376e12a8189..6995065f06e46cdb5503fb5294ee2ad7e67b8df9 100644
|
| --- a/src/core/SkRTree.cpp
|
| +++ b/src/core/SkRTree.cpp
|
| @@ -417,6 +417,14 @@ int SkRTree::validateSubtree(Node* root, SkIRect bounds, bool isRoot) const {
|
| }
|
| }
|
|
|
| +size_t SkRTree::bytesUsed() const {
|
| + size_t byteCount = sizeof(SkRTree);
|
| +
|
| + byteCount += fNodes.totalCapacity();
|
| +
|
| + return byteCount;
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
| static inline uint32_t get_area(const SkIRect& rect) {
|
|
|