diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp index 84dc949b36..2eea6dbf36 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); } }