summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/TexturesGenerator.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-11-04 16:22:28 -0400
committerDerek Sollenberger <djsollen@google.com>2010-11-04 16:22:28 -0400
commit144ccd9c8dba05ffaa0ae598f9b70032050fc20e (patch)
treee63cbbd7d1297d293f0952904618b9ff63a981f1 /WebCore/platform/graphics/android/TexturesGenerator.cpp
parentf337498167288e7a10576e418b97d8d9afa223c8 (diff)
downloadexternal_webkit-144ccd9c8dba05ffaa0ae598f9b70032050fc20e.zip
external_webkit-144ccd9c8dba05ffaa0ae598f9b70032050fc20e.tar.gz
external_webkit-144ccd9c8dba05ffaa0ae598f9b70032050fc20e.tar.bz2
Revert "Support partial invalidation of tiles based on webkit's inval rect."
This reverts commit fc92ca2409a95b539274985812d88016b6b84b7e.
Diffstat (limited to 'WebCore/platform/graphics/android/TexturesGenerator.cpp')
-rw-r--r--WebCore/platform/graphics/android/TexturesGenerator.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/WebCore/platform/graphics/android/TexturesGenerator.cpp b/WebCore/platform/graphics/android/TexturesGenerator.cpp
index 193ca46..f81a297 100644
--- a/WebCore/platform/graphics/android/TexturesGenerator.cpp
+++ b/WebCore/platform/graphics/android/TexturesGenerator.cpp
@@ -53,13 +53,10 @@ void TexturesGenerator::schedulePaintForTileSet(TileSet* set)
{
android::Mutex::Autolock lock(mRequestedPixmapsLock);
for (unsigned int i = 0; i < mRequestedPixmaps.size(); i++) {
- TileSet** s = &mRequestedPixmaps[i];
- // A similar set is already in the queue. The newer set may have additional
- // dirty tiles so delete the existing set and replace it with the new one.
- if (*s && **s == *set) {
- TileSet* oldSet = *s;
- *s = set;
- delete oldSet;
+ TileSet* s = mRequestedPixmaps[i];
+ if (s && *s == *set) {
+ // Similar set already in the queue
+ delete set;
return;
}
}