Improve comments in tiling code.
authorkenneth@webkit.org <kenneth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 13:36:12 +0000 (13:36 +0000)
committerkenneth@webkit.org <kenneth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 13:36:12 +0000 (13:36 +0000)
Rubberstamped by Simon Hausmann.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::createTiles):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108489 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/TiledBackingStore.cpp

index c59963d..f380ab1 100644 (file)
@@ -1,3 +1,12 @@
+2012-02-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        Improve comments in tiling code.
+
+        Rubberstamped by Simon Hausmann.
+
+        * platform/graphics/TiledBackingStore.cpp:
+        (WebCore::TiledBackingStore::createTiles):
+
 2012-02-22  'Pavel Feldman'  <pfeldman@google.com>
 
         Not reviewed: build fix.
index 3b4b29c..52f1285 100644 (file)
@@ -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);
 }