diff options
author | 2014-07-29 09:49:13 -0700 | |
---|---|---|
committer | 2014-07-29 10:04:01 -0700 | |
commit | ec4cefc152749f9805d3a971a4a395687b5a3831 (patch) | |
tree | 175982729ee6838969d9cdcfa96cc0a84b1f18e0 /libs/hwui/TextureCache.cpp | |
parent | ea4f01070a9c8f5147eb228c413a84de78d98973 (diff) |
Add layer/texture creation tracing
Change-Id: I0af6a36c97a9f5f35d28e0e36539ba8d8011ea7c
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r-- | libs/hwui/TextureCache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index ec9e30a53c68..3b8a9a46c156 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -15,6 +15,7 @@ */ #define LOG_TAG "OpenGLRenderer" +#define ATRACE_TAG ATRACE_TAG_VIEW #include <GLES2/gl2.h> @@ -265,6 +266,8 @@ void TextureCache::generateTexture(const SkBitmap* bitmap, Texture* texture, boo return; } + ATRACE_CALL(); + // 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 const bool canMipMap = Extensions::getInstance().hasNPot(); |