diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-03-10 18:13:59 -0800 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-03-10 18:13:59 -0800 |
commit | a1c8c0030ee40ef422e2d7229fed1737d1b270ac (patch) | |
tree | 7a23ad63f53b9d27e95a6e801fb9a365bceaddd7 | |
parent | 331fdb1964135091e1a4f5508cbff6a9dab0ea97 (diff) | |
download | external_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
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 4 |
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()); |