diff options
| author | Jamie Gennis <jgennis@google.com> | 2012-02-23 19:27:23 -0800 |
|---|---|---|
| committer | Jamie Gennis <jgennis@google.com> | 2012-02-27 17:50:35 -0800 |
| commit | a85ca37c8469b2a54c95db0bb724017fd08c5688 (patch) | |
| tree | 2c2a798a4e0927bfab5572c8ccdc9851fb950d00 /libs/gui/SurfaceTexture.cpp | |
| parent | 6835237f6f55d8a7c7b43b8e0f174f5ea258bfee (diff) | |
| download | frameworks_base-a85ca37c8469b2a54c95db0bb724017fd08c5688.zip frameworks_base-a85ca37c8469b2a54c95db0bb724017fd08c5688.tar.gz frameworks_base-a85ca37c8469b2a54c95db0bb724017fd08c5688.tar.bz2 | |
Add tracing to various graphics components.
This change adds ATRACE call tracing to BufferQueue,
SurfaceTextureClient, SurfaceTexture, SurfaceFlinger, Layer, and EGL.
Change-Id: I9d75ed26f5a3f0d1af635da38289520134cfbbb7
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
| -rw-r--r-- | libs/gui/SurfaceTexture.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index a23a328..b42aa34 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -15,6 +15,7 @@ */ #define LOG_TAG "SurfaceTexture" +#define ATRACE_TAG ATRACE_TAG_GRAPHICS //#define LOG_NDEBUG 0 #define GL_GLEXT_PROTOTYPES @@ -36,6 +37,7 @@ #include <utils/Log.h> #include <utils/String8.h> +#include <utils/Trace.h> // This compile option makes SurfaceTexture use the EGL_KHR_fence_sync extension // to synchronize access to the buffers. It will cause dequeueBuffer to stall, @@ -143,6 +145,7 @@ status_t SurfaceTexture::setDefaultBufferSize(uint32_t w, uint32_t h) } status_t SurfaceTexture::updateTexImage() { + ATRACE_CALL(); ST_LOGV("updateTexImage"); Mutex::Autolock lock(mMutex); |
