summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-06-03 16:57:07 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-06-03 16:59:47 -0700
commite2c8b60a1af2565f617b160bed7e530223786284 (patch)
treefb43b41f6d034aa6a72c51de064f11fb4a5a493a
parenta0f98f68a04f940ef13efc6e67a102abaef41028 (diff)
downloadexternal_webkit-e2c8b60a1af2565f617b160bed7e530223786284.zip
external_webkit-e2c8b60a1af2565f617b160bed7e530223786284.tar.gz
external_webkit-e2c8b60a1af2565f617b160bed7e530223786284.tar.bz2
Fix the trailing pixels by inflate the invalidate screen rect
bug:4313230 Change-Id: I364f418c8e04219d985c4ff7a27328d4e0dbfbd2
-rw-r--r--Source/WebCore/platform/graphics/android/GLWebViewState.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
index 966670d..927b0bb 100644
--- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
+++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
@@ -541,6 +541,8 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect,
m_previouslyUsedRoot = compositedRoot;
if (ret) {
FloatRect frameworkInval = TilesManager::instance()->shader()->rectInInvScreenCoord(m_frameworkInval);
+ // Inflate the invalidate rect to avoid precision lost.
+ frameworkInval.inflate(1);
IntRect inval(frameworkInval.x(), frameworkInval.y(), frameworkInval.width(), frameworkInval.height());
inval.unite(m_frameworkLayersInval);