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
commit95a666b0e001ebf738418b89d8e8fd50b18110f8 (patch)
tree864a258efae49883ee0d85b66fbc6ba7201ef098 /libs/surfaceflinger/Layer.cpp
parentc5f0155d7f60b4eeb3194898c7772e18fd011402 (diff)
downloadframeworks_native-95a666b0e001ebf738418b89d8e8fd50b18110f8.zip
frameworks_native-95a666b0e001ebf738418b89d8e8fd50b18110f8.tar.gz
frameworks_native-95a666b0e001ebf738418b89d8e8fd50b18110f8.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]);
}