diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-21 10:13:49 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-21 11:23:46 -0700 |
commit | 5c1199e7a7ad05f8f26e595ddb355dabe7f93e88 (patch) | |
tree | 060f1b86e81c72021437aa7dba83ff287d21bacd /Source/WebCore | |
parent | 4fd24e0fc4a8496f3311aa3716bd88c4fb0acc0e (diff) | |
download | external_webkit-5c1199e7a7ad05f8f26e595ddb355dabe7f93e88.zip external_webkit-5c1199e7a7ad05f8f26e595ddb355dabe7f93e88.tar.gz external_webkit-5c1199e7a7ad05f8f26e595ddb355dabe7f93e88.tar.bz2 |
Fix the Surface Texture Issue on the phones
Change-Id: Ibee33c53d65a6c1b98f5e88ed79862cd30418347
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/platform/graphics/android/ShaderProgram.cpp | 1 | ||||
-rw-r--r-- | Source/WebCore/platform/graphics/android/SharedTexture.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp index f2b2dc8..635130b 100644 --- a/Source/WebCore/platform/graphics/android/ShaderProgram.cpp +++ b/Source/WebCore/platform/graphics/android/ShaderProgram.cpp @@ -51,6 +51,7 @@ static const char gVertexShader[] = "}\n"; static const char gFragmentShader[] = + "#extension GL_OES_EGL_image_external : require\n" "precision mediump float;\n" "varying vec2 v_texCoord; \n" "uniform float alpha; \n" diff --git a/Source/WebCore/platform/graphics/android/SharedTexture.cpp b/Source/WebCore/platform/graphics/android/SharedTexture.cpp index 5f1cd77..ecd9f54 100644 --- a/Source/WebCore/platform/graphics/android/SharedTexture.cpp +++ b/Source/WebCore/platform/graphics/android/SharedTexture.cpp @@ -203,6 +203,8 @@ TextureInfo* SharedTexture::lockTarget() glBindTexture(GL_TEXTURE_2D, m_sourceTexture->m_textureId); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); return m_sourceTexture; } |