Index: src/core/SkTileGrid.cpp |
diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp |
index bbed00603dc1453bab715c7e37773d80a256e45d..0680ca351d3fb96fe35bcbe9ed6b99f5b31d26e3 100644 |
--- a/src/core/SkTileGrid.cpp |
+++ b/src/core/SkTileGrid.cpp |
@@ -30,6 +30,10 @@ SkTileGrid::~SkTileGrid() { |
SkDELETE_ARRAY(fTileData); |
} |
+int SkTileGrid::tileCount(int x, int y) { |
+ return this->tile(x, y).count(); |
+} |
+ |
SkTDArray<void *>& SkTileGrid::tile(int x, int y) { |
return fTileData[y * fXTileCount + x]; |
} |