summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-24 14:57:26 -0700
committerMathias Agopian <mathias@google.com>2009-09-24 14:57:26 -0700
commitf2d28b74850ea0869aef2ce0727a6abb7b166a5c (patch)
treea59d2712a9cef92619bb003b77203592e5c32a7b /libs/surfaceflinger/Layer.cpp
parent2ddccd16496701370572e1ad3d83da056d9ad281 (diff)
downloadframeworks_base-f2d28b74850ea0869aef2ce0727a6abb7b166a5c.zip
frameworks_base-f2d28b74850ea0869aef2ce0727a6abb7b166a5c.tar.gz
frameworks_base-f2d28b74850ea0869aef2ce0727a6abb7b166a5c.tar.bz2
minor SurfaceFlinger code cleanup and remove unnecessary tests
Diffstat (limited to 'libs/surfaceflinger/Layer.cpp')
-rw-r--r--libs/surfaceflinger/Layer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/surfaceflinger/Layer.cpp b/libs/surfaceflinger/Layer.cpp
index 67ddcf9..2894bf0 100644
--- a/libs/surfaceflinger/Layer.cpp
+++ b/libs/surfaceflinger/Layer.cpp
@@ -223,14 +223,12 @@ void Layer::onDraw(const Region& clip) const
mFrontBufferIndex : 0;
GLuint textureName = mTextures[index].name;
if (UNLIKELY(textureName == -1LU)) {
- //LOGW("Layer %p doesn't have a texture", this);
// the texture has not been created yet, this Layer has
// in fact never been drawn into. this happens frequently with
// SurfaceView.
clearWithOpenGL(clip);
return;
}
-
drawWithOpenGL(clip, mTextures[index]);
}