From: kenneth@webkit.org Date: Wed, 22 Feb 2012 13:36:12 +0000 (+0000) Subject: Improve comments in tiling code. X-Git-Tag: 070512121124~12167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23fb1a7749071436311509f281f4c3a3bd9d375a;p=profile%2Fivi%2Fwebkit-efl.git Improve comments in tiling code. 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 --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index c59963d..f380ab1 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,12 @@ +2012-02-22 Kenneth Rohde Christiansen + + Improve comments in tiling code. + + Rubberstamped by Simon Hausmann. + + * platform/graphics/TiledBackingStore.cpp: + (WebCore::TiledBackingStore::createTiles): + 2012-02-22 'Pavel Feldman' Not reviewed: build fix. 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); }