diff options
author | Mathias Agopian <mathias@google.com> | 2009-09-24 14:57:26 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-09-24 14:57:26 -0700 |
commit | f2d28b74850ea0869aef2ce0727a6abb7b166a5c (patch) | |
tree | a59d2712a9cef92619bb003b77203592e5c32a7b /libs/surfaceflinger/Layer.cpp | |
parent | 2ddccd16496701370572e1ad3d83da056d9ad281 (diff) | |
download | frameworks_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.cpp | 2 |
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]); } |