summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/ShaderProgram.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-03-03 15:13:18 -0500
committerDerek Sollenberger <djsollen@google.com>2011-03-03 16:51:31 -0500
commit68a3ee86577b9e75d6bd88c49c86989a5c3e83cb (patch)
tree85a1db984d5c400fd1b755597dbda212090a3a17 /WebCore/platform/graphics/android/ShaderProgram.cpp
parenta9f4668988e6d40d01ad07acb702d6fe71d4a5f5 (diff)
downloadexternal_webkit-68a3ee86577b9e75d6bd88c49c86989a5c3e83cb.zip
external_webkit-68a3ee86577b9e75d6bd88c49c86989a5c3e83cb.tar.gz
external_webkit-68a3ee86577b9e75d6bd88c49c86989a5c3e83cb.tar.bz2
ensure plugins draw correctly even when they have been given focus.
The initial attempt at fixing this bug was to modify the clip, but this was not correct and only fixed cases where the plugin was on the left edge of the screen. This CL properly adjusts the plugin's boundaries to make sure the content is drawn in the appropriate position. bug: 3477581 Change-Id: I5958228a93fa5600cd7e24ed9e7e1e26f6b241bc
Diffstat (limited to 'WebCore/platform/graphics/android/ShaderProgram.cpp')
-rw-r--r--WebCore/platform/graphics/android/ShaderProgram.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/ShaderProgram.cpp b/WebCore/platform/graphics/android/ShaderProgram.cpp
index 828cc37..ba32d5d 100644
--- a/WebCore/platform/graphics/android/ShaderProgram.cpp
+++ b/WebCore/platform/graphics/android/ShaderProgram.cpp
@@ -306,6 +306,8 @@ void ShaderProgram::drawLayerQuad(const TransformationMatrix& drawMatrix,
{
TransformationMatrix renderMatrix = drawMatrix;
+ // move the drawing depending on where the texture is on the layer
+ renderMatrix.translate(geometry.fLeft, geometry.fTop);
renderMatrix.scale3d(geometry.width(), geometry.height(), 1);
renderMatrix.multiply(m_projectionMatrix);