diff options
author | Chris Craik <ccraik@google.com> | 2014-11-20 17:36:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-20 17:36:26 +0000 |
commit | 3b2ba44be3699a4e133d7a09cb4ed182405d7ff9 (patch) | |
tree | fcded4723a443028815b3ee7e51fcd30a2fb53e7 /libs/hwui/LayerRenderer.cpp | |
parent | bf1960ce9c353267490d65cc1b8beacc7dd85347 (diff) | |
parent | 70850ea258cbf91477efa57a1f1a23cc0044cc93 (diff) | |
download | frameworks_base-3b2ba44be3699a4e133d7a09cb4ed182405d7ff9.zip frameworks_base-3b2ba44be3699a4e133d7a09cb4ed182405d7ff9.tar.gz frameworks_base-3b2ba44be3699a4e133d7a09cb4ed182405d7ff9.tar.bz2 |
Merge "Improve logging around performance critical events" into lmp-mr1-dev
Diffstat (limited to 'libs/hwui/LayerRenderer.cpp')
-rw-r--r-- | libs/hwui/LayerRenderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/LayerRenderer.cpp b/libs/hwui/LayerRenderer.cpp index 394c647..83f9c6a 100644 --- a/libs/hwui/LayerRenderer.cpp +++ b/libs/hwui/LayerRenderer.cpp @@ -27,6 +27,7 @@ #include "Matrix.h" #include "Properties.h" #include "Rect.h" +#include "utils/TraceUtils.h" namespace android { namespace uirenderer { @@ -185,7 +186,7 @@ void LayerRenderer::generateMesh() { /////////////////////////////////////////////////////////////////////////////// Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { - ATRACE_CALL(); + ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); Caches& caches = Caches::getInstance(); @@ -310,7 +311,7 @@ void LayerRenderer::updateTextureLayer(Layer* layer, uint32_t width, uint32_t he void LayerRenderer::destroyLayer(Layer* layer) { if (layer) { - ATRACE_CALL(); + ATRACE_FORMAT("Destroy %ux%u HW Layer", layer->getWidth(), layer->getHeight()); LAYER_RENDERER_LOGD("Recycling layer, %dx%d fbo = %d", layer->getWidth(), layer->getHeight(), layer->getFbo()); |