summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-10-17 17:10:02 -0700
committerRomain Guy <romainguy@google.com>2011-10-17 17:10:02 -0700
commit5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3 (patch)
tree30b4ba78109dad6bfdf2f22136740c01ec4fecb3 /libs
parent856d4e1a872b5aed6792b33e0360554cb3d19eed (diff)
downloadframeworks_base-5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3.zip
frameworks_base-5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3.tar.gz
frameworks_base-5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3.tar.bz2
Return early when we cannot allocate a hardware layer
Bug #5462308 Change-Id: I52dab809662f6f42a49ca03edc50f6b98fc35a06
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/LayerRenderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp
index dfcc5ea..e38b479 100644
--- a/libs/hwui/LayerRenderer.cpp
+++ b/libs/hwui/LayerRenderer.cpp
@@ -216,7 +216,8 @@ Layer* LayerRenderer::createLayer(uint32_t width, uint32_t height, bool isOpaque
layer->allocateTexture(GL_RGBA, GL_UNSIGNED_BYTE);
if (glGetError() != GL_NO_ERROR) {
- LOGD("Could not allocate texture");
+ LOGD("Could not allocate texture for layer (fbo=%d %dx%d)",
+ fbo, width, height);
glBindFramebuffer(GL_FRAMEBUFFER, previousFbo);
Caches::getInstance().fboCache.put(fbo);