diff options
author | Romain Guy <romainguy@google.com> | 2010-12-10 14:42:21 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-12-10 14:42:21 -0800 |
commit | e8a8db1d3bed5224a02e0cdfbe24f69e1556cc28 (patch) | |
tree | e5118a77ed61ddd1b463c682ac49e9ef73e94cde /libs | |
parent | 4decffa46d3ca17df2c5bbb8ba729c2dba4f6a79 (diff) | |
parent | 32963c393a804db2cd86c24443c2f1c6eee6064b (diff) | |
download | frameworks_base-e8a8db1d3bed5224a02e0cdfbe24f69e1556cc28.zip frameworks_base-e8a8db1d3bed5224a02e0cdfbe24f69e1556cc28.tar.gz frameworks_base-e8a8db1d3bed5224a02e0cdfbe24f69e1556cc28.tar.bz2 |
Merge "Ignore empty layers."
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 8bfc8d4..17b9e83 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -385,11 +385,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> 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); } |