diff options
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(); |