diff options
author | Romain Guy <romainguy@google.com> | 2011-10-17 17:11:08 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-10-17 17:11:08 -0700 |
commit | b6233ffd602642cd47a08f951770744cbed54f22 (patch) | |
tree | ff039b1f74f6f8e6d9dc7f11fea43f38b7d2d162 /libs | |
parent | b5c45e00967b9d0a6411098a598ad6b40f3b2074 (diff) | |
parent | 5cd5c3f7e4df99f47e3def6e3707b9eb8205aef3 (diff) | |
download | frameworks_base-b6233ffd602642cd47a08f951770744cbed54f22.zip frameworks_base-b6233ffd602642cd47a08f951770744cbed54f22.tar.gz frameworks_base-b6233ffd602642cd47a08f951770744cbed54f22.tar.bz2 |
Merge "Return early when we cannot allocate a hardware layer Bug #5462308"
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/LayerRenderer.cpp | 3 |
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); |