summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-02-23 19:27:23 -0800
committerJamie Gennis <jgennis@google.com>2012-02-27 17:50:35 -0800
commita85ca37c8469b2a54c95db0bb724017fd08c5688 (patch)
tree2c2a798a4e0927bfab5572c8ccdc9851fb950d00 /opengl
parent6835237f6f55d8a7c7b43b8e0f174f5ea258bfee (diff)
downloadframeworks_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 'opengl')
-rw-r--r--opengl/libs/EGL/eglApi.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index a5dc832..a1bd82d 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -14,6 +14,8 @@
** limitations under the License.
*/
+#define ATRACE_TAG ATRACE_TAG_GRAPHICS
+
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
@@ -34,6 +36,7 @@
#include <utils/KeyedVector.h>
#include <utils/SortedVector.h>
#include <utils/String8.h>
+#include <utils/Trace.h>
#include "egl_impl.h"
#include "egl_tls.h"
@@ -348,6 +351,7 @@ EGLBoolean eglQuerySurface( EGLDisplay dpy, EGLSurface surface,
}
void EGLAPI eglBeginFrame(EGLDisplay dpy, EGLSurface surface) {
+ ATRACE_CALL();
clearError();
egl_display_t const * const dp = validate_display(dpy);
@@ -712,6 +716,7 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface draw)
{
+ ATRACE_CALL();
clearError();
egl_display_t const * const dp = validate_display(dpy);