Add tracing for path texture upload

Change-Id: I4918e5a3c7e01b321d428b20babd48bf69a708e4
This commit is contained in:
Chris Craik
2015-05-13 17:05:48 -07:00
parent 55e603ee9d
commit cf8426c4eb

View File

@@ -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");