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 | 1c8e95cf86f2182986385bc1ee85f13f425f3a3a (patch) | |
tree | 04de76fd2673415b21beb07cc5d0e7fd21e5fb88 /opengl/libs | |
parent | 8b82aff67c30b436e76804a28d8e6d0dfee6a484 (diff) | |
download | frameworks_native-1c8e95cf86f2182986385bc1ee85f13f425f3a3a.zip frameworks_native-1c8e95cf86f2182986385bc1ee85f13f425f3a3a.tar.gz frameworks_native-1c8e95cf86f2182986385bc1ee85f13f425f3a3a.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/libs')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 5 |
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); |