Skip to content

Instantly share code, notes, and snippets.

@kenchris
Created March 5, 2012 13:34
Show Gist options
  • Save kenchris/1978322 to your computer and use it in GitHub Desktop.
Save kenchris/1978322 to your computer and use it in GitHub Desktop.
commit f5162fd38ed1cd003334f853fabb4d7a53eedcac
Author: Kenneth Rohde Christiansen <kenneth@webkit.org>
Date: Mon Mar 5 14:20:20 2012 +0100
Rename createTiles to updateBackingStore as it is actually changing the
backing store (creating, deleting and reusing tiles for the new visual, cover
and keep rect)
diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
index 44faa6d..ab3e2b9 100644
--- a/Source/WebCore/platform/graphics/TiledBackingStore.cpp
+++ b/Source/WebCore/platform/graphics/TiledBackingStore.cpp
@@ -239,7 +239,7 @@ bool TiledBackingStore::visibleAreaIsCovered() const
return coverageRatio(visibleRect()) == 1.0f;
}
-void TiledBackingStore::createTiles()
+void TiledBackingStore::updateBackingStore()
{
// Guard here as as these can change before the timer fires.
if (isBackingStoreUpdatesSuspended())
@@ -504,7 +504,7 @@ void TiledBackingStore::startTileCreationTimer()
void TiledBackingStore::tileCreationTimerFired(TileTimer*)
{
- createTiles();
+ updateBackingStore();
}
void TiledBackingStore::setContentsFrozen(bool freeze)
diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.h b/Source/WebCore/platform/graphics/TiledBackingStore.h
index 8b572d7..bea15fb 100644
--- a/Source/WebCore/platform/graphics/TiledBackingStore.h
+++ b/Source/WebCore/platform/graphics/TiledBackingStore.h
@@ -87,7 +87,8 @@ private:
void tileBufferUpdateTimerFired(TileTimer*);
void tileCreationTimerFired(TileTimer*);
- void createTiles();
+ void updateBackingStore();
+
void computeCoverAndKeepRect(const IntRect& visibleRect, IntRect& coverRect, IntRect& keepRect) const;
void commitScaleChange();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment