Created
February 22, 2012 13:19
-
-
Save kenchris/1885156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog | |
index ba12346..328cf58 100644 | |
--- a/Source/WebCore/ChangeLog | |
+++ b/Source/WebCore/ChangeLog | |
@@ -1,3 +1,12 @@ | |
+2012-02-22 Kenneth Rohde Christiansen <kenneth@webkit.org> | |
+ | |
+ Improve comments in tiling code | |
+ | |
+ Rubberstamped by NOBODY (OOPS!). | |
+ | |
+ * platform/graphics/TiledBackingStore.cpp: | |
+ (WebCore::TiledBackingStore::createTiles): | |
+ | |
2012-02-22 Andras Becsi <andras.becsi@nokia.com> | |
[Qt][WK2] Fix the N9 build | |
diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/TiledBackingStore.cpp | |
index 3b4b29c..52f1285 100644 | |
--- a/Source/WebCore/platform/graphics/TiledBackingStore.cpp | |
+++ b/Source/WebCore/platform/graphics/TiledBackingStore.cpp | |
@@ -278,19 +278,19 @@ void TiledBackingStore::createTiles() | |
} | |
} | |
- // Now construct the tile(s) | |
+ // Now construct the tile(s) within the shortest distance. | |
unsigned tilesToCreateCount = tilesToCreate.size(); | |
for (unsigned n = 0; n < tilesToCreateCount; ++n) { | |
Tile::Coordinate coordinate = tilesToCreate[n]; | |
setTile(coordinate, m_backend->createTile(this, coordinate)); | |
} | |
requiredTileCount -= tilesToCreateCount; | |
- | |
- // Paint the content of the newly created tiles | |
+ | |
+ // Paint the content of the newly created tiles. | |
if (tilesToCreateCount || didResizeTiles) | |
updateTileBuffers(); | |
- // Keep creating tiles until the whole coverRect is covered. | |
+ // Re-call createTiles on a timer to cover the visible area with the newest shortest distance. | |
if (requiredTileCount) | |
m_tileCreationTimer->startOneShot(m_tileCreationDelay); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment