summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-06-03 17:11:23 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-03 17:11:23 -0700
commitc58299cfe8df6665721cf3a40601d1abca35229e (patch)
tree9478c4a1492e97e9ee97ebd86ed98a9bc2936841 /Source/WebCore/platform/graphics
parent0a24b2fbe512c59d9c83f0be6a1bd24c4fe9f8b6 (diff)
parente2c8b60a1af2565f617b160bed7e530223786284 (diff)
downloadexternal_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.zip
external_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.tar.gz
external_webkit-c58299cfe8df6665721cf3a40601d1abca35229e.tar.bz2
Merge "Fix the trailing pixels by inflate the invalidate screen rect"
Diffstat (limited to 'Source/WebCore/platform/graphics')
-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);