summaryrefslogtreecommitdiff
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2014-11-14 16:18:41 -0800
committer John Reck <jreck@google.com> 2014-11-17 10:18:31 -0800
commitfbc8df03e498baf47ff1a5e05e182f1bcd60c770 (patch)
treede74f95227f7285e812ad4a0c009e697fcca7d6a /libs/hwui/Caches.cpp
parentb3ec64e1005c82d41b6d1a1d86b6933fd25d87d2 (diff)
Trace some interesting events
Bug: 18337099 Change-Id: Ie2e60da2b9f06e0368061c944d8123ab6903355c
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 952f7394fb5c..6453206eac3d 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -66,6 +66,8 @@ Caches::Caches(): Singleton<Caches>(),
bool Caches::init() {
if (mInitialized) return false;
+ ATRACE_NAME("Caches::init");
+
glGenBuffers(1, &meshBuffer);
glBindBuffer(GL_ARRAY_BUFFER, meshBuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(gMeshVertices), gMeshVertices, GL_STATIC_DRAW);