Index: src/core/SkTileGrid.cpp |
diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp |
index 84dc949b36727fe4ac0b9fb74c56dbf2115f0c4a..2eea6dbf36b4a274f517944bffb6bf2ac391bdd4 100644 |
--- a/src/core/SkTileGrid.cpp |
+++ b/src/core/SkTileGrid.cpp |
@@ -52,8 +52,8 @@ void SkTileGrid::insert(void* data, const SkRect& fbounds, bool) { |
fYTiles - 1)); |
Entry entry = { fCount++, data }; |
- for (int x = minX; x <= maxX; x++) { |
- for (int y = minY; y <= maxY; y++) { |
+ for (int y = minY; y <= maxY; y++) { |
+ for (int x = minX; x <= maxX; x++) { |
fTiles[y * fXTiles + x].push(entry); |
} |
} |