summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-11-18 21:37:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-18 21:37:59 +0000
commit27eaec23881f9564f98b484765d000822de5fdc3 (patch)
tree2b958bb768b18ec0cff74e3b1e5949ba3b81f30b
parentbee20cb560d37d23f2037c210152f9c44246ba8d (diff)
parent842697a3602204036e991cfea8b74da3df6e7f14 (diff)
downloadframeworks_base-27eaec23881f9564f98b484765d000822de5fdc3.zip
frameworks_base-27eaec23881f9564f98b484765d000822de5fdc3.tar.gz
frameworks_base-27eaec23881f9564f98b484765d000822de5fdc3.tar.bz2
am 842697a3: am decc26df: am f0f68117: Merge "Trace some interesting events" into lmp-mr1-dev
* commit '842697a3602204036e991cfea8b74da3df6e7f14': Trace some interesting events
-rw-r--r--libs/hwui/AssetAtlas.cpp2
-rw-r--r--libs/hwui/Caches.cpp2
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp2
-rw-r--r--libs/hwui/renderthread/EglManager.cpp2
4 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/AssetAtlas.cpp b/libs/hwui/AssetAtlas.cpp
index faec5d2..fa7635e 100644
--- a/libs/hwui/AssetAtlas.cpp
+++ b/libs/hwui/AssetAtlas.cpp
@@ -34,6 +34,8 @@ void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) {
return;
}
+ ATRACE_NAME("AssetAtlas::init");
+
mImage = new Image(buffer);
if (mImage->getTexture()) {
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index 23635fd..8727154 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -67,6 +67,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);
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 8299855..ee629c0 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -71,6 +71,8 @@ void CanvasContext::destroy() {
}
void CanvasContext::setSurface(ANativeWindow* window) {
+ ATRACE_CALL();
+
mNativeWindow = window;
if (mEglSurface != EGL_NO_SURFACE) {
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp
index e49863d..f93da69 100644
--- a/libs/hwui/renderthread/EglManager.cpp
+++ b/libs/hwui/renderthread/EglManager.cpp
@@ -83,6 +83,8 @@ EglManager::EglManager(RenderThread& thread)
void EglManager::initialize() {
if (hasEglContext()) return;
+ ATRACE_NAME("Creating EGLContext");
+
mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY,
"Failed to get EGL_DEFAULT_DISPLAY! err=%s", egl_error_str());