diff options
author | 2014-11-18 10:49:23 -0800 | |
---|---|---|
committer | 2014-11-19 17:24:30 -0800 | |
commit | 70850ea258cbf91477efa57a1f1a23cc0044cc93 (patch) | |
tree | 674621c2adc816afae2a1d09291fcd4af12b08e7 /libs/hwui/TextureCache.cpp | |
parent | 6c912b7d056c67b41fd46f31de168795e97c2336 (diff) |
Improve logging around performance critical events
bug:17702227
Add details useful to developers (such as layer size/View name), and
switch away from logging implementation names/details, since they
are generally not relevant to developers.
Change-Id: Iee605d182f241450f7e75a6d0c283d51fa1312f5
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r-- | libs/hwui/TextureCache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index 3b8a9a46c156..5fcb1942a878 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -26,6 +26,7 @@ #include "Caches.h" #include "TextureCache.h" #include "Properties.h" +#include "utils/TraceUtils.h" namespace android { namespace uirenderer { @@ -266,7 +267,7 @@ void TextureCache::generateTexture(const SkBitmap* bitmap, Texture* texture, boo return; } - ATRACE_CALL(); + ATRACE_FORMAT("Upload %ux%u Texture", bitmap->width(), bitmap->height()); // We could also enable mipmapping if both bitmap dimensions are powers // of 2 but we'd have to deal with size changes. Let's keep this simple |