| Index: src/core/SkTileGrid.cpp
|
| diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp
|
| index e285cccd0bff506a67614b4a3305a4fe1ffb1170..bbf3517c410c049ef4c7dd33361aa434b7516593 100644
|
| --- a/src/core/SkTileGrid.cpp
|
| +++ b/src/core/SkTileGrid.cpp
|
| @@ -175,3 +175,14 @@ void SkTileGrid::search(const SkRect& originalQuery, SkTDArray<unsigned>* result
|
| }
|
| }
|
|
|
| +size_t SkTileGrid::bytesUsed() const {
|
| + size_t byteCount = sizeof(SkTileGrid);
|
| +
|
| + size_t opCount = 0;
|
| + for (int i = 0; i < fXTiles * fYTiles; i++) {
|
| + opCount += fTiles[i].reserved();
|
| + }
|
| + byteCount += opCount * sizeof(unsigned);
|
| +
|
| + return byteCount;
|
| +}
|
|
|