summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-01-10 14:37:24 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-10 14:37:24 -0800
commit506b8bf34a2526eff1ac9fedaa29494a39206888 (patch)
tree3dd28f810e1e82ac9a56599e03b10a6b402a10b4 /Source/WebCore/platform/graphics
parent73d556e0cf543c9fb1b0fcc39a9db25937ae0573 (diff)
parentbe9cb848000fc47c0049a30dc167f4bb530835c1 (diff)
downloadexternal_webkit-506b8bf34a2526eff1ac9fedaa29494a39206888.zip
external_webkit-506b8bf34a2526eff1ac9fedaa29494a39206888.tar.gz
external_webkit-506b8bf34a2526eff1ac9fedaa29494a39206888.tar.bz2
Merge "A better fix to reduce overhead of GL texture wrap setting"
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r--Source/WebCore/platform/graphics/android/GLUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLUtils.cpp b/Source/WebCore/platform/graphics/android/GLUtils.cpp
index 2693651..efd611b 100644
--- a/Source/WebCore/platform/graphics/android/GLUtils.cpp
+++ b/Source/WebCore/platform/graphics/android/GLUtils.cpp
@@ -370,6 +370,8 @@ GLuint GLUtils::createBaseTileGLTexture(int width, int height)
GLUtils::checkGlError("glTexImage2D");
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
#ifdef DEBUG
delete pixels;
#endif