summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-05-13 17:05:48 -0700
committerChris Craik <ccraik@google.com>2015-05-13 17:05:48 -0700
commitcf8426c4eb60924d2387e0769d6cdc426178a31f (patch)
treeaca88c6ac35aa61a451b74a6e70928cf4e734387 /libs/hwui/PathCache.cpp
parent55e603ee9de06125751292c84f1b25fb9a78d4e4 (diff)
downloadframeworks_base-cf8426c4eb60924d2387e0769d6cdc426178a31f.zip
frameworks_base-cf8426c4eb60924d2387e0769d6cdc426178a31f.tar.gz
frameworks_base-cf8426c4eb60924d2387e0769d6cdc426178a31f.tar.bz2
Add tracing for path texture upload
Change-Id: I4918e5a3c7e01b321d428b20babd48bf69a708e4
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r--libs/hwui/PathCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp
index 8f5fea3..e466604 100644
--- a/libs/hwui/PathCache.cpp
+++ b/libs/hwui/PathCache.cpp
@@ -280,6 +280,7 @@ void PathCache::clear() {
}
void PathCache::generateTexture(SkBitmap& bitmap, Texture* texture) {
+ ATRACE_NAME("Upload Path Texture");
SkAutoLockPixels alp(bitmap);
if (!bitmap.readyToDraw()) {
ALOGE("Cannot generate texture from bitmap");