diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-10 13:19:57 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-10 14:09:02 -0800 |
commit | be9cb848000fc47c0049a30dc167f4bb530835c1 (patch) | |
tree | fe14dceeb761098b6f1955a027bd37e024b18d80 /Source/WebCore/platform/graphics/android | |
parent | c2d27b8c99cdaadc0dd7e859c7eefdbc17f74366 (diff) | |
download | external_webkit-be9cb848000fc47c0049a30dc167f4bb530835c1.zip external_webkit-be9cb848000fc47c0049a30dc167f4bb530835c1.tar.gz external_webkit-be9cb848000fc47c0049a30dc167f4bb530835c1.tar.bz2 |
A better fix to reduce overhead of GL texture wrap setting
bug:5849461
Setting the wrap at creation time can keep the function while reducing the
overhead of calling this during every draw.
The regression is caused by commit 3fbe109c183e8a6e5a5f48c052923e382234d9d1.
Change-Id: Ifd321b43251f919c1fa2adc30af67802db61c5aa
Diffstat (limited to 'Source/WebCore/platform/graphics/android')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLUtils.cpp | 2 |
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 2d18032..a51dfb4 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 |