summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-01-12 15:05:46 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-01-12 15:05:46 -0800
commit1f1f3dc8ac5408699c1d58cb43bef13ad1a60f0c (patch)
treea87ccc251ad71a385470181d6365a1f6e2bab2cb /WebCore
parent100a4c5bbcdd1cdafdc6add279f6d7ed4dec3796 (diff)
downloadexternal_webkit-1f1f3dc8ac5408699c1d58cb43bef13ad1a60f0c.zip
external_webkit-1f1f3dc8ac5408699c1d58cb43bef13ad1a60f0c.tar.gz
external_webkit-1f1f3dc8ac5408699c1d58cb43bef13ad1a60f0c.tar.bz2
The m_projectionMatrix in the ShaderProgram need to be updated
When there is only layers (no baseLayer), m_projectionMatrix is not updated for every draw call, such that it doesn't reflect the visibleRect info. Change-Id: I527f86d6d16034e56c3215f011c20196b02b16c2 b:3335132
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/BaseLayerAndroid.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
index 42735fa..7527fac 100644
--- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp
@@ -258,6 +258,7 @@ bool BaseLayerAndroid::drawGL(IntRect& viewRect, SkRect& visibleRect,
glUseProgram(shader->program());
glUniform1i(shader->textureSampler(), 0);
shader->setViewRect(viewRect);
+ shader->setViewport(visibleRect);
ret = drawBasePictureInGL(visibleRect, scale);