Chromium Code Reviews| Index: src/core/SkTileGrid.cpp |
| diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp |
| index 17102f50e2f75929f9e63cc71f8c55e33a5c0de1..664314d1d8063d3786c374eed2a181cfa9fcee86 100644 |
| --- a/src/core/SkTileGrid.cpp |
| +++ b/src/core/SkTileGrid.cpp |
| @@ -164,3 +164,14 @@ void SkTileGrid::rewindInserts() { |
| } |
| } |
| } |
| + |
| +size_t SkTileGrid::bytesUsed() const { |
| + size_t byteCount = sizeof(SkTileGrid); |
| + |
| + for (size_t i = 0; i < fCount; i++) { |
| + byteCount = fTiles[i].reserved() * sizeof(Entry); |
|
mtklein
2014/11/17 20:19:32
This is going to need an update too.
|
| + } |
| + |
| + return byteCount; |
| +} |
| + |