From 1f1f3dc8ac5408699c1d58cb43bef13ad1a60f0c Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Wed, 12 Jan 2011 15:05:46 -0800 Subject: 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 --- WebCore/platform/graphics/android/BaseLayerAndroid.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'WebCore/platform/graphics') 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); -- cgit v1.1