summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-10-21 16:27:21 -0700
committer Mathias Agopian <mathias@google.com> 2009-10-23 15:37:28 -0700
commit382e17d46fc54396a303593f2db3abe1fb911411 (patch)
tree718e2186139053ae9b3cf5dc07c7cbffb6b7cb5d /libs/surfaceflinger/LayerBase.cpp
parentdd28d56368441537ec5eb42150516416fdbf10ad (diff)
fix [2211532] improves sholes graphics performance
Instead of using glTex{Sub}Image2D() to refresh the textures, we're using an EGLImageKHR object backed up by a gralloc buffer. The data is updated using memcpy(). This is faster than glTex{Sub}Image2D() because the texture is not swizzled. It also uses less memory because EGLImageKHW is not limited to power-of-two dimensions.
Diffstat (limited to 'libs/surfaceflinger/LayerBase.cpp')
-rw-r--r--libs/surfaceflinger/LayerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.cpp b/libs/surfaceflinger/LayerBase.cpp
index b376e72aa15f..ecc78946bb93 100644
--- a/libs/surfaceflinger/LayerBase.cpp
+++ b/libs/surfaceflinger/LayerBase.cpp
@@ -507,7 +507,7 @@ void LayerBase::loadTexture(Texture* texture,
// uh?
return;
}
-
+
glBindTexture(GL_TEXTURE_2D, texture->name);
/*