summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-16 07:46:26 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-16 07:47:47 +0000
commiteeeb07b96d0395815bb510fe3a995e343bb52238 (patch)
tree32569fd12c8be2f4a639f21a5017f0f99f6d2b9e /gpu
parent0cb56cef0b8e83a16061c8fa89e3224a3cec5b53 (diff)
downloadchromium_src-eeeb07b96d0395815bb510fe3a995e343bb52238.zip
chromium_src-eeeb07b96d0395815bb510fe3a995e343bb52238.tar.gz
chromium_src-eeeb07b96d0395815bb510fe3a995e343bb52238.tar.bz2
Use GL_LINEAR for backing texture of offscreen framebuffer.
The texture filtering mode of backing texture of offscreen framebuffer is used for rendering Pepper Graphics3D contents. If GL_NEAREST is used, the contents looks bad when it is scaled (e.g. CSS transform, changing display resolution on ChromeOS). This CL changes the texture filtering mode of backing textures to GL_LINEAR to prevent the contents from looking bad in such cases. TEST=Set display resolution to 1024x680 on Pixel TEST=Apply CSS transform to NaCl emebed element TEST=Apply CSS transform to Flash content BUG=384687 Review URL: https://codereview.chromium.org/472443002 Cr-Commit-Position: refs/heads/master@{#290116} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 7513ff2..10d5439 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2020,8 +2020,8 @@ void BackTexture::Create() {
Destroy();
glGenTextures(1, &id_);
ScopedTextureBinder binder(state_, id_, GL_TEXTURE_2D);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_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);
@@ -3294,13 +3294,13 @@ void GLES2DecoderImpl::UpdateParentTextureInfo() {
GetErrorState(),
offscreen_saved_color_texture_info_.get(),
GL_TEXTURE_MAG_FILTER,
- GL_NEAREST);
+ GL_LINEAR);
texture_manager()->SetParameteri(
"UpdateParentTextureInfo",
GetErrorState(),
offscreen_saved_color_texture_info_.get(),
GL_TEXTURE_MIN_FILTER,
- GL_NEAREST);
+ GL_LINEAR);
texture_manager()->SetParameteri(
"UpdateParentTextureInfo",
GetErrorState(),