From 32963c393a804db2cd86c24443c2f1c6eee6064b Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 10 Dec 2010 14:43:41 -0800 Subject: [PATCH] Ignore empty layers. Change-Id: Ib2f99cdab654881fe079306e27d87c5ef9535700 --- libs/hwui/OpenGLRenderer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 8bfc8d469d4cc..17b9e83d69646 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -385,11 +385,7 @@ bool OpenGLRenderer::createLayer(sp snapshot, float left, float top, if (bounds.isEmpty() || bounds.getWidth() > mCaches.maxTextureSize || bounds.getHeight() > mCaches.maxTextureSize) { - if (fboLayer) { - snapshot->invisible = true; - } else { - snapshot->empty = true; - } + snapshot->empty = fboLayer; } else { snapshot->invisible = snapshot->invisible || (alpha <= ALPHA_THRESHOLD && fboLayer); }