summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-03-10 18:13:59 -0800
committerNicolas Roard <nicolasroard@google.com>2011-03-10 18:13:59 -0800
commita1c8c0030ee40ef422e2d7229fed1737d1b270ac (patch)
tree7a23ad63f53b9d27e95a6e801fb9a365bceaddd7 /WebCore/platform/graphics
parent331fdb1964135091e1a4f5508cbff6a9dab0ea97 (diff)
downloadexternal_webkit-a1c8c0030ee40ef422e2d7229fed1737d1b270ac.zip
external_webkit-a1c8c0030ee40ef422e2d7229fed1737d1b270ac.tar.gz
external_webkit-a1c8c0030ee40ef422e2d7229fed1737d1b270ac.tar.bz2
Fix for display glitches.
We were trying to update the texture with a bitmap larger than it. GL did not like this, so the texture was not updated at all... bug:4078436 Change-Id: I180f4da6991a3db988169d7abd06cc08d5b69a32
Diffstat (limited to 'WebCore/platform/graphics')
-rw-r--r--WebCore/platform/graphics/android/BaseTile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp
index 3da0b3a..4400ea5 100644
--- a/WebCore/platform/graphics/android/BaseTile.cpp
+++ b/WebCore/platform/graphics/android/BaseTile.cpp
@@ -401,6 +401,10 @@ int BaseTile::paintPartialBitmap(SkIRect r, float ptx, float pty,
fullRepaint = true;
}
+ if ((rect.width() > TilesManager::instance()->tileWidth()) ||
+ (rect.height() > TilesManager::instance()->tileHeight()))
+ fullRepaint = true;
+
if (fullRepaint) {
rect.set(0, 0, TilesManager::instance()->tileWidth(),
TilesManager::instance()->tileHeight());